/* styles for haravy product combos */
.haravy-product-combos {
    border: 1px solid #eee;
    padding: 15px;
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
    margin-bottom: 30px
}

.haravy-product-combos h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #008744;
    padding-bottom: 10px
}

.haravy-combo-table-responsive-wrapper {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch
}

.haravy-combo-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    table-layout: fixed
}

.haravy-combo-table th, .haravy-combo-table td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    box-sizing: border-box
}

.haravy-combo-table th:first-child {
    width: 5%
}

.haravy-combo-table th:nth-child(2) {
    width: 50%
}

.haravy-combo-table th:nth-child(3) {
    width: 20%
}

.haravy-combo-table th:nth-child(4) {
    width: 25%
}

.haravy-combo-table th {
    background-color: #e0ffe0;
    font-weight: 700;
    color: #333
}

.haravy-combo-table td {
    padding-left: 10px !important
}

.haravy-combo-item {
    background-color: #fff;
    transition: background-color .2s ease
}

.haravy-combo-item:hover {
    background-color: #f5f5f5
}

.haravy-combo-table td:first-child {
    text-align: center
}

.haravy-combo-product-info {
    display: flex;
    align-items: center
}

.haravy-combo-product-info img {
    max-width: 50px;
    height: auto;
    margin-right: 10px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0
}

.haravy-combo-product-info span {
    font-size: 15px;
    color: #555;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word
}

.haravy-combo-price {
    font-weight: 700;
    color: #008744;
    white-space: normal
}

.haravy-combo-price del {
    color: #999;
    font-size: .85em;
    margin-left: 5px;
    text-decoration: line-through
}

.haravy-combo-summary {
    text-align: right;
    font-size: 16px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd
}

.haravy-combo-summary p {
    margin: 5px 0
}

.haravy-total-combo-price {
    color: #d9534f;
    font-weight: 700;
    font-size: 1.3em
}

.haravy-total-savings {
    color: #5cb85c;
    font-weight: 700;
    font-size: 1.1em
}

.haravy-add-combo-to-cart {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    background-color: #008744;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .3s ease;
    margin-top: 15px
}

.haravy-add-combo-to-cart:hover {
    background-color: #006d37
}

.haravy-combo-checkbox {
    margin: 0;
    width: 16px;
    height: 16px;
    vertical-align: middle
}

/* --- Polished Quantity Input Styles --- */
.haravy-combo-quantity-wrapper {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

.haravy-combo-qty-input {
    height: 2.5em;
    width: 100%;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    color: inherit;
    font-size: 1em;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    background-color: transparent;
}

.haravy-combo-qty-input::-webkit-outer-spin-button, .haravy-combo-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.haravy-combo-qty-btn {
    width: 2.5em;
    height: 2.5em;
    font-size: 1em;
    text-align: center;
    background-color: #f9f9f9;
    color: #777;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 2.5em;
}

.haravy-combo-qty-btn:hover {
    background-color: #f0f0f0;
}

.haravy-combo-qty-minus {
    border-right: none;
    border-radius: 3px 0 0 3px;
}

.haravy-combo-qty-plus {
    border-left: none;
    border-radius: 0 3px 3px 0;
}

/* --- End Polished Styles --- */

@media (max-width: 767px) {
    .haravy-combo-table-responsive-wrapper {
        overflow-x: auto
    }

    .haravy-combo-table thead {
        display: none
    }

    .haravy-combo-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px
    }

    .haravy-combo-table td {
        border: none;
        padding: 0
    }

    .haravy-combo-table td:first-of-type {
        width: 10%;
        align-self: flex-start
    }

    .haravy-combo-product-info {
        width: 90%;
        margin-bottom: 10px
    }

    .haravy-combo-quantity-cell {
        width: 50%;
        padding-left: 10%;
        box-sizing: border-box
    }

    .haravy-combo-price {
        width: 50%;
        text-align: right;
        padding-right: 10px;
        box-sizing: border-box
    }
}
