/**
 * Aura Checkout Redesign v10.3
 *
 * ALL Shoptimizer CSS is dequeued on checkout via functions.php.
 * This file is the SOLE stylesheet for the checkout page.
 *
 * DOM (left):
 *   form-billing.php  -> .aura-checkout-section[data-section="1"]
 *                      -> .thwcfe-checkout-section.dane_dostawy
 *                      -> .thwcfe-checkout-section.opcje_dodatkowe
 *                      -> .woocommerce-account-fields
 *   form-shipping.php -> .woocommerce-shipping-fields
 *   form-checkout.php -> .aura-checkout-notes
 * Footer:
 *   .aura-checkout-strip (trust items + payment icons, replaces feature boxes)
 * DOM (right):
 *   .aura-checkout-sidebar -> #order_review -> review-order.php
 */

/* ==========================================================================
   0. FONT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. BASE RESETS
   ========================================================================== */
html.woocommerce-checkout,
body.woocommerce-checkout {
    overflow-x: hidden !important;
}

body.woocommerce-checkout {
    background: #f5f5f7 !important;
    margin: 0;
    padding: 0;
}

/* Select2 hidden accessibility <select> — position:absolute with full width causes horizontal overflow */
body.woocommerce-checkout .select2-hidden-accessible {
    width: 1px !important;
    max-width: 1px !important;
}

body.woocommerce-checkout,
body.woocommerce-checkout *,
body.woocommerce-checkout *::before,
body.woocommerce-checkout *::after {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box;
}

body.woocommerce-checkout .site-content,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout .hentry,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout #primary,
body.woocommerce-checkout .col-full {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
}

body.woocommerce-checkout .site-content {
    padding-top: 20px !important;
    background: #f5f5f7 !important;
}

/* ==========================================================================
   1a. CHECKOUT STEPS TIMELINE
   3-step numbered progress: 1. Twój koszyk → 2. Dostawa i płatność → 3. Gotowe!
   Shared styles (same as aura-cart.css) for consistency across both pages.
   ========================================================================== */
.aura-steps-timeline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    max-width: 620px !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.aura-step {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    border-radius: 50px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border: none !important;
    cursor: default !important;
    flex-shrink: 0 !important;
}

a.aura-step {
    cursor: pointer !important;
}

a.aura-step:hover {
    text-decoration: none !important;
}

.aura-step-num {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.aura-step-num svg {
    width: 14px !important;
    height: 14px !important;
}

.aura-step-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
}

.aura-step.done .aura-step-num {
    background: #3f880b !important;
    color: #ffffff !important;
}

.aura-step.done .aura-step-num svg {
    stroke: #ffffff !important;
}

.aura-step.done .aura-step-label {
    color: #3f880b !important;
}

a.aura-step.done:hover {
    background: rgba(63, 136, 11, 0.04) !important;
}

a.aura-step.done:hover .aura-step-label {
    color: #2d6408 !important;
}

.aura-step.current {
    background: #ffffff !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(63, 136, 11, 0.15) !important;
}

.aura-step.current .aura-step-num {
    background: #3f880b !important;
    color: #ffffff !important;
}

.aura-step.current .aura-step-label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.aura-step.future .aura-step-num {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1.5px solid #e2e8f0 !important;
}

.aura-step.future .aura-step-label {
    color: #94a3b8 !important;
}

.aura-steps-connector {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
    max-width: 56px !important;
    padding: 0 2px !important;
}

.aura-steps-connector-line {
    width: 100% !important;
    height: 2px !important;
    background: #e2e8f0 !important;
    border-radius: 1px !important;
    transition: background 0.2s ease !important;
}

.aura-steps-connector.done .aura-steps-connector-line {
    background: #3f880b !important;
}

.aura-steps-connector.active .aura-steps-connector-line {
    background: linear-gradient(90deg, #3f880b 0%, #e2e8f0 100%) !important;
}

@media (max-width: 992px) {
    .aura-steps-timeline {
        max-width: 100% !important;
        margin-bottom: 12px !important;
    }

    .aura-step {
        padding: 8px 12px !important;
        gap: 8px !important;
    }

    .aura-step-num {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 12px !important;
    }

    .aura-step-num svg {
        width: 12px !important;
        height: 12px !important;
    }

    .aura-step-label {
        font-size: 12px !important;
    }

    .aura-steps-connector {
        min-width: 14px !important;
        max-width: 36px !important;
    }
}

@media (max-width: 480px) {
    .aura-steps-timeline {
        margin-bottom: 8px !important;
    }

    .aura-step {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .aura-step-num {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 11px !important;
    }

    .aura-step-num svg {
        width: 11px !important;
        height: 11px !important;
    }

    .aura-step-label {
        font-size: 11px !important;
    }

    .aura-step.future .aura-step-label {
        display: none !important;
    }

    .aura-steps-connector {
        min-width: 8px !important;
        max-width: 24px !important;
    }
}

/* ==========================================================================
   1b. FOUC PREVENTION
   JS splits billing card. Hide entire form until JS runs.
   JS adds .ac-ready to <body> after DOM manipulation.
   Fallback: CSS animation makes form visible after 0.8s even if JS fails.
   Using transition instead of hard hide for smoother appearance.
   ========================================================================== */
@keyframes ac-fouc-fallback {
    to { opacity: 1; }
}

body.woocommerce-checkout:not(.ac-ready) .aura-checkout-redesign {
    opacity: 0;
    animation: ac-fouc-fallback 0.3s 0.8s forwards;
}

body.woocommerce-checkout.ac-ready .aura-checkout-redesign {
    opacity: 1;
}

/* Hide delivery fields BEFORE JS splits them into separate card.
   Prevents "dane do dostawy" fields flashing inside "dane osobiste" card. */
body.woocommerce-checkout:not(.ac-ready) #dane_dostawy_field,
body.woocommerce-checkout:not(.ac-ready) #dane_dostawy_field ~ .form-row {
    display: none !important;
}

/* ==========================================================================
   2. HIDE UNWANTED ELEMENTS
   ========================================================================== */

/* --- Structural & sidebar --- */
body.woocommerce-checkout #secondary,
body.woocommerce-checkout .widget-area:not(.aura-checkout-sidebar *),
body.woocommerce-checkout .clear {
    display: none !important;
}

/* --- Page title: entry-header (standard Shoptimizer) + bare h1 (simple checkout) --- */
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout .page-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout .site-header h1,
body.woocommerce-checkout .col-full > header,
body.min-ck .site-header h1 {
    display: none !important;
}

/* --- Checkout header: compact, perfectly aligned with content --- */
body.woocommerce-checkout #masthead.site-header {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
    position: relative !important;
    z-index: 100 !important;
}
/* Kill ALL parent theme grid/flex on .main-header, force our layout */
body.woocommerce-checkout #masthead .main-header,
body.woocommerce-checkout #masthead .main-header.col-full {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1040px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    gap: 0 !important;
    min-height: 0 !important;
}
/* Left: branding block */
body.woocommerce-checkout #masthead .site-branding {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-height: 0 !important;
    grid-area: unset !important;
}
body.woocommerce-checkout #masthead .aura-logo-with-badge {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}
/* Logo — override parent clamp() sizing */
body.woocommerce-checkout #masthead .custom-logo-link,
body.woocommerce-checkout #masthead .custom-logo-link img,
body.woocommerce-checkout #masthead .site-branding .custom-logo,
body.woocommerce-checkout #masthead .custom-logo {
    width: auto !important;
    height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 auto !important;
}
/* Badge "100% Polska Marka" */
body.woocommerce-checkout #masthead .aura-polska-badge {
    display: flex !important;
    align-items: center !important;
    border-left: 1px solid #e5e7eb !important;
    padding-left: 14px !important;
    margin: 0 !important;
}
body.woocommerce-checkout #masthead .aura-polska-badge .aura-badge-img {
    width: auto !important;
    height: 32px !important;
    max-height: 32px !important;
}
/* Hide everything not needed: hamburger, cart, search, observer, nav */
body.woocommerce-checkout #masthead .menu-toggle,
body.woocommerce-checkout #masthead .s-observer,
body.woocommerce-checkout #masthead .site-header-cart,
body.woocommerce-checkout #masthead .site-search,
body.woocommerce-checkout #masthead .secondary-navigation,
body.woocommerce-checkout #masthead .menu-overlay {
    display: none !important;
}
/* Right: "Zamówienie" via ::after on main-header */
body.woocommerce-checkout #masthead .main-header.col-full::after {
    content: "Zamówienie" !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    letter-spacing: 0.02em !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* --- Breadcrumbs: all theme & plugin variants --- */
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-checkout nav.woocommerce-breadcrumb,
body.woocommerce-checkout nav.yoast,
body.woocommerce-checkout .site-breadcrumbs,
body.woocommerce-checkout .breadcrumbs,
body.woocommerce-checkout [class*="breadcrumb"] {
    display: none !important;
}

/* --- Shoptimizer checkout progress bar (Koszyk > Wysylka > Potwierdzenie) --- */
body.woocommerce-checkout .checkout-wrap,
body.woocommerce-checkout .checkout-bar,
body.woocommerce-checkout .woocommerce-checkout-steps,
body.woocommerce-checkout .checkout-steps,
body.woocommerce-checkout .shoptimizer-checkout {
    display: none !important;
}

/* --- Shoptimizer coupon wrapper (moved after checkout form by theme) --- */
body.woocommerce-checkout .coupon-wrapper,
body.woocommerce-checkout section.coupon-wrapper {
    display: none !important;
}

/* --- WooCommerce coupon, rewards, section headings --- */
body.woocommerce-checkout .rs_checkout_messages,
body.woocommerce-checkout [class*="rs_checkout"],
body.woocommerce-checkout [class*="sumo_reward"],
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon,
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout #ship-to-different-address {
    display: none !important;
}

/* Hemp Medical: .woocommerce-billing-fields wraps all billing cards */
.aura-checkout-redesign .woocommerce-billing-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* --- Empty .woocommerce-shipping-fields wrapper (always in DOM, never useful) --- */
body.woocommerce-checkout .woocommerce-shipping-fields {
    display: none !important;
}

/* --- TrustMate: official plugin widgets (tm-widget-*) + custom --- */
body.woocommerce-checkout [id^="tm-widget"],
body.woocommerce-checkout [id*="trustmate"],
body.woocommerce-checkout [class*="trustmate"],
body.woocommerce-checkout .trustmate-widget-container,
body.woocommerce-checkout .trustmate-floating,
body.woocommerce-checkout #trustmate-widget,
body.woocommerce-checkout .aura-trustmate-rating {
    display: none !important;
}

/* --- Shoptimizer checkout widget area below payment --- */
body.woocommerce-checkout .cart-custom-field {
    display: none !important;
}

/* --- Old shop_table if Shoptimizer leaks (only direct WC review table, not plugin tables) --- */
body.woocommerce-checkout .woocommerce-checkout-review-order > table.shop_table,
body.woocommerce-checkout #order_review > table.shop_table {
    display: none !important;
}

/* aura-checkout-review-order display is now handled by section 11b (display: contents) */

/* Required asterisk */
body.woocommerce-checkout abbr.required,
body.woocommerce-checkout .required {
    color: #ef4444 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

/* Fix double asterisk: THWCFE + WC both add a required marker.
   Hide the second one (abbr) when a span.required already exists. */
body.woocommerce-checkout label > .required ~ abbr.required {
    display: none !important;
}
body.woocommerce-checkout label > abbr.required ~ .required:not(abbr) {
    display: none !important;
}

/* Optional label */
body.woocommerce-checkout .optional {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    text-transform: lowercase !important;
    letter-spacing: 0 !important;
}

/* ==========================================================================
   3. LOGIN BAR — dark CTA card (PHP template, no JS needed)
   ========================================================================== */
body.woocommerce-checkout .aura-login-bar {
    background: #1a1a1a !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin: 0 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

/* Avatar circle with user icon */
body.woocommerce-checkout .aura-login-bar__avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid #4a4a4a !important;
    color: #999999 !important;
    flex-shrink: 0 !important;
}

body.woocommerce-checkout .aura-login-bar__avatar svg {
    width: 18px !important;
    height: 18px !important;
}

/* Text block: title + subtitle */
body.woocommerce-checkout .aura-login-bar__text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

body.woocommerce-checkout .aura-login-bar__text strong {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

body.woocommerce-checkout .aura-login-bar__text span {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

/* CTA button — olive green pill */
body.woocommerce-checkout .aura-login-bar__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #3f880b !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 10px 22px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: background 0.2s !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
}

body.woocommerce-checkout .aura-login-bar__btn:hover {
    background: #357507 !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Hide WC default login form (replaced by inline AJAX login) */
body.woocommerce-checkout .woocommerce-form-login {
    display: none !important;
}

/* --- Inline login form (inside left column) — compact --- */
body.woocommerce-checkout .aura-login-inline {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin: 0 0 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
}

/* 2-column grid: email + password side by side */
body.woocommerce-checkout .aura-login-inline__fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body.woocommerce-checkout .aura-login-inline__field label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
}

body.woocommerce-checkout .aura-login-inline__field label .required {
    color: #ef4444 !important;
}

body.woocommerce-checkout .aura-login-inline input[type="text"],
body.woocommerce-checkout .aura-login-inline input[type="password"] {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.woocommerce-checkout .aura-login-inline input[type="text"]:focus,
body.woocommerce-checkout .aura-login-inline input[type="password"]:focus {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1) !important;
}

body.woocommerce-checkout .aura-login-inline__row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

body.woocommerce-checkout .aura-login-inline__remember {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    color: #64748b !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

body.woocommerce-checkout .aura-login-inline__remember input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
}

body.woocommerce-checkout .aura-login-inline .button {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 22px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.3 !important;
}

body.woocommerce-checkout .aura-login-inline .button:hover {
    background: #1e293b !important;
}

body.woocommerce-checkout .aura-login-inline .button:disabled {
    opacity: 0.6 !important;
    cursor: wait !important;
}

body.woocommerce-checkout .aura-login-inline__lost {
    margin: 0 0 8px !important;
}

body.woocommerce-checkout .aura-login-inline__lost a {
    color: #3f880b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

body.woocommerce-checkout .aura-login-inline__lost a:hover {
    text-decoration: underline !important;
}

body.woocommerce-checkout .aura-login-inline__social {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
    margin-top: 4px !important;
}

body.woocommerce-checkout .aura-login-inline__social p {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    margin: 0 0 8px !important;
    text-align: center !important;
}

/* Compact social buttons – stacked full-width so text never clips */
body.woocommerce-checkout .aura-login-inline__social .nsl-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.woocommerce-checkout .aura-login-inline__social .nsl-container-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.woocommerce-checkout .aura-login-inline__social .nsl-container-buttons a {
    display: block !important;
    width: 100% !important;
}

body.woocommerce-checkout .aura-login-inline__social .nsl-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
}

body.woocommerce-checkout .aura-login-inline__social .nsl-button-svg-container {
    flex: 0 0 auto !important;
    margin-right: 8px !important;
}

body.woocommerce-checkout .aura-login-inline__social .nsl-button-svg-container svg,
body.woocommerce-checkout .aura-login-inline__social .nsl-button-svg-container img {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

body.woocommerce-checkout .aura-login-inline__social .nsl-button-label-container {
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

body.woocommerce-checkout .aura-login-inline__msg {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body.woocommerce-checkout .aura-login-inline__msg--error {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

/* Open state: soften bottom corners of bar when form visible */
body.woocommerce-checkout .aura-login-bar--open {
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}

body.woocommerce-checkout .aura-login-bar--open + .aura-login-inline {
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    margin-top: 0 !important;
    background: #ffffff !important;
}

/* --- LOGIN/REGISTER TABS --- */
body.woocommerce-checkout .aura-login-tabs {
    display: flex !important;
    gap: 0 !important;
    margin-bottom: 14px !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

body.woocommerce-checkout .aura-login-tab {
    flex: 1 !important;
    padding: 10px 0 !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1.5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: color 0.2s, border-color 0.2s !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

body.woocommerce-checkout .aura-login-tab:hover {
    color: #475569 !important;
}

body.woocommerce-checkout .aura-login-tab--active {
    color: #0f172a !important;
    font-weight: 600 !important;
    border-bottom-color: #3f880b !important;
}

/* --- REGISTER PANEL --- */
body.woocommerce-checkout .aura-register-fields {
    margin-bottom: 10px !important;
}

body.woocommerce-checkout .aura-register-field label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
}

body.woocommerce-checkout .aura-register-field label .required {
    color: #ef4444 !important;
}

body.woocommerce-checkout .aura-register-field input[type="email"],
body.woocommerce-checkout .aura-register-field input[type="password"] {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

body.woocommerce-checkout .aura-register-field input[type="email"]:focus,
body.woocommerce-checkout .aura-register-field input[type="password"]:focus {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1) !important;
}

body.woocommerce-checkout .aura-register-hint {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
}

body.woocommerce-checkout #aura-register-submit {
    width: 100% !important;
}

/* --- SUCCESS MSG --- */
body.woocommerce-checkout .aura-login-inline__msg--success {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

/* ==========================================================================
   4. MAIN 2-COLUMN GRID
   ========================================================================== */
.aura-checkout-redesign {
    display: grid !important;
    grid-template-columns: 7fr 5fr !important;
    gap: 20px !important;
    align-items: start !important;
    padding: 16px 0 48px !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.aura-checkout-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.aura-checkout-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

#customer_details {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* ==========================================================================
   5. SECTION CARDS
   ========================================================================== */
.aura-checkout-section {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 20px 22px 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
}

.aura-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #0f172a !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
}

.aura-section-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* ==========================================================================
   6. FORM FIELDS
   ========================================================================== */

/* Kill inherited floats/widths */
.aura-checkout-redesign .col2-set,
.aura-checkout-redesign .col2-set .col-1,
.aura-checkout-redesign .col2-set .col-2,
.aura-checkout-redesign #customer_details {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* Reset form-row-first/last from WC float-based layout for CSS Grid */
.aura-checkout-redesign .form-row-first,
.aura-checkout-redesign .form-row-last {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* Field grids */
.aura-checkout-section .aura-section-fields,
.aura-checkout-section .woocommerce-billing-fields__field-wrapper,
.aura-checkout-section .woocommerce-additional-fields__field-wrapper,
.thwcfe-checkout-section .thwcfe-field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

/* (removed obsolete .aura-billing-cards rules — v20 uses JS DOM split) */

/* Full-width fields */
.aura-checkout-redesign #billing_address_2_field,
.aura-checkout-redesign #billing_country_field,
.aura-checkout-redesign #shipping_address_1_field,
.aura-checkout-redesign #shipping_address_2_field,
.aura-checkout-redesign #shipping_country_field,
.aura-checkout-redesign #order_comments_field,
.aura-checkout-redesign .form-row-wide,
.aura-checkout-redesign .thwcfe-field-full,
.aura-checkout-redesign #faktura_vat_field,
.aura-checkout-redesign #billing_company_field,
.aura-checkout-redesign #billing_nip_field,
.aura-checkout-redesign #billing_taxno_field,
.aura-checkout-redesign #dane_dostawy_field,
.aura-checkout-redesign #dane_platnosci_field {
    grid-column: 1 / -1;
}

.aura-checkout-redesign .form-row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* Labels */
.aura-checkout-redesign label,
.aura-checkout-redesign .form-row label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

/* Inputs */
.aura-checkout-redesign input[type="text"],
.aura-checkout-redesign input[type="email"],
.aura-checkout-redesign input[type="tel"],
.aura-checkout-redesign input[type="number"],
.aura-checkout-redesign input[type="password"],
.aura-checkout-redesign input[type="date"],
.aura-checkout-redesign select,
.aura-checkout-redesign .select2-container .select2-selection--single,
.aura-checkout-redesign textarea {
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.aura-checkout-redesign textarea {
    height: 80px !important;
    padding: 10px 12px !important;
    resize: vertical !important;
}

/* Focus */
.aura-checkout-redesign input[type="text"]:focus,
.aura-checkout-redesign input[type="email"]:focus,
.aura-checkout-redesign input[type="tel"]:focus,
.aura-checkout-redesign input[type="number"]:focus,
.aura-checkout-redesign input[type="password"]:focus,
.aura-checkout-redesign input[type="date"]:focus,
.aura-checkout-redesign select:focus,
.aura-checkout-redesign textarea:focus,
.aura-checkout-redesign .select2-container--focus .select2-selection--single {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1) !important;
}

/* Validation: invalid */
.aura-checkout-redesign .woocommerce-invalid input,
.aura-checkout-redesign .woocommerce-invalid select,
.aura-checkout-redesign .woocommerce-invalid .select2-selection--single {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* Validation: valid */
.aura-checkout-redesign .woocommerce-validated input,
.aura-checkout-redesign .woocommerce-validated select,
.aura-checkout-redesign .woocommerce-validated .select2-selection--single {
    border-color: #3f880b !important;
}

/* Placeholder */
.aura-checkout-redesign input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Field descriptions */
.aura-checkout-redesign .form-row .description,
.aura-checkout-redesign .form-row p.description {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    margin: 4px 0 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

/* Checkbox — unified global style.
   Authoritative declaration; section 17 adds checked state + ::after checkmark. */
.aura-checkout-redesign input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    border-radius: 3px !important;
    border: 1.5px solid #94a3b8 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transition: border-color 0.15s, background 0.15s !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

/* Checkbox with label inline */
.aura-checkout-redesign .form-row.thwcfe-field-checkbox label,
.aura-checkout-redesign #faktura_vat_field label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #334155 !important;
    cursor: pointer;
}

/* Password field */
.aura-checkout-redesign .password-input {
    position: relative !important;
}

.aura-checkout-redesign .password-input .show-password-input {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
    color: #94a3b8 !important;
}

/* ==========================================================================
   6b. SELECT2 DROPDOWNS
   ========================================================================== */
.select2-container--default .select2-dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 40px !important;
    padding: 0 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3f880b !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #334155 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f0fdf4 !important;
    color: #0f172a !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #dcfce7 !important;
    color: #0f172a !important;
}

.aura-checkout-redesign .select2-container {
    width: 100% !important;
}

.aura-checkout-redesign .select2-container .select2-selection--single {
    display: flex !important;
    align-items: center !important;
}

.aura-checkout-redesign .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 48px !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.aura-checkout-redesign .select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 10px !important;
}

/* ==========================================================================
   6c. PHONE PREFIX — COUNTRY CODE SELECTOR
   ========================================================================== */
.ac-phone-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    overflow: visible !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ac-phone-wrapper input[type="tel"] {
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    outline: none !important;
    box-shadow: none !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: 0 !important;
    padding-left: 12px !important;
}

.ac-phone-wrapper input[type="tel"]:focus {
    box-shadow: none !important;
}

/* Focus ring on the whole wrapper */
.ac-phone-wrapper:focus-within {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63,136,11,0.1) !important;
}

.ac-phone-prefix {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    z-index: 5 !important;
    padding: 0 8px 0 12px !important;
    cursor: pointer !important;
    border-right: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 11px 0 0 11px !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    flex-shrink: 0 !important;
}

.ac-phone-prefix:hover {
    background: #f1f5f9 !important;
}

.ac-phone-prefix__flag {
    border-radius: 2px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

.ac-phone-prefix__dial {
    white-space: nowrap !important;
}

.ac-phone-prefix__arrow {
    flex-shrink: 0 !important;
    color: #94a3b8 !important;
    transition: transform 0.2s !important;
    margin-left: 2px !important;
}

.ac-phone-prefix--open .ac-phone-prefix__arrow {
    transform: rotate(180deg) !important;
}

/* Dropdown list */
.ac-phone-dd {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: -1px !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 4px !important;
    min-width: 200px !important;
    max-height: 260px !important;
    overflow-y: auto !important;
}

.ac-phone-prefix--open .ac-phone-dd {
    display: block !important;
}

.ac-phone-dd__item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 10px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #334155 !important;
    transition: background 0.15s !important;
}

.ac-phone-dd__item:hover {
    background: #f1f5f9 !important;
}

.ac-phone-dd__item img {
    border-radius: 2px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

.ac-phone-dd__code {
    font-weight: 600 !important;
    min-width: 24px !important;
}

.ac-phone-dd__dial {
    color: #64748b !important;
    margin-left: auto !important;
}

/* Phone validation error */
.ac-phone-error {
    display: flex !important;
    align-items: center !important;
    color: #dc2626 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 6px 0 0 !important;
    padding: 6px 10px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
}

.ac-phone-error__count {
    color: #9ca3af !important;
    margin-left: 4px !important;
}

/* Phone input red border when invalid */
.form-row.woocommerce-invalid .ac-phone-wrapper {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.form-row.woocommerce-invalid .ac-phone-wrapper input[type="tel"] {
    color: #dc2626 !important;
}

/* ==========================================================================
   6d. THWCFE ELEMENTS INSIDE BILLING CARD
   ========================================================================== */

/* Hide THWCFE "Dane platnosci" heading (redundant with our section title) */
.aura-checkout-section #dane_platnosci_field {
    display: none !important;
}

/* Hide ALL THWCFE sections by default — only opcje_dodatkowe is whitelisted below */
#customer_details > .thwcfe-checkout-section {
    display: none !important;
}
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe {
    display: grid !important;
}

/* Also hide any THWCFE section that leaks inside billing card or outside #customer_details */
.aura-checkout-section .thwcfe-checkout-section,
.aura-checkout-left > .thwcfe-checkout-section {
    display: none !important;
}

/* ── WHITELIST: hide ALL stray elements in .aura-checkout-left ──
   Only these direct children should be visible:
     .aura-login-bar (login CTA bar, rendered via PHP hook)
     #customer_details
     .aura-checkout-section (notes card, etc.)
     .aura-checkout-delivery (JS-created)
   Everything else (THWCFE duplicates, WC express buttons, WC order
   attribution, Elementor Pro wrappers, etc.) gets hidden. */
.aura-checkout-left > *:not(.aura-login-bar):not(.aura-login-inline):not(#customer_details):not(.aura-checkout-section):not(.aura-checkout-delivery):not(.aura-checkout-extra) {
    display: none !important;
}

/* Inside #customer_details — whitelist:
     .aura-checkout-section[data-section] (billing card)
     .woocommerce-billing-fields (wraps all billing cards on Hemp Medical)
     .thwcfe-checkout-section.opcje_dodatkowe (only visible THWCFE section)
     .aura-checkout-delivery (JS-created delivery card)
     .woocommerce-account-fields (guest registration)
   Everything else (dane_dostawy, adres_dostawy, shipping-fields,
   pay-buttons, empty wrappers) gets hidden. */
#customer_details > *:not(.aura-checkout-section):not(.woocommerce-billing-fields):not(.thwcfe-checkout-section):not(.aura-checkout-delivery):not(.aura-checkout-extra):not(.woocommerce-account-fields) {
    display: none !important;
}

/*
 * "Dane do dostawy" card - created by JS (splitBillingCard)
 * JS moves delivery fields (country, address, city, postcode)
 * from inside the billing card into a new .aura-checkout-delivery card.
 */
.aura-checkout-delivery {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 20px 22px 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.aura-delivery-fields-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.aura-delivery-fields-wrapper .form-row {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

/* Full-width delivery fields */
.aura-delivery-fields-wrapper .form-row-wide,
.aura-delivery-fields-wrapper #billing_address_1_field,
.aura-delivery-fields-wrapper #billing_address_2_field,
.aura-delivery-fields-wrapper #billing_country_field {
    grid-column: 1 / -1 !important;
}

/* City + Postcode side by side (override form-row-wide) */
.aura-delivery-fields-wrapper #billing_city_field,
.aura-delivery-fields-wrapper #billing_postcode_field {
    grid-column: auto !important;
}

/* Hide the "Dane do faktury" heading field (JS removes it, belt-and-suspenders) */
.aura-checkout-section #billing__field {
    display: none !important;
}

/* --- VAT invoice toggle (inside card 1) --- */
.ac-vat-toggle {
    grid-column: 1 / -1 !important;
    margin-top: 4px !important;
    padding: 0 !important;
}
.ac-vat-toggle label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}
.ac-vat-toggle .input-checkbox {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    accent-color: #3f880b;
    margin: 0 !important;
    cursor: pointer;
}
/* --- VAT invoice toggle (inside card 1) ---
   Visibility is controlled entirely by JS (inline style).
   CSS only handles layout when visible. */
.ac-vat-fields {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 4px;
}
.ac-vat-fields .form-row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}
/* Hide heading + invoice fields on page load (before JS runs).
   JS will take over visibility completely via inline style. */
.aura-checkout-redesign #billing__field {
    display: none;
}

/* ==========================================================================
   7. THWCFE OPCJE DODATKOWE CARD
   Only opcje_dodatkowe is visible; all other THWCFE sections are hidden above.
   All properties use !important to prevent any overrides from style.css,
   THWCFE plugin CSS, or WooCommerce defaults.
   ========================================================================== */
/* Opcje dodatkowe: section card + single-column layout.
   THWCFE renders .form-row elements DIRECTLY inside .opcje_dodatkowe
   with NO intermediate .thwcfe-field-wrapper div. Grid must be on section. */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 20px 22px 18px !important;
    border: 1px solid #e2e8f0 !important;
    border-style: solid !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
    outline: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: 10px !important;
}

/* Section headings — full-width across grid */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe > h3,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe > .thwcfe-section-title {
    grid-column: 1 / -1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
}

/* Force ALL grid children to respect grid — override THWCFE form-row-wide */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe > .form-row {
    width: auto !important;
    float: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* --- Base row for ALL opcje_dodatkowe fields --- */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Override THWCFE form-row-wide on checkbox cards */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #pakowanie_ozd_field.form-row-wide,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #kon_diet_field.form-row-wide {
    width: auto !important;
    float: none !important;
}

/* --- Checkbox fields: 2-row card via CSS Grid --- */
/* Row 1: [icon] [name ................. price]
   Row 2:        [+ Wybierz] [?]
   Row 3:        [info-panel if open]            */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #pakowanie_ozd_field,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #kon_diet_field {
    display: grid !important;
    grid-template-columns: 32px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 6px !important;
    align-items: center !important;
    cursor: pointer;
    padding: 12px 14px !important;
    overflow: visible !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    position: relative !important;
}

/* Icon — spans both rows, vertically centered */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-icon {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
}

/* Name + price row */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #pakowanie_ozd_field > .woocommerce-input-wrapper,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #kon_diet_field > .woocommerce-input-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

/* Actions row: badge + tooltip grouped in .ac-card-actions */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-card-actions {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-self: start !important;
}

/* Info panel when open — spans full width */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-info-panel {
    grid-column: 1 / -1 !important;
}

/* Hide any stray direct children that are not part of the grid layout */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row > .description,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row > .tooltip-content {
    display: none !important;
}

#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #pakowanie_ozd_field:hover,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #kon_diet_field:hover {
    border-color: #3f880b !important;
    background: #fafff6 !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.06) !important;
}

/* Checked state — strong green tint + glow */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row.ac-option-checked {
    border-color: #3f880b !important;
    border-width: 2px !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.12), 0 2px 8px rgba(63, 136, 11, 0.10) !important;
}
/* Checked badge: solid green "✓ Wybrano" */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row.ac-option-checked .ac-option-badge {
    background: #3f880b !important;
    color: #ffffff !important;
    border-color: #3f880b !important;
}
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row.ac-option-checked .ac-option-icon {
    background: #dcfce7 !important;
    color: #3f880b !important;
}

/* Card icon — visual styling (grid placement is above) */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
}

#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-icon svg {
    width: 15px !important;
    height: 15px !important;
}

.ac-option-checked .ac-option-icon {
    background: #dcfce7 !important;
    color: #3f880b !important;
}

/* --- "+ Wybierz" action badge — inside .ac-card-actions on row 2 --- */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #3f880b !important;
    background: #ffffff !important;
    border: 1.5px solid #3f880b !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
}

#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-badge:hover {
    background: #f0fdf4 !important;
}

/* Checkbox label — inline in row */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row label.checkbox {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: inline !important;
    border: none !important;
    background: none !important;
    line-height: 1.3 !important;
    position: static !important;
}

/* Kill legacy ::before icons from style.css (.pack_label, .diet_label) —
   our JS-injected .ac-option-icon is the sole icon source now. */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row label.checkbox::before,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row label.checkbox::after {
    content: none !important;
    display: none !important;
}

/* Hide the original checkbox — we use the card click + checked class instead.
   Must override global min-width:18px and border from .aura-checkout-redesign input[type="checkbox"]. */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Description — hidden (info available via ? tooltip) */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #pakowanie_ozd_field .description,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe #kon_diet_field .description {
    display: none !important;
}

/* Price text — right-aligned in row 1 */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-price {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    margin-left: auto !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

/* --- ? icon wrapper — inside .ac-card-actions, next to badge --- */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .tooltip-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    overflow: visible !important;
    cursor: pointer !important;
}

/* Hide THWCFE native tooltip text ("Dowiedz się więcej o...") — CSS fallback before JS */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .tooltip-text-wrapper,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .tooltip-text {
    display: none !important;
}

/* --- ? icon circle --- */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .tooltip-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s !important;
    flex-shrink: 0 !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .tooltip-icon:hover,
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row.ac-info-open .tooltip-icon {
    background: #3f880b !important;
    color: #ffffff !important;
}

/* --- Info panel: description below the card (hidden by default) --- */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row > .ac-info-panel {
    display: none !important;
    grid-column: 1 / -1 !important;
    margin: 2px 0 0 !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* When card has .ac-info-open: show the info panel */
#customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row.ac-info-open > .ac-info-panel {
    display: block !important;
    grid-column: 1 / -1 !important;
}

/* (THWCFE .tooltip-content hide rule is in the grid section above) */

/* ==========================================================================
   7c. ACCOUNT FIELDS (guest registration)
   ========================================================================== */
/* Account fields - hidden by default, JS shows via .ac-has-content if create-account exists */
.woocommerce-account-fields {
    display: none !important;
}

.woocommerce-account-fields.ac-has-content {
    display: block !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 20px 22px 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
}

.woocommerce-account-fields .create-account {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.woocommerce-account-fields .form-row-wide {
    grid-column: 1 / -1 !important;
}

/* Account fields — form rows */
.woocommerce-account-fields .form-row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce-account-fields .form-row label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

.woocommerce-account-fields input[type="date"],
.woocommerce-account-fields input[type="text"],
.woocommerce-account-fields input[type="password"],
.woocommerce-account-fields input[type="email"] {
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-account-fields input:focus {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1) !important;
}

.woocommerce-account-fields label.checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

/* ==========================================================================
   7d. SHIPPING FIELDS - hidden via section 2 (always-empty container)
   ========================================================================== */

/* ==========================================================================
   8. ORDER NOTES
   ========================================================================== */
.aura-checkout-notes .woocommerce-additional-fields {
    margin: 0 !important;
}

/* Hide duplicate label from WC textarea field (card already has h3 title) */
.aura-checkout-notes #order_comments_field > label {
    display: none !important;
}

.aura-checkout-notes textarea {
    min-height: 80px !important;
}

/* ==========================================================================
   9. CHECKOUT TRUST STRIP (trust items + payment icons — in footer)
   ========================================================================== */
/* ===========================================================================
   10. CHECKOUT TRUST STRIP  (x-kom layout: full-width bar + payment row)
   Footer sits OUTSIDE .col-full → strip is naturally full-viewport-width.
   =========================================================================== */
/* Footer bg on checkout — same as page bg so strip card stands out */
body.woocommerce-checkout .aura-custom-footer {
    background: #f5f5f7 !important;
    padding: 0 16px 0 !important;
}

/* Hide ALL regular footer sections on checkout — only trust strip + mini bar visible */
body.woocommerce-checkout .aura-footer-features,
body.woocommerce-checkout .aura-footer-main,
body.woocommerce-checkout .aura-footer-bottom {
    display: none !important;
}

.aura-checkout-strip {
    max-width: 1040px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

/* ---- Trust row ---- */
.aura-checkout-strip__trust {
    display: flex !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 18px 24px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f2 !important;
}

.aura-checkout-strip__item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.aura-checkout-strip__item + .aura-checkout-strip__item::before {
    display: none !important;
}

/* Icon in rounded container */
.aura-checkout-strip__item svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    padding: 6px !important;
    background: rgba(63, 136, 11, 0.08) !important;
    border: 1px solid rgba(63, 136, 11, 0.15) !important;
    border-radius: 8px !important;
    color: #3f880b !important;
    stroke: #3f880b !important;
    box-sizing: content-box !important;
}

/* ---- Payment icons row ---- */
.aura-checkout-strip__payments {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px !important;
    flex-wrap: wrap !important;
    padding: 16px 40px 18px !important;
    margin: 0 !important;
    border: none !important;
}

.aura-checkout-strip__payments img {
    height: 20px !important;
    width: auto !important;
    opacity: 0.4 !important;
    transition: opacity 0.15s ease !important;
    filter: grayscale(30%) !important;
}

.aura-checkout-strip__payments img:hover {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
}

/* ---- Checkout mini footer (dark bar, replaces full footer) ---- */
.aura-checkout-mini-footer {
    background: transparent !important;
    margin-top: 0 !important;
}

.aura-checkout-mini-footer__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
    padding: 24px 32px !important;
    gap: 40px !important;
}

.aura-checkout-mini-footer__left {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.aura-checkout-mini-footer__question {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: inline !important;
}

.aura-checkout-mini-footer__phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
    margin-top: 2px !important;
}

.aura-checkout-mini-footer__phone:hover,
.aura-checkout-mini-footer__email:hover {
    color: #1e293b !important;
}

.aura-checkout-mini-footer__phone svg,
.aura-checkout-mini-footer__email svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

.aura-checkout-mini-footer__email {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

.aura-checkout-mini-footer__right {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
    max-width: 420px !important;
    text-align: right !important;
}

.aura-checkout-mini-footer__right a {
    color: #64748b !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.aura-checkout-mini-footer__right a:hover {
    color: #1e293b !important;
}

/* ==========================================================================
   11. RIGHT COLUMN / SIDEBAR
   ========================================================================== */
.aura-checkout-sidebar {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 20px 22px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    position: sticky !important;
    top: 20px !important;
}

.aura-checkout-sidebar #order_review_heading {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #0f172a !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

/* Kill Shoptimizer sticky/fixed */
.aura-checkout-sidebar #order_review,
.aura-checkout-sidebar .woocommerce-checkout-review-order,
#order_review,
#order_review.payment-fixed {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    top: auto !important;
    box-shadow: none !important;
}

/* ==========================================================================
   11b. SIDEBAR SECTION ORDERING — PHP source order (v5.0)

   PHP hooks on woocommerce_checkout_order_review render in correct order:
     pri 10: .aura-review-fragment-top   (items + shipping)
     pri 20: #aura-payment-heading + #payment (methods)
     pri 25: .aura-review-fragment-bottom (coupon + totals)
     pri 30: .aura-place-order-wrap      (terms + submit)

   No CSS order or JS reorder needed — HTML is already in visual order.
   ========================================================================== */

/* Fragment wrappers are transparent block containers */
.aura-review-fragment-top,
.aura-review-fragment-bottom {
    display: block !important;
    width: 100% !important;
}

/* Safety: hide stale/duplicate sections (JS dedup() cleans, CSS is fallback) */
#order_review > .aura-review-fragment-top ~ .aura-review-fragment-top,
#order_review > .aura-review-fragment-bottom ~ .aura-review-fragment-bottom,
#order_review > .aura-place-order-wrap ~ .aura-place-order-wrap {
    display: none !important;
}

/* Hide BlockUI overlays */
#order_review > .blockUI,
#payment > .blockUI,
.woocommerce-checkout-payment > .blockUI {
    display: none !important;
}

/* ==========================================================================
   12. PRODUCT ITEMS
   ========================================================================== */
.aura-order-items {
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.aura-order-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 0 !important;
    flex-wrap: nowrap !important;
}

.aura-order-item + .aura-order-item {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 8px !important;
    margin-top: 2px !important;
}

.aura-order-item-thumb {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
}

.aura-order-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.aura-order-item-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.aura-order-item-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.aura-order-item-qty {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 2px !important;
    font-weight: 400 !important;
}

.aura-order-item-meta {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
}

.aura-order-item-meta dt,
.aura-order-item-meta dd {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aura-order-item-price {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    text-align: right !important;
}

/* Kill any stray clear divs inside order items (from WC filters) */
.aura-order-item .clear,
.aura-order-item-qty .clear {
    display: none !important;
}

/* --- Quantity controls + remove button --- */
.aura-order-item-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

.aura-qty-control {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    height: 26px !important;
}

.aura-qty-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s, color 0.15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.aura-qty-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.aura-qty-btn:active {
    background: #cbd5e1 !important;
}

.aura-qty-value {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 26px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-align: center !important;
    user-select: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    padding: 0 2px !important;
}

.aura-item-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    transition: color 0.15s, background 0.15s !important;
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.aura-item-remove:hover {
    color: #ef4444 !important;
    background: #fef2f2 !important;
}

.aura-item-remove svg {
    width: 14px !important;
    height: 14px !important;
}

/* Loading state for individual item */
.aura-order-item.aura-item-loading {
    opacity: 0.5 !important;
    pointer-events: none !important;
    transition: opacity 0.2s !important;
}

/* ==========================================================================
   13. SHIPPING METHODS IN SIDEBAR
   ========================================================================== */
.aura-sidebar-section {
    padding: 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.aura-sidebar-section-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

/* --- Override style.css AND Kirki inline #shipping_method rules ---
   Double specificity (.aura-checkout-redesign #shipping_method) beats
   Kirki inline <style> that also uses #shipping_method + !important. */
.aura-checkout-redesign #shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.aura-checkout-redesign #shipping_method li {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 6px;
    position: relative;
}

.aura-checkout-redesign #shipping_method input[type="radio"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.aura-checkout-redesign #shipping_method input[type="radio"]+label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    cursor: pointer;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 1px 8px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    border-bottom: none !important;
}

.aura-checkout-redesign #shipping_method label .shipping-name-wrap {
    display: block !important;
    min-width: 0 !important;
}

.aura-checkout-redesign #shipping_method label .woocommerce-Price-amount {
    font-weight: 600 !important;
    white-space: nowrap;
}

.aura-checkout-redesign #shipping_method label img,
.aura-checkout-redesign #shipping_method label .shipping-logo {
    height: 26px !important;
    width: auto !important;
    max-width: 60px !important;
    max-height: 26px !important;
    object-fit: contain !important;
    margin: 0 !important;
    vertical-align: middle;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    align-self: center;
}

.aura-checkout-redesign #shipping_method li.ac-selected,
.aura-checkout-redesign #shipping_method li:has(input[type="radio"]:checked) {
    border-color: #3f880b !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.06) !important;
}

.aura-checkout-redesign #shipping_method input[type="radio"]:checked {
    border-color: #3f880b !important;
    background: #3f880b !important;
}

/* Hide stray "Wysyłka" text node (WC package name) */
.aura-sidebar-shipping {
    font-size: 0 !important;
}
.aura-sidebar-shipping * {
    font-size: 12px !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods li {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    position: relative !important;
    margin-bottom: 0 !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods li:hover {
    border-color: #3f880b !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods li.ac-selected,
.aura-sidebar-shipping .woocommerce-shipping-methods li:has(input[type="radio"]:checked) {
    border-color: #3f880b !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.06) !important;
}

/* Hide Przelewy24 Raty on checkout */
.aura-checkout-sidebar .wc_payment_methods li.payment_method_p24-online-payments-303 {
    display: none !important;
}

/* Custom radio buttons */
.aura-sidebar-shipping .woocommerce-shipping-methods input[type="radio"],
.aura-checkout-sidebar .wc_payment_methods input[type="radio"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: border-color 0.2s, background 0.2s;
}

.aura-sidebar-shipping .woocommerce-shipping-methods input[type="radio"]:checked,
.aura-checkout-sidebar .wc_payment_methods input[type="radio"]:checked {
    border-color: #3f880b !important;
    background: #3f880b !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods input[type="radio"]:checked::after,
.aura-checkout-sidebar .wc_payment_methods input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    cursor: pointer;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 1px 8px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

/* Shipping name wrapper: keeps carrier name + subtitle in one grid cell */
.aura-sidebar-shipping .woocommerce-shipping-methods label .shipping-name-wrap {
    display: block !important;
    min-width: 0 !important;
}

/* Shipping subtitle: below the carrier name */
.aura-sidebar-shipping .woocommerce-shipping-methods label .shipping-sub {
    display: block !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
}

/* Price: column 3 */
.aura-sidebar-shipping .woocommerce-shipping-methods label .woocommerce-Price-amount {
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Shipping logos */
.aura-sidebar-shipping .woocommerce-shipping-methods label img,
.aura-sidebar-shipping .woocommerce-shipping-methods label .shipping-logo {
    height: 26px !important;
    width: auto !important;
    max-width: 60px !important;
    max-height: 26px !important;
    object-fit: contain !important;
    margin: 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    align-self: center;
}

/* Free shipping badge */
.aura-shipping-free-badge {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #3f880b !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
}

.aura-sidebar-shipping .woocommerce-shipping-destination {
    display: none !important;
}

.woocommerce-shipping-totals {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* ─── CLICKABLE CARD — JS click handler on LI (v18.0) ───
   Entire card is clickable via JS (aura-checkout.js).
   Uses .prop('checked', true).trigger('change') for shipping,
   .trigger('click') for payment. No native click = no double-fire. */

/* Hide sub-content (InPost map, ORLEN dropdown, buttons, locker info)
   inside non-selected shipping LIs. Only the radio + label row stays visible.
   Server renders them conditionally, but during AJAX transition they can flash. */
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > div:not(:empty),
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > a,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > button,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > .shipping-pickup-store,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > .easypack-widget,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > [class*="inpost"],
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > [class*="orlen"],
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > .paczkomat-info,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > .paczkomat-select,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > #selected-paczkomat,
.aura-checkout-redesign #shipping_method li:not(.ac-selected) > .punkt-odbioru {
    display: none !important;
}

/* InPost / ORLEN within shipping - wrap to full width below radio+label */
.aura-sidebar-shipping .woocommerce-shipping-methods li > .shipping-pickup-store,
.aura-sidebar-shipping .woocommerce-shipping-methods li > .easypack-widget,
.aura-sidebar-shipping .woocommerce-shipping-methods li > [class*="inpost"],
.aura-sidebar-shipping .woocommerce-shipping-methods li > [class*="orlen"],
.aura-sidebar-shipping .woocommerce-shipping-methods li > .paczkomat-info,
.aura-sidebar-shipping .woocommerce-shipping-methods li > .paczkomat-select,
.aura-sidebar-shipping .woocommerce-shipping-methods li > div:not(:first-child),
.aura-sidebar-shipping .woocommerce-shipping-methods li > a,
.aura-sidebar-shipping .woocommerce-shipping-methods li > button {
    flex-basis: 100%;
    margin-top: 4px;
    font-size: 12px;
}

.aura-sidebar-shipping .shipping-pickup-store,
.aura-sidebar-shipping .easypack-widget,
.aura-sidebar-shipping [class*="inpost"],
.aura-sidebar-shipping [class*="orlen"],
.aura-sidebar-shipping .paczkomat-info,
.aura-sidebar-shipping .paczkomat-select {
    font-size: 12px !important;
}

/* InPost Paczkomat — selected point details */
.aura-sidebar-shipping #selected-paczkomat,
.woocommerce-shipping-methods #selected-paczkomat {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: #334155 !important;
    text-align: left !important;
    margin: 6px 0 2px !important;
    padding: 8px 10px !important;
    background: #f0fdf4 !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    flex-basis: 100% !important;
    word-break: break-word !important;
}

.aura-sidebar-shipping #selected-paczkomat strong,
.woocommerce-shipping-methods #selected-paczkomat strong {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 11px !important;
    display: block !important;
    margin-bottom: 2px !important;
}

/* Paczkomat / InPost buttons — clean soft style */
.aura-sidebar-shipping .easypack-widget button,
.aura-sidebar-shipping [class*="inpost"] button,
.aura-sidebar-shipping .paczkomat-select button,
.aura-sidebar-shipping .woocommerce-shipping-methods li button,
.aura-sidebar-shipping .woocommerce-shipping-methods li a.button,
.aura-sidebar-shipping .woocommerce-shipping-methods li .button {
    background: #1e293b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center !important;
}

.aura-sidebar-shipping .easypack-widget button:hover,
.aura-sidebar-shipping [class*="inpost"] button:hover,
.aura-sidebar-shipping .paczkomat-select button:hover,
.aura-sidebar-shipping .woocommerce-shipping-methods li button:hover,
.aura-sidebar-shipping .woocommerce-shipping-methods li a.button:hover {
    background: #0f172a !important;
}

.aura-sidebar-shipping select {
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Free shipping */
.aura-sidebar-shipping .free-shipping-badge,
.aura-sidebar-shipping .woocommerce-shipping-methods label .free-shipping {
    color: #3f880b !important;
    font-weight: 600 !important;
}

/* Orlen Paczka / Paczka w Ruchu — pickup point container within shipping LI */
.aura-sidebar-shipping .woocommerce-shipping-methods li .punkt-odbioru,
.aura-sidebar-shipping .woocommerce-shipping-methods li [class*="paczka_w_ruchu"],
.aura-sidebar-shipping .woocommerce-shipping-methods li .orlen-paczka-container {
    flex-basis: 100% !important;
    font-size: 12px !important;
    margin-top: 6px !important;
}

/* Orlen heading within shipping LI */
.aura-sidebar-shipping .woocommerce-shipping-methods li > strong,
.aura-sidebar-shipping .woocommerce-shipping-methods li .punkt-odbioru-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    display: block !important;
    margin: 6px 0 4px !important;
    flex-basis: 100% !important;
}

/* Orlen select2 dropdown within shipping LI */
.aura-sidebar-shipping .woocommerce-shipping-methods li .select2-container {
    width: 100% !important;
    font-size: 12px !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods li .select2-container .select2-selection--single {
    height: 36px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 12px !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods li .select2-selection__rendered {
    font-size: 12px !important;
    color: #0f172a !important;
    line-height: 36px !important;
    padding: 0 !important;
}

.aura-sidebar-shipping .woocommerce-shipping-methods li .select2-selection__arrow {
    height: 36px !important;
    right: 6px !important;
}

/* ORLEN pickup container moved inside LI by JS */
.ac-orlen-pickup {
    flex-basis: 100% !important;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    background: #f0fdf4 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
}

.ac-orlen-pickup strong {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.ac-orlen-pickup .punkt-odbioru {
    margin: 0 !important;
    padding: 0 !important;
}

.ac-orlen-pickup .select2-container {
    width: 100% !important;
}

.ac-orlen-pickup .select2-selection--single {
    height: 36px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 12px !important;
}

/* Delivery time badge inside shipping labels */
.ac-delivery-badge {
    display: block !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.3 !important;
    grid-column: 2 / -1 !important;
}

/* Loading animation during AJAX */
.ac-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s !important;
}

.ac-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
    border: 2px solid #e2e8f0 !important;
    border-top-color: #3f880b !important;
    border-radius: 50% !important;
    animation: ac-spin 0.6s linear infinite !important;
    z-index: 10 !important;
}

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

/* ==========================================================================
   14. PAYMENT METHODS IN SIDEBAR
   ========================================================================== */
/* Payment heading (rendered by PHP before #payment, persists across AJAX) */
.aura-payment-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 14px 0 8px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.aura-checkout-sidebar .woocommerce-checkout-payment::before {
    display: none !important;
}

.aura-checkout-sidebar .wc_payment_methods {
    list-style: none !important;
    padding: 0 0 14px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.aura-checkout-sidebar .wc_payment_methods li {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.aura-checkout-sidebar .wc_payment_methods li:hover {
    border-color: #3f880b !important;
}

.aura-checkout-sidebar .wc_payment_methods li.ac-selected,
.aura-checkout-sidebar .wc_payment_methods li:has(input[type="radio"]:checked) {
    border-color: #3f880b !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.06) !important;
}

.aura-checkout-sidebar .wc_payment_methods input[type="radio"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.aura-checkout-sidebar .wc_payment_methods label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    line-height: 1.4 !important;
}

/* Payment logos inside label — placed BEFORE text via order:-1 */
.aura-checkout-sidebar .wc_payment_methods label img {
    max-height: 22px !important;
    width: auto !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    order: -1 !important;
}

.aura-checkout-sidebar .wc_payment_methods .payment_box {
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    border: none !important;
    flex-basis: 100% !important;
    line-height: 1.5 !important;
}

.aura-checkout-sidebar .wc_payment_methods .payment_box::before {
    display: none !important;
}

.aura-checkout-sidebar .wc_payment_methods .payment_box img {
    max-height: 24px !important;
    width: auto !important;
    margin: 4px 4px 0 0 !important;
}

.aura-checkout-sidebar .wc_payment_methods .payment_box p {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.aura-checkout-sidebar .wc_payment_methods .payment_box p:last-child {
    margin-bottom: 0 !important;
}

/* #payment override — reset WC/Shoptimizer default box styling.
   #payment now contains ONLY the payment methods list (no .place-order).
   .aura-place-order-wrap is a separate sibling. */
#payment {
    display: block !important;  /* override any display:contents remnant */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* .aura-place-order-wrap — terms, checkboxes, submit button */
.aura-place-order-wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.aura-place-order-wrap div.form-row {
    padding: 14px 0 0 !important;
    margin: 0 !important;
}


/* ==========================================================================
   15. DISCOUNT TABS (Kod rabatowy | Aura Points)
   ========================================================================== */
.aura-coupon-section {
    padding: 0 !important;
    margin: 0 !important;
}

.aura-coupon-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #f1f5f9 !important;
}

/* --- Tab Container --- */
.aura-discount-tabs {
    padding: 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
}

/* --- Tab Navigation --- */
.aura-discount-tabs__nav {
    display: flex !important;
    gap: 0 !important;
    margin-bottom: 12px !important;
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 3px !important;
}

.aura-tab-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.aura-tab-btn:hover {
    color: #0f172a !important;
}

.aura-tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.aura-tab-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 20px !important;
    min-width: 20px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: #3f880b !important;
    border-radius: 10px !important;
    line-height: 1 !important;
}

/* --- Tab Panels --- */
.aura-tab-panel {
    display: none !important;
}

.aura-tab-panel.active {
    display: block !important;
}

/* --- Coupon Tab (Tab 1) --- */
#custom-coupon-field {
    margin: 0 !important;
    padding: 0 !important;
}

#custom-coupon-fields {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

#custom-coupon-fields .form-row-first {
    flex: 1;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#custom-coupon-fields .form-row-last {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#custom_coupon_code {
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#custom_coupon_code:focus {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1) !important;
    outline: none !important;
}

#apply_custom_coupon {
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    white-space: nowrap !important;
    transition: background 0.2s;
}

#apply_custom_coupon:hover {
    background: #1e293b !important;
}

#custom_coupon_message {
    width: 100% !important;
    flex-basis: 100% !important;
}

#custom_coupon_message .woocommerce-message,
#custom_coupon_message .woocommerce-error {
    font-size: 13px !important;
    padding: 8px 12px !important;
    margin: 8px 0 0 !important;
    border-radius: 8px !important;
}

#custom-coupon-fields .clear {
    display: none;
}

/* --- Aura Points Tab (Tab 2) --- */
.aura-points-panel {
    padding: 0 !important;
}

.aura-points-balance {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-bottom: 10px !important;
}

.aura-points-balance__label {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.aura-points-balance__value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #3f880b !important;
}

.aura-points-balance__money {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Points slider */
.aura-points-slider-wrap {
    margin-bottom: 10px !important;
}

.aura-points-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    border-radius: 3px !important;
    background: #e2e8f0 !important;
    outline: none !important;
    cursor: pointer !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aura-points-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #3f880b !important;
    cursor: pointer !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

.aura-points-slider::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #3f880b !important;
    cursor: pointer !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

.aura-points-slider__labels {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
}

.aura-points-redeem__row {
    display: flex !important;
    gap: 8px !important;
}

#aura_points_input {
    flex: 1 !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    /* Hide spin buttons */
    -moz-appearance: textfield !important;
}

#aura_points_input::-webkit-outer-spin-button,
#aura_points_input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

#aura_points_input:focus {
    border-color: #3f880b !important;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1) !important;
    outline: none !important;
}

#aura_apply_points {
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #3f880b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    white-space: nowrap !important;
    transition: background 0.2s;
}

#aura_apply_points:hover {
    background: #357309 !important;
}

#aura_points_message {
    margin-top: 8px !important;
}

#aura_points_message .woocommerce-message,
#aura_points_message .woocommerce-error {
    font-size: 13px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.aura-points-earn {
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #3f880b !important;
    font-weight: 500 !important;
}

.aura-points-earn:empty {
    display: none !important;
    margin: 0 !important;
}

.aura-points-earn__icon {
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Not logged in state */
.aura-points-login {
    text-align: center !important;
    padding: 8px 0 !important;
}

.aura-points-login p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 0 8px !important;
}

.aura-points-login-link {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #3f880b !important;
    text-decoration: underline !important;
}

.aura-points-unavailable p {
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 8px 0 !important;
}

/* ==========================================================================
   16. ORDER TOTALS
   ========================================================================== */
/* Totals - stays inside .aura-checkout-review-order (AJAX-safe) */
.aura-order-totals {
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.aura-totals-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 0 !important;
}

.aura-totals-label {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
}

.aura-totals-value {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
}

.aura-totals-discount {
    background: #f0fdf4 !important;
    border: 1.5px dashed #86efac !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
    margin: 4px 0 !important;
    position: relative !important;
}

.aura-totals-discount .aura-totals-label {
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.aura-totals-discount .aura-totals-label .woocommerce-Price-amount {
    font-weight: 500 !important;
}

.aura-totals-discount .aura-totals-value {
    color: #16a34a !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

.aura-totals-discount .aura-totals-value a {
    color: #94a3b8 !important;
    font-size: 10px !important;
    text-decoration: none !important;
    margin-left: 4px !important;
}

.aura-totals-discount .aura-totals-value a:hover {
    color: #ef4444 !important;
}

.aura-totals-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 0 !important;
    margin-top: 8px !important;
    border-top: 2px solid #e2e8f0 !important;
}

.aura-totals-total-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.aura-totals-total-value {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.aura-totals-total-value .includes_tax {
    display: block !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    text-align: right !important;
}

/* ==========================================================================
   17. TERMS, NEWSLETTER & PLACE ORDER
   ========================================================================== */

/* Checked state + checkmark (pairs with section 6 base styles) */
.aura-checkout-redesign input[type=checkbox]:checked {
    border-color: #3f880b !important;
    background: #3f880b !important;
}
.aura-checkout-redesign input[type=checkbox]:checked::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 4px !important;
    top: 1px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper {
    padding: 16px 0 0 !important;
}

.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0 !important;
    padding: 0 !important;
}

.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper p {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin: 0 0 8px !important;
}

.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper label {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}
.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper a {
    color: #3f880b !important;
    text-decoration: underline !important;
}

/* "Zaznacz wszystko" */
.aura-checkout-sidebar .woocommerce-terms-and-conditions-wrapper .zaznacz-wszystko,
.aura-checkout-sidebar .zaznacz-wszystko {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    margin-bottom: 10px !important;
    cursor: pointer;
}

/* Newsletter checkbox */
.aura-checkout-sidebar .woo-ml-newsletter-checkbox,
.aura-checkout-sidebar #woo_ml_subscribe_field,
.aura-checkout-sidebar .newsletter-checkbox,
.aura-checkout-redesign .newsletter-signup {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 8px 0 !important;
}

.aura-checkout-sidebar .woo-ml-newsletter-checkbox label,
.aura-checkout-sidebar #woo_ml_subscribe_field label {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}
.aura-checkout-sidebar .woo-ml-newsletter-checkbox label input[type="checkbox"],
.aura-checkout-sidebar #woo_ml_subscribe_field label input[type="checkbox"] {
    vertical-align: middle !important;
    margin-right: 8px !important;
}

/* Newsletter discount info text */
.newsletter-discount-info {
    display: block !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-style: italic;
    margin-top: 4px !important;
}

.aura-checkout-sidebar #woo_ml_subscribe_field label input[type="checkbox"] {
    margin-right: 4px !important;
    flex-shrink: 0 !important;
}

/* Place order button */
.aura-checkout-sidebar #place_order {
    width: 100% !important;
    height: auto !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    background: #3f880b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 16px !important;
    line-height: 1.3 !important;
    box-shadow: 0 2px 8px rgba(63, 136, 11, 0.25) !important;
}

.aura-checkout-sidebar #place_order:hover {
    background: #357309 !important;
    box-shadow: 0 4px 12px rgba(63, 136, 11, 0.35) !important;
}

/* Payment icons row below button */
.aura-checkout-sidebar .wc-payment-icons,
.aura-checkout-sidebar .payment-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 0 0 !important;
    flex-wrap: wrap !important;
}

.aura-checkout-sidebar .wc-payment-icons img,
.aura-checkout-sidebar .payment-icons img {
    max-height: 20px !important;
    width: auto !important;
}

/* ==========================================================================
   18. WC NOTICES
   ========================================================================== */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
    border-radius: 12px !important;
    font-size: 13px !important;
    padding: 14px 18px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid !important;
    border-left: 4px solid !important;
    list-style: none !important;
}

/* Hide WC icon font — the exclamation mark reads as "error" */
body.woocommerce-checkout .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-info::before {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}

body.woocommerce-checkout .woocommerce-message {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    border-left-color: #3f880b !important;
    color: #15803d !important;
}

body.woocommerce-checkout .woocommerce-info {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    border-left-color: #3b82f6 !important;
    color: #1e40af !important;
}

body.woocommerce-checkout .woocommerce-error li {
    font-size: 13px !important;
    color: #ef4444 !important;
    margin: 4px 0 !important;
}

body.woocommerce-checkout .woocommerce-error a {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   19. COUPON PROMO BAR (from aura-quantity-boxes plugin)
   Now renders inside .aura-coupon-section in sidebar (moved from notes card).
   ========================================================================== */
.aura-coupon-section .aura-qb-banner--checkout {
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    padding: 8px 10px !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__desc {
    gap: 6px !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__desc svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__status {
    padding: 6px 8px !important;
    margin: 6px 0 0 !important;
    font-size: 11px !important;
    gap: 6px !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__text {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__code {
    font-size: 11px !important;
    padding: 1px 5px !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__timer {
    font-size: 11px !important;
    padding: 3px 7px !important;
}

.aura-coupon-section .aura-qb-banner--checkout .aura-qb-banner__badge {
    font-size: 11px !important;
    padding: 3px 10px !important;
}

/* Fallback: hide if it somehow still renders in notes */
.aura-checkout-notes .aura-qb-banner--checkout {
    display: none !important;
}

/* ==========================================================================
   20. LOADING OVERLAY
   ========================================================================== */
body.woocommerce-checkout .blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

body.woocommerce-checkout .blockUI.blockMsg {
    border: none !important;
    background: transparent !important;
}

body.woocommerce-checkout .loader,
body.woocommerce-checkout .blockUI .spinner {
    border: 3px solid #e2e8f0;
    border-top-color: #3f880b;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: ac-spin 0.6s linear infinite;
}

/* ==========================================================================
   21. FOCUS-VISIBLE ACCESSIBILITY
   ========================================================================== */
.aura-checkout-redesign a:focus-visible,
.aura-checkout-redesign button:focus-visible,
.aura-checkout-redesign input:focus-visible,
.aura-checkout-redesign select:focus-visible,
.aura-checkout-redesign textarea:focus-visible {
    outline: 2px solid #3f880b;
    outline-offset: 2px;
}

.aura-checkout-redesign a:focus:not(:focus-visible),
.aura-checkout-redesign button:focus:not(:focus-visible),
.aura-checkout-redesign input:focus:not(:focus-visible),
.aura-checkout-redesign select:focus:not(:focus-visible),
.aura-checkout-redesign textarea:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   21b. MOBILE ORDER SUMMARY — hidden on desktop, shown on mobile
   ========================================================================== */
.aura-mobile-summary {
    display: none !important;
}

/* ==========================================================================
   22. MOBILE (<= 992px)
   ========================================================================== */
@media (max-width: 992px) {
    body.woocommerce-checkout {
        background: #f5f5f7 !important;
    }

    /* iOS Safari auto-zoom fix — inputs must be >= 16px to prevent zoom on focus */
    .aura-checkout-redesign input[type="text"],
    .aura-checkout-redesign input[type="email"],
    .aura-checkout-redesign input[type="tel"],
    .aura-checkout-redesign input[type="number"],
    .aura-checkout-redesign input[type="password"],
    .aura-checkout-redesign input[type="date"],
    .aura-checkout-redesign select,
    .aura-checkout-redesign .select2-container .select2-selection--single,
    .aura-checkout-redesign textarea,
    .aura-login-inline input[type="text"],
    .aura-login-inline input[type="password"],
    .aura-register-field input[type="email"],
    .aura-register-field input[type="password"],
    #custom_coupon_code {
        font-size: 16px !important;
    }

    /* Compact WC notices on mobile */
    body.woocommerce-checkout .woocommerce-error,
    body.woocommerce-checkout .woocommerce-message,
    body.woocommerce-checkout .woocommerce-info {
        font-size: 11px !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }
    body.woocommerce-checkout .woocommerce-error li {
        margin-bottom: 1px !important;
    }
    /* Remove gap above notices — eliminate extra spacing before error box */
    body.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Reduce top gap — collapse stacked padding between sticky bar and form content.
       Triple-specificity to beat parent theme's !important rules. */
    html body.woocommerce-checkout .site-content,
    html body.woocommerce-checkout .col-full,
    html body.woocommerce-checkout .content-area,
    html body.woocommerce-checkout .entry-content,
    html body.woocommerce-checkout div.page.type-page,
    html body.woocommerce-checkout .shoptimizer-archive {
        padding-top: 0 !important;
    }
    html body.woocommerce-checkout .woocommerce {
        margin-top: 0 !important;
    }

    /* ORLEN Paczka / Paczka w Ruchu pickup point selector */
    body.woocommerce-checkout .woocommerce-shipping-totals td > div > strong {
        display: block !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        margin: 12px 0 6px !important;
    }
    body.woocommerce-checkout .punkt-odbioru {
        margin: 4px 0 0 !important;
        padding: 0 !important;
    }
    /* Select2 rendered container — the visible dropdown */
    body.woocommerce-checkout .punkt-odbioru .select2-container {
        width: 100% !important;
    }
    body.woocommerce-checkout .punkt-odbioru .select2-container .select2-selection--single {
        height: 42px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        background: #fff !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
    }
    body.woocommerce-checkout .punkt-odbioru .select2-selection__rendered {
        font-size: 13px !important;
        color: #0f172a !important;
        line-height: 42px !important;
        padding: 0 !important;
    }
    body.woocommerce-checkout .punkt-odbioru .select2-selection__placeholder {
        color: #94a3b8 !important;
        font-size: 13px !important;
    }
    body.woocommerce-checkout .punkt-odbioru .select2-selection__arrow {
        height: 42px !important;
        right: 8px !important;
    }
    /* "Wybierz punkt odbioru na mapie" link */
    body.woocommerce-checkout .woocommerce-shipping-totals #op-select-from-map {
        color: #3f880b !important;
        font-weight: 600 !important;
        font-size: 12px !important;
        cursor: pointer !important;
        text-decoration: underline !important;
    }
    body.woocommerce-checkout .woocommerce-shipping-totals td > span {
        font-size: 12px !important;
        color: #64748b !important;
    }

    /* Checkbox styling — regulamin, zaznacz wszystko */
    body.woocommerce-checkout .zaznacz-wszystko-field {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
    body.woocommerce-checkout .zaznacz-wszystko-field label {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        text-transform: uppercase !important;
        letter-spacing: .04em !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
    body.woocommerce-checkout .woocommerce-form__label-for-checkbox {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #64748b !important;
    }
    body.woocommerce-checkout .woocommerce-form__label-for-checkbox a {
        color: #3f880b !important;
        font-weight: 600 !important;
    }
    /* Mobile checkbox — inherits global styles from section 6 + 17.
       No size/appearance overrides needed; global rules handle it. */
    /* ZAZNACZ WSZYSTKO row */
    body.woocommerce-checkout .zaznacz-wszystko-field {
        margin-bottom: 4px !important;
    }
    body.woocommerce-checkout .zaznacz-wszystko-field label {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        color: #334155 !important;
    }
    body.woocommerce-checkout .zaznacz-wszystko-field input[type=checkbox] {
        margin-right: 0 !important;
    }
    /* Terms / regulamin checkbox label */
    body.woocommerce-checkout .woocommerce-form__label-for-checkbox {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #64748b !important;
    }
    body.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type=checkbox] {
        margin-top: 0 !important;
    }
    /* VAT invoice checkbox + all checkbox labels — smaller on mobile */
    .aura-checkout-redesign #faktura_vat_field label,
    .aura-checkout-redesign .form-row.thwcfe-field-checkbox label {
        font-size: 11px !important;
        gap: 8px !important;
    }
    .aura-checkout-redesign #faktura_vat_field .optional,
    .aura-checkout-redesign .form-row.thwcfe-field-checkbox .optional {
        font-size: 10px !important;
        color: #94a3b8 !important;
    }
    body.woocommerce-checkout .woocommerce-privacy-policy-text {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #94a3b8 !important;
        margin-bottom: 8px !important;
    }
    body.woocommerce-checkout .woocommerce-privacy-policy-text a {
        color: #3f880b !important;
    }

    .aura-checkout-redesign {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px 12px 40px !important;
    }

    .aura-checkout-left {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .aura-checkout-right {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .aura-checkout-sidebar {
        position: static;
        top: auto;
    }

    /* ---- Mobile order summary at top ---- */
    .aura-mobile-summary {
        display: block !important;
        grid-column: 1 !important;
        order: -1 !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 18px 20px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    }

    .aura-mobile-summary__title {
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        color: #0f172a !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
    }

    .aura-mobile-summary__items {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .aura-mobile-summary__items .aura-order-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 6px 0 !important;
    }

    .aura-mobile-summary__items .aura-order-item + .aura-order-item {
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 8px !important;
        margin-top: 2px !important;
    }

    /* Mobile summary: qty controls + remove button visible (same as sidebar) */
    .aura-mobile-summary .aura-order-item-controls {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 6px !important;
    }

    .aura-mobile-summary__discounts {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .aura-mobile-summary__discounts .aura-totals-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 3px 0 !important;
        font-size: 13px !important;
    }

    .aura-mobile-summary__discounts .aura-totals-label {
        color: #64748b !important;
        font-weight: 500 !important;
    }

    .aura-mobile-summary__discounts .aura-totals-value {
        color: #3f880b !important;
        font-weight: 600 !important;
    }

    .aura-mobile-summary .aura-totals-total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .aura-mobile-summary .aura-totals-total-label {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        text-transform: uppercase !important;
    }

    .aura-mobile-summary .aura-totals-total-value {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    /* ---- Hide "TWOJE ZAMÓWIENIE" heading + items in sidebar on mobile (shown in mobile summary above) ---- */
    .aura-checkout-sidebar #order_review_heading {
        display: none !important;
    }
    .aura-checkout-sidebar .aura-order-items {
        display: none !important;
    }

    .aura-checkout-section,
    .aura-checkout-delivery,
    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe,
    .woocommerce-account-fields.ac-has-content {
        padding: 20px;
        border-radius: 14px;
    }

    .aura-checkout-sidebar {
        padding: 20px;
        border-radius: 14px;
    }

    /* Single column fields on mobile */
    .aura-checkout-section .woocommerce-billing-fields__field-wrapper,
    .aura-delivery-fields-wrapper {
        grid-template-columns: 1fr !important;
    }

    /* Opcje dodatkowe: single column on mobile */
    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe {
        grid-template-columns: 1fr !important;
    }

    /* Upsell cards: smaller on mobile */
    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe #pakowanie_ozd_field,
    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe #kon_diet_field {
        grid-template-columns: 28px 1fr !important;
        column-gap: 8px !important;
        row-gap: 4px !important;
        padding: 10px 12px !important;
    }

    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe .form-row label.checkbox {
        font-size: 12px !important;
    }

    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-icon {
        width: 28px !important;
        height: 28px !important;
    }

    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe .ac-option-price {
        font-size: 13px !important;
    }

    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe .tooltip-icon {
        width: 16px !important;
        height: 16px !important;
        margin-top: 10px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        font-size: 10px !important;
    }

    /* Login inline: stack email + password vertically */
    body.woocommerce-checkout .aura-login-inline__fields {
        grid-template-columns: 1fr !important;
    }

    /* Tabs on mobile */
    body.woocommerce-checkout .aura-login-tab {
        font-size: 12px !important;
    }

    /* Login bar: allow wrapping on small screens */
    body.woocommerce-checkout .aura-login-bar {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    body.woocommerce-checkout .aura-login-bar__text {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* Phone dropdown: constrain width on mobile */
    .ac-phone-dd {
        min-width: 180px !important;
        max-width: calc(100% - 48px) !important;
    }

    /* Trust strip on mobile */
    .aura-checkout-strip__trust {
        gap: 16px !important;
        padding: 14px 16px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .aura-checkout-strip__item {
        font-size: 11px !important;
        gap: 6px !important;
    }

    .aura-checkout-strip__item svg {
        width: 13px !important;
        height: 13px !important;
        padding: 4px !important;
        border-radius: 6px !important;
    }

    .aura-checkout-strip__payments {
        gap: 14px !important;
        padding: 10px 16px 14px !important;
    }

    .aura-checkout-strip__payments img {
        height: 17px !important;
    }

    /* Mini footer on mobile */
    .aura-checkout-mini-footer__inner {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 16px !important;
    }

    .aura-checkout-mini-footer__right {
        text-align: left !important;
        max-width: 100% !important;
    }

    /* Hide standard header on mobile checkout — replaced by sticky cart bar.
       CSS-only rule (no JS class dependency) prevents FOUC flash of old header. */
    body.woocommerce-checkout .site-header {
        display: none !important;
    }

    /* Inline field validation errors — compact, red, below input */
    body.woocommerce-checkout .checkout-inline-error-message {
        font-size: 11px !important;
        color: #dc2626 !important;
        line-height: 1.3 !important;
        margin: 4px 0 0 !important;
        font-weight: 500 !important;
    }

    /* Notice group error list items — tighter */
    body.woocommerce-checkout .woocommerce-error li {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 2px !important;
    }

    /* Bottom sticky CTA bar */
    .aura-checkout-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9998;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 16px rgba(0,0,0,.08);
        box-sizing: border-box;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        transform: translateY(100%);
        opacity: 0;
        transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    }
    .aura-checkout-bottom-bar.ac-bottom-bar--visible {
        transform: translateY(0);
        opacity: 1;
    }

    /* Expandable panel — shipping & payment rows */
    .aura-checkout-bottom-bar__panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s cubic-bezier(.4,0,.2,1);
    }
    .aura-checkout-bottom-bar.ac-bottom-bar--expanded .aura-checkout-bottom-bar__panel {
        max-height: 140px;
    }
    .aura-checkout-bottom-bar__row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 16px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background .15s;
    }
    .aura-checkout-bottom-bar__row:first-child {
        padding-top: 12px;
    }
    .aura-checkout-bottom-bar__row:active {
        background: #f8fafc;
    }
    .aura-checkout-bottom-bar__row-icon {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        color: #64748b;
    }
    .aura-checkout-bottom-bar__row-label {
        font-size: 10px;
        font-weight: 600;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: .04em;
        min-width: 52px;
    }
    .aura-checkout-bottom-bar__row-value {
        flex: 1;
        font-size: 12px;
        font-weight: 600;
        color: #0f172a;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .aura-checkout-bottom-bar__row-price {
        font-size: 12px;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
    }
    .aura-checkout-bottom-bar__row-change {
        font-size: 10px;
        font-weight: 600;
        color: #3f880b;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    /* Main bar row — total + CTA */
    .aura-checkout-bottom-bar__main {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .aura-checkout-bottom-bar.ac-bottom-bar--expanded .aura-checkout-bottom-bar__main {
        border-top: 1px solid #f1f5f9;
    }
    .aura-checkout-bottom-bar__summary {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .aura-checkout-bottom-bar__total {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        white-space: nowrap;
    }
    .aura-checkout-bottom-bar__meta {
        font-size: 11px;
        font-weight: 500;
        color: #94a3b8;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }
    .aura-checkout-bottom-bar__meta-text {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .aura-checkout-bottom-bar__meta-chevron {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
        transition: transform .25s cubic-bezier(.4,0,.2,1);
        color: #94a3b8;
    }
    .aura-checkout-bottom-bar.ac-bottom-bar--expanded .aura-checkout-bottom-bar__meta-chevron {
        transform: rotate(180deg);
    }
    .aura-checkout-bottom-bar__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 20px;
        background: #3f880b;
        color: #fff !important;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: none;
        transition: background .15s;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
        text-decoration: none !important;
        line-height: 1.3;
    }
    .aura-checkout-bottom-bar__cta:active {
        background: #357309;
    }
    .aura-checkout-bottom-bar__cta svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Extra bottom padding on body so content isn't hidden behind the bar */
    body.woocommerce-checkout.ac-bottom-bar-active {
        padding-bottom: 80px !important;
    }

    /* Mobile order summary — always visible, no toggle */
}

@media (max-width: 480px) {
    body.woocommerce-checkout .site-content,
    body.woocommerce-checkout .content-area,
    body.woocommerce-checkout .hentry,
    body.woocommerce-checkout .entry-content,
    body.woocommerce-checkout #primary,
    body.woocommerce-checkout .col-full {
        padding: 0 !important;
    }

    .aura-checkout-section,
    .aura-checkout-delivery,
    .aura-checkout-sidebar,
    #customer_details > .thwcfe-checkout-section.opcje_dodatkowe,
    .woocommerce-account-fields {
        padding: 16px;
        border-radius: 12px;
    }

    .aura-section-title {
        font-size: 14px;
    }

    .aura-section-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }

    .aura-checkout-sidebar #place_order {
        font-size: 14px;
        padding: 14px 20px;
    }

    /* Phone prefix — tighter on small screens */
    .ac-phone-prefix {
        padding: 0 6px 0 8px !important;
        gap: 4px !important;
        font-size: 12px !important;
    }

    .ac-phone-prefix__flag {
        width: 18px !important;
        height: 13px !important;
    }

    /* Bottom bar — smaller CTA + text on tiny screens */
    .aura-checkout-bottom-bar__cta {
        padding: 10px 14px;
        font-size: 12px;
    }
    .aura-checkout-bottom-bar__total {
        font-size: 14px;
    }
    .aura-checkout-bottom-bar__meta {
        font-size: 10px;
    }
}

/* ==========================================================================
   23. PRINT
   ========================================================================== */
/* Hide bottom bar on desktop */
@media (min-width: 993px) {
    .aura-checkout-bottom-bar {
        display: none !important;
    }
}

@media print {
    .aura-checkout-right,
    .aura-checkout-strip {
        display: none !important;
    }

    .aura-checkout-redesign {
        display: block !important;
    }

    .aura-checkout-bottom-bar {
        display: none !important;
    }

}

/* ==========================================================================
   24. MOBILE STICKY CART SUMMARY
   ========================================================================== */

/* --- Container (mobile only — hidden on desktop via inline CSS) --- */
.aura-sticky-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    opacity: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.aura-sticky-cart--visible {
    transform: translateY(0);
    opacity: 1;
}

.aura-sticky-cart--expanded {
    overflow: visible;
}

/* Admin bar + header offset — handled dynamically by JS */
/* Body padding — handled dynamically by JS */

/* --- COLLAPSED BAR --- */
.aura-sticky-cart__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* --- Thumbnail stack (overlapping circles) --- */
.aura-sticky-cart__thumbs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.aura-sticky-cart__thumb {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -8px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.aura-sticky-cart__thumb:first-child {
    margin-left: 0;
}

.aura-sticky-cart__thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 2px solid #fff;
    margin-left: -8px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

/* --- Info (count + total) --- */
.aura-sticky-cart__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aura-sticky-cart__count {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aura-sticky-cart__total {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
}

.aura-sticky-cart__total .woocommerce-Price-currencySymbol {
    font-weight: 600;
}

/* --- Coupon badges in collapsed bar --- */
.aura-sticky-cart__badges {
    display: none;
}

.aura-sticky-cart__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
    line-height: 1;
}

.aura-sticky-cart__badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* --- Toggle button (chevron) --- */
.aura-sticky-cart__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.aura-sticky-cart__toggle:active {
    background: #e2e8f0;
}

.aura-sticky-cart__chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.aura-sticky-cart--expanded .aura-sticky-cart__chevron {
    transform: rotate(180deg);
}

/* --- EXPANDED PANEL --- */
.aura-sticky-cart__panel {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0 solid #f1f5f9;
}

.aura-sticky-cart--expanded .aura-sticky-cart__panel {
    max-height: 60vh;
    overflow-y: auto;
    border-top-width: 1px;
}

/* Shadow when expanded */
.aura-sticky-cart--expanded {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* --- Panel: items --- */
.aura-sticky-cart__items {
    padding: 12px 16px 8px;
}

.aura-sticky-cart__items .aura-order-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 0 !important;
    border: none !important;
    background: none !important;
}

.aura-sticky-cart__items .aura-order-item + .aura-order-item {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 6px !important;
}

.aura-sticky-cart__items .aura-order-item-thumb {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
}

.aura-sticky-cart__items .aura-order-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 6px !important;
    object-fit: cover !important;
}

.aura-sticky-cart__items .aura-order-item-details {
    flex: 1;
    min-width: 0;
}

.aura-sticky-cart__items .aura-order-item-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.aura-sticky-cart__items .aura-order-item-qty {
    font-size: 11px !important;
    color: #64748b !important;
}

.aura-sticky-cart__items .aura-order-item-meta {
    display: none !important;
}

.aura-sticky-cart__items .aura-order-item-price {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-left: auto !important;
    white-space: nowrap !important;
}

/* --- Panel: discounts --- */
.aura-sticky-cart__discounts {
    padding: 0 16px 8px;
}

.aura-sticky-cart__discounts:empty {
    display: none;
}

.aura-sticky-cart__discounts .aura-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    border: 1.5px dashed #86efac;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 12px;
}

.aura-sticky-cart__discounts .aura-totals-label {
    color: #0f172a;
    font-weight: 500;
}

.aura-sticky-cart__discounts .aura-totals-value {
    color: #16a34a;
    font-weight: 700;
}

/* Hide [Remove] link in cloned discount rows */
.aura-sticky-cart__discounts .aura-totals-value a {
    display: none !important;
}

/* --- Panel: total row --- */
.aura-sticky-cart__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 16px 14px;
    border-top: 1px solid #e2e8f0;
}

.aura-sticky-cart__total-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.aura-sticky-cart__total-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* --- Backdrop (when expanded) --- */
.aura-sticky-cart__backdrop {
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.aura-sticky-cart__backdrop--visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

/* --- Extra-small: tighter spacing --- */
@media (max-width: 480px) {
    .aura-sticky-cart__bar {
        padding: 8px 12px;
        padding-top: max(8px, env(safe-area-inset-top));
        gap: 8px;
    }

    .aura-sticky-cart__thumb {
        width: 28px !important;
        height: 28px !important;
        border-radius: 5px;
    }

    .aura-sticky-cart__thumb-more {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    .aura-sticky-cart__total {
        font-size: 14px;
    }

    /* Body padding — handled dynamically by JS */
}

/* ============================================================
   SOFT ADDRESS HINT — gentle "no house number" warning
   ============================================================ */
.aura-field-hint {
    display: block;
    margin-top: 6px;
    padding: 8px 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    color: #8d6e00;
    font-size: 12px;
    line-height: 1.4;
}

/* ============================================================
   TIDIO CHAT — lift launcher above mobile bottom bar (checkout)
   ============================================================ */
@media (max-width: 768px) {
    #tidio-chat {
        bottom: 60px !important;
        right: 10px !important;
    }
}