/*
Theme Name:   Bacola Child
 Theme URI:    http://klbtheme.com/bacola/
 Description:  Bacola Child Theme
 Author:       KlbTheme
 Author URI:   http://themeforest.net/user/KlbTheme
 Template:     bacola
 Version:      1.0.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  bacola-child
*/

/* meal kit start */

.meal-kit-selection-container {
    margin-bottom: 10px;
}

label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

label input[type="checkbox"] {
    margin-top: 6px;
    flex-shrink: 0;
}

.product-card {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 6px;
    width: 100%;
    transition: box-shadow 0.2s ease-in-out;
}

label:hover .product-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.included-badge {
    background: #FFD41D; /* BAR-42: Yellow */
    color: #403F41; /* BAR-42: Charcoal */
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.meal-kit-summary {
    background: #fff;
    border: 1px solid #e9e9ec;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    max-width: 420px;
}

.meal-kit-summary .summary-content h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.2;
}

.meal-kit-summary .summary-items {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 8px;
    column-gap: 12px;
}

.meal-kit-summary .summary-item .label {
    color: #6b7280;
    font-weight: 600;
}

.meal-kit-summary .summary-item .value {
    color: #111827;
}

.meal-kit-summary .total-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
    font-weight: 700;
}

.meal-kit-summary .total-price .label {
    color: #374151;
}

.meal-kit-summary .total-price .value {
    font-size: 1.2rem;
}

.meal-kit-actions {
    margin-top: 12px;
    max-width: 420px;
}

.meal-kit-actions .single_add_to_cart_button {
    width: 100%;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    transition: transform 0.05s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.meal-kit-actions .single_add_to_cart_button:not(.disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
}

.meal-kit-actions .single_add_to_cart_button.disabled,
.meal-kit-actions .single_add_to_cart_button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 480px) {
    .meal-kit-summary,
    .meal-kit-actions {
        max-width: 100%;
    }
    .meal-kit-summary .summary-items {
        grid-template-columns: 1fr;
    }
    .meal-kit-summary .summary-item .label {
        margin-bottom: 2px;
    }
}

/* meal kit end */

.weight-product {
    color: var(--color-text-lighter);
}

#checkout-credit-cards-logos img {
    padding: 4px;
}

.ui-datepicker.pickup-location-appointment-datepicker table.ui-datepicker-calendar td.ui-datepicker-unselectable span {
    opacity: .1;
}

p.woocommerce-shipping-contents {
    display: none;
}

.select2-container--default.select2-container--default 
.select2-results__option--highlighted.select2-results__option--highlighted[aria-selected],
.select2-container--default.select2-container--default 
.select2-results__option--highlighted.select2-results__option--highlighted[data-selected],
.select2-container--default.select2-container--default 
.select2-results__option--highlighted.select2-results__option--highlighted[aria-selected]:hover,
.select2-container--default.select2-container--default 
.select2-results__option--highlighted.select2-results__option--highlighted[data-selected]:hover
 {
    background-color: #403F41!important;
}

a.ui-state-default:hover {
    color: #FFD41D;
}

div.meal-kit-sections div.extra-total {
    color: #403f41;
}

div.meal-kit-sections div.dessert-categories div:nth-child(2) {
    padding-top: 15px;
}

/* BAR-43 */

.meal-kit-child label,
.meal-kit-item label {
    position: relative;
    display: block;
    padding-left: 26px;
}

.meal-kit-child input[type="checkbox"],
.meal-kit-item  input[type="radio"] {
    position: absolute;
    left: 0;
    top: 18px;
    transform: none;
    margin: 0;
    flex-shrink: 0;
}

.meal-kit-child .product-card,
.meal-kit-item  .product-card {
    width: 100%;
}

/* BAR-52 */

.widget_klb_product_categories li:has(> a > input#Sides),
.widget_klb_product_categories li:has(> a > input#Dessert),
.widget_klb_product_categories li:has(> a > input#Extras) {
    display: none !important;
}

/* BAR-48 */

.woocommerce-cart-form .cart_item span.meal-kit-badge {
    display: inherit;
}

/* BAR-50 */

.meal-kit-section .product-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}

.meal-kit-section .product-option input[type="radio"] {
    flex: 0 0 auto;
    margin: 0 0 0 6px;
    position: relative;
    z-index: 1;
}

.meal-kit-section .product-card {
    flex: 1 1 auto;
    padding: 10px 16px;
    box-sizing: border-box;
}

.meal-kit-section .product-option .product-card {
    position: relative;
    padding-left: 36px !important;
}

.meal-kit-section .product-option input[type="radio"] {
    position: absolute !important;
    left: 12px !important;
    top: 42%;
    transform: translateY(-50%);
    margin: 0 !important;
    z-index: 5;
}

.meal-kit-section .product-option label {
    display: block;
    position: relative;
}

.meal-kit-extra-quantity.quantity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.meal-kit-extra-quantity .quantity-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50%;
    background: #f3f3f3;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.meal-kit-extra-quantity .quantity-button:hover {
    background: #e9e9e9;
}

.meal-kit-extra-quantity .extra-quantity {
    width: 50px !important;
    height: 36px !important;
    text-align: center;
    border: 1px solid #ccc !important;
    border-radius: 6px;
    margin: 0 !important;
    padding: 0 !important;
}

.meal-kit-extra .extra-total {
    text-align: center !important;
    font-weight: 600;
}

.product-option.meal-kit-extra {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.product-option.meal-kit-extra .product-card {
    flex: 1;
    margin: 0 !important;
}

.product-option.meal-kit-extra .extra-quantity-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.quantity.meal-kit-extra-quantity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
}

.quantity.meal-kit-extra-quantity .quantity-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: #f3f3f3;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    float: none !important;
}

.woocommerce-notices-wrapper .restore-item {
    display: none;
}

.woocommerce .wc-credit-card-form-card-cvc {
    width: 100% !important;
    max-width: 120px;
    box-sizing: border-box;
}

.woocommerce .form-row-last {
    display: flex;
    flex-direction: column;
}

.woocommerce .woocommerce-SavedPaymentMethods-saveNew {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.woocommerce .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.woocommerce .woocommerce-SavedPaymentMethods-saveNew label {
    display: inline;
    margin: 0;
    cursor: pointer;
}

.woocommerce .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.woocommerce .woocommerce-form__input-checkbox {
    margin: 0;
    width: auto;
}

.woocommerce .woocommerce-form__label-for-checkbox span {
    line-height: 1.4;
    cursor: pointer;
}
