/**
 * Theme Name: Styler Child
 * Description: This is a child theme of Styler.
 * Author: <a href="http://ninetheme.com/about">Ninetheme</a>
 * Template: styler
 * Version: 1.6.3
 */

/* Checkout Page Modernization */
.woocommerce-checkout {
    background-color: #f8f9fa;
    /* padding-top: 40px; */
    padding-bottom: 40px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333 !important;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

/* OVERRIDE TOTAL: Paksa semua tombol add to cart untuk selalu aktif secara visual */
button.single_add_to_cart_button,
.single_add_to_cart_button,
button[name="add-to-cart"],
.variations_button .button {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background-color: #000 !important;
    color: #fff !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease;
}

.woocommerce-checkout input.input-text:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#order_review {
    border: none;
}

.woocommerce-checkout-review-order-table {
    border: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important;
    padding: 15px 0 !important;
}

.woocommerce-checkout-review-order-table .order-total {
    border-top: 2px solid #eee !important;
    font-size: 1.2em;
}

/* Payment Box Styling */
#payment {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    border-radius: 10px;
    padding: 10px;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #eee !important;
}

#payment div.payment_box {
    background-color: #f5f5f5 !important;
    border-radius: 8px;
}

#place_order {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: all 0.2s ease;
    margin-top: 20px;
}

#place_order:hover {
    background-color: #333 !important;
}

/* Helper to hide fields */
.hidden {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    form.woocommerce-checkout,
    .woocommerce-checkout .row,
    .woocommerce-checkout form.checkout,
    .woocommerce-checkout-layout,
    .woocommerce-checkout #customer_details {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    .woocommerce-checkout #customer_details > .col,
    .woocommerce-checkout #customer_details > .col-1,
    .woocommerce-checkout #customer_details > .col-2,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout .col-12,
    .woocommerce-checkout .col-md-6,
    .woocommerce-checkout .col-lg-6,
    .woocommerce-checkout .col-lg-7,
    .woocommerce-checkout .col-lg-5,
    .woocommerce-checkout .col2-set,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields,
    .styler-order-review {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
    }
    
    body .woocommerce-checkout #customer_details > .col {
        margin-bottom: 20px;
        display: block !important;
    }

    body .woocommerce-checkout #customer_details > .col:last-child {
        display: block !important;
        grid-template-columns: 1fr !important; /* Fallback if grid is still somehow applied */
    }

    body .woocommerce-checkout #customer_details > .col:last-child > .styler-order-review {
        margin-top: 20px;
    }
}

/* Hide shipping calculator and shipping cost row on the Cart page */
.woocommerce-cart tr.shipping,
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .styler-checkout-footer-item.woocommerce-shipping-totals.shipping {
    display: none !important;
}

/* GTranslate Flags Mobile Offset */
@media (max-width: 768px) {
    .gtranslate_wrapper,
    #gtranslate_wrapper,
    .gt_switcher_wrapper,
    #gt_float_wrapper,
    .glink {
        bottom: 80px !important;
        z-index: 999 !important;
    }
}

.styler-term.styler-disabled {
    display: none !important;
}

div.styler-product-question-btn.has-svg-icon.styler-flex.styler-align-center {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}