/**
 * Cart & Checkout Custom Styles
 * 
 * @package Booking_Management
 */

/* ========================================
   CART PAGE STYLES
   ======================================== */

.bm-cart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bm-cart-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    border-bottom: 2px solid #c9a227;
    padding-bottom: 15px;
}

/* Cart Item */
.bm-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.bm-cart-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Product Image */
.bm-item-image {
    flex: 0 0 200px;
}

.bm-item-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Product Details */
.bm-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-item-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.bm-item-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bm-item-name a:hover {
    color: #c9a227;
}

.bm-item-price {
    font-size: 18px;
    color: #c9a227;
    font-weight: 600;
}

.bm-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-item-quantity .quantity {
    display: flex;
    align-items: center;
}

.bm-item-quantity input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.bm-item-subtotal {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Remove Button */
.bm-item-remove {
    flex: 0 0 40px;
}

.bm-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #999;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bm-remove-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* Cart Totals */
.bm-cart-totals {
    margin-top: 30px;
}

.cart-collaterals {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.cart_totals h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.cart_totals table {
    width: 100%;
}

.cart_totals table th,
.cart_totals table td {
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart_totals table th {
    text-align: left;
    font-weight: 500;
    color: #666;
}

.cart_totals table td {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 20px;
    color: #1a1a1a;
    border-bottom: none;
}

.cart_totals .order-total td {
    color: #c9a227;
}

/* Checkout Button */
.bm-checkout-button {
    margin-top: 25px;
}

.bm-checkout-button .checkout-button,
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: #c9a227;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bm-checkout-button .checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
    background: #b8911f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.3);
}

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

.bm-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bm-checkout-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Billing & Shipping Sections */
.bm-billing-section,
.bm-shipping-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bm-billing-section h3,
.bm-shipping-section h3,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-bottom: 2px solid #c9a227;
    padding-bottom: 12px;
}

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

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.woocommerce-checkout .form-row .required {
    color: #c9a227;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
    outline: none;
}

/* Select2 Dropdown Styling */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 50px;
    padding-left: 16px;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

/* Order Review Section */
.bm-order-review-section {
    background: #f9f9f9;
    padding: 35px;
    border-radius: 12px;
    margin-top: 30px;
}

.bm-order-review-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-bottom: 2px solid #c9a227;
    padding-bottom: 12px;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 25px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-checkout-review-order-table thead th {
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
}

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

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
    font-weight: 700;
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .order-total td {
    color: #c9a227;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
}

.woocommerce-checkout-payment .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout-payment .wc_payment_method {
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.woocommerce-checkout-payment .wc_payment_method:hover {
    border-color: #c9a227;
}

.woocommerce-checkout-payment .wc_payment_method label {
    font-weight: 500;
    cursor: pointer;
}

.woocommerce-checkout-payment .payment_box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-top: 10px;
}

/* Place Order Button */
#place_order {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: #c9a227;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#place_order:hover {
    background: #b8911f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.3);
}

/* Terms & Conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin: 20px 0;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Coupon Form */
.woocommerce-form-coupon-toggle {
    margin-bottom: 20px;
}

.checkout_coupon {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 25px;
}

.checkout_coupon input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.checkout_coupon button {
    padding: 12px 25px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout_coupon button:hover {
    background: #c9a227;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 992px) {
    .bm-checkout-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .bm-cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .bm-item-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .bm-item-details {
        align-items: center;
    }
    
    .bm-item-remove {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .bm-cart-item {
        position: relative;
    }
    
    .bm-cart-title,
    .bm-order-review-title {
        font-size: 22px;
    }
    
    .bm-billing-section,
    .bm-shipping-section,
    .bm-order-review-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .bm-cart-wrapper,
    .bm-checkout-wrapper {
        padding: 20px 15px;
    }
    
    .bm-cart-item {
        padding: 20px 15px;
    }
    
    .bm-item-name {
        font-size: 18px;
    }
    
    .bm-item-subtotal {
        font-size: 18px;
    }
}

/* ========================================
   WOOCOMMERCE NOTICES
   ======================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce-message {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.woocommerce-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.woocommerce-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

