/* Checkout Page Premium Styles - V4 (Div-based & Clean) */

.woocommerce-checkout {
    background: #f4f7f9;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
}

.ticketcy-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.ticketcy-checkout-wrapper h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.ticketcy-checkout-wrapper h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Layout */
.woocommerce-checkout form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

#customer_details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

#customer_details .col-1,
#customer_details .col-2 {
    flex: 1 1 45%;
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #2d3748;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: #b50e3a;
    box-shadow: 0 0 0 3px rgba(181, 14, 58, 0.1);
}

/* Order Review Section */
.order-review-section {
    width: 100%;
    margin-top: 20px;
}

.woocommerce-checkout-review-order {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

/* New Div-based Order Table Styles */
.woocommerce-checkout-review-order-table {
    width: 100%;
}

.review-order-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.review-order-body {
    padding: 10px 30px;
}

.review-order-body .cart_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.review-order-body .cart_item:last-child {
    border-bottom: none;
}

.review-order-body .product-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.review-order-body .product-quantity {
    color: #718096;
    font-weight: normal;
}

.review-order-body .product-total {
    font-weight: 700;
    color: #2d3748;
}

.review-order-footer {
    background: #f8fafc;
    padding: 30px;
    border-top: 1px solid #edf2f7;
}

.review-order-footer>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: #4a5568;
}

.review-order-footer .order-total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
}

.review-order-footer .order-total .value {
    color: #b50e3a;
}

/* Payment Methods */
#payment {
    background: #fff;
    padding: 30px;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-bottom: 1px solid #edf2f7;
}

#payment ul.payment_methods li {
    margin-bottom: 20px;
}

#payment ul.payment_methods li label {
    font-weight: 600;
    color: #2d3748;
    margin-left: 10px;
    cursor: pointer;
}

#payment div.payment_box {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #4a5568;
    border: 1px solid #edf2f7;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 20px;
    background: #b50e3a;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(181, 14, 58, 0.2);
}

.woocommerce-checkout #place_order:hover {
    background: #92052c;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(181, 14, 58, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .ticketcy-checkout-wrapper {
        padding: 20px;
    }

    #customer_details .col-1,
    #customer_details .col-2 {
        flex: 1 1 100%;
    }

    .review-order-header {
        display: none;
        /* Hide header on mobile for cleaner look */
    }

    .review-order-body .cart_item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .review-order-body .product-total {
        align-self: flex-end;
    }
}