/* 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);
    }
}

/* WFC Logo Styles */
.wfc-checkout-logo img {
    max-height: 100px;
    max-width: 280px;
    height: auto;
    width: auto;
}

/* Hide mobile logo on desktop */
.wfc-mobile-logo {
    display: none;
}

@media (max-width: 768px) {
    /* Hide main content logo on mobile */
    .wfc-main-content .wfc-checkout-logo {
        display: none !important;
    }
    
    /* Show mobile logo only on mobile */
    .wfc-mobile-logo {
        display: block;
        order: -2; /* Move logo above mobile order panel */
        margin-bottom: var(--space-2xl);
        text-align: center;
    }
    
    .wfc-mobile-logo .wfc-checkout-logo img {
        max-height: 80px;        
        max-width: 200px;
    }
    
    .wfc-mobile-order-panel {
        order: -1; /* Keep mobile order panel below logo but above other sidebar content */
    }
    
    .wfc-checkout-sidebar {
        display: flex;
        flex-direction: column;
    }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 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;
    overflow-x: hidden;
}

/* Main checkout container */
.wfc-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sidebar-gap);
    align-items: start;
    /* width: 100%; */
    /* max-width: 100vw; */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 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-lg);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sidebar-gap);
    align-items: start;
    /* width: 100%; */
    /* max-width: 100vw; */
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .wfc-checkout-container,
    .wfc-checkout-columns {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        padding: var(--space-lg) var(--space-md);
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .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 {
    padding: 0px 20px 20px 20px;
}

@media (max-width: 768px) {
    .wfc-main-content {        
        border-radius: var(--space-sm);
    }
}

/* 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;
}

/* Payment subtitle styling */
.wfc-payment-subtitle {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: var(--section-gap);
}

/* Subtle legal hint above payment methods */
.wfc-legal-hint {
    margin: -4px 0 var(--space-md) 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}
.wfc-legal-hint a { color: #3b82f6; text-decoration: none; }
.wfc-legal-hint a:hover { text-decoration: underline; }

/* Above button version: add a little spacing from totals/payment and before button */
.wfc-legal-above-button {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

/* Remove h2 bottom margin when followed by payment subtitle */
.wfc-section h2:has(+ .wfc-payment-subtitle) {
    margin-bottom: 0;
}

/* Alternative selector for older browsers that don't support :has() */
.wfc-section h2 + .wfc-payment-subtitle {
    margin-top: 0;
}

/* Form styling - override WooCommerce defaults */
.form-row {
    margin-bottom: var(--field-gap);
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.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%;
    max-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;
    box-sizing: border-box;
}

.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;
    max-width: calc(50% - 10px);
    box-sizing: border-box;
}

.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 textarea {
    width: 100%;
    padding: 12px var(--space-lg) 12px var(--space-lg);
    border: 1px solid #d1d5db;
    border-radius: 8px !important; /* unify rounding across all controls */
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
    outline: none;
    box-sizing: border-box;
    min-height: 48px;
    height: 48px;
    line-height: 1.4;
}

.wfc-field-floating select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px !important;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
    outline: none;
    box-sizing: border-box;
    min-height: 48px !important;
    height: 48px !important;
    line-height: 1.4;
    padding: 12px 40px 12px var(--space-lg) !important; /* Space for dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    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;
}

.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%; /* default for inputs/textareas */
    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.has-value + 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: -8px;
    transform: none; /* override translateY for selects only */
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
    line-height: 1;
}

/* Ensure select fields with values show proper styling */
.wfc-field-floating select:not([value=""]) + label,
.wfc-field-floating.has-value select + label {
    top: -8px;
    transform: none;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

/* Force proper select styling when option is selected */
.wfc-field-floating select option:checked {
    font-weight: 600;
}

/* Ensure select shows selected value visually */
.wfc-field-floating select:focus,
.wfc-field-floating select:valid,
.wfc-field-floating select.has-value {
    color: #111827;
}

/* State field visibility handling */
.wfc-state-field-empty {
    display: none !important;
}

/* Ensure state fields can be hidden when no states available */
.wfc-field-floating[data-field*="state"] {
    transition: opacity 0.3s ease, height 0.3s ease;
}

.wfc-field-floating[data-field*="state"].wfc-hidden-state {
    display: none;
}

/* Fix Select2 height issues - WooCommerce uses Select2 for country/state fields */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 16px !important;
    padding-right: 40px !important;
    line-height: 46px !important; /* 48px - 2px border */
    font-size: 16px !important;
    color: #111827 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
    top: 1px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    border-width: 6px 6px 0 6px !important;
    margin-left: -6px !important;
    margin-top: -3px !important;
}

/* Focus state for Select2 */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Dropdown positioning */
.select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* 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;
    display: flex;
    align-items: center;
}

/* 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);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.wfc-payment-methods .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wfc-payment-methods .wc_payment_methods li {
    margin: 0 !important; /* Ensure no extra space from default list items */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wfc-payment-methods .wc_payment_method {
    border: 1px solid #e5e7eb;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    min-height: 48px; /* Reduced 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-md) var(--space-lg);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    margin: 0;
    border: none;
    position: relative;
    
    height: 48px; /* Reduced fixed 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 only for Stripe */
.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;
}

/* Only show payment_box for Stripe (needed for credit card inputs) */
.wfc-payment-methods .wc_payment_method.payment_method_stripe input[type="radio"]:checked ~ .payment_box,
.wfc-payment-methods .wc_payment_method.payment_method_stripe_cc input[type="radio"]:checked ~ .payment_box,
.wfc-payment-methods .wc_payment_method.wc-stripe-no-desc 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-sm) var(--space-md);
        font-size: 13px;
        height: 42px; /* Smaller on mobile */
    }
    
    /* Mobile container height fix - Allow expansion for payment boxes */
    #payment ul.payment_methods li.wc_payment_method,
    .woocommerce-checkout-payment ul.payment_methods li.wc_payment_method {
        min-height: 42px !important;
        height: auto !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 {
        min-height: 42px !important;
        height: auto !important;
        padding: 0 32px 0 12px !important;
        font-size: 13px !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: 48px !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: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 40px 0 16px !important;
    margin: 0 !important;
    
    font-weight: 500 !important;
    font-size: 14px !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;
}


/* 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: transparent;
    color: #374151;
    border: none;
    padding: var(--space-md);
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    width: 100%;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

.wfc-mobile-order-toggle:hover {
    background: #f9fafb;
}

.wfc-mobile-order-toggle .toggle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--space-sm);
}

.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: 12px;
    opacity: 0.7;
}

.wfc-mobile-order-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.wfc-order-total-preview {
    font-size: 16px;
    font-weight: 600;
    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 - let mobile-order-panel handle the borders */
    .wfc-order-review.active {
        background: white;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: var(--space-md);
        margin-top: 0;
        margin-bottom: 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;
}

/* Subscription Product Styling */
.wfc-subscription-item .wfc-quantity-input {
    display: none !important;
}
.wfc-subscription-item .wfc-quantity-controls {
    justify-content: flex-end;
}

.wfc-subscription-item .wfc-item-details {
    flex: 1 1 60%;
}

.wfc-subscription-item .wfc-item-price {
    flex: 0 0 auto;
    max-width: 40%;
    text-align: right;
}

.wfc-subscription-item .wfc-item-total {
    font-size: 14px;
    line-height: 1.4;
}

.wfc-subscription-item .subscription-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wfc-subscription-item .subscription-price .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 600;
}

.wfc-subscription-item .subscription-details {
    font-size: 12px;
    color: #6b7280;
    font-weight: normal;
    white-space: nowrap;
}

/* Mobile adjustments for subscription items */
@media (max-width: 768px) {
    .wfc-subscription-item .wfc-item-price {
        max-width: 45%;
    }
    
    .wfc-subscription-item .subscription-details {
        font-size: 11px;
    }
}

/* Hide irritating subscription removal notices */
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-info {
    display: none;
}

/* Show only user-friendly notices */
.wfc-user-notice {
    background: #e7f3ff;
    border: 1px solid #b3d4fc;
    border-radius: 5px;
    padding: 12px 16px;
    margin: 10px 0;
    color: #1e40af;
    font-size: 14px;
}

/* 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 */

/* 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) {
    body {
        overflow-x: hidden;
    }
    
    .wfc-checkout-wrapper {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .wfc-checkout-container,
    .wfc-checkout-columns {
        padding: var(--space-md) var(--space-sm);
        margin: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .wfc-main-content {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .form-row.form-row-first,
    .form-row.form-row-last {
        width: 100%;
        margin-right: 0;
    }
    
    .wfc-coupon-input {
        flex-direction: column;
    }
    
    /* Fix any elements that might cause horizontal overflow */
    .wfc-field-floating,
    .wfc-field-floating input,
    .wfc-field-floating select,
    .wfc-field-floating textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .wfc-form-row-half,
    .wfc-form-row-third {
        width: 100%;
        max-width: 100%;
    }
    
    .wfc-form-row-half .wfc-field-floating,
    .wfc-form-row-third .wfc-field-floating {
        width: 100%;
        max-width: 100%;
        margin-bottom: 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;
}

/* Ensure WooCommerce place order row renders legal text readably */
.form-row.place-order {
    margin: var(--space-md) 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    min-height: unset !important;
    line-height: 1.4 !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;
}

/* WooCommerce privacy/terms text readability */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: var(--space-sm);
}

.woocommerce-privacy-policy-text {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin-top: var(--space-sm);
}

/* 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-toggle-section {
    margin-bottom: var(--field-gap);
    padding: var(--space-md);
    background: #f8fafc;
    border-radius: var(--space-sm);
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.wfc-login-toggle {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.wfc-login-toggle:hover {
    color: #2563eb;
    text-decoration: none;
}

.wfc-login-toggle:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #2563eb;
}

/* Inline login form styling */
.wfc-inline-login {
    margin-bottom: var(--field-gap);
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 480px;
    margin: 0 auto var(--field-gap) auto;
}

.wfc-inline-login:not(.wfc-hidden) {
    opacity: 1;
}

.wfc-login-form-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
}

.wfc-login-form-wrapper h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

.wfc-login-form-container {
    margin-bottom: 16px;
}

/* Simple login toggle */
.wfc-login-toggle-simple {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
}

.wfc-login-toggle-simple a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.wfc-login-toggle-simple a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Simple login form */
.woocommerce-form-login {
    margin: 16px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.woocommerce-form-login .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login .form-row-first {
    width: 48%;
    float: left;
}

.woocommerce-form-login .form-row-last {
    width: 48%;
    float: right;
}

.woocommerce-form-login .clear {
    clear: both;
}

.woocommerce-form-login label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.woocommerce-form-login .required {
    color: #ef4444;
}

.woocommerce-form-login .input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.woocommerce-form-login .input-text:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.woocommerce-form-login .woocommerce-form__input-checkbox {
    margin-right: 8px;
    margin-bottom: 0;
    width: auto;
}

/* Removed - replaced with better layout below */

/* Fix ugly WooCommerce error notifications */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    color: #dc2626 !important;
    font-size: 14px !important;
    position: relative !important;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    display: none !important; /* Remove the fucking icon */
}

.woocommerce-error ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-error li {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-error a {
    color: #dc2626 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.woocommerce-error a:hover {
    color: #b91c1c !important;
    text-decoration: underline !important;
}

.woocommerce-error strong {
    font-weight: 600 !important;
}

/* Success messages */
.woocommerce-message {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.woocommerce-message a {
    color: #166534 !important;
}

.woocommerce-message a:hover {
    color: #14532d !important;
}

/* Info messages - like our login toggle */
.woocommerce-info:not(.wfc-login-toggle-simple) {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

.woocommerce-info:not(.wfc-login-toggle-simple) a {
    color: #1e40af !important;
}

.woocommerce-info:not(.wfc-login-toggle-simple) a:hover {
    color: #1e3a8a !important;
}

/* Login form actions row layout */
.woocommerce-form-login .login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.woocommerce-form-login .login-submit-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-form-login .woocommerce-button {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.woocommerce-form-login .woocommerce-button:hover {
    background: #2563eb;
}

.woocommerce-form-login .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

.woocommerce-form-login .lost-password-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 10px; /* 20% smaller than 12px */
    margin: 0;
}

.woocommerce-form-login .lost-password-link:hover {
    color: #374151;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .woocommerce-form-login {
        padding: 24px 20px;
    }
    
    /* MOBILE: Username in one row, password in one row */
    .woocommerce-form-login .form-row-first,
    .woocommerce-form-login .form-row-last {
        width: 100%;
        float: none;
        margin-bottom: 16px;
    }
    
    /* MOBILE: angemeldet bleiben and PW vergessen on same row */
    .woocommerce-form-login .login-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
    }
    
    .woocommerce-form-login .login-submit-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        flex: 1;
    }
    
    .woocommerce-form-login .woocommerce-button {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* MOBILE: angemeldet bleiben and PW vergessen in same row, smaller text */
    .woocommerce-form-login .login-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    
    .woocommerce-form-login .woocommerce-form__label-for-checkbox {
        font-size: 11px;
        margin: 0;
        white-space: nowrap;
    }
    
    .woocommerce-form-login .lost-password-link {
        font-size: 9px; /* 20% smaller than 11px */
        margin: 0;
        white-space: nowrap;
    }
    
    .woocommerce-error,
    .woocommerce-message,
    .woocommerce-info {
        padding: 12px 16px !important;
        margin: 12px 0 !important;
    }
}

.wfc-login-form-container .woocommerce-form-login label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.wfc-login-form-container .woocommerce-form-login input[type="text"],
.wfc-login-form-container .woocommerce-form-login input[type="password"],
.wfc-login-form-container .woocommerce-form-login input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.wfc-login-form-container .woocommerce-form-login input[type="text"]:focus,
.wfc-login-form-container .woocommerce-form-login input[type="password"]:focus,
.wfc-login-form-container .woocommerce-form-login input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wfc-login-form-container .woocommerce-form-login input[type="submit"],
.wfc-login-form-container .woocommerce-form-login button[type="submit"] {
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.wfc-login-form-container .woocommerce-form-login input[type="submit"]:hover,
.wfc-login-form-container .woocommerce-form-login button[type="submit"]:hover {
    background: #2563eb;
}

.wfc-login-form-container .woocommerce-form-login input[type="submit"]:disabled,
.wfc-login-form-container .woocommerce-form-login button[type="submit"]:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Cancel link styling */
#wfc-login-cancel {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

#wfc-login-cancel:hover {
    color: #374151;
    text-decoration: underline;
}

.wfc-login-form-container .woocommerce-form-login .button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: var(--space-lg) var(--space-xl);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--space-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wfc-login-form-container .woocommerce-form-login .button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wfc-login-form-container .woocommerce-form-login .woocommerce-LostPassword {
    text-align: center;
    margin-top: var(--space-md);
}

.wfc-login-form-container .woocommerce-form-login .woocommerce-LostPassword a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.wfc-login-form-container .woocommerce-form-login .woocommerce-LostPassword a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.wfc-login-cancel {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid #e5e7eb;
}

.wfc-login-cancel-btn {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.wfc-login-cancel-btn:hover {
    color: #374151;
    text-decoration: underline;
}

/* Hide "remember me" checkbox for cleaner look */
.wfc-login-form-container .woocommerce-form-login .form-row input[type="checkbox"],
.wfc-login-form-container .woocommerce-form-login .form-row label[for*="rememberme"] {
    display: none;
}

/* Hide the entire row if it only contains the remember me checkbox */
.wfc-login-form-container .woocommerce-form-login .form-row:has(input[type="checkbox"]) {
    display: none;
}

/* Fallback for browsers without :has() support */
.wfc-login-form-container .woocommerce-form-login .form-row-wide {
    position: relative;
}

.wfc-login-form-container .woocommerce-form-login .form-row-wide input[type="checkbox"] + label {
    display: none;
}

.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);        
        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) {
    /* Mobile Order Panel - Single cohesive collapsible unit */
    .wfc-mobile-order-panel {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: var(--space-sm);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);        
        overflow: hidden;
    }
    
    .wfc-mobile-order-toggle {
        background: transparent;
        border: none;
        padding: var(--space-md);
        font-size: 14px;
        color: #374151;
        width: 100%;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .wfc-mobile-order-toggle:hover {
        background: #f9fafb;
    }
    
    .wfc-mobile-order-toggle .toggle-content {
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: var(--space-sm);
    }
    
    .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 .toggle-right {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .wfc-mobile-order-toggle .wfc-order-total-preview {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
    }
    
    .wfc-mobile-order-toggle .toggle-icon {
        font-size: 12px;
        opacity: 0.7;
        transition: transform 0.3s ease;
    }
    
    .wfc-mobile-order-panel.active .toggle-icon {
        transform: rotate(180deg);
    }
    
    /* 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-top: 1px solid #e5e7eb;
        padding: var(--space-md);
    }
    
    /* 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;
    }
    
    /* Fix border flow - integrate totals within the same border */
    .wfc-order-review.active .wfc-order-totals {
        background: transparent;
        margin: var(--space-md) calc(var(--space-md) * -1) calc(var(--space-md) * -1) calc(var(--space-md) * -1);
        padding: var(--space-md);
        border-radius: 0;
        border-top: 1px solid #e5e7eb;
    }
}

/* 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-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 custom elements, show real one */

/* Hide the custom 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;
}

/* ==========================================
   TESTIMONIALS STYLES (ONLY)
   ========================================== */

/* Testimonials */
.wfc-testimonials {
    background: white;
    border: 1px solid var(--testimonial-border);
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.wfc-testimonials h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.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;
}

/* Hide testimonials on mobile when option is enabled */
@media (max-width: 768px) {
    .wfc-testimonials-hide-mobile {
        display: none !important;
    }
    
    .testimonial-header {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
}

/* 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;
    }
}

/* Testimonials Styling (Alternative) */
.wfc-testimonials {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.wfc-testimonials h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.testimonial-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.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;
}

.testimonial-text {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wfc-testimonials {
        margin: 15px 0;
        padding: 15px;
    }
    
    .testimonial-item {
        padding: 12px;
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .star-rating {
        margin-left: 0;
    }
    
    /* Hide testimonials on mobile when option is enabled */
    .wfc-testimonials-hide-mobile {
        display: none !important;
    }
}

/* Trust Badges - Horizontal Layout */
.wfc-trust-badges {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.wfc-trust-badges h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1f2937;
}

.trust-badges-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.trust-badge-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge-icon .trust-badge-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.trust-badge-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

/* Security Badges - Vertical Layout (All in one row) */


.security-badges-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.security-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}


.security-badge-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

.wfc-trust-badges,
.wfc-security-badges {
    padding: 16px;
    margin-bottom: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    
    .wfc-trust-badges h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .trust-badges-list {
        gap: 8px;
    }
    
    .trust-badge-item {
        gap: 8px;
        padding: 6px 0;
    }
    
    .trust-badge-icon {
        width: 20px;
        height: 20px;
    }
    
    .trust-badge-icon .trust-badge-image {
        width: 20px;
        height: 20px;
    }
    
    .trust-badge-text {
        font-size: 13px;
    }
    
    .security-badges-list {
        gap: 12px;
    }
    
    
    .security-badge-text {
        font-size: 11px;
    }
    
    /* Hide on mobile if configured */
    .wfc-trust-badges-hide-mobile {
        display: none !important;
    }
    
    .wfc-security-badges-hide-mobile {
        display: none !important;
    }
}

/* --- MOBILE: Sidebar content at bottom except Bestellübersicht --- */
@media (max-width: 768px) {
  .wfc-mobile-sidebar-bottom-wrapper {
    margin-top: var(--space-xl);
    padding: var(--space-lg) var(--space-md);
    background: none;
    border: none;
  }
  .wfc-mobile-sidebar-bottom-wrapper > * {
    margin-bottom: var(--space-lg);
  }
  .wfc-mobile-sidebar-bottom-wrapper > *:last-child {
    margin-bottom: 0;
  }
  /* Hide sidebar content in its original place except .wfc-mobile-order-panel and .wfc-mobile-logo */
  .wfc-checkout-sidebar > *:not(.wfc-mobile-order-panel):not(.wfc-mobile-logo) {
    display: none !important;
  }
}