/*
 * Advanced Custom Checkout Summary New Stylesheet
 * Version: 3.0.0
 */

/* Copy ALL CSS from the HTML file's <style> tag here */
/* Then add WooCommerce overrides at the end */

/* === START: Copied from HTML === */
:root {
    --primary-gold: #FFD700;
    --dark-gold: #DAA520;
    --deep-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --premium-gradient: linear-gradient(135deg, rgba(26,26,26,0.95), rgba(20,20,20,0.95), rgba(15,15,15,0.95));
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
    --safe-area-right: env(safe-area-inset-right);
}

/* Copy the ENTIRE CSS content from the HTML file here */
/* This includes all the animations, responsive styles, etc. */

/* === END: Copied from HTML === */

/* === WOOCOMMERCE OVERRIDES === */

/* Hide default WooCommerce elements */
.woocommerce-billing-fields > h3,
#order_review_heading {
    display: none !important;
}

/* Style WooCommerce form elements to match new design */
.woocommerce form .form-row {
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
}

.woocommerce form .form-row label {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
    background: linear-gradient(145deg, #2a2a2a, #222222) !important;
    border: 1px solid #444 !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none !important;
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7) !important;
    background: linear-gradient(145deg, #2d2d2d, #252525) !important;
    transform: translateY(-2px) !important;
}

/* Style the order review table */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table thead {
    display: none !important;
}

.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
}

.woocommerce-checkout-review-order-table tbody tr:last-child {
    border-bottom: none !important;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.woocommerce-checkout-review-order-table .product-quantity {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Totals section */
.woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-checkout-review-order-table tfoot tr:last-child {
    border-bottom: none !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--primary-gold) !important;
}

.woocommerce-checkout-review-order-table tfoot th {
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    color: #fff !important;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment .payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment .payment_methods li {
    list-style: none !important;
    margin-bottom: 1rem !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
}

.woocommerce-checkout #payment .payment_methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.woocommerce-checkout #payment .payment_methods li .payment_box {
    background: rgba(30, 30, 30, 0.5) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin-top: 0.5rem !important;
    color: #9ca3af !important;
}

/* Place order button */
.woocommerce #place_order {
    width: 100% !important;
    text-align: center !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    background: transparent !important;
    border: 1px solid var(--primary-gold) !important;
    color: var(--primary-gold) !important;
    transition: all 0.5s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce #place_order:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.5) !important;
}

/* Terms and conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 1.5rem !important;
}

.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #9ca3af !important;
}

.woocommerce-form__input-checkbox {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 0.25rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-checkout-review-order-table tbody tr,
    .woocommerce-checkout-review-order-table tfoot tr {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .woocommerce-checkout-review-order-table .product-total {
        text-align: left !important;
    }
}