/* CSS Custom Properties - Spacing Scale */
:root {
    --space-xs: 4px;    /* 0.25rem */
    --space-sm: 8px;    /* 0.5rem */
    --space-md: 12px;   /* 0.75rem */
    --space-lg: 16px;   /* 1rem */
    --space-xl: 20px;   /* 1.25rem */
    --space-2xl: 24px;  /* 1.5rem */
    --space-3xl: 32px;  /* 2rem */
    --space-4xl: 40px;  /* 2.5rem */
    --space-5xl: 48px;  /* 3rem */
    
    /* Component spacing */
    --section-gap: var(--space-lg);
    --field-gap: var(--space-lg);
    --form-padding: var(--space-2xl);
    --container-padding: var(--space-2xl);
    --sidebar-gap: var(--space-3xl);
    
    /* Trust element colors */
    --trust-color-primary: #059669;
    --trust-color-secondary: #065f46;
    --trust-bg-light: #ecfdf5;
    --trust-border: #d1fae5;
    --testimonial-bg: #f8fafc;
    --testimonial-border: #e2e8f0;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
    :root {
        --section-gap: var(--space-md);
        --field-gap: var(--space-md);
        --form-padding: var(--space-lg);
        --container-padding: var(--space-lg);
    }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #f9fafb;
    font-size: 16px;
}

/* Hide unwanted elements */
.woocommerce-breadcrumb,
.woocommerce-breadcrumbs,
.breadcrumb,
.breadcrumbs,
.site-header,
.site-navigation,
.page-header,
.entry-header,
.wp-block-group,
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part {
    display: none !important;
}

/* Main container */
.wfc-checkout-wrapper {
    min-height: 100vh;
    background: #f9fafb;
}



/* Main checkout container */
.wfc-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding) var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sidebar-gap);
    align-items: start;
}

/* Use the same class as in modern.css for consistency */
.wfc-checkout-columns {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding) var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sidebar-gap);
    align-items: start;
}

@media (max-width: 1024px) {
    .wfc-checkout-container,
    .wfc-checkout-columns {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        padding: var(--space-lg);
    }
    
    .wfc-checkout-sidebar {
        order: -1;
    }
    
    .wfc-mobile-order-toggle {
        display: block !important;
    }
    
    .wfc-order-review {
        display: none !important;
        margin-top: var(--space-md);
    }
    
    .wfc-order-review.active {
        display: block !important;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Main content */
.wfc-main-content {
    background: white;
    border-radius: var(--space-md);
    padding: 0px 20px 20px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .wfc-main-content {
        padding: var(--space-xl);
        border-radius: var(--space-sm);
    }
}

/* Sidebar */
.wfc-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 1024px) {
    .wfc-sidebar {
        position: static;
        order: -1;
    }
}

/* Section styling */

.wfc-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.wfc-section h2 {
    margin: 0 0 var(--section-gap) 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.wfc-section h3 {
    margin: 0 0 var(--space-md) 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* Form styling - override WooCommerce defaults */
.form-row {
    margin-bottom: var(--field-gap);
    position: relative;
}

.form-row label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid #d1d5db;
    border-radius: var(--space-sm);
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row.form-row-first,
.form-row.form-row-last {
    width: calc(50% - 10px);
    display: inline-block;
}

.form-row.form-row-first {
    margin-right: 20px;
}

/* Floating label system overrides */
.wfc-field-floating {
    position: relative;
    margin-bottom: var(--field-gap);
}

.wfc-address-compact .wfc-field-floating {
    margin-bottom: var(--space-md);
}

.wfc-form-row-half .wfc-field-floating {
    margin-bottom: 0;
}

/* Enhanced floating label styling */
.wfc-field-floating input,
.wfc-field-floating select,
.wfc-field-floating textarea {
    width: 100%;
    padding: var(--space-xl) var(--space-lg) var(--space-sm) var(--space-lg);
    border: 1px solid #d1d5db;
    border-radius: var(--space-sm);
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.wfc-field-floating input:focus,
.wfc-field-floating select:focus,
.wfc-field-floating textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wfc-field-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: #6b7280;
    background: white;
    padding: 0 4px;
    font-size: 16px;
    font-weight: 400;
    z-index: 10;
}

.wfc-field-floating input:focus + label,
.wfc-field-floating input:not(:placeholder-shown) + label,
.wfc-field-floating.has-value label,
.wfc-field-floating select:focus + label,
.wfc-field-floating select:not([value=""]) + label,
.wfc-field-floating textarea:focus + label,
.wfc-field-floating textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

/* For select fields - always show label at top */
.wfc-field-floating select + label {
    top: 0;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

.wfc-field-floating select {
    padding-top: 20px;
    padding-bottom: 8px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Two-column layout */
.wfc-form-row-half {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--field-gap);
}

.wfc-form-row-half .wfc-field-floating {
    flex: 1;
}

/* Three-column layout for PLZ, Stadt, Land */
.wfc-form-row-third {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--field-gap);
}

.wfc-form-row-third .wfc-field-floating {
    flex: 1;
}

.wfc-form-row-third .wfc-field-floating:first-child {
    flex: 0 0 100px; /* PLZ gets fixed width */
}

.wfc-form-row-third .wfc-field-floating:nth-child(2) {
    flex: 2; /* Stadt gets more space */
}

.wfc-form-row-third .wfc-field-floating:last-child {
    flex: 1.5; /* Land gets medium space */
}

/* Required field indicator */
.wfc-field-floating.wfc-field-required label::after {
    content: ' *';
    color: #dc2626;
}

/* Error states */
.wfc-field-floating.wfc-field-error input,
.wfc-field-floating.wfc-field-error select,
.wfc-field-floating.wfc-field-error textarea {
    border-color: #dc2626;
}

.wfc-field-floating.wfc-field-error label {
    color: #dc2626;
}

/* Success states */
.wfc-field-floating.wfc-field-success input,
.wfc-field-floating.wfc-field-success select,
.wfc-field-floating.wfc-field-success textarea {
    border-color: #059669;
}

.wfc-field-floating.wfc-field-success label {
    color: #059669;
}

/* Payment Methods Styling */
.wfc-payment-methods {
    margin-top: var(--space-lg);
}

.wfc-payment-methods .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wfc-payment-methods .wc_payment_methods li {
    margin: 0 !important; /* Ensure no extra space from default list items */
}

.wfc-payment-methods .wc_payment_method {
    border: 1px solid #e5e7eb;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    min-height: 64px; /* Consistent height */
    border-bottom: none; /* Remove bottom border for seamless look */
}

.wfc-payment-methods .wc_payment_method:not(:first-child) {
    border-top: none; /* Remove top border between adjacent payment methods */
}

.wfc-payment-methods .wc_payment_method:first-child {
    border-top-left-radius: var(--space-sm);
    border-top-right-radius: var(--space-sm);
}

.wfc-payment-methods .wc_payment_method:last-child {
    border-bottom-left-radius: var(--space-sm);
    border-bottom-right-radius: var(--space-sm);
    border-bottom: 1px solid #e5e7eb; /* Restore bottom border for last item */
}

.wfc-payment-methods .wc_payment_method:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wfc-payment-methods .wc_payment_method input[type="radio"]:checked + label {
    background: #eff6ff;
    border-color: #3b82f6;
}

.wfc-payment-methods .wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Hide WooCommerce default radio inputs */
#payment ul.payment_methods li.wc_payment_method input[type="radio"],
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    left: -9999px !important;
}

.wfc-payment-methods .wc_payment_method label {
    display: flex;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    margin: 0;
    border: none;
    position: relative;
    
    height: 64px; /* Fixed height instead of min-height */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content from expanding height */
}

.wfc-payment-methods .wc_payment_method label:not(.checkbox):not(.save-source-label)::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: var(--space-md);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Override WooCommerce radio button positioning with ultra-specific selectors */
.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before,
#payment ul.payment_methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before {
    content: '' !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    float: none !important;
}

.wfc-payment-methods .wc_payment_method input[type="radio"]:checked + label:not(.checkbox):not(.save-source-label)::before {
    border-color: #3b82f6;
    background: #3b82f6;
    box-shadow: inset 0 0 0 3px white;
}

/* Override WooCommerce selected state with ultra-specific selectors */
.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method input[type="radio"]:checked + label:not(.checkbox):not(.save-source-label)::before,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label:not(.checkbox):not(.save-source-label)::before,
#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label:not(.checkbox):not(.save-source-label)::before,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label:not(.checkbox):not(.save-source-label)::before {
    border-color: #3b82f6 !important;
    background: #3b82f6 !important;
    box-shadow: inset 0 0 0 3px white !important;
}

.wfc-payment-methods .wc_payment_method label img {
    margin-left: var(--space-sm);
    max-height: 20px;
    max-width: 40px;
    vertical-align: middle;
    flex-shrink: 0;
    object-fit: contain;
}

/* Specific styles for Stripe card icons */
.wfc-payment-methods .wc_payment_method label .wc-stripe-card-icons-container {
    margin-left: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wfc-payment-methods .wc_payment_method label .wc-stripe-card-icon {
    max-height: 16px;
    max-width: 24px;
    object-fit: contain;
    margin: 0;
}

.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label .wc-stripe-card-icons-container,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icons-container,
#payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icons-container,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icons-container {
    margin-left: 8px !important;
    vertical-align: middle !important;
    display: inline !important;
}

.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label .wc-stripe-card-icon,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icon,
#payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icon,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icon {
    max-height: 16px !important;
    vertical-align: middle !important;
    margin-right: 2px !important;
    display: inline !important;
}

.wfc-payment-methods .wc_payment_method label .about_paypal {
    margin-left: auto;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: var(--space-xs);
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1.2;
    white-space: nowrap;
    align-self: center;
}

.wfc-payment-methods .wc_payment_method label .about_paypal:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Hide payment descriptions by default, show on click */
.wfc-payment-methods .payment_box {
    display: none !important;
    padding: var(--space-lg) var(--space-xl);
    background: #f8fafc;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.wfc-payment-methods .wc_payment_method input[type="radio"]:checked ~ .payment_box {
    display: block !important;
}

.wfc-payment-methods .payment_box p {
    margin: 0 0 var(--space-sm) 0;
}

.wfc-payment-methods .payment_box p:last-child {
    margin: 0;
}

/* Alternative: Minimal payment descriptions */
.wfc-payment-methods.minimal .payment_box {
    display: none !important;
}

.wfc-payment-methods.minimal .wc_payment_method label::after {
    content: attr(data-description);
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    margin-top: var(--space-xs);
    margin-left: 32px; /* Align with text after radio button */
}

/* Mobile responsive payment methods */
@media (max-width: 768px) {
    .wfc-payment-methods .wc_payment_method label {
        padding: var(--space-md) var(--space-lg);
        font-size: 14px;
        height: 56px; /* Slightly smaller on mobile */
    }
    
    /* Mobile container height fix */
    #payment ul.payment_methods li.wc_payment_method,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method {
        height: 56px !important;
    }
    
    .wfc-payment-methods .wc_payment_method label::before {
        width: 18px;
        height: 18px;
        margin-right: var(--space-sm);
    }
    
    .wfc-payment-methods .wc_payment_method label img {
        max-height: 18px;
        max-width: 35px;
    }
    
    .wfc-payment-methods .wc_payment_method label .wc-stripe-card-icon {
        max-height: 14px;
        max-width: 20px;
    }
    
    .wfc-payment-methods .wc_payment_method label .about_paypal {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    /* Mobile label overrides with ultra-specific selectors */
    .wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label,
    .wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label,
    #payment ul.payment_methods li.wc_payment_method label,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        padding: 0 40px 0 16px !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }
    
    .wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before,
    .wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before,
    #payment ul.payment_methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label:not(.checkbox):not(.save-source-label)::before {
        width: 18px !important;
        height: 18px !important;
        margin-right: 10px !important;
    }
    
    .wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label img,
    .wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label img,
    #payment ul.payment_methods li.wc_payment_method label img,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label img {
        max-height: 18px !important;
        margin-left: 6px !important;
    }
    
    .wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label .wc-stripe-card-icon,
    .wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icon,
    #payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icon,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label .wc-stripe-card-icon {
        max-height: 14px !important;
    }
    
    .wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label .about_paypal,
    .wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label .about_paypal,
    #payment ul.payment_methods li.wc_payment_method label .about_paypal,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label .about_paypal {
        font-size: 10px !important;
        padding: 2px 4px !important;
        right: 16px !important;
    }
    
    .wfc-payment-methods .payment_box {
        padding: var(--space-md) var(--space-lg);
        font-size: 13px;
    }
}

/* Clean payment methods - removes descriptions entirely */
.wfc-payment-methods.clean .payment_box {
    display: none !important;
}

/* Override WooCommerce payment method styles */
#payment,
.woocommerce-checkout-payment {
    background: transparent !important;
    border: none !important;
}

#payment ul.payment_methods,
.woocommerce-checkout-payment ul.payment_methods {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#payment ul.payment_methods li,
.woocommerce-checkout-payment ul.payment_methods li {
    background: transparent !important;
    border-bottom: none !important;
}

#payment ul.payment_methods li.wc_payment_method,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    border-bottom: none !important;
    min-height: 64px !important; /* Minimum height instead of fixed */
    display: block !important; /* Block instead of flex */
    align-items: stretch !important;
}

/* When payment method is selected, allow expansion */
#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked {
    display: block !important;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ .payment_box,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ .payment_box {
    overflow: visible !important;
}

#payment ul.payment_methods li.wc_payment_method:first-child,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:first-child {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

#payment ul.payment_methods li.wc_payment_method:last-child,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:last-child {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Ultra specific selectors to override everything */
.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label,
#payment ul.payment_methods li.wc_payment_method label,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 50px 0 20px !important;
    margin: 0 !important;
    
    font-weight: 500 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    background: white !important;
    border: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    position: relative !important;
    overflow: visible !important;
}

.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label img,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label img,
#payment ul.payment_methods li.wc_payment_method label img,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label img {
    margin-left: 8px !important;
    max-height: 20px !important;
    max-width: none !important;
    vertical-align: middle !important;
    display: inline !important;
    flex-shrink: 0 !important;
}

.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method label .about_paypal,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method label .about_paypal,
#payment ul.payment_methods li.wc_payment_method label .about_paypal,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method label .about_paypal {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

#payment ul.payment_methods li.wc_payment_method.payment_method_selected,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ label {
    background: #eff6ff !important;
}

/* Fix selected payment method background to cover full width */
#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ label,
#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label {
    background: #eff6ff !important;
    margin: 0 !important;
    padding: 16px 20px !important;
}

/* Ensure the entire payment method item has the selected background */
#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked,
.wfc-payment-methods .wc_payment_method input[type="radio"]:checked {
    background: transparent !important;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ *,
#payment ul.payment_methods li.wc_payment_method.payment_method_selected > * {
    background: #eff6ff !important;
}

/* Remove any purple tints */
#payment div.payment_box,
.payment_box {
    background: #f8fafc !important;
    color: #6b7280 !important;
    display: none !important;
}

/* Show payment box when radio button is checked */
#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ .payment_box,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ .payment_box,
.wc_payment_method input[type="radio"]:checked ~ .payment_box {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    padding: var(--space-lg) var(--space-xl) !important;
}

/* Compact payment methods - single line descriptions */
.wfc-payment-methods.compact .payment_box {
    padding: var(--space-sm) var(--space-xl);
    background: transparent;
    border: none;
    font-size: 12px;
    margin-top: -var(--space-xs);
}

.wfc-payment-methods.compact .payment_box p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Legal text styling */
.wfc-terms {    
    padding: var(--space-md);    
        
}

.wfc-terms p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.wfc-terms a {
    color: #3b82f6;
    text-decoration: none;
}

.wfc-terms a:hover {
    text-decoration: underline;
}

/* Place Order Button */
.wfc-place-order {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: var(--space-lg) var(--space-3xl);
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--space-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wfc-place-order:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .wfc-form-row-half {
        flex-direction: column;
        gap: 0;
    }
    
    .wfc-form-row-half .wfc-field-floating {
        margin-bottom: var(--field-gap);
    }
    
    .wfc-form-row-third {
        flex-direction: column;
        gap: 0;
    }
    
    .wfc-form-row-third .wfc-field-floating {
        margin-bottom: var(--field-gap);
        flex: 1;
    }
}

/* Collapsed address section */
.wfc-address-collapsed {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wfc-address-summary {
    color: #374151;
}

.wfc-edit-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.wfc-edit-btn:hover {
    background: #eff6ff;
}

/* Checkbox styling */
.wfc-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--field-gap) 0;
}

.wfc-checkbox input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]) {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #3b82f6;
}

.wfc-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Order review sidebar */
.wfc-order-review {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--space-md);
    padding: var(--space-xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-xl);
    border: 1px solid #e5e7eb;
}

.wfc-order-review h3 {
    margin: 0 0 var(--space-lg) 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wfc-order-review h3::before {
    content: "🛒";
    font-size: 20px;
}

/* Mobile Order Summary Toggle */
.wfc-mobile-order-toggle {
    display: none;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--space-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--space-md);
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wfc-mobile-order-toggle:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wfc-mobile-order-toggle .toggle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wfc-mobile-order-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wfc-mobile-order-toggle .toggle-icon {
    transition: transform 0.3s ease;
    color: #6b7280;
    font-size: 14px;
}

.wfc-mobile-order-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.wfc-order-total-preview {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* Show mobile toggle on smaller screens */
@media (max-width: 768px) {
    .wfc-mobile-order-toggle {
        display: block !important;
    }
    
    /* Hide duplicate title when expanded */
    .wfc-order-review.active h3 {
        display: none;
    }
    
    /* Remove extra borders when expanded */
    .wfc-order-review.active {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }
}

/* Hide subtotal row */
.wfc-order-review .cart-subtotal {
    display: none;
}

/* Modern cart items styling */


.wfc-cart-item {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    gap: 12px;
    position: relative;
}

/* Product Image with Quantity Badge */
.wfc-item-image {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: visible;
    background: #f8f9fa;
    flex-shrink: 0;
    margin: 8px 8px 8px 0;
}

.wfc-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.wfc-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
}

.wfc-quantity-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #3b82f6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Product Details */
.wfc-item-details {
    flex: 1;
    min-width: 0;
}

.wfc-item-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Quantity Controls */
.wfc-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wfc-quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    height: 32px;
    overflow: hidden;
}

.wfc-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.wfc-qty-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.wfc-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wfc-qty-input {
    border: none;
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #111827;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.wfc-qty-input::-webkit-outer-spin-button,
.wfc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button */
.wfc-remove-item {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.wfc-remove-item:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Price Column */
.wfc-item-price {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.wfc-item-total {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
}

/* Loading state */
.wfc-cart-item.updating {
    opacity: 0.6;
    pointer-events: none;
}

.wfc-cart-item.updating::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Order totals styling */
.wfc-order-totals {
    background: #f8fafc;
    margin: 0 calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) calc(var(--space-xl) * -1);
    padding-left: 16px;
    padding-right: 20px;
    border-radius: 0 0 var(--space-md) var(--space-md);
}

.wfc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0px 16px;
}

.wfc-total-final {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    padding-top: 2px;
    padding-bottom: 10px;
    margin-top: 8px;
}

.wfc-total-label {
    color: #6b7280;
    font-size: 14px;
}

.wfc-total-final .wfc-total-label {
    color: #111827;
    font-size: 16px;
}

.wfc-total-value {
    font-weight: 600;
    color: #111827;
}

/* Coupon section */
.wfc-coupon-section {
    /* Removed ugly container styling */
}

.wfc-coupon-toggle {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.wfc-coupon-toggle:hover {
    text-decoration: underline;
}

.wfc-coupon-form {
    margin-top: 16px;
    display: none;
}

.wfc-coupon-form.active {
    display: block;
}

/* Always visible coupon form */
.wfc-coupon-always-visible .wfc-coupon-form {
    display: block;
    margin-top: 0;
}

/* Desktop coupon section above special offers */
.wfc-coupon-section-desktop {
    display: block;
    margin-bottom: 24px;
}

/* Coupon section in sidebar */
.wfc-coupon-sidebar {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--space-sm);
}

.wfc-coupon-sidebar .wfc-coupon-section {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.wfc-coupon-sidebar .wfc-coupon-input {
    margin-bottom: 0;
}

.wfc-coupon-section-desktop .wfc-coupon-input {
    margin-bottom: 0;
}

.wfc-coupon-section-desktop .wfc-coupon-input input {
    background: white;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s ease;
}

.wfc-coupon-section-desktop .wfc-coupon-input input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wfc-coupon-section-desktop .wfc-coupon-input button {
    background: #059669;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.wfc-coupon-section-desktop .wfc-coupon-input button:hover {
    background: #047857;
}

.wfc-coupon-input {
    display: flex;
    gap: 8px;
}

.wfc-coupon-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.wfc-coupon-input button {
    padding: 10px 16px;
    background: #374151;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wfc-coupon-input button:hover {
    background: #1f2937;
}

/* Payment methods */

.wfc-payment-method {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.wfc-payment-method:hover {
    border-color: #3b82f6;
}

.wfc-payment-method.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.wfc-payment-method label {
    display: flex;
    align-items: center;
    padding: 16px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}

.wfc-payment-method input[type="radio"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
}

/* Place order button */
.wfc-place-order {
    width: 100%;
    padding: 16px 24px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 24px;
}

.wfc-place-order:hover {
    background: #047857;
}

.wfc-place-order:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Terms and conditions */
.wfc-terms {    
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.wfc-terms a {
    color: #3b82f6;
    text-decoration: none;
}

.wfc-terms a:hover {
    text-decoration: underline;
}

/* Order bumps */
.wfc-order-bumps {
    margin: var(--space-xl) 0;
}

/* Order bumps in sidebar */
.wfc-order-bumps-sidebar {
    margin: var(--space-lg) 0;
    padding: var(--space-lg) 0;
}

.wfc-order-bumps-sidebar h3 {
    font-size: 16px;
    margin-bottom: var(--space-md);
    color: #374151;
}

.wfc-order-bumps-sidebar .wfc-order-bump-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--space-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.wfc-order-bumps-sidebar .wfc-order-bump-item:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row.form-row-first,
    .form-row.form-row-last {
        width: 100%;
        margin-right: 0;
    }
    
    .wfc-coupon-input {
        flex-direction: column;
    }
    
    .wfc-checkout-container {
        padding: var(--space-md);
    }
}

/* Login section */
.wfc-login-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.wfc-login-toggle {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.wfc-login-toggle:hover {
    text-decoration: underline;
}

/* Notices */
.woocommerce-notices-wrapper {
    margin-bottom: var(--field-gap);
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--space-sm);
    margin-bottom: var(--space-md);
}

.woocommerce-message {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #065f46;
}

.woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.woocommerce-info {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
}

/* Hidden states */
.wfc-hidden {
    display: none !important;
}

/* Hide WooCommerce's default place order row to prevent empty space */
.form-row.place-order {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    min-height: 0 !important;
    line-height: 0 !important;
}

/* Hide the noscript message visually but keep it functional */
.form-row.place-order noscript {
    display: none;
}

/* Ensure hidden inputs don't create space */
.form-row.place-order input[type="hidden"] {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Modern confirmation system */
.wfc-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wfc-confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wfc-confirm-dialog {
    background: white;
    border-radius: var(--space-md);
    padding: var(--space-2xl);
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.wfc-confirm-overlay.active .wfc-confirm-dialog {
    transform: translateY(0);
}

.wfc-confirm-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #111827;
}

.wfc-confirm-message {
    color: #6b7280;
    margin-bottom: var(--space-2xl);
    line-height: 1.5;
}

.wfc-confirm-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

.wfc-confirm-btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--space-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wfc-confirm-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.wfc-confirm-btn-cancel:hover {
    background: #e5e7eb;
}

.wfc-confirm-btn-confirm {
    background: #dc2626;
    color: white;
}

.wfc-confirm-btn-confirm:hover {
    background: #b91c1c;
}

/* Toast notification system */
.wfc-toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.wfc-toast {
    background: white;
    border-radius: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.wfc-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.wfc-toast.error {
    border-left-color: #dc2626;
}

.wfc-toast.success {
    border-left-color: #059669;
}

.wfc-toast-message {
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
}

@media (max-width: 768px) {
    .wfc-toast-container {
        top: var(--space-md);
        right: var(--space-md);
        left: var(--space-md);
    }
    
    .wfc-toast {
        min-width: unset;
    }
}

/* Login section styling */
.wfc-login-section {
    margin-bottom: var(--field-gap);
    padding: var(--space-md);
    background: #f8fafc;
    border-radius: var(--space-sm);
    border: 1px solid #e5e7eb;
}

.wfc-login-toggle {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.wfc-login-toggle:hover {
    text-decoration: underline;
}

.wfc-login-form {
    margin-top: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.wfc-address-expanded {
    display: block;
}

.wfc-address-collapsed {
    display: flex;
}

.wfc-address-form.collapsed .wfc-address-expanded {
    display: none;
}

.wfc-address-form.collapsed .wfc-address-collapsed {
    display: flex;
}

.wfc-address-form.expanded .wfc-address-expanded {
    display: block;
}

.wfc-address-form.expanded .wfc-address-collapsed {
    display: none;
}

/* Mobile responsive - hide sidebar by default for better conversion */
@media (max-width: 1024px) {
    .wfc-checkout-container,
    .wfc-checkout-columns {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        padding: var(--space-lg);
    }
    
    .wfc-checkout-sidebar {
        order: -1;
        /* Don't hide completely - just hide the content by default */
    }
    
    .wfc-checkout-sidebar.mobile-visible {
        display: block;
    }
    
    .wfc-mobile-order-toggle {
        display: block !important;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        padding: var(--space-md);
        margin-bottom: var(--space-sm);
        font-size: 14px;
        color: #6b7280;
        box-shadow: none;
    }
    
    .wfc-mobile-order-toggle:hover {
        background: #f1f5f9;
        border-color: #d1d5db;
    }
    
    .wfc-mobile-order-toggle .toggle-content {
        font-size: 14px;
    }
    
    .wfc-mobile-order-toggle .toggle-left span:first-child {
        font-size: 12px;
    }
    
    .wfc-mobile-order-toggle .wfc-order-total-preview {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
    }
    
    /* Order review should be hidden by default, shown when toggle is active */
    .wfc-order-review {
        display: none;
        margin-top: var(--space-md);
    }
    
    .wfc-order-review.active {
        display: block !important;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Hide sidebar order bumps on mobile - they'll appear in main flow */
    .wfc-order-bumps-sidebar {
        display: none !important;
    }
    
    /* Hide sidebar coupon section on mobile - it'll appear before payment */
    .wfc-coupon-section {
        display: none !important;
    }
    
}

/* Hide desktop coupon section only on mobile - mobile has its own coupon section */
@media (max-width: 768px) {
    .wfc-coupon-section-desktop,
    .wfc-coupon-sidebar {
        display: none !important;
    }
}

/* Mobile-optimized special offers - appear after shipping */
.wfc-mobile-special-offers {
    display: none;
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: var(--space-md);
    position: relative;
}

.wfc-mobile-special-offers::before {
    content: "🎁";
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    background: #0ea5e9;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.wfc-mobile-special-offers h3 {
    color: #0c4a6e;
    margin-bottom: var(--space-md);
    font-size: 18px;
}

@media (max-width: 768px) {
    .wfc-mobile-special-offers {
        display: block;
        margin: var(--space-lg) calc(var(--space-xl) * -1);
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    }
}

/* Subtle cart summary for mobile */
@media (max-width: 768px) {
    .wfc-mobile-order-toggle {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        padding: var(--space-md);
        margin-bottom: var(--space-md);
        font-size: 14px;
        color: #374151;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border-radius: var(--space-sm);
        width: 100%;
        text-align: left;
    }
    
    .wfc-mobile-order-toggle:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    .wfc-mobile-order-toggle .toggle-content {
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .wfc-mobile-order-toggle .toggle-left {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .wfc-mobile-order-toggle .toggle-left span:first-child {
        font-size: 14px;
    }
    
    .wfc-mobile-order-toggle .wfc-order-total-preview {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        margin-right: var(--space-sm);
    }
    
    .wfc-mobile-order-toggle .toggle-icon {
        font-size: 12px;
        opacity: 0.7;
    }
    
    /* Ensure order review is hidden initially on mobile */
    .wfc-order-review {
        display: none !important;
    }
    
    .wfc-order-review.active {
        display: block !important;
        animation: slideDown 0.3s ease;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: var(--space-sm);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        margin-top: var(--space-sm);
    }
    
    /* When order review is shown, hide duplicate title */
    .wfc-order-review.active h3 {
        display: none;
    }
    
    /* Add mobile padding to cart items container */
    .wfc-modern-cart-items {
        padding-left: 2px;
        padding-right: 2px;
    }
}

/* Mobile-optimized coupon section - appears before payment */
.wfc-mobile-coupon {
    display: none;
    margin: var(--space-lg) 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--space-sm);
    overflow: hidden;
}

.wfc-mobile-coupon-header {
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.wfc-mobile-coupon-header:hover {
    background: #f1f5f9;
}

.wfc-mobile-coupon h4 {
    margin: 0;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.wfc-mobile-coupon h4::before {
    content: "🎫";
    font-size: 16px;
}

.wfc-coupon-toggle-icon {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.wfc-mobile-coupon.expanded .wfc-coupon-toggle-icon {
    transform: rotate(180deg);
}

.wfc-mobile-coupon-content {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
    background: white;
}

.wfc-mobile-coupon.expanded .wfc-mobile-coupon-content {
    display: block;
}

.wfc-mobile-coupon .wfc-coupon-input {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.wfc-mobile-coupon .wfc-coupon-input input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #d1d5db;
    border-radius: var(--space-xs);
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.wfc-mobile-coupon .wfc-coupon-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wfc-mobile-coupon .wfc-coupon-input button {
    padding: var(--space-sm) var(--space-lg);
    background: #374151;
    color: white;
    border: none;
    border-radius: var(--space-xs);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.wfc-mobile-coupon .wfc-coupon-input button:hover {
    background: #1f2937;
}

.wfc-mobile-coupon .wfc-coupon-input button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .wfc-mobile-coupon {
        display: block;
        margin: var(--space-md) 0;
    }
    
    .wfc-mobile-coupon-header {
        padding: var(--space-md);
    }
    
    .wfc-mobile-coupon h4 {
        font-size: 13px;
    }
    
    .wfc-mobile-coupon-content {
        padding: var(--space-md);
    }
    
    .wfc-mobile-coupon .wfc-coupon-input {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .wfc-mobile-coupon .wfc-coupon-input input {
        padding: var(--space-md);
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .wfc-mobile-coupon .wfc-coupon-input button {
        padding: var(--space-md);
        font-size: 16px;
    }
}

/* Ensure li and label are perfectly aligned and center all children */
.wfc-payment-methods.clean #payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods li.wc_payment_method,
.wfc-payment-methods #payment ul.payment_methods li.wc_payment_method,
#payment ul.payment_methods li.wc_payment_method,
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method {
    align-items: center !important; /* Center contents vertically to match label height */
}

/* Handle PayPal "Was ist PayPal?" link that sits outside the label */
.wfc-payment-methods .wc_payment_method > .about_paypal {
    margin-left: auto !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    align-self: center !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.wfc-payment-methods .wc_payment_method > .about_paypal:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

/* Desktop coupon section - FORCE VISIBILITY */
.wfc-desktop-coupon.desktop-visible {
    display: block !important;
    margin: var(--space-lg) 0 !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-mobile-coupon-header {
    display: flex !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: var(--space-md) var(--space-lg) !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: var(--space-sm) !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-mobile-coupon-header:hover {
    background: #f1f5f9 !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-mobile-coupon-content {
    display: block !important;
    background: white !important;
    padding: var(--space-lg) !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 0 var(--space-sm) var(--space-sm) !important;
}

.wfc-desktop-coupon.desktop-visible.collapsed .wfc-mobile-coupon-content {
    display: none !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-coupon-input {
    display: flex !important;
    gap: var(--space-sm) !important;
    margin-top: var(--space-sm) !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-coupon-input input {
    flex: 1 !important;
    padding: var(--space-sm) var(--space-md) !important;
    border: 1px solid #d1d5db !important;
    border-radius: var(--space-xs) !important;
    font-size: 14px !important;
    background: white !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-coupon-input button {
    padding: var(--space-sm) var(--space-lg) !important;
    background: #374151 !important;
    color: white !important;
    border: none !important;
    border-radius: var(--space-xs) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-coupon-input button:hover {
    background: #1f2937 !important;
}

.wfc-desktop-coupon.desktop-visible h4 {
    margin: 0 !important;
    font-size: 14px !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.wfc-desktop-coupon.desktop-visible .wfc-coupon-toggle-icon {
    font-size: 12px !important;
    color: #6b7280 !important;
    transition: transform 0.3s ease !important;
}

.wfc-desktop-coupon.desktop-visible:not(.collapsed) .wfc-coupon-toggle-icon {
    transform: rotate(180deg) !important;
}

/* Desktop coupon section styling */
.wfc-desktop-coupon-sidebar {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--space-sm);
}

.wfc-desktop-coupon-sidebar h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.wfc-desktop-coupon-sidebar .wfc-coupon-input {
    display: flex;
    gap: var(--space-sm);
}

.wfc-desktop-coupon-sidebar .wfc-coupon-input input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #d1d5db;
    border-radius: var(--space-xs);
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.wfc-desktop-coupon-sidebar .wfc-coupon-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wfc-desktop-coupon-sidebar .wfc-coupon-input button {
    padding: var(--space-sm) var(--space-lg);
    background: #374151;
    color: white;
    border: none;
    border-radius: var(--space-xs);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.wfc-desktop-coupon-sidebar .wfc-coupon-input button:hover {
    background: #1f2937;
}

.wfc-desktop-coupon-sidebar .wfc-coupon-input button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Mobile-specific coupon section */
.wfc-mobile-coupon-payment {
    margin: var(--space-lg) 0;
}

/* Responsive visibility controls */
@media (min-width: 769px) {
    /* Hide mobile coupon section on desktop */
    .wfc-mobile-coupon-payment {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Hide desktop coupon section on mobile */
    .wfc-desktop-coupon-sidebar {
        display: none !important;
    }
}


/* Company Toggle Styles */
.wfc-company-toggle {
    margin-bottom: var(--field-gap);
}

.wfc-company-toggle label {
    font-weight: 500;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
}

.wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3b82f6;
    border-radius: 3px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: var(--space-md);
    margin-top: 0;
    flex-shrink: 0;
}

.wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]):checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]):checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]):focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]):hover {
    border-color: #1d4ed8;
}

/* Company Fields Styling */
.wfc-company-fields {
    margin-top: var(--space-md);
    transition: all 0.3s ease;
}

.wfc-company-fields.wfc-hidden {
    display: none !important;
}

/* EU VAT Field Styling - Updated for proper spacing */
.wfc-eu-vat-field {
    margin-top: var(--space-md);
 
    transition: all 0.3s ease;
}

.wfc-eu-vat-field.wfc-hidden {
    display: none !important;
    margin-bottom: 0;
}

.wfc-eu-vat-field input {
    text-transform: uppercase;
}


/* VAT Field Error Styling */
.wfc-field-error input {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.wfc-field-error input:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.wfc-field-error label {
    color: #dc2626 !important;
}

/* Company Toggle Animation */
@keyframes wfc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Mobile Responsive for Company Fields */
@media (max-width: 768px) {
    .wfc-company-toggle {
        margin-bottom: var(--space-md);
    }
    
    .wfc-company-toggle label {
        font-size: 13px;
    }
    
    .wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]) {
        width: 16px;
        height: 16px;
        margin-right: var(--space-sm);
    }
    
    .wfc-company-toggle input[type="checkbox"]:not(.wc-stripe-save-source):not([id*="stripe"]):checked::after {
        font-size: 10px;
    }
}

/* Fix Stripe Save Card Checkbox - hide fake elements, show real one */

/* Hide the fake checkbox span */
.wc-stripe-save-source .save-source-checkbox,
.wc-stripe-save-source span.save-source-checkbox {
    display: none !important;
}

/* Show and style the real checkbox */
.wc-stripe-save-source input[type="checkbox"],
#stripe_cc_save_source_key {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 8px 0 0 !important;
    display: inline-block !important;
    position: static !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove any custom styling from the label wrapper */
.wc-stripe-save-source label.checkbox {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

/* Style the text label */
.wc-stripe-save-source .save-source-label {
    margin: 0 !important;
    font-size: 14px !important;
    color: #374151 !important;
    cursor: pointer !important;
}

/* Container layout */
.wc-stripe-save-source {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 16px 0 !important;
}

/* Ensure no pseudo-elements interfere */
.wc-stripe-save-source input[type="checkbox"]:before,
.wc-stripe-save-source input[type="checkbox"]:after,
#stripe_cc_save_source_key:before,
#stripe_cc_save_source_key:after {
    display: none !important;
    content: none !important;
}

/* ==========================================
   TRUST ELEMENTS STYLES
   ========================================== */

/* Trust Badges */
.wfc-trust-badges {
    margin: var(--space-2xl) 0;
    padding: var(--space-lg);
    background: var(--trust-bg-light);
    border: 1px solid var(--trust-border);
    border-radius: 8px;
}

.trust-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--trust-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--trust-color-secondary);
    white-space: nowrap;
}

.trust-badge-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.trust-badge-text {
    font-size: 11px;
    line-height: 1.3;
}

/* Social Proof */
.wfc-social-proof {
    margin: var(--space-2xl) 0;
}

.wfc-recent-purchases,
.wfc-testimonials {
    background: white;
    border: 1px solid var(--testimonial-border);
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.wfc-recent-purchases h4,
.wfc-testimonials h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.recent-purchases-list,
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.recent-purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--testimonial-bg);
    border-radius: 4px;
    font-size: 12px;
}

.customer-info {
    font-weight: 500;
    color: #374151;
}

.purchase-time {
    color: #6b7280;
    font-size: 11px;
}

/* Testimonials */
.testimonial-item {
    padding: var(--space-md);
    background: var(--testimonial-bg);
    border: 1px solid var(--testimonial-border);
    border-radius: 6px;
    margin-bottom: var(--space-sm);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.customer-name {
    font-weight: 500;
    font-size: 12px;
    color: #374151;
}

.verified-badge {
    background: var(--trust-color-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 1px;
}

.star {
    color: #fbbf24;
    font-size: 12px;
}

.testimonial-text {
    font-size: 12px;
    line-height: 1.4;
    color: #4b5563;
    font-style: italic;
}

/* Guarantees */
.wfc-guarantees {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--trust-bg-light);
    border: 1px solid var(--trust-border);
    border-radius: 8px;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-icon {
    color: var(--trust-color-primary);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.guarantee-content {
    flex: 1;
}

.guarantee-title {
    margin: 0 0 var(--space-xs) 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--trust-color-secondary);
}

.guarantee-description {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #4b5563;
}

/* Mobile Responsive for Trust Elements */
@media (max-width: 768px) {
    .trust-badges-container {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .trust-badge {
        padding: var(--space-sm);
        font-size: 11px;
    }
    
    .trust-badge-text {
        font-size: 10px;
    }
    
    .recent-purchase-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .testimonial-header {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .guarantee-item {
        gap: var(--space-sm);
    }
    
    .guarantee-icon {
        font-size: 16px;
    }
}

/* VAT ID Validation Styling */
.wfc-vat-id-container {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 0;
}

.wfc-vat-id-container .wfc-field-floating {
    flex: 1;
    margin-bottom: 0;
}

.wfc-vat-check-btn {
    height: 52px;
    padding: 0 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
    flex-shrink: 0;
}

.wfc-vat-check-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.wfc-vat-check-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wfc-vat-check-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

.wfc-vat-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wfc-vat-spinner svg {
    color: currentColor;
}

.wfc-vat-status {
    margin-top: 10px;
    margin-bottom: 20px; /* Ensure space below status message */
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.wfc-vat-status.visible {
    opacity: 1;
    transform: translateY(0);
}

.wfc-vat-status.success {
    color: #059669;
}

.wfc-vat-status.error {
    color: #dc2626;
}

.wfc-vat-status.warning {
    color: #d97706;
}

.wfc-vat-status-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wfc-vat-status-icon svg {
    width: 100%;
    height: 100%;
}

/* VAT field validation styling */
.wfc-vat-id-container .wfc-field-floating.wfc-field-success input {
    border-color: #059669;
    background-color: #f0fdf4;
}

.wfc-vat-id-container .wfc-field-floating.wfc-field-success label {
    color: #059669;
}

.wfc-vat-id-container .wfc-field-floating.wfc-field-error input {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.wfc-vat-id-container .wfc-field-floating.wfc-field-error label {
    color: #dc2626;
}

.wfc-vat-id-container .wfc-field-floating.wfc-field-warning input {
    border-color: #d97706;
    background-color: #fffbeb;
}

.wfc-vat-id-container .wfc-field-floating.wfc-field-warning label {
    color: #d97706;
}

/* Loading state styling */
.wfc-vat-check-btn.loading .wfc-vat-btn-text {
    opacity: 0;
}

.wfc-vat-check-btn.loading .wfc-vat-spinner {
    display: flex;
}

.wfc-vat-check-btn:not(.loading) .wfc-vat-spinner {
    display: none;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .wfc-eu-vat-field {
        margin-bottom: calc(var(--field-gap) + 60px); /* Extra space on mobile for status */
    }
    
    .wfc-vat-id-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .wfc-vat-check-btn {
        height: 44px;
        width: 100%;
        min-width: auto;
    }
    
    .wfc-vat-status {
        margin-top: 8px;
        margin-bottom: 16px;
    }
}

/* Trust Elements Styling */
.wfc-trust-badges,
.wfc-customer-reviews,
.wfc-testimonials,
.wfc-guarantees {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.wfc-trust-badges h4,
.wfc-customer-reviews h4,
.wfc-testimonials h4,
.wfc-guarantees h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Trust Badges */
.trust-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.trust-badge-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Customer Reviews & Testimonials */
.customer-reviews-list,
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.customer-review-item,
.testimonial-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.review-header,
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.customer-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.verified-badge {
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.star-rating {
    display: flex;
    gap: 1px;
    margin-left: auto;
}

.star {
    color: #ffc107;
    font-size: 14px;
}

.review-text,
.testimonial-text {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
}

/* Guarantees */
.wfc-guarantees {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.guarantee-icon {
    color: #28a745;
    font-size: 18px;
    margin-top: 2px;
}

.guarantee-content {
    flex: 1;
}

.guarantee-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.guarantee-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wfc-trust-badges,
    .wfc-customer-reviews,
    .wfc-testimonials,
    .wfc-guarantees {
        margin: 15px 0;
        padding: 15px;
    }
    
    .trust-badges-container {
        gap: 10px;
    }
    
    .trust-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .customer-review-item,
    .testimonial-item {
        padding: 12px;
    }
    
    .review-header,
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .star-rating {
        margin-left: 0;
    }
}