/**
 * Layout 3 — Commerce: plans, cart, checkout, chat
 */

.l3-site .l3-catalog-empty,
.l3-site .l3-catalog-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--l3-muted);
}

.l3-site .l3-catalog-error {
    color: var(--l3-accent);
    font-weight: 600;
}

.l3-site .l3-catalog-empty a {
    color: var(--l3-accent);
    font-weight: 700;
}

/* —— Plan cards —— */
.l3-site .l3-plans-grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
    max-width: var(--l3-max);
    margin: 0 auto;
}

@media (min-width: 700px) {
    .l3-site .l3-plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .l3-site .l3-plans-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Volledige fibra-catalogus verbergen zodra er adres-specifieke plannen zijn */
.l3-site #pricing.is-collapsed {
    display: none !important;
}

/* Productkeuzes — witte tegels op licht paneel (homepage 01/02/03-stijl) */
.l3-site .l3-plans-grid--products {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--l3-bg-2);
    border: 1px solid var(--l3-line);
    border-radius: var(--l3-radius-lg);
}

.l3-site .l3-plans-grid--products .l3-plan.package-card.tc-product-card {
    background: var(--l3-surface) !important;
    border: 1px solid rgba(12, 12, 14, 0.1) !important;
    border-radius: var(--l3-radius-lg) !important;
    box-shadow: 0 14px 36px rgba(12, 12, 14, 0.1) !important;
}

.l3-site .l3-plans-grid--products .l3-plan:hover {
    box-shadow: 0 22px 48px rgba(12, 12, 14, 0.14) !important;
}

.l3-site .l3-plans-grid--products .l3-plan__inner {
    position: relative;
}

@media (max-width: 767px) {
    .l3-site .l3-plans-grid--products {
        gap: 1rem;
        padding: 1rem;
    }

    .l3-site .l3-plans-grid--products .l3-plan.package-card.tc-product-card {
        box-shadow: 0 18px 44px rgba(12, 12, 14, 0.12) !important;
    }

    .l3-site .l3-plans-grid--products .l3-plan__inner {
        padding: 1.35rem 1.25rem 1.15rem;
    }

    .l3-site .l3-plans-grid--products .l3-plan__name {
        font-size: 1.2rem;
    }

    .l3-site .l3-plans-grid--products .l3-plan__actions .l3-btn,
    .l3-site .l3-plans-grid--products .l3-plan__actions .tc-add-cart {
        width: 100%;
        justify-content: center;
    }
}

.l3-site .l3-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 100%;
    min-height: 0;
    padding: 0;
    background: var(--l3-surface);
    border: 1px solid var(--l3-line);
    border-radius: var(--l3-radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.l3-site .l3-plan::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--l3-line);
}

.l3-site .l3-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(12, 12, 14, 0.12);
    border-color: rgba(12, 12, 14, 0.18);
}

.l3-site .l3-plan.is-featured {
    border-color: var(--l3-ink);
    box-shadow: 0 24px 56px rgba(12, 12, 14, 0.14);
}

.l3-site .l3-plan.is-featured::before {
    background: linear-gradient(90deg, var(--l3-accent), var(--l3-accent-2));
}

.l3-site .l3-plan.is-promo::before {
    background: linear-gradient(90deg, #ff6b00, var(--l3-accent));
}

.l3-site .l3-plan__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.5rem 1.25rem;
}

.l3-site .l3-plan__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.l3-site .l3-plan__badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: var(--l3-bg-2);
    color: var(--l3-ink);
}

.l3-site .l3-plan__badge--promo {
    background: var(--l3-accent);
    color: #fff;
}

.l3-site .l3-plan__badge--pick {
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-plan__name {
    font-family: var(--l3-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--l3-ink);
}

.l3-site .l3-plan__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.l3-site .l3-plan__price {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-family: var(--l3-price);
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--l3-ink);
    font-variant-numeric: tabular-nums;
}

.l3-site .l3-plan__price-amount,
.l3-site .l3-plan__price-currency {
    flex-shrink: 0;
}

.l3-site .l3-plan__price-currency {
    margin-left: 0.12em;
    font-size: 0.7em;
    font-weight: 500;
}

.l3-site .l3-plan__price--quote {
    font-family: var(--l3-display);
    font-size: 1.25rem;
    white-space: normal;
}

.l3-site .l3-plan__period {
    font-size: 0.9rem;
    color: var(--l3-muted);
    font-weight: 500;
}

.l3-site .l3-plan__tax {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--l3-muted);
    margin-bottom: 1rem;
}

.l3-site .l3-plan__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.l3-site .l3-plan__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.l3-site .l3-plan__feature i {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    color: var(--l3-accent);
    flex-shrink: 0;
}

.l3-site .l3-plan__actions {
    margin-top: auto;
    padding-top: 1rem;
}

.l3-site .l3-plan__foot {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
}

.l3-site .l3-plan__foot a {
    color: var(--l3-muted);
    text-decoration: none;
    font-weight: 600;
}

.l3-site .l3-plan__foot a:hover { color: var(--l3-accent); }

.l3-site .l3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, color 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.l3-site .l3-btn--solid {
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-btn--solid:hover {
    background: var(--l3-accent);
    transform: translateY(-1px);
}

.l3-site .l3-btn--outline {
    background: transparent;
    color: var(--l3-ink);
    border: 2px solid var(--l3-line);
}

.l3-site .l3-btn--outline:hover {
    border-color: var(--l3-ink);
}

.l3-site .l3-btn--accent {
    background: linear-gradient(135deg, var(--l3-accent), var(--l3-accent-2));
    color: #fff;
}

.l3-site .l3-plan__status {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem;
    border-radius: 12px;
}

.l3-site .l3-plan__status--ok {
    color: var(--l3-ink);
    background: var(--l3-ok-bg);
    border: 1px solid var(--l3-ok-border);
}

.l3-site .l3-plan__status--wait { color: var(--l3-muted); background: var(--l3-bg); }
.l3-site .l3-plan__status--no { color: #dc2626; background: rgba(220, 38, 38, 0.08); }

.l3-site .l3-plan__details-btn {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--l3-bg);
    border: 1px solid var(--l3-line);
    border-radius: 10px;
    color: var(--l3-muted);
    cursor: pointer;
    font-family: inherit;
}

.l3-site .l3-plan__details-btn:hover {
    color: var(--l3-ink);
    border-color: var(--l3-ink);
}

.l3-site .l3-plan__details {
    display: none;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--l3-bg);
    border-radius: 12px;
    font-size: 0.8125rem;
    color: var(--l3-muted);
}

.l3-site .l3-plan__details.is-open {
    display: block;
}

.l3-site .l3-plan__details .l3-plan__features {
    margin: 0;
    padding: 0;
}

/* Legacy package-card: reset alleen oude Tailwind-kaarten, niet layout3 .l3-plan */
.l3-site .package-card.tc-product-card:not(.l3-plan) {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Skeleton */
.l3-site .tc-skeleton-grid {
    display: grid;
    gap: 1.25rem;
    max-width: var(--l3-max);
    margin: 0 auto;
}

@media (min-width: 700px) {
    .l3-site .tc-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .l3-site .tc-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

.l3-site .tc-skeleton-card {
    height: 320px;
    border-radius: var(--l3-radius-lg);
    background: linear-gradient(110deg, var(--l3-bg-2) 25%, var(--l3-surface) 50%, var(--l3-bg-2) 75%);
    background-size: 200% 100%;
    animation: l3-shimmer 1.4s ease infinite;
}

@keyframes l3-shimmer {
    to { background-position: -200% 0; }
}

/* Inputs (checkout) */
.l3-site .l3-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--l3-line);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--l3-ink);
    background: var(--l3-surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.l3-site .l3-input:focus {
    border-color: var(--l3-ink);
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.1);
}

.l3-site .l3-checkout {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem;
    background: var(--l3-surface);
    border: 1px solid var(--l3-line);
    border-radius: var(--l3-radius-lg);
}

.l3-site .l3-checkout h3 {
    font-family: var(--l3-display);
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 1.5rem;
}

.l3-site .l3-checkout__summary {
    background: var(--l3-bg);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.l3-site .l3-checkout__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--l3-line);
}

.l3-site .l3-checkout__total {
    font-weight: 800;
    text-align: right;
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.l3-site .l3-checkout__note {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 45, 85, 0.06);
    border: 1px solid rgba(255, 45, 85, 0.15);
    font-size: 0.875rem;
    color: var(--l3-ink);
}

.l3-site .l3-checkout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.l3-site .l3-btn--success {
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-btn--success:hover {
    background: linear-gradient(135deg, var(--l3-accent), var(--l3-accent-2));
}

/* Checkout anchor (above footer; hidden until form is shown) */
.l3-site .l3-checkout-anchor {
    display: none;
    max-width: var(--l3-max);
    margin: 0 auto;
    padding: 0 var(--l3-gutter) 2rem;
}

.l3-site .l3-checkout-anchor.is-open {
    display: block;
}

.l3-site .l3-checkout-anchor__form:empty {
    display: none;
}

/* —— Floating cart —— */
.l3-site #miniCartBtn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1040;
    display: none;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.15rem 0.75rem 0.9rem;
    background: var(--l3-ink) !important;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    box-shadow: 0 16px 48px rgba(12, 12, 14, 0.35);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.l3-site #miniCartBtn.is-visible {
    display: inline-flex !important;
}

.l3-site #miniCartBtn:hover {
    background: var(--l3-accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 56px rgba(255, 45, 85, 0.35);
}

.l3-site #miniCartBtn .mini-cart-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 1rem;
}

.l3-site #miniCartBtn .l3-fab__label {
    display: none;
}

@media (min-width: 480px) {
    .l3-site #miniCartBtn .l3-fab__label { display: inline; }
}

.l3-site #miniCartCount {
    position: static !important;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    background: var(--l3-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.l3-site #cartFloating {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    max-width: 100%;
    background: var(--l3-surface);
    border: none;
    border-left: 1px solid var(--l3-line);
    border-radius: 0;
    box-shadow: -24px 0 80px rgba(12, 12, 14, 0.18) !important;
    z-index: 1050;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.l3-site #cartFloating.is-open {
    display: flex;
}

.l3-site .l3-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-cart-head__title {
    font-family: var(--l3-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.l3-site .l3-cart-head__count {
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.35rem;
}

.l3-site #closeCart {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.l3-site #closeCart:hover { background: rgba(255, 255, 255, 0.2); }

.l3-site #cartItems {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.25rem;
    max-height: none !important;
}

.l3-site .l3-cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--l3-line);
    font-size: 0.875rem;
}

.l3-site .l3-cart-line__name {
    font-weight: 700;
    color: var(--l3-ink);
    display: block;
}

.l3-site .l3-cart-line__meta {
    font-size: 0.75rem;
    color: var(--l3-muted);
    margin-top: 0.15rem;
}

.l3-site .l3-cart-line__price {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.l3-site .l3-cart-line__remove {
    grid-column: 2;
    border: none;
    background: none;
    color: var(--l3-accent);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-top: 0.25rem;
}

.l3-site .l3-cart-foot {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--l3-line);
    background: var(--l3-bg);
}

.l3-site .l3-cart-foot__total span:last-child,
.l3-site #cartTotal {
    font-family: var(--l3-price);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.l3-site .l3-cart-foot__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.l3-site #checkoutBtn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.l3-site #minimizeCartBtn {
    width: 100%;
    padding: 0.65rem;
    background: none;
    border: none;
    color: var(--l3-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.l3-site #minimizeCartBtn:hover { color: var(--l3-ink); }

/* —— Chat —— */
.l3-site .l3-chat-cta {
    max-width: var(--l3-max);
    margin: 0 auto;
    padding: 2rem var(--l3-gutter);
}

.l3-site .l3-chat-cta__box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--l3-ink);
    color: #fff;
    border-radius: var(--l3-radius-lg);
}

@media (min-width: 768px) {
    .l3-site .l3-chat-cta__box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.l3-site .l3-chat-cta__box .l3-kicker { color: #ff8fa8; }

.l3-site .l3-chat-cta__box h2 {
    font-family: var(--l3-display);
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #fff;
}

.l3-site .l3-chat-cta__box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    max-width: 36ch;
}

.l3-site #tcChatCtaBtn {
    flex-shrink: 0;
    white-space: nowrap;
}

.l3-site .tc-mini-chat-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1040;
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem 0.75rem 0.85rem;
    background: var(--l3-surface) !important;
    color: var(--l3-ink) !important;
    border: 1px solid var(--l3-line) !important;
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(12, 12, 14, 0.12);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.l3-site .tc-mini-chat-btn:hover {
    transform: translateY(-3px);
    border-color: var(--l3-ink) !important;
    box-shadow: 0 16px 48px rgba(12, 12, 14, 0.16);
}

.l3-site .tc-mini-chat-btn.is-hidden { display: none !important; }

.l3-site .tc-mini-chat-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--l3-ink);
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
}

.l3-site .tc-chatbot-floating {
    position: fixed;
    bottom: 5.5rem;
    left: 1.25rem;
    width: min(400px, calc(100vw - 2.5rem));
    max-height: min(560px, calc(100vh - 7rem));
    display: none;
    flex-direction: column;
    background: var(--l3-surface);
    border: 1px solid var(--l3-line);
    border-radius: var(--l3-radius-lg);
    box-shadow: 0 32px 80px rgba(12, 12, 14, 0.22);
    z-index: 1050;
    overflow: hidden;
}

.l3-site .tc-chatbot-floating.is-open {
    display: flex;
}

.l3-site .tc-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-chat-head__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.l3-site .l3-chat-head__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--l3-accent), var(--l3-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.l3-site .l3-chat-head__name {
    font-weight: 700;
    font-size: 0.9rem;
}

.l3-site .l3-chat-head__status {
    font-size: 0.7rem;
    opacity: 0.65;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.l3-site .l3-chat-head__status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
}

.l3-site .tc-chat-close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.l3-site .tc-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--l3-bg);
    max-height: none !important;
}

.l3-site .tc-chatbot-message {
    max-width: 88%;
    margin-bottom: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.55;
}

.l3-site .tc-chatbot-message.bot {
    background: var(--l3-surface);
    color: var(--l3-ink);
    border: 1px solid var(--l3-line);
    border-bottom-left-radius: 4px;
}

.l3-site .tc-chatbot-message.user {
    margin-left: auto;
    background: var(--l3-ink);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.l3-site .tc-chatbot-message.bot .tc-chat-link {
    color: var(--l3-accent);
    font-weight: 600;
}

.l3-site .tc-chatbot-message.user .tc-chat-link {
    color: #fff;
}

.l3-site .tc-chatbot-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem;
    background: var(--l3-surface);
    border-top: 1px solid var(--l3-line);
}

.l3-site .tc-chatbot-input {
    flex: 1;
    border: 2px solid var(--l3-line);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
}

.l3-site .tc-chatbot-input:focus {
    border-color: var(--l3-ink);
}

.l3-site .tc-chatbot-send-btn {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: var(--l3-accent) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 0.85rem;
}

.l3-site .tc-chatbot-send-btn:hover {
    background: var(--l3-ink) !important;
}

/* Order-flow modals */
.l3-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(12, 12, 14, 0.55);
    backdrop-filter: blur(4px);
}

.l3-modal {
    width: min(32rem, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    background: var(--l3-surface);
    border-radius: var(--l3-radius-lg);
    border: 1px solid var(--l3-line);
    box-shadow: 0 32px 80px rgba(12, 12, 14, 0.25);
}

.l3-modal h3 {
    font-family: var(--l3-display);
    font-size: 1.35rem;
    margin: 0 0 1rem;
    color: var(--l3-ink);
}

.l3-site .l3-checkout a,
.l3-site .l3-modal a {
    color: var(--l3-accent);
    font-weight: 700;
    text-decoration: none;
}

.l3-site .l3-checkout a:hover,
.l3-site .l3-modal a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.l3-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Order-flow modal op body (buiten .l3-site) */
#tc-flow-modal .flex { display: flex; }
#tc-flow-modal .gap-2 { gap: 0.5rem; }
#tc-flow-modal .items-start { align-items: flex-start; }
#tc-flow-modal .items-center { align-items: center; }
#tc-flow-modal .mt-2 { margin-top: 0.5rem; }
#tc-flow-modal .mt-3 { margin-top: 0.75rem; }
#tc-flow-modal .mt-4 { margin-top: 1rem; }
#tc-flow-modal .hidden { display: none; }
#tc-flow-modal .block { display: block; }
#tc-flow-modal .text-sm { font-size: 0.875rem; line-height: 1.35; }
#tc-flow-modal .text-xs { font-size: 0.75rem; line-height: 1rem; }
#tc-flow-modal .space-y-2 > * + * { margin-top: 0.5rem; }
#tc-flow-modal label.flex input[type="radio"],
#tc-flow-modal label.flex input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Checkout-formulier (order-flow) zonder Tailwind CDN */
.l3-site #finalOrderForm .grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .l3-site #finalOrderForm .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .l3-site #finalOrderForm .md\:col-span-2 {
        grid-column: 1 / -1;
    }
}
.l3-site #finalOrderForm .flex { display: flex; }
.l3-site #finalOrderForm .gap-2 { gap: 0.5rem; }
.l3-site #finalOrderForm .gap-4 { gap: 1rem; }
.l3-site #finalOrderForm .mb-4 { margin-bottom: 1rem; }
.l3-site #finalOrderForm .mt-1 { margin-top: 0.25rem; }
.l3-site #finalOrderForm .mt-3 { margin-top: 0.75rem; }
.l3-site #finalOrderForm .mt-4 { margin-top: 1rem; }
.l3-site #finalOrderForm .mt-6 { margin-top: 1.5rem; }
.l3-site #finalOrderForm .space-y-2 > * + * { margin-top: 0.5rem; }
.l3-site #finalOrderForm .space-y-3 > * + * { margin-top: 0.75rem; }
.l3-site #finalOrderForm .font-medium { font-weight: 500; }
.l3-site #finalOrderForm .font-semibold { font-weight: 600; }
.l3-site #finalOrderForm .text-sm { font-size: 0.875rem; }
.l3-site #finalOrderForm .text-xs { font-size: 0.75rem; }
.l3-site #finalOrderForm .list-disc { list-style-type: disc; }
.l3-site #finalOrderForm .pl-5 { padding-left: 1.25rem; }
.l3-site #finalOrderForm .rounded-xl { border-radius: 0.75rem; }
.l3-site #finalOrderForm .px-4 { padding-left: 1rem; padding-right: 1rem; }
.l3-site #finalOrderForm .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.l3-site #finalOrderForm .border { border-width: 1px; border-style: solid; }
.l3-site #finalOrderForm .border-amber-200 { border-color: #fde68a; }
.l3-site #finalOrderForm .bg-amber-50 { background-color: #fffbeb; }
.l3-site #finalOrderForm .text-amber-950 { color: #451a03; }

/* —— Language switcher —— */
.l3-site .l3-lang {
    position: relative;
    font-size: 0.8125rem;
}

.l3-site .l3-lang__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--l3-line);
    border-radius: 999px;
    background: var(--l3-surface);
    color: var(--l3-ink);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.l3-site .l3-lang__trigger:hover,
.l3-site .l3-lang__trigger[aria-expanded="true"] {
    border-color: var(--l3-ink);
    box-shadow: 0 8px 24px rgba(12, 12, 14, 0.08);
}

.l3-site .l3-lang__icon {
    display: flex;
    color: var(--l3-muted);
    font-size: 0.85rem;
}

.l3-site .l3-lang__code {
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

.l3-site .l3-lang__chev {
    font-size: 0.55rem;
    color: var(--l3-muted);
    transition: transform 0.2s;
}

.l3-site .l3-lang__trigger[aria-expanded="true"] .l3-lang__chev {
    transform: rotate(180deg);
}

.l3-site .l3-lang__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 11rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--l3-surface);
    border: 1px solid var(--l3-line);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(12, 12, 14, 0.14);
    z-index: 500;
}

.l3-site .l3-lang__menu.hidden { display: none; }

.l3-site .l3-lang__option {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--l3-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.l3-site .l3-lang__option:hover:not(:disabled) {
    background: var(--l3-bg);
}

.l3-site .l3-lang__option.is-active {
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-lang__option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* —— Fiber coverage checker —— */
.l3-site .l3-coverage__card {
    position: relative;
    z-index: 1;
    overflow: visible;
    background: var(--l3-surface);
    border: 1px solid var(--l3-line);
    border-radius: var(--l3-radius-lg);
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(12, 12, 14, 0.1);
}

.l3-site .l3-coverage__eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l3-accent);
    margin-bottom: 0.65rem;
}

.l3-site .l3-coverage__title {
    font-family: var(--l3-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    color: var(--l3-ink);
}

.l3-site .l3-coverage__hint {
    font-size: 0.9rem;
    color: var(--l3-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.l3-site .l3-coverage__field {
    position: relative;
    z-index: 2;
}

.l3-site .l3-coverage__field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--l3-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.l3-site .l3-coverage__input {
    width: 100%;
    padding: 1rem 2.75rem 1rem 2.65rem;
    border: 2px solid var(--l3-line);
    border-radius: 14px;
    font-size: 1rem;
    color: var(--l3-ink);
    background: var(--l3-bg);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.l3-site .l3-coverage__input:focus {
    border-color: var(--l3-ink);
    background: var(--l3-surface);
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.1);
}

.l3-site .l3-coverage__clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--l3-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.l3-site .l3-coverage__clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.l3-site .l3-coverage__clear:hover {
    background: var(--l3-bg);
    color: var(--l3-ink);
}

.l3-site .l3-coverage__suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 50;
    max-height: 16rem;
    overflow-y: auto;
    background: var(--l3-surface);
    border: 1px solid var(--l3-line);
    border-radius: 14px;
    box-shadow: 0 24px 56px rgba(12, 12, 14, 0.14);
}

.l3-site .l3-coverage__suggestions.hidden { display: none; }

.l3-site .l3-coverage-suggestion {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid var(--l3-line);
    background: transparent;
    color: var(--l3-ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.l3-site .l3-coverage-suggestion:last-child { border-bottom: none; }

.l3-site .l3-coverage-suggestion:hover {
    background: var(--l3-bg);
}

.l3-site .l3-coverage__status {
    margin-top: 1rem;
}

.l3-site .l3-coverage-msg {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
}

.l3-site .l3-coverage-msg__title {
    display: block;
    font-family: var(--l3-display);
    font-size: 1rem;
    font-weight: 700;
}

.l3-site .l3-coverage-msg__sub {
    display: block;
    margin-top: 0.2rem;
    font-weight: 500;
    color: inherit;
    opacity: 0.9;
}

.l3-site .l3-coverage-msg--ok {
    background: var(--l3-ok-bg);
    color: var(--l3-ink);
    border: 1px solid var(--l3-ok-border);
    border-left: 3px solid var(--l3-ok-accent);
    text-align: left;
}

.l3-site .l3-coverage-msg--ok .l3-coverage-msg__title {
    color: var(--l3-ok-accent);
}

.l3-site .l3-coverage-msg--fail {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.l3-site .l3-coverage-msg--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: var(--l3-bg);
    color: var(--l3-muted);
    border: 1px solid var(--l3-line);
}

.l3-site .l3-coverage-msg__hint {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--l3-muted);
    margin: 0.65rem 0 0;
}

.l3-site .l3-coverage__portal-prompt {
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--l3-ink);
    margin: 0 0 0.75rem;
}

.l3-site .l3-coverage__apartments {
    margin-top: 1rem;
}

.l3-site .l3-coverage__apartments.hidden { display: none; }

.l3-site .l3-coverage__apartments-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--l3-muted);
    margin: 0 0 0.65rem;
}

.l3-site .l3-coverage__apartments-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.35rem;
    background: var(--l3-bg);
    border: 1px solid var(--l3-line);
    border-radius: 14px;
}

.l3-site .l3-coverage-apt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--l3-surface);
    color: var(--l3-ink);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.l3-site .l3-coverage-apt:hover {
    border-color: var(--l3-line);
    transform: translateX(2px);
}

.l3-site .l3-coverage-apt.is-selected {
    border-color: var(--l3-ink);
    background: var(--l3-ink);
    color: #fff;
}

.l3-site .l3-coverage-apt.is-selected .l3-coverage-apt__icon {
    color: var(--l3-accent);
}

.l3-site .l3-coverage-apt__icon {
    font-size: 0.7rem;
    color: var(--l3-muted);
}

.l3-site .l3-coverage__reset-wrap {
    text-align: center;
    margin-top: 0.75rem;
}

.l3-site .l3-coverage__reset {
    border: none;
    background: none;
    color: var(--l3-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}

.l3-site .l3-coverage__reset:hover { color: var(--l3-ink); }

.l3-site .l3-coverage__note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--l3-muted);
}

.l3-site .l3-coverage__note i { color: var(--l3-accent-2); }

.l3-site .l3-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--l3-line);
    border-top-color: var(--l3-accent);
    border-radius: 50%;
    animation: l3-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes l3-spin {
    to { transform: rotate(360deg); }
}

.l3-site .l3-coverage {
    position: relative;
}

@media (max-width: 640px) {
    .l3-site .tc-chatbot-floating {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 85vh;
        border-radius: var(--l3-radius-lg) var(--l3-radius-lg) 0 0;
    }

    .l3-site #cartFloating {
        width: 100%;
    }
}
