/**
 * Bazar365 Checkout Page Styles - Consistent with Product Detail Page Header
 */

/* Checkout Page Header Styling - Exact Product Detail Page Style */
body.page-template-page-checkout .site-header,
body.woocommerce-checkout .site-header,
body.checkout .site-header {
    background-color: #EEEEEE !important;
    box-shadow: none !important;
    position: sticky !important;
    top: 0 !important; /* Stick right after top bar */
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #000000;
}

/* Top bar remains unchanged for consistency */
body.page-template-page-checkout .top-bar,
body.woocommerce-checkout .top-bar,
body.checkout .top-bar {
    background-color: #0B926A;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

/* Checkout Page Header Text Black */
body.page-template-page-checkout .primary-menu li a,
body.woocommerce-checkout .primary-menu li a,
body.checkout .primary-menu li a {
    color: #000000 !important;
    font-family: sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body.page-template-page-checkout .primary-menu li a:hover,
body.woocommerce-checkout .primary-menu li a:hover,
body.checkout .primary-menu li a:hover {
    color: #0B926A !important;
}

body.page-template-page-checkout .header-actions a,
body.woocommerce-checkout .header-actions a,
body.checkout .header-actions a {
    color: #000000 !important;
}

body.page-template-page-checkout .header-actions a:hover,
body.woocommerce-checkout .header-actions a:hover,
body.checkout .header-actions a:hover {
    color: #0B926A !important;
}

body.page-template-page-checkout .toggle-menu,
body.woocommerce-checkout .toggle-menu,
body.checkout .toggle-menu {
    color: #000000 !important;
}

body.page-template-page-checkout .toggle-menu:hover,
body.woocommerce-checkout .toggle-menu:hover,
body.checkout .toggle-menu:hover {
    color: #0B926A !important;
}

/* Ensure cart count badge remains visible */
body.page-template-page-checkout .cart-count,
body.woocommerce-checkout .cart-count,
body.checkout .cart-count {
    background-color: #0B926A !important;
    color: white !important;
}

/* Logo text styling - consistent with theme */
body.page-template-page-checkout .logo-text,
body.woocommerce-checkout .logo-text,
body.checkout .logo-text {
    color: #0B926A;
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* Search dropdown styling for checkout page */
body.page-template-page-checkout .search-dropdown,
body.woocommerce-checkout .search-dropdown,
body.checkout .search-dropdown {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.page-template-page-checkout .search-input,
body.woocommerce-checkout .search-input,
body.checkout .search-input {
    color: #333;
}

body.page-template-page-checkout .search-btn,
body.woocommerce-checkout .search-btn,
body.checkout .search-btn {
    background-color: #0B926A;
    color: white;
}

/* Mobile menu styling for checkout page */
body.page-template-page-checkout .mobile-menu,
body.woocommerce-checkout .mobile-menu,
body.checkout .mobile-menu {
    background-color: white;
}

body.page-template-page-checkout .mobile-nav a,
body.woocommerce-checkout .mobile-nav a,
body.checkout .mobile-nav a {
    color: #333 !important;
}

body.page-template-page-checkout .mobile-nav a:hover,
body.woocommerce-checkout .mobile-nav a:hover,
body.checkout .mobile-nav a:hover {
    color: #0B926A !important;
}

/* Adjust main content to account for sticky header */
body.page-template-page-checkout .checkout-container,
body.woocommerce-checkout .checkout-container,
body.checkout .checkout-container {
    margin-top: 0; /* No extra margin needed with sticky header */
}

/* Main Checkout Container */
.checkout-container {
    padding: 80px 0 60px;
    background-color: #ffffff;
    position: relative;
}

/* Page Title - Cormorant Garamond Style */
.checkout-container h1,
.checkout-page-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: normal;
    font-size: 50px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Two-Column Checkout Layout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* For mobile devices */
@media (max-width: 767px) {
    .checkout-container {
        display: block;
        padding: 20px 0;
    }
}

.checkout-container::before {
    display: none;
}

.checkout-container::after {
    display: none;
}

/* Left Column - Form Fields */
.checkout-form-column {
    grid-column: 1;
}

/* Right Column - Order Summary - Theme Consistent */
.checkout-summary-column {
    grid-column: 2;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    align-self: start;
    position: sticky;
    top: 30px;
}

.checkout-summary-column h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0B926A;
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.checkout-summary-item:last-child {
    border-bottom: none;
}

.checkout-summary-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.checkout-summary-product {
    flex-grow: 1;
}

.checkout-summary-product-title {
    margin: 0 0 5px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-summary-product-variant {
    color: #6c757d;
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
}

.checkout-summary-price {
    text-align: right;
    white-space: nowrap;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
}

.checkout-summary-quantity {
    background: linear-gradient(135deg, #0B926A 0%, #08774a 100%);
    color: white;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

.checkout-summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
}

.checkout-summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #0B926A;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.woocommerce-checkout-review-order {
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Modify WooCommerce layout */
form.checkout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
}

#customer_details {
    grid-column: 1;
    margin-bottom: 0;
}

#order_review {
    grid-column: 2;
    position: sticky;
    top: 30px;
}

/* Advanced Checkout Container */
.checkout-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
}

.checkout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9d71, #546de5, #ff6b6b);
    border-radius: 20px 20px 0 0;
}

.checkout-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(13, 157, 113, 0.1), rgba(84, 109, 229, 0.1));
    border-radius: 50%;
    z-index: 1;
}

/* Advanced Form Styling */
#customer_details {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Enhanced Form Layout */
form.checkout {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Modern Form Fields - Theme Consistent */
.woocommerce .form-row {
    margin-bottom: 25px;
    position: relative;
}

.woocommerce .form-row label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.woocommerce .form-row label .required {
    color: #e74c3c;
    margin-left: 4px;
}

/* Enhanced Input Fields - Theme Style */
.woocommerce .input-text,
.woocommerce select,
.woocommerce textarea,
.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #888888;
    border-radius: 4px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    color: #333333;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    outline: none;
}

.woocommerce .input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus,
.form-control:focus {
    border-color: #0B926A;
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 146, 106, 0.1);
}

/* Floating Label Effect */
.form-row.floating-label {
    position: relative;
}

.form-row.floating-label label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: white;
    padding: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    color: #6c757d;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.form-row.floating-label input:focus + label,
.form-row.floating-label input:not(:placeholder-shown) + label,
.form-row.floating-label.has-value label {
    top: 0;
    font-size: 12px;
    color: #0d9d71;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Field Icons */
.form-row-with-icon {
    position: relative;
}

.form-row-with-icon::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #6c757d;
    z-index: 3;
}

.form-row-with-icon input {
    padding-left: 50px;
}

.form-row-with-icon.email::before {
    content: '\f0e0';
}

.form-row-with-icon.phone::before {
    content: '\f095';
}

.form-row-with-icon.address::before {
    content: '\f041';
}

/* Select Field Enhancement - Theme Style */
.woocommerce select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
    cursor: pointer;
}

/* Form Section Headers - Theme Style */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0B926A;
}

/* Fix Country and State Select Boxes */
.woocommerce .form-row select {
    position: relative;
    z-index: 1;
    max-width: 100%;
    box-sizing: border-box;
}

/* Country/State Select Container Fix */
.woocommerce .form-row {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.woocommerce .form-row .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 2;
}

.woocommerce .form-row .select2-container .select2-selection {
    height: auto !important;
    min-height: 50px;
    padding: 15px 20px;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    font-size: 16px;
    background: #fff !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.woocommerce .form-row .select2-container .select2-selection:focus,
.woocommerce .form-row .select2-container.select2-container--open .select2-selection {
    border-color: #0d9d71 !important;
    box-shadow: 0 0 0 3px rgba(13, 157, 113, 0.1), 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.woocommerce .form-row .select2-container .select2-selection__rendered {
    color: #2c3e50;
    line-height: 1.4;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.woocommerce .form-row .select2-container .select2-selection__arrow {
    height: 100%;
    right: 15px;
    top: 0;
}

/* Select2 Dropdown Positioning Fix */
.select2-dropdown {
    border: 2px solid #0d9d71 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    margin-top: 5px;
    overflow: hidden;
    z-index: 9999 !important;
}

.select2-dropdown .select2-results {
    max-height: 200px;
    overflow-y: auto;
}

.select2-dropdown .select2-results__option {
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.select2-dropdown .select2-results__option:hover,
.select2-dropdown .select2-results__option[aria-selected="true"] {
    background: linear-gradient(135deg, #0d9d71 0%, #08774a 100%) !important;
    color: white !important;
}

/* Ensure proper container positioning */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    position: relative;
    z-index: 1;
}

/* Fix for overlapping elements */
.woocommerce .form-row-wide,
.woocommerce .form-row-first,
.woocommerce .form-row-last {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

/* Mobile responsiveness for selects */
@media (max-width: 768px) {
    .woocommerce .form-row .select2-container .select2-selection {
        min-height: 45px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .select2-dropdown .select2-results__option {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Mobile layout for checkout - single column */
    .checkout-container {
        display: block !important;
        grid-template-columns: none !important;
        padding: 25px 15px !important;
    }
    
    /* Reset grid/flex layouts for mobile */
    form.checkout {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    /* Reset all column widths to 100% */
    .checkout-form-column,
    .checkout-summary-column,
    #customer_details,
    #order_review {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: auto !important;
    }
    
    /* Ensure form fields are visible */
    #customer_details {
        margin-bottom: 30px;
    }
    
    /* Place order summary directly after billing fields */
    .woocommerce-billing-fields {
        margin-bottom: 30px;
    }
    
    /* Ensure order summary is not sticky */
    .checkout-summary-column {
        position: static !important;
        top: auto !important;
        margin: 30px 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Reset any layout ordering that might be interfering */
    .checkout-summary-column,
    .checkout-form-column,
    #payment,
    #order_review {
        position: static !important;
        float: none !important;
        clear: both !important;
    }
}

/* Checkbox and Radio Enhancement */
.woocommerce .checkbox,
.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce input[type="radio"] {
    border-radius: 50%;
}

.woocommerce .checkbox:checked,
.woocommerce input[type="checkbox"]:checked,
.woocommerce input[type="radio"]:checked {
    background: #0d9d71;
    border-color: #0d9d71;
}

.woocommerce .checkbox:checked::after,
.woocommerce input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.woocommerce input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Advanced Order Review Table */
.woocommerce-checkout-review-order-table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f3f4;
}

.woocommerce-checkout-review-order-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
}

.woocommerce-checkout-review-order-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d9d71, #546de5);
}

.woocommerce-checkout-review-order-table tbody tr {
    transition: all 0.3s ease;
}

.woocommerce-checkout-review-order-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transform: scale(1.01);
}

.woocommerce-checkout-review-order-table .cart_item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-checkout-review-order-table .cart_item:hover {
    border-left-color: #0d9d71;
}

/* Product Name Styling */
.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.woocommerce-checkout-review-order-table .product-quantity {
    background: linear-gradient(135deg, #0d9d71 0%, #08774a 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

/* Order Total Row */
.woocommerce-checkout-review-order-table .order-total {
    background: linear-gradient(135deg, #0d9d71 0%, #08774a 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table .order-total td {
    border-bottom: none;
    padding: 25px;
}

.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Product rows */
.product-quantity {
    display: flex;
    align-items: center;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 100%;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #555;
    font-size: 16px;
    padding: 0;
}

.quantity-btn:hover {
    background-color: #e5e5e5;
}

.quantity-input {
    width: 40px;
    height: 100%;
    padding: 0 5px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.quantity-input:focus {
    outline: none;
}

/* Enhanced Form Styles - Theme Consistent */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    margin-bottom: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0B926A;
}

/* Form Field Layout */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

.woocommerce-checkout .col2-set .col-2 {
    margin-top: 30px;
}

/* Form Rows */
.form-row {
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

.form-row-first,
.form-row-last {
    width: 48%;
    float: left;
    clear: both;
}

.form-row-last {
    float: right;
    clear: none;
}

.form-row-wide {
    width: 100%;
    clear: both;
}

/* Form Fields */
.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: red;
}

.woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

input.input-text,
textarea.input-text,
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: border-color 0.2s;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    height: auto;
}

select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: border-color 0.2s;
    background-color: #fff;
    height: 42px;
    color: #333;
    font-size: 15px;
}

/* Select2 Customizations */
.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #ddd;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 15px;
    padding-right: 15px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 10px;
}

.select2-dropdown {
    border-color: #ddd;
}

.select2-container--open .select2-dropdown--below {
    border-top: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Focus States */
input.input-text:focus,
textarea.input-text:focus,
select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 157, 113, 0.1);
}

/* Error States */
.woocommerce-invalid input.input-text,
.woocommerce-invalid select {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.woocommerce-invalid label {
    color: #dc3545;
}

.woocommerce-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    list-style-type: none;
}

/* Success States */
.woocommerce-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Checkbox and Radio Styling */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.woocommerce-form__label-for-checkbox input {
    margin-top: 0;
}

/* Advanced Place Order Button - Theme Style */
.btn-place-order,
#place_order {
    /* Exact match homepage View More button styles */
    background-color: #0B926A;
    color: #ffffff;
    border: none;
    width: 256px;
    height: 58px;
    padding: 11.41px 55.93px;
    text-decoration: none;
    font-family: 'Century Gothic', sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    /* Additional checkout-specific styles */
    cursor: pointer;
    margin: 20px auto 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.btn-place-order:hover,
#place_order:hover {
    /* Exact match homepage View More button hover */
    background-color: #0a7a59;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(11, 146, 106, 0.3);
    color: #ffffff !important;
}

.btn-place-order:active,
#place_order:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(11, 146, 106, 0.3);
}

/* Advanced Cancel Button */
.btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white !important;
    padding: 18px 30px;
    font-weight: 700;
    border-radius: 15px;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.2);
    text-decoration: none;
}

.btn-cancel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.btn-cancel:hover::before {
    left: 100%;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.3);
    color: white !important;
    text-decoration: none;
}

.btn-cancel i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.btn-cancel:hover i {
    transform: scale(1.1);
}

/* Advanced Checkout Buttons Container */
.checkout-buttons {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    width: 100%;
    clear: both;
    padding: 30px 0;
    border-top: 2px solid rgba(13, 157, 113, 0.1);
    position: relative;
}

.checkout-buttons::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #0d9d71, #546de5);
    border-radius: 2px;
}

.checkout-buttons .btn-col {
    flex: 1;
    min-width: 220px;
}

@media (max-width: 768px) {
    .checkout-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .checkout-buttons .btn-col {
        min-width: auto;
    }
}

/* Order Summary */
.woocommerce-checkout-review-order {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* =======================================
   ADVANCED PAYMENT SYSTEM SECTION
   ======================================= */

/* Payment Section Container */
#payment {
    background: linear-gradient(135deg, #fff 0%, #f8fffe 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(13, 157, 113, 0.1);
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

#payment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9d71, #28a745, #20c997);
    border-radius: 20px 20px 0 0;
}

/* Payment Section Header */
#payment::after {
    content: '💳 Payment Options';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #0d9d71, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
}

/* Payment Methods List */
#payment ul.payment_methods {
    list-style-type: none;
    padding: 50px 0 0 0;
    margin: 0 0 30px;
    border-bottom: 2px solid rgba(13, 157, 113, 0.1);
    display: grid;
    gap: 15px;
}

#payment ul.payment_methods li {
    padding: 0;
    border: none;
    position: relative;
}

/* Individual Payment Method */
#payment ul.payment_methods li {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#payment ul.payment_methods li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 157, 113, 0.05), transparent);
    transition: left 0.6s;
}

#payment ul.payment_methods li:hover::before {
    left: 100%;
}

#payment ul.payment_methods li:hover {
    border-color: #0d9d71;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 157, 113, 0.15);
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
    vertical-align: middle;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked {
    border-color: #0d9d71;
    background: #0d9d71;
    animation: radioSelect 0.3s ease;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

@keyframes radioSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Payment Method Labels */
#payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Payment Method Icons */
#payment ul.payment_methods li label::before {
    content: '';
    width: 24px;
    height: 24px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

/* Specific Payment Method Icons */
#payment ul.payment_methods li[data-payment-method="bacs"] label::before {
    content: '🏦';
    font-size: 20px;
}

#payment ul.payment_methods li[data-payment-method="cheque"] label::before {
    content: '📝';
    font-size: 20px;
}

#payment ul.payment_methods li[data-payment-method="cod"] label::before {
    content: '💵';
    font-size: 20px;
}

#payment ul.payment_methods li[data-payment-method="paypal"] label::before {
    content: '💳';
    font-size: 20px;
}

/* Payment Method Description */
.payment_box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 15px !important;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment_box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #0d9d71, #28a745);
    border-radius: 12px 0 0 12px;
}

/* Payment Box Typography */
.payment_box p {
    margin: 0 0 10px 0;
}

.payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Section Enhancement */
.wc_payment_method .place-order {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(13, 157, 113, 0.1);
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
}

/* Mobile Responsive Payment Section */
@media (max-width: 768px) {
    #payment {
        padding: 25px 20px;
        margin-top: 20px;
    }
    
    #payment::after {
        top: 15px;
        left: 20px;
        font-size: 18px;
    }
    
    #payment ul.payment_methods {
        padding-top: 40px;
        gap: 10px;
    }
    
    #payment ul.payment_methods li {
        padding: 15px;
    }
    
    #payment ul.payment_methods li label {
        font-size: 14px;
    }
    
    .payment_box {
        padding: 15px !important;
        font-size: 13px;
    }
}

/* Order Success Modal */
.order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.order-success-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-success-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.7) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.order-success-modal.active .order-success-content {
    transform: scale(1) translateY(0);
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.order-success-icon i {
    color: var(--primary-color);
    font-size: 40px;
    animation: checkmark 0.6s ease-in-out 0.3s both;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.order-success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.order-success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.view-order-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-order-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Clear Floats */
.clear {
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-buttons {
        flex-direction: column;
    }
    
    .checkout-container {
        padding: 20px;
    }
    
    .order-success-content {
        padding: 20px;
    }
    
    .form-row-first,
    .form-row-last {
        width: 100%;
        float: none;
    }
    
    .woocommerce-checkout-review-order-table th:nth-child(2),
    .woocommerce-checkout-review-order-table td:nth-child(2) {
        display: none;
    }
}

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

.woocommerce-form-coupon {
    border: 1px dashed #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background-color: #fafafa;
}

.woocommerce-form-coupon p {
    margin-top: 0;
}

.woocommerce-form-coupon .form-row {
    margin-bottom: 0;
}

.woocommerce-form-coupon .form-row-first {
    width: 70%;
}

.woocommerce-form-coupon .form-row-last {
    width: 28%;
}

.woocommerce-form-coupon .button {
    height: 42px;
    line-height: 42px;
    padding: 0 15px !important;
}

@media (max-width: 576px) {
    .woocommerce-form-coupon .form-row-first,
    .woocommerce-form-coupon .form-row-last {
        width: 100%;
        float: none;
    }
    
    .woocommerce-form-coupon .button {
        width: 100%;
        margin-top: 10px;
    }
}

/* Fix for validation errors */
.woocommerce-NoticeGroup-checkout {
    width: 100%;
    margin-bottom: 20px;
}

/* Fix for WooCommerce built-in notices */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.woocommerce-info {
    background-color: #e7f5fd;
    border: 1px solid #c2e3f7;
    color: #0c5460;
}

.woocommerce-info::before {
    color: #0c5460;
}

/* Fix for address fields */
.woocommerce-address-fields__field-wrapper {
    margin-bottom: 20px;
}

/* Fix for country select */
#billing_country_field .select2-container,
#shipping_country_field .select2-container {
    width: 100% !important;
}

/* Fix for password field */
.woocommerce-password-strength {
    margin-top: 10px;
    padding: 8px;
    border-radius: 12px;
    font-size: 14px;
}

.woocommerce-password-strength.short {
    background-color: #ffebee;
    color: #c62828;
}

.woocommerce-password-strength.bad {
    background-color: #fff3e0;
    color: #e65100;
}

.woocommerce-password-strength.good {
    background-color: #fff9c4;
    color: #f57f17;
}

.woocommerce-password-strength.strong {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.woocommerce-password-hint {
    margin-top: 5px;
    display: block;
    font-size: 13px;
    color: #666;
}

/* Order Processing Modal */
.order-processing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.order-processing-modal.active {
    display: flex;
}

.order-processing-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.order-processing-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(13, 157, 113, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.order-processing-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.order-processing-message {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

/* Optimize Place Order Button */
.btn-place-order.processing {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Faster Success Modal Animation */
.order-success-content {
    animation-duration: 0.4s !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/**
 * WhatsApp Order Confirmation Styles
 */
.whatsapp-order-confirmation {
    margin: 30px 0;
    padding: 20px;
    background: #f0f8f0;
    border: 1px solid #25d366;
    border-radius: 10px;
    text-align: center;
}

.whatsapp-order-confirmation p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25d366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.whatsapp-button i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

/* WhatsApp field in checkout form */
#billing_whatsapp_field label {
    font-weight: 600;
}

#billing_whatsapp_field .required {
    color: #e2401c;
}

@media screen and (max-width: 768px) {
    .whatsapp-order-confirmation {
        padding: 15px;
    }
    
    .whatsapp-button {
        width: 100%;
        padding: 12px 20px;
    }
} 

/**
 * Login Recommendation Styles
 */
.login-recommendation {
    margin-bottom: 30px;
    background-color: #f0f7f4;
    border: 1px solid #c8e6d7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 157, 113, 0.1);
}

.login-recommendation-content {
    display: flex;
    align-items: center;
    padding: 25px;
}

.recommendation-icon {
    font-size: 38px;
    color: #0d9d71;
    margin-right: 25px;
    flex-shrink: 0;
}

.recommendation-text {
    flex-grow: 1;
}

.recommendation-text h4 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0d9d71;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.recommendation-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.recommendation-buttons {
    display: flex;
    gap: 12px;
    margin-left: 25px;
    flex-shrink: 0;
}

.btn-login, .btn-register {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: #0d9d71;
    color: #fff;
    box-shadow: 0 4px 6px rgba(13, 157, 113, 0.2);
}

.btn-login:hover {
    background-color: #0b8861;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(13, 157, 113, 0.3);
    color: #fff;
}

.btn-register {
    background-color: #fff;
    color: #0d9d71;
    border: 2px solid #0d9d71;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-register:hover {
    background-color: #f0f8f0;
    color: #0b8861;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 768px) {
    .login-recommendation-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .recommendation-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .recommendation-buttons {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-login, .btn-register {
        width: 45%;
    }
} 

/**
 * Cart Page Styles
 */
.cart-page {
    margin-bottom: 40px;
}

.page-title {
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    color: #0d9d71;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0d9d71;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cart-table thead {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eaeaea;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    font-weight: 600;
    color: #333;
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eaeaea;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
}

.cart-product-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 500;
}

.product-variation {
    font-size: 14px;
    color: #666;
}

.product-variation span {
    display: block;
    margin-bottom: 2px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    width: 110px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #eaeaea;
}

.quantity-btn.minus {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus {
    border-radius: 0 4px 4px 0;
}

.quantity-input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-remove:hover {
    color: #bd2130;
    transform: scale(1.1);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-totals {
    flex: 1;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.cart-totals-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
    margin-top: 5px;
    padding-top: 15px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #0d9d71;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0b8861;
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: translateY(-2px);
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
}

/* Mobile cart empty state */
@media screen and (max-width: 768px) {
    .cart-empty {
        padding: 40px 15px;
        margin: 0 auto;
        max-width: 350px;
        text-align: center !important;
    }
    
    /* Ensure login recommendation is also centered */
    .login-recommendation {
        text-align: center !important;
        margin: 0 auto 20px auto;
    }
    
    .login-recommendation-content {
        text-align: center !important;
        justify-content: center;
        align-items: center;
    }
}

.cart-empty i {
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.cart-empty p {
    color: #666;
    margin-bottom: 25px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(13, 157, 113, 0.2);
    border-radius: 50%;
    border-top-color: #0d9d71;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 992px) {
    .cart-summary {
        flex-direction: column;
    }
    
    .cart-actions {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-primary, .btn-secondary {
        width: 48%;
    }
}

@media screen and (max-width: 768px) {
    /* Ensure full width for cart page on mobile with center alignment */
    .cart-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5px !important;
        box-sizing: border-box;
        text-align: center;
    }
    
    .page-title {
        text-align: center !important;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        text-align: center;
        padding: 0 !important;
    }
    
    .cart-summary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px 5px !important;
        text-align: center;
    }
    
    .cart-totals {
        width: 100% !important;
        text-align: center;
        margin: 0 auto;
    }
    
    .cart-totals-row {
        justify-content: space-between !important;
        text-align: center;
        display: flex !important;
        align-items: center;
        margin: 0;
        width: 100%;
        padding: 8px 0;
    }
    
    .cart-actions {
        width: 100% !important;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100% !important;
        margin: 0 !important;
        text-align: center;
        display: block;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
    
    /* Ensure table cells use full width with center alignment */
    .cart-table td {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 8px 5px !important;
    }
    
    .cart-table th {
        width: 100% !important;
        display: block !important;
        padding: 8px 5px !important;
        text-align: center !important;
    }
}

/* Extra small devices - optimize for better mobile experience */
@media screen and (max-width: 480px) {
    .cart-page {
        padding: 2px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .container {
        padding: 0 2px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .cart-table {
        font-size: 14px;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .cart-table thead {
        display: none !important; /* Hide table headers on very small screens */
    }
    
    .cart-table tr {
        display: block !important;
        border: 1px solid #eaeaea;
        margin: 0 0 10px 0 !important;
        border-radius: 8px;
        padding: 10px 5px;
        background: #fff;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        box-sizing: border-box;
    }
    
    .cart-table td {
        border: none !important;
        padding: 3px 0 !important;
        position: relative;
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Remove data-label positioning for full width usage */
    .cart-table td:before {
        display: none !important;
    }
    
    .cart-product {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .cart-product-info {
        flex: 1;
        text-align: center;
    }
    
    .cart-product-title {
        text-align: center !important;
        margin-bottom: 10px;
    }
    
    .mobile-price-info,
    .mobile-qty-info,
    .mobile-subtotal-info {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        margin: 5px 0;
        flex-direction: column;
    }
    
    .mobile-price-info .mobile-label,
    .mobile-qty-info .mobile-label,
    .mobile-subtotal-info .mobile-label {
        margin-bottom: 3px;
        font-size: 12px;
        color: #666;
    }
    
    .quantity-selector {
        margin: 0 auto !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .cart-remove {
        margin: 10px auto !important;
        display: block !important;
        text-align: center;
    }
    
    .mobile-label {
        font-weight: bold;
        color: #333;
    }
} 

/* =======================================
   ADVANCED MODAL SYSTEM STYLING
   ======================================= */

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes processingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Enhanced Order Success Modal */
.order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(13, 157, 113, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.order-success-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-success-content {
    background: linear-gradient(135deg, white 0%, #f8fff6 100%);
    padding: 60px 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.order-success-modal.active .order-success-content {
    transform: scale(1) translateY(0);
    animation: modalFadeIn 0.6s ease-out;
}

.order-success-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0d9d71, #28a745, #20c997);
    border-radius: 30px 30px 0 0;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d9d71, #28a745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    animation: successPulse 2s infinite;
}

.order-success-icon::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(13, 157, 113, 0.3);
    border-radius: 50%;
    animation: successPulse 2s infinite 0.5s;
}

.order-success-icon i {
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.order-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0d9d71, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-success-message {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.view-order-btn {
    background: linear-gradient(135deg, #0d9d71 0%, #28a745 100%);
    color: white !important;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(13, 157, 113, 0.3);
    position: relative;
    overflow: hidden;
}

.view-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.view-order-btn:hover::before {
    left: 100%;
}

.view-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(13, 157, 113, 0.4);
    color: white !important;
    text-decoration: none;
}

/* Enhanced Order Processing Modal */
.order-processing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(13, 157, 113, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.order-processing-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-processing-content {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.order-processing-modal.active .order-processing-content {
    transform: scale(1);
}

.order-processing-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9d71, #546de5, #ff6b6b);
    border-radius: 25px 25px 0 0;
}

.order-processing-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(13, 157, 113, 0.1);
    border-top: 5px solid #0d9d71;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
    position: relative;
}

.order-processing-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(84, 109, 229, 0.2);
    border-top: 3px solid #546de5;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.order-processing-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0d9d71, #546de5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: processingPulse 2s infinite;
}

.order-processing-message {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .order-success-content,
    .order-processing-content {
        padding: 40px 30px;
        border-radius: 20px;
        margin: 20px;
    }
    
    .order-success-icon {
        width: 60px;
        height: 60px;
    }
    
    .order-success-icon i {
        font-size: 30px;
    }
    
    .order-success-title {
        font-size: 22px;
    }
    
    .order-processing-title {
        font-size: 20px;
    }
    
    .order-processing-spinner {
        width: 50px;
        height: 50px;
    }
    
    .order-processing-spinner::after {
        width: 25px;
        height: 25px;
    }
} 

/* Payment methods section in right column */
.payment-methods-title {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 15px;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
    padding-top: 30px;
}

.summary-payment-methods {
    margin-bottom: 30px;
}

.summary-place-order {
    margin-top: 30px;
}

/* Payment section styling */
/* Enhanced payment methods styling */
.summary-payment-methods ul.payment_methods {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.summary-payment-methods ul.payment_methods li {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.summary-payment-methods ul.payment_methods li:hover {
    border-color: #0d9d71;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 157, 113, 0.15);
}

.summary-payment-methods ul.payment_methods li:last-child {
    margin-bottom: 0;
}

/* Radio button styling */
.summary-payment-methods ul.payment_methods input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    background: white;
    position: relative;
    cursor: pointer;
    margin-right: 12px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.summary-payment-methods ul.payment_methods input[type="radio"]:checked {
    border-color: #0d9d71;
    background: #0d9d71;
}

.summary-payment-methods ul.payment_methods input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Payment method labels */
.summary-payment-methods ul.payment_methods label {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
}

/* Payment box styling */
.summary-payment-methods .payment_box {
    margin-top: 12px;
    padding: 12px 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

/* Optimize place order styling */
.woocommerce #payment #place_order {
    transition: all 0.2s ease;
}

/* Fix for terms and conditions checkboxes */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 20px;
}

/* Ensure custom place order button shows up */
.btn-place-order {
    width: 100%;
    padding: 18px 30px;
    font-weight: 700;
    border-radius: 15px;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9d71 0%, #08774a 100%);
    color: white !important;
    box-shadow: 0 8px 25px rgba(13, 157, 113, 0.3);
}

.btn-place-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-place-order:hover::before {
    left: 100%;
}

.btn-place-order i {
    margin-right: 12px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-place-order:hover {
    background: linear-gradient(135deg, #08774a 0%, #0d9d71 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(13, 157, 113, 0.4);
}

/* JavaScript to move payment section */
@media (min-width: 993px) {
    .checkout-form-column {
        max-width: 100%;
    }
} 

/* Mobile Header Adjustments - Hide Top Bar */
@media (max-width: 768px) {
    /* Hide top bar on mobile for checkout pages */
    body.page-template-page-checkout .top-bar,
    body.woocommerce-checkout .top-bar,
    body.checkout .top-bar {
        display: none !important;
    }
    
    /* Adjust header positioning since top bar is hidden */
    body.page-template-page-checkout .site-header,
    body.woocommerce-checkout .site-header,
    body.checkout .site-header {
        position: sticky !important;
        top: 0 !important;
    }
}