/* ==========================================================================
   CHECKOUT PAGE STYLES
   ========================================================================== */


/* Checkout Review Order Table Wrapper */
.checkout-review-order-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Checkout Steps Layout - New Row-based Layout */
form.checkout.woocommerce-checkout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Row Layouts */
form.checkout.woocommerce-checkout .checkout-row-full {
    width: 100%;
}

form.checkout.woocommerce-checkout .checkout-row-half {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Column Layout */
form.checkout.woocommerce-checkout .checkout-column-delivery {
    width: 100%;
}

form.checkout.woocommerce-checkout .checkout-column-billing {
    flex: 0 0 calc(50% - 10px);
}

form.checkout.woocommerce-checkout .checkout-column-payment {
    flex: 0 0 calc(50% - 10px);
}

@media (max-width: 992px) {
    form.checkout.woocommerce-checkout .checkout-row-half {
        flex-direction: column;
        gap: 15px;
    }
    
    form.checkout.woocommerce-checkout .checkout-column-billing,
    form.checkout.woocommerce-checkout .checkout-column-payment {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    form.checkout.woocommerce-checkout {
        padding: 5px;
        gap: 15px;
    }
    
    form.checkout.woocommerce-checkout .checkout-row-half {
        flex-direction: column;
        gap: 15px;
    }
    
    form.checkout.woocommerce-checkout .checkout-column-delivery,
    form.checkout.woocommerce-checkout .checkout-column-billing,
    form.checkout.woocommerce-checkout .checkout-column-payment {
        width: 100%;
    }
}

/* Checkout Step Titles */
.checkout_step_title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1ca792;
    background: none;
    color: inherit;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
}

.checkout_step_title .number {
    background: #1ca792;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(28, 167, 146, 0.3);
}

.checkout_step_title .text {
    font-size: 20px;
    font-weight: 700;
    color: #1ca792;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
    flex: 1;
}

/* Inactive step styling */
.checkout_step_title.inactive .number {
    background: #e0e0e0;
    color: #666;
    box-shadow: none;
}

.checkout_step_title.inactive .text {
    color: #666;
    text-decoration-color: #e0e0e0;
}

/* Checkout Content Areas - Match Front Page Design */
.ostukorv33 {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    min-height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: -1px;
}



/* Desktop: balanced column widths – product gets space, Hind/Kokku compact */
@media (min-width: 481px) {
    .woocommerce-checkout-review-order-table {
        table-layout: fixed;
        width: 100%;
    }
    .woocommerce-checkout-review-order-table th.product-remove,
    .woocommerce-checkout-review-order-table td.product-remove {
        width: 84px;
    }
    .woocommerce-checkout-review-order-table th.product-thumbnail,
    .woocommerce-checkout-review-order-table td.product-thumbnail {
        width: 80px;
    }
    .woocommerce-checkout-review-order-table th.product-price,
    .woocommerce-checkout-review-order-table td.product-price {
        width: 95px;
        min-width: 95px;
        text-align: right;
        padding-left: 8px;
        padding-right: 12px;
    }
    .woocommerce-checkout-review-order-table th.product-quantity,
    .woocommerce-checkout-review-order-table td.product-quantity {
        width: 104px;
        min-width: 104px;
        text-align: center;
        padding-left: 8px;
        padding-right: 8px;
    }
    .woocommerce-checkout-review-order-table th.product-subtotal,
    .woocommerce-checkout-review-order-table td.product-subtotal {
        width: 100px;
        min-width: 100px;
        text-align: right;
        padding-left: 8px;
        padding-right: 16px;
    }
    /* Product name takes remaining space */
    .woocommerce-checkout-review-order-table th.product-name,
    .woocommerce-checkout-review-order-table td.product-name {
        width: auto;
    }
}

.woocommerce-checkout-review-order-table thead th {
    background: #f8f9fa;
    color: #2e3841;
    font-weight: 600;
    padding: 15px 10px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table .product-thumbnail {
    width: 80px;
}

.woocommerce-checkout-review-order-table .product-thumbnail img {
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
    color: #2e3841;
}

.woocommerce-checkout-review-order-table .product-delivery {
    font-size: 13px;
    font-weight: 500;
}

.woocommerce-checkout-review-order-table .product-price,
.woocommerce-checkout-review-order-table .product-subtotal {
    color: #1ca792;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-checkout-review-order-table .product-quantity {
    text-align: center;
    font-weight: 500;
}
td.product-remove {
    padding-left: 20px !important;
    max-width: 40px;
    padding-right: 0px !important;
}
.woocommerce-checkout-review-order-table .product-remove a {
    font-size: 20px;
    text-decoration: none;
    display: flex;
        width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    justify-content: center;

    border-radius: 50%;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

/* Remove button hover - handled by global styles */

/* Product Variations in Checkout - Uses global dl.variation styles from style.css */

/* Delivery Info Styling - Uses global fast-shipping/tarnealt styles from style.css */

/* Checkout Form Fields - Match Front Page Design */
form.checkout.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

form.checkout.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #989898;
    font-size: 14px;
}
a.woocommerce-terms-and-conditions-link {
    color: #1ba792;
}
form.checkout.woocommerce-checkout .form-row input[type="text"],
form.checkout.woocommerce-checkout .form-row input[type="email"],
form.checkout.woocommerce-checkout .form-row input[type="tel"],
form.checkout.woocommerce-checkout .form-row textarea,
form.checkout.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2e3841;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
}

/* Add dropdown arrow for select elements */
form.checkout.woocommerce-checkout .form-row select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

form.checkout.woocommerce-checkout .form-row input[type="text"]:focus,
form.checkout.woocommerce-checkout .form-row input[type="email"]:focus,
form.checkout.woocommerce-checkout .form-row input[type="tel"]:focus,
form.checkout.woocommerce-checkout .form-row textarea:focus,
form.checkout.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: #1ca792;
    background: #fff;
}

form.checkout.woocommerce-checkout .form-row input[type="text"]:hover,
form.checkout.woocommerce-checkout .form-row input[type="email"]:hover,
form.checkout.woocommerce-checkout .form-row input[type="tel"]:hover,
form.checkout.woocommerce-checkout .form-row textarea:hover,
form.checkout.woocommerce-checkout .form-row select:hover {
    background: #fff;
    border-color: #1ca792;
}

/* Checkbox Styling */
.woocommerce-checkout .form-row .input-checkbox {
    margin-right: 8px;
}

.woocommerce-checkout .form-row label.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Payment Methods - Match Front Page Design */
form.checkout.woocommerce-checkout #payment {

    padding: 20px;
    padding-top:0px;
}

/* Gift Card Section */
form.checkout.woocommerce-checkout .gift-card-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

form.checkout.woocommerce-checkout .gift-card-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2e3841;
    font-weight: 600;
}

form.checkout.woocommerce-checkout .gift-card-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

form.checkout.woocommerce-checkout .gift-card-input input {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

form.checkout.woocommerce-checkout .gift-card-input .button {
    background: #1ca792;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

form.checkout.woocommerce-checkout .gift-card-input .button:hover {
    background: #168a7a;
}

/* Gift Card Form - Toggle Styling */
.add_gift_card_form {
    margin: 20px;
    max-width: 100%;
    margin-bottom: 0px;

}

/* Gift Card Toggle Button - Match Payment Methods */
.gift-card-toggle {
    margin-bottom: 15px;
}

.gift-card-toggle-label {
    display: flex;
    align-items: center;
    line-height: 38px;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: #2e3841;
    margin: 0;
    position: relative;
}

.gift-card-toggle-label:hover {
    border-color: #1ca792;
    background: #fff;
}

/* Custom radio button styling */
.gift-card-toggle input[type="checkbox"] {
    display: none;
}

.gift-card-toggle-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gift-card-toggle input[type="checkbox"]:checked + .gift-card-toggle-label::before {
    border-color: #1ca792;
    background: #1ca792;
    box-shadow: inset 0 0 0 4px white;
}

.gift-card-toggle input[type="checkbox"]:checked + .gift-card-toggle-label {
    border-color: #1ca792;
    background: #fff;
}



/* Gift Card Form Container - Expandable Style */
.gift-card-form-container {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 10px;
    margin-bottom: 10px; /* Align with text, accounting for radio button */
    position: relative;
    transition: all 0.3s ease;
}

/* Triangle pointer */
.gift-card-form-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f8f9fa;
    z-index: 1;
}

.gift-card-form-container::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 19px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #e2e8f0;
    z-index: 0;
}

/* Gift Card Description */
.gift-card-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.4;
}

#wc_gc_cart_redeem_form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

#wc_gc_cart_redeem_form .input-text {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

#wc_gc_cart_redeem_form .input-text:focus {
    outline: none;
    border-color: #1ca792;
    box-shadow: 0 0 0 2px rgba(28, 167, 146, 0.1);
    background: #fff;
}

#wc_gc_cart_redeem_send {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#wc_gc_cart_redeem_send:hover {
    background: #dee2e6;
    color: #495057;
    border-color: #adb5bd;
}


.wc_gc_add_gift_card_form__notices .woocommerce-message,
.wc_gc_add_gift_card_form__notices .woocommerce-error {
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.wc_gc_add_gift_card_form__notices .woocommerce-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.wc_gc_add_gift_card_form__notices .woocommerce-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Deferred Payment Container */
#deferred_payment_container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#deferred_payment_container li {
    margin-bottom: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

#deferred_payment_container li:last-child {
    margin-bottom: 0;
}

/* Order Total Section */
form.checkout.woocommerce-checkout .order-total-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

form.checkout.woocommerce-checkout .order-total-row {
    display: flex;
   justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 10px;
        row-gap: 5px;
        flex-direction: column;
}

form.checkout.woocommerce-checkout .order-total-row.order-total {
    font-size: 18px;
    font-weight: 700;
    color: #2e3841;
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.woocommerce-shipping-totals td {
    width: 100%;
}
textarea#order_comments {
    min-height: 150px;
}
span.label-value {
    display: flex
;
    column-gap: 5px;
}

form.checkout.woocommerce-checkout .label-total {
    font-weight: 600;
    color: #2e3841;
    font-size: 21px;

}

form.checkout.woocommerce-checkout .label-value {
    font-weight: 700;
    color: #1ca792;
}

/* Terms and Conditions */
form.checkout.woocommerce-checkout .terms-and-conditions {
    margin-top: 0;
    padding: 15px 0 0 0;
    border-top: 1px solid #e8e8e8;
    background: none;
}

form.checkout.woocommerce-checkout .terms-and-conditions label {
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

form.checkout.woocommerce-checkout .terms-and-conditions input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: white;
}

form.checkout.woocommerce-checkout .terms-and-conditions input[type="checkbox"]:checked {
    background: #1ca792;
    border-color: #1ca792;
}

form.checkout.woocommerce-checkout .terms-and-conditions a {
    color: #1ca792;
    text-decoration: underline;
}

form.checkout.woocommerce-checkout .terms-and-conditions a:hover {
    color: #168a7a;
}
th.product-remove {
    max-width: 70px !important;
    width: 70px;
}

/* Place Order Button */
form.checkout.woocommerce-checkout #place_order {
    background: #f7c51e;
    color: #3a3a3a;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

form.checkout.woocommerce-checkout #place_order:hover {
    background: #e6b21c;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.woocommerce-checkout #payment ul.payment_methods li:hover,
.woocommerce-checkout #payment ul.payment_methods li.selected {
    border-color: #1ca792;
    background: #fff;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 10px;
    display: inline-flex
;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    cursor: pointer;
    font-weight: 500;
    color: #2e3841;
    display: inline-flex
;
    align-items: center;
}

/* Bank logos grid - 3 per row */
.woocommerce-checkout #payment .payment_method_bacs .payment_box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.woocommerce-checkout #payment .payment_method_bacs .payment_box .bank-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.woocommerce-checkout #payment .payment_method_bacs .payment_box .bank-logo:hover,
.woocommerce-checkout #payment .payment_method_bacs .payment_box .bank-logo.selected {
    border-color: #1ca792;
    background: #f8f9fa;
}

.woocommerce-checkout #payment .payment_method_bacs .payment_box .bank-logo img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    background: #1ca792;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.woocommerce-checkout #place_order:hover {
    background: #159a7a;
}

.woocommerce-checkout #place_order:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Custom Checkout Fields */
#billing_for_company_wrap,
#state_agency_wrap {
    margin-top: 20px;
    padding: 10px 10px 0 10px;
        background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.billing_for_company_toggle,
.state_agency_toggle {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Shipping Methods */
.woocommerce-checkout .shipping_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

form.checkout.woocommerce-checkout .shipping_methods li {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

form.checkout.woocommerce-checkout .shipping_methods li:hover,
form.checkout.woocommerce-checkout .shipping_methods li.selected {
    border-color: #1ca792;
    background: #fff;
}

form.checkout.woocommerce-checkout .shipping_methods li input[type="radio"] {
    margin-right: 10px;
}

form.checkout.woocommerce-checkout .shipping_methods li label {
    cursor: pointer;
    font-weight: 500;
    color: #2e3841;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 922px) {
    .woocommerce.woocommerce-checkout form #customer_details.col2-set, .woocommerce-page.woocommerce-checkout form #customer_details.col2-set {
        width: 100%!important;
        /* float: left; */
        /* margin-right: 4.347826087%; */
    }
}

@media (min-width: 922px) {
    .woocommerce.woocommerce-checkout form #order_review, .woocommerce.woocommerce-checkout form #order_review_heading, .woocommerce-page.woocommerce-checkout form #order_review, .woocommerce-page.woocommerce-checkout form #order_review_heading {
         width: 100%!important;
        /* float: right; */
        /* margin-right: 0; */
        margin: 0px !important;
        padding: 0px !important;
        /* clear: right; */
    }
}

.woocommerce-checkout .shipping_methods li:hover {
    background: #f0f0f0;
}

.woocommerce-checkout .shipping_methods li input[type="radio"] {
    margin-right: 10px;
}

.woocommerce-checkout .shipping_methods li label {
    cursor: pointer;
    font-weight: 500;
    color: #2e3841;
}

/* Order Totals */
.woocommerce-checkout .order-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    color: #1ca792;
    border: 2px solid #1ca792;
}

/* Responsive Design */
@media (max-width: 992px) {
    .woocommerce-checkout .col-md-4 {
        width: 50%;
    }
    .page-id-194 .wc-item-meta li {
        width: 100%;
        display: flex
    ;
        flex-direction: column;
    }
    .page page-id-194 ul.wc-item-meta {
        width: 100%;
        display: flex
    ;
        justify-content: space-between;
    }
    /* Reset specific column widths on tablet */
    .woocommerce-checkout .col-md-4:nth-child(2),
    .woocommerce-checkout .col-md-4:last-child {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .woocommerce-shipping-totals.shipping ul#shipping_method li {
        min-width: inherit!important;
        clear: both!important;
        max-width: 100%!important;
    }
    .woocommerce-checkout .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Bank logos - 2 per row on mobile */
    .woocommerce-checkout #payment .payment_method_bacs .payment_box {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout_step_title {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .ostukorv33 {
        padding: 15px;
    }
    
    .woocommerce-checkout-review-order-table {
        font-size: 12px;
    }
    
    .woocommerce-checkout-review-order-table thead th,
    .woocommerce-checkout-review-order-table tbody td {
        padding: 10px 5px;
    }
    
    .woocommerce-checkout-review-order-table .product-thumbnail img {
        width: 40px;
        height: 40px;
    }
    
    /* Show mobile-only columns on mobile */
    .woocommerce-checkout-review-order-table th.mobile-only,
    .woocommerce-checkout-review-order-table td.mobile-only {
        display: block !important;
    }
    
    /* Variations column on mobile */
    .woocommerce-checkout-review-order-table .product-variations {
        text-align: left;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
        grid-column: 1 / span 4;
        grid-row: 2;
    }
    
    .woocommerce-js table.shop_table td, .woocommerce-page table.shop_table td {
        border:none!important;
    }
    .woocommerce-checkout-review-order-table .product-quantity:before {
        content: "Kogus: ";
        font-weight: 600;
        color: #2e3841;
        display: block;
        margin-right:5px;
    }
    
    /* Delivery column on mobile */
    .woocommerce-checkout-review-order-table .product-delivery {
        text-align: left;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }
    
    
    
    /* Hide desktop delivery info on mobile (since we have it in mobile-only column) */
    .woocommerce-checkout-review-order-table .product-name .fast-shipping,
    .woocommerce-checkout-review-order-table .product-name .tarnealt {
        display: none !important;
    }
    
    /* Mobile delivery button styling - match cart page */
    span.tarne-button {
        width: 100%;
        display: block;
        background: #f0f0f0;
        text-align: center;
    }
    
    /* Order total styling - match cart page */
    .order-total td {
        width: 100% !important;
    }
    
    /* Tax info styling - match cart page */
    small.includes_tax {
        display: block;
    }
}

/* Mobile Layout - Match Cart Page Mobile Design */
@media (max-width: 480px) {
    .woocommerce-checkout-review-order-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    ul#shipping_method {
        margin: 0;
        padding: 10px;
        list-style: none;
        margin-bottom: 5px;
        display: flex
    ;
        column-gap: 10px;
        flex-direction: column;
        row-gap: 10px;
    }

    div#order_review {
        padding: 0px !important;
    }
    form.checkout.woocommerce-checkout #payment {
        background: white;
        border: unset;
        border-radius: 12px;
        padding: 5px;
        box-shadow: unset !important;
    }
    li.wc_payment_method.payment_method_pay_later {
        display: inline-flex
    ;
    }
    .woocommerce-checkout-review-order-table thead,
    .woocommerce-checkout-review-order-table tbody,
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td,
    .woocommerce-checkout-review-order-table tr {
        display: block;
    }
    
    .woocommerce-checkout-review-order-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .woocommerce-checkout-review-order-table tr {
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 10px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        display: grid;

        grid-template-columns: var(--mini-cart-thumb) 1fr auto;        grid-auto-rows: auto;
        column-gap: 10px;
        row-gap: 8px;
        align-items: start;
        position: relative;
    }
    
    .woocommerce-checkout-review-order-table td {
        border: none;
        position: relative;
        padding: 0;
        white-space: normal;
    }
    
    /* Product thumbnail - Column 1 */
    .woocommerce-checkout-review-order-table .product-remove {
        grid-column: 4;
        grid-row: 1;
        align-self: start;
        justify-self: start;
    }
    
    .woocommerce-checkout-review-order-table .product-remove .remove {
        display: inline-block;
        font-size: 18px;
        height: 24px;
        width: 24px;
        line-height: 1;
        border-radius: 100%;
        color: #4b4f58;
        text-decoration: none;
        font-weight: 400;
        border: 0;
        text-align: center;
        vertical-align: middle;
        transition: all 0.2s ease;
    }
    
    .woocommerce-checkout-review-order-table .product-remove .remove:hover {
        background: #f7c51e;
        color: #000;
    }
    
    .woocommerce-checkout-review-order-table .product-thumbnail {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
    }
    
    .woocommerce-checkout-review-order-table .product-thumbnail img {
        width: 60px !important;
        height: 60px;
        object-fit: cover;
        max-width: 60px !important;
        border-radius: 8px;
    }
    
    /* Product name - Column 3, Row 1 */
    .woocommerce-checkout-review-order-table .product-name {
        grid-column: 2 /span 2;
        grid-row: 1;
        align-self: start;
        padding-right: 10px;
    }
    
    /* Variations - Uses global dl.variation styles from style.css */
    .woocommerce-checkout-review-order-table .product-name dl.variation {
        display: none!important;
    }
    
    td.product-delivery.mobile-only {
        grid-column: 1 / span 4;
        grid-row: 4;
    }
    
    /* Delivery info - Column 2, Row 3 */
    .woocommerce-checkout-review-order-table .product-name .fast-shipping,
    .woocommerce-checkout-review-order-table .product-name .tarnealt {
        grid-column: 2;
        grid-row: 3;
        margin-top: 4px;
        font-size: 10px;
        padding: 3px 6px;
        text-align: center;
    }
    
    /* Price - Column 3, Row 1 */
    .woocommerce-checkout-review-order-table .product-price {
        grid-column: 3;
        grid-row: 3;
        align-self: start;
        justify-self: end;
        white-space: nowrap;
        font-weight: 600;
        display:none;
        color: #1ca792;
    }
    
    /* Quantity - Column 2, Row 3 */
    .woocommerce-checkout-review-order-table .product-quantity {
        grid-column: 1;
        grid-row: 3;
        align-self: center;
        justify-self: start;
        display:inline-flex;
        font-size:14px;
    }
    
    /* Subtotal - Column 3, Row 3 */
    .woocommerce-checkout-review-order-table .product-subtotal {
        grid-column: 3;
        grid-row: 3;
        align-self: center;
        justify-self: end;
        white-space: nowrap;
        font-weight: 600;
        color: #1ca792;
    }
    
}

/* Hide data-title pseudo-elements on checkout AND cart tables at every
   width. Astra's woocommerce-smallscreen-grid stylesheet injects
   `content: attr(data-title) ": "` on every td::before of responsive
   shop tables, which surfaces "Shipment 1" / "Tarne 1" above the
   shipping method cards on cart (/ostukorv/) and checkout. There's
   already a visible heading for the section, so suppress it. */
.woocommerce-checkout-review-order-table td::before,
.websites-depot-checkout-review-shipping-table td::before,
.woocommerce-shipping-totals td::before,
.cart_totals tr.shipping td::before,
tr.woocommerce-shipping-totals td::before {
    display: none !important;
    content: none !important;
}

/* Prevent the shipping row from overflowing the page on narrow viewports */
@media (max-width: 768px) {
    .websites-depot-checkout-review-shipping-table,
    .websites-depot-checkout-review-shipping-table tbody,
    .websites-depot-checkout-review-shipping-table tr,
    .websites-depot-checkout-review-shipping-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .websites-depot-checkout-review-shipping-table td {
        padding: 0;
    }
}

/* Order Total Display - Clean Simple Design */
.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
}

.order-total-row .label-total {
    color: #2E3841;
    font-size: 16px;
    font-weight: 600;
}

.order-total-row .label-value {
    color: #1ca792;
    font-size: 16px;
    font-weight: 600;
}

.order-total-row.order-total {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 15px 0;
    box-shadow: none;
    column-gap: 10px;
}

.order-total-row.order-total .label-total {
    font-size: 16px;
    font-weight: 700;
    color: #2E3841;
}

.order-total-row.order-total .label-value {
    font-size: 21px;
    font-weight: 700;
    color: #1ca792;
}

/* VAT/Tax styling */
.order-total-row .tax-info,
.order-total-row .includes_tax {
    color: #6d6d6d;
    font-size: 14px;
    font-weight: 700;
}


/* Cart Discount Styling */
.order-total-row.cart-discount .label-value {
    color: #dc3545;
}

/* Shipping Methods Styling */
.woocommerce-shipping-totals.shipping ul#shipping_method li {
    display: flex;
    align-content: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #e3e3e3;
    min-height: 70px;
    border-radius: 8px;
max-width:340px;
}

/* Shipping Methods Styling */
ul#shipping_method {
    margin: 0;
    padding: 10px;
    list-style: none;
    margin-bottom: 5px;
}

ul#shipping_method li {
    display: flex;
    min-width: 340px;
    align-content: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #e3e3e3;
    min-height: 70px;
    border-radius: 8px;
    flex-direction: row;
}

ul#shipping_method li.active_method {
    border: 2px solid #1ca792 !important;
    background: #f7f7f7;
}

ul#shipping_method li label input {
    display: none;
}

ul#shipping_method li label {
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 95%;
}

ul#shipping_method li label.tarneklass {
    flex-wrap: wrap;
    white-space: nowrap;
    justify-content: flex-start;
    font-size: 15px;
}

ul#shipping_method li label.tarneklass > .amount {
    margin-left: auto;
}

ul#shipping_method li label.tarneklass small.pili-lisatasu-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-basis: 100%;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #555;
    font-weight: 400;
}

ul#shipping_method li label.tarneklass small.pili-lisatasu-info .amount {
    color: #555 !important;
    font-weight: 500;
}

small.pili-postcode-hint {
    display: block;
    margin-top: 4px;
    padding-left: 16px;
    color: #1ca792;
    font-size: 12px;
    line-height: 1.3;
}

/* Shipping Images */
span.shipping_image.mobile_show {
    margin-right: 10px;
    width: auto;
    display: inline-block;
    flex-shrink: 0;
}

span.shipping_image.mobile_show img {
    width: 80px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    margin-left: -15px;
}

.woocommerce-shipping-totals.shipping ul#shipping_method li label > span {
    display: flex;
    align-items: center;
    font-weight: 500;
    justify-content: space-between;
}

.woocommerce-shipping-totals.shipping ul#shipping_method li label span .amount,
.woocommerce-shipping-totals.shipping ul#shipping_method li label .amount {
    color: #1ca792;
    text-align: right;
    font-weight: bold;
}

.woocommerce-additional-fields p {
    margin: 0 !important;
    /* display: flex
; */
    vertical-align: middle;
}

.woocommerce-additional-fields input {
    background: white !important;
}

.woocommerce-checkout ul#shipping_method {
    margin: 0;
    padding: 10px;
    list-style: none;
    margin-bottom: 5px;
    display: flex;
    column-gap: 20px;
}
.woocommerce-checkout #shipping_method span.woocommerce-Price-amount.amount {
    float: right;
}

/* Mobile-only columns */
.woocommerce-checkout-review-order-table th.mobile-only,
.woocommerce-checkout-review-order-table td.mobile-only {
    display: none;
}

/* Variations column styling - Uses global dl.variation styles from style.css */
.woocommerce-checkout-review-order-table .product-variations {
    text-align: left;
    vertical-align: top;
}

.woocommerce-checkout-review-order-table .product-variations .variation {
    margin: 0;
    font-size: 12px;
    color: #666;
    padding: 10px;
}

/* Delivery column styling */
.woocommerce-checkout-review-order-table .product-delivery {
    text-align: center;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table .product-delivery .fast-shipping,
.woocommerce-checkout-review-order-table .product-delivery .tarnealt {
    margin: 0;
    display: inline-block;
}

.woocommerce-checkout-review-order-table .product-delivery .fast-button,
.woocommerce-checkout-review-order-table .product-delivery .tarne-button {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Mobile delivery styling consistency */
@media (max-width: 768px) {
    .woocommerce-checkout-review-order-table .mobile-only span.fast-button,
    .woocommerce-checkout-review-order-table .mobile-only span.tarne-button {
        width: 100% !important;
        justify-content: center;
    }

    .woocommerce-checkout-review-order-table .mobile-only .fast-shipping,
    .woocommerce-checkout-review-order-table .mobile-only .tarnealt {
        width: 100% !important;
    }
    
    /* Gift Card Mobile Styling */
    .add_gift_card_form {
       
        padding: 5px;
        margin: 0px !important;
    }
    .gift-card-toggle {
        margin-bottom: 0px;
    }
    .add_gift_card_form h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    #wc_gc_cart_redeem_form {
        min-width: auto;
        flex-direction: column;
        align-items: stretch;
    }
    
    #wc_gc_cart_redeem_form .input-text {
        margin-bottom: 10px;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    #wc_gc_cart_redeem_send {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

/* Clear floats */
.woocommerce-checkout::after {
    content: "";
    display: table;
    clear: both;
}

/* Very small screens - Bank logos single column */
@media (max-width: 480px) {
    .woocommerce-checkout #payment .payment_method_bacs .payment_box {
        grid-template-columns: 1fr;
    }
}



.woocommerce-checkout #page {
    background: #f8f9fa;
}

div#customer_details {
    border-radius: 12px !important;
}

td.product-quantity {
    border-right: none;
}

td.product-price {
    border-right: none;
}

td.product-name {
    border-right: none !important;
}

td.product-thumbnail {
    border-right: none;
}