/* WooCommerce Ultra Premium Checkout - SaaS Layout */

/* --- 1. Typography & Global --- */
.woocommerce, .woocommerce-page {
    font-family: var(--font-body), sans-serif;
    color: #f8fafc;
}

/* Hide Annoying Added to Cart Message on Checkout */
.woocommerce-checkout .woocommerce-message {
    display: none !important;
}
/* Hide Order Notes (Additional Info) to simplify checkout */
.woocommerce-additional-fields {
    display: none !important;
}

/* --- 2. Two-Column Grid Layout for Desktop --- */
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: 1fr 450px;
        gap: 3rem;
        align-items: start;
    }
    .woocommerce-checkout #customer_details {
        grid-column: 1;
        float: none;
        width: 100%;
        padding-right: 0;
    }
    .woocommerce-checkout #order_review_heading {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        border-bottom: 1px solid #334155;
        padding-bottom: 1rem;
        margin-bottom: 0;
    }
    .woocommerce-checkout #order_review {
        grid-column: 2;
        grid-row: 2;
        float: none;
        width: 100%;
    }
}

/* Mobile Title Spacing */
@media (max-width: 991px) {
    .woocommerce-checkout #order_review_heading {
        margin-top: 2rem;
        font-size: 1.5rem;
        font-weight: 700;
        border-bottom: 1px solid #334155;
        padding-bottom: 1rem;
    }
}

/* --- 3. Form Styling (Sleek Inputs) --- */
.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}
.woocommerce form .form-row label {
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
    display: block;
    font-size: 0.9rem;
}
.woocommerce form .form-row label .required {
    color: #f97316;
    text-decoration: none;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    background-color: #111116 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
    background-color: #1a1a20 !important;
    outline: none;
}
/* Select2 override if active */
.select2-container--default .select2-selection--single {
    background-color: #111116 !important;
    border: 1px solid #334155 !important;
    border-radius: 0.75rem !important;
    height: 50px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
    line-height: 50px !important;
}

/* --- 4. Order Summary Widget (Right Column) --- */
#order_review {
    background: #111116;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.woocommerce table.shop_table {
    border: none !important;
    margin-bottom: 1.5rem;
    border-radius: 0 !important;
}
.woocommerce table.shop_table th {
    border-bottom: 1px solid #334155 !important;
    border-top: none !important;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 1rem 0 !important;
    background: transparent !important;
}
.woocommerce table.shop_table td {
    padding: 1rem 0 !important;
    border-top: none !important;
    border-bottom: 1px solid #334155 !important;
    color: #e2e8f0;
    background: transparent !important;
}
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    border-top: 1px solid #334155 !important;
    border-bottom: none !important;
}
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f97316;
}

/* --- 5. Payment Methods UI --- */
#payment {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
#payment ul.payment_methods {
    border-bottom: 1px solid #334155 !important;
    padding: 0 0 1.5rem 0 !important;
    margin: 0 0 1.5rem 0 !important;
}
/* Individual Gateway Box */
#payment ul.payment_methods li.wc_payment_method {
    background: #1a1a20;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
#payment ul.payment_methods li.wc_payment_method > input {
    margin-right: 0.75rem;
}
#payment ul.payment_methods li.wc_payment_method > label {
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}
#payment div.payment_box {
    background-color: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    padding: 1rem 0 0 0 !important;
    margin: 0 !important;
}
#payment div.payment_box::before {
    display: none !important;
}

/* Terms and conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.5rem;
}
.woocommerce-terms-and-conditions-wrapper label {
    color: #94a3b8 !important;
    font-size: 0.9rem;
}

/* --- 6. Primary Place Order Button --- */
.woocommerce .button.alt,
#place_order {
    background-color: #f97316 !important;
    color: #050508 !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    border-radius: 9999px !important;
    padding: 1.25rem 2.5rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    text-align: center;
    display: block;
    box-shadow: 0 4px 14px rgba(249,115,22,0.2) !important;
}
.woocommerce .button.alt:hover,
#place_order:hover {
    background-color: #fb923c !important;
    box-shadow: 0 0 25px rgba(249,115,22,0.5) !important;
    transform: translateY(-2px);
}

/* --- 7. Generic Notices --- */
.woocommerce-info, .woocommerce-message {
    background-color: rgba(249, 115, 22, 0.1) !important;
    border-top-color: #f97316 !important;
    color: #f8fafc !important;
    border-radius: 0.5rem;
}
.woocommerce-error {
    background-color: rgba(251, 44, 54, 0.1) !important;
    border-top-color: #fb2c36 !important;
    color: #f8fafc !important;
    border-radius: 0.5rem;
}
