/* ==========================================================================
   Koningdrone Leasing — Lease form styles
   Matched to the Koningdrone.nl brand system:
   - Open Sans, semibold accents
   - Cobalt gradient CTAs (#0075cf → #008cf8), 50px pill radius
   - Calm white cards, soft borders
   ========================================================================== */

.lease-container {
    --kdl-bg:           #ffffff;
    --kdl-bg-page:      #f6f8fb;
    --kdl-bg-muted:     #eef2f7;
    --kdl-border:       #dde3ec;
    --kdl-border-soft:  #e7ecf3;

    --kdl-text:         #1c2433;
    --kdl-text-body:    #424a5e;
    --kdl-text-muted:   #6c7589;

    --kdl-accent:       #0075cf;
    --kdl-accent-deep:  #0075cf;
    --kdl-accent-dark:  #0068cf;
    --kdl-accent-ink:   #005299;
    --kdl-accent-hover: #005faa;
    --kdl-accent-soft:  #e3f1ff;

    --kdl-success-bg:   #e8f7ef;
    --kdl-success-fg:   #0a5132;
    --kdl-success-bd:   #2eb872;
    --kdl-cta-green:       #1f9d55;
    --kdl-cta-green-hover: #17803f;
    --kdl-warning-bg:   #fff5d9;
    --kdl-warning-fg:   #6b4900;
    --kdl-warning-bd:   #e7a100;
    --kdl-error-bg:     #fdecec;
    --kdl-error-fg:     #7a1a1a;
    --kdl-error-bd:     #e23b3b;

    --kdl-radius-sm:    8px;
    --kdl-radius-md:    14px;
    --kdl-radius-lg:    20px;
    --kdl-radius-pill:  50px;

    --kdl-shadow-card:  0 1px 2px rgba(20, 36, 70, 0.04), 0 6px 20px -10px rgba(20, 36, 70, 0.10);
    --kdl-shadow-pop:   0 4px 8px rgba(20, 36, 70, 0.06), 0 18px 36px -12px rgba(20, 36, 70, 0.18);
    --kdl-shadow-btn:   0 1px 2px rgba(0, 117, 207, 0.18), 0 8px 18px -6px rgba(0, 117, 207, 0.32);
    --kdl-shadow-btn-h: 0 2px 4px rgba(0, 117, 207, 0.22), 0 14px 26px -8px rgba(0, 117, 207, 0.40);

    /* Width is controlled by the Elementor section/column wrapper, not the
       plugin. We just take whatever space the parent gives us. */
    margin: 0 auto;
    padding: 0;
    color: var(--kdl-text-body);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.lease-container *,
.lease-container *::before,
.lease-container *::after {
    box-sizing: border-box;
}

/* ===== Utility ===== */
.kdl-hidden { display: none !important; }
.kdl-helper-text {
    font-size: 13px;
    color: var(--kdl-text-muted);
    margin: 6px 0 0;
    line-height: 1.55;
}
.kdl-helper-centered {
    text-align: center;
    margin: 16px 0 0;
}

/* ===== Thank-you panel (shown after successful submit) ===== */
.kdl-thank-you {
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-lg);
    padding: 36px 38px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--kdl-shadow-card);
}
.kdl-thank-you-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--kdl-success-bg);
    color: var(--kdl-success-fg);
    margin: 0 auto 18px;
}
.kdl-thank-you-heading {
    font-family: "Open Sans", sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--kdl-text) !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.2px !important;
    line-height: 1.3 !important;
}
.kdl-thank-you-message {
    font-size: 14.5px;
    color: var(--kdl-text-body);
    line-height: 1.6;
    margin: 0 auto 22px;
    max-width: 560px;
}
.kdl-thank-you-next {
    background: var(--kdl-bg-page);
    border: 1px solid var(--kdl-border-soft);
    border-radius: var(--kdl-radius-md);
    padding: 18px 22px;
    max-width: 520px;
    margin: 0 auto 24px;
    text-align: left;
}
.kdl-thank-you-next strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--kdl-accent-deep);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}
.kdl-thank-you-steps {
    margin: 0;
    padding-left: 22px;
    color: var(--kdl-text-body);
    font-size: 14px;
    line-height: 1.65;
}
.kdl-thank-you-steps li + li { margin-top: 4px; }
/* "Back to shop" CTA — same theme-defeat treatment as the submit button so
   the parent theme can't bleed a translucent / odd-spacing text style into
   it. Without these !important resets the WP-Speed theme rendered the white
   label at reduced opacity, making it look ghosted on the accent fill. */
.kdl-thank-you-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--kdl-accent) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border: 0 !important;
    border-radius: var(--kdl-radius-pill) !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-shadow: none !important;
    letter-spacing: 0.1px !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
}
.kdl-thank-you-back:hover,
.kdl-thank-you-back:focus {
    background: var(--kdl-accent-hover) !important;
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
    box-shadow: 0 6px 14px rgba(45, 126, 255, 0.22) !important;
}

/* ===== Hero (shortcode-mode only) ===== */
.kdl-hero {
    padding: 0 0 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.kdl-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--kdl-text);
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}
.kdl-hero-sub {
    font-size: 15px;
    color: var(--kdl-text-body);
    margin: 0;
    max-width: 620px;
}
.kdl-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kdl-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--kdl-accent-soft);
    color: var(--kdl-accent-deep);
    border-radius: var(--kdl-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ===== Lease builder card — the centerpiece ===== */
.lease-builder-wrapper {
    margin-bottom: 28px;
}
.overview-card {
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-lg);
    padding: 30px 32px 26px;
}

.product-info-static {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 4px;
    flex-wrap: wrap;
}
.product-info-static h2 {
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--kdl-accent-deep);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    position: relative;
    padding-left: 14px;
}
.product-info-static h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--kdl-accent);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(0, 133, 248, 0.18);
}
.product-info-static .kdl-helper-text {
    margin: 0;
    font-size: 13px;
    color: var(--kdl-text-muted);
}

/* ===== Lease item row ===== */
.lease-items-list {
    margin: 18px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lease-item-row {
    display: grid;
    /* image | title | price | qty | remove */
    grid-template-columns: 56px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    background: var(--kdl-bg-page);
    border: 1px solid var(--kdl-border-soft);
    border-radius: var(--kdl-radius-md);
    transition: border-color 0.25s, background 0.25s;
}
.lease-item-row:hover {
    border-color: var(--kdl-border);
    background: #fff;
}

/* Product image — clickable thumbnail that links back to product page */
.lease-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid var(--kdl-border-soft);
    border-radius: var(--kdl-radius-sm);
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}
.lease-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lease-item-image:hover {
    border-color: var(--kdl-accent);
}

.item-info {
    font-size: 14.5px;
    color: var(--kdl-text);
    line-height: 1.4;
}
.item-info strong {
    font-weight: 600;
}
.item-info-link {
    color: var(--kdl-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.item-info-link:hover {
    color: var(--kdl-accent-deep);
}
/* Price: tabular numerals for clean column alignment of digits. */
.item-price {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 15px;
    color: var(--kdl-text);
    min-width: 70px;
    text-align: right;
    line-height: 1;
}
/* NL dual price: excl. VAT (primary) over incl. VAT (muted, smaller). */
.item-price--dual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.25;
    min-width: 110px;
}
.item-price--dual .item-price-excl {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--kdl-text);
}
.item-price--dual .item-price-incl {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--kdl-text-muted);
}
.item-vat-note {
    font-weight: 500;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--kdl-text-muted);
}

/* Lease totals row — full package amount under the cart preview. */
.lease-totals {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 14px;
    padding: 14px 18px;
    background: var(--kdl-accent-soft, #eef4ff);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-md);
}
.lease-totals-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--kdl-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lease-totals-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.lease-totals-amount {
    font-weight: 800;
    font-size: 17px;
    color: var(--kdl-text);
}
.lease-totals-amount--incl {
    font-size: 14px;
    font-weight: 600;
    color: var(--kdl-text-muted);
}
.lease-totals-vat-note {
    font-weight: 500;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--kdl-text-muted);
}

/* Auto-filled products field — grows to fit content, no inner scrollbar.
   Selector is .form-group-qualified so it beats the generic
   `.form-group textarea { resize: vertical; min-height: 84px }` rule that
   appears later in this file (equal specificity → source order would
   otherwise win). */
.form-group textarea.kdl-autogrow {
    resize: none;
    overflow: hidden;
    min-height: 0;
    line-height: 1.55;
}

/* Quantity pill: 3 round controls inside a bordered pill. Every child has
   identical 32x32 footprint so they sit on the same baseline as the
   remove button next to it. */
.item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-pill);
    padding: 0;
    height: 34px;
    line-height: 1;
}
.item-quantity button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--kdl-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.item-quantity button:hover {
    background: var(--kdl-accent-soft);
    color: var(--kdl-accent-deep);
}
.item-quantity span {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--kdl-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Remove: same 34x34 footprint as the qty pill so they vertically align.
   Default state is transparent with a muted ✕; only on hover does it tint
   red — never blue (the blue circle you might still see is browser cache
   of an older CSS revision). */
.remove-item-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--kdl-text-muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.remove-item-btn:hover {
    background: var(--kdl-error-bg);
    color: var(--kdl-error-fg);
}
.kdl-no-items-msg {
    margin: 18px 0;
    padding: 22px 18px;
    background: var(--kdl-bg-page);
    border: 1px dashed var(--kdl-border);
    border-radius: var(--kdl-radius-md);
    color: var(--kdl-text-muted);
    font-size: 14px;
    text-align: center;
}
.kdl-no-items-msg a {
    color: var(--kdl-accent);
    margin-left: 6px;
    font-weight: 600;
    text-decoration: none;
}
.kdl-no-items-msg a:hover {
    color: var(--kdl-accent-deep);
    text-decoration: underline;
}

/* ===== Empty-state CTA + "Continue shopping" block =====
   Shown below the cart preview to tell the user the cart is open-ended —
   they can keep shopping before submitting and items show up here. Also
   used inside the empty-cart state. */
.kdl-empty-cart {
    margin: 18px 0;
}
/* The dashed placeholder box belongs to the true empty-state message only —
   it must not wrap the catalog grid too (that already sits inside the
   bordered .overview-card, and each product already has its own card
   border; a 3rd nested border here was pure redundancy). */
.kdl-empty-cart .kdl-no-items-msg {
    margin: 0;
    padding: 28px 22px;
    background: var(--kdl-bg-page);
    border: 1px dashed var(--kdl-border);
    border-radius: var(--kdl-radius-md);
    text-align: center;
}

.kdl-add-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 14px 0 4px;
    padding: 16px 18px;
    background: var(--kdl-bg-page, #f6f8fb);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-md);
}
.kdl-add-more-note {
    margin: 0;
    flex: 1;
    color: var(--kdl-text-body);
    font-size: 13.5px;
    line-height: 1.5;
}
.kdl-add-more-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--kdl-text);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}
.kdl-icon-lightbulb::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4'/%3E%3C/svg%3E");
    background-color: var(--kdl-accent);
    vertical-align: -0.2em;
}
.kdl-add-more-steps {
    margin: 0 0 6px;
    padding-left: 20px;
    list-style: decimal;
}
.kdl-add-more-steps li {
    margin: 2px 0;
}
.kdl-add-more-finalize {
    display: block;
    margin-top: 6px;
    color: var(--kdl-text-muted);
    font-style: italic;
}
.kdl-add-more-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: var(--kdl-accent);
    color: #fff !important;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: var(--kdl-radius-pill);
    text-decoration: none !important;
    text-shadow: none !important;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
}
.kdl-add-more-btn:hover,
.kdl-add-more-btn:focus {
    background: var(--kdl-accent-hover);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(45,126,255,0.18);
    text-decoration: none !important;
    outline: none;
}
@media (max-width: 600px) {
    .kdl-add-more {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    /* Keep the numbered steps left-aligned even though the block centers. */
    .kdl-add-more-steps {
        text-align: left;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }
    .kdl-add-more-btn {
        align-self: center;
    }
}

/* ===== Warnings ===== */
.kdl-warning {
    background: var(--kdl-warning-bg);
    border: 1px solid var(--kdl-warning-bd);
    border-radius: var(--kdl-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--kdl-warning-fg);
    line-height: 1.55;
}
.kdl-warning-spaced { margin-top: 12px; }
.kdl-warning-link {
    color: var(--kdl-accent-deep);
    margin-left: 8px;
    text-decoration: underline;
    font-weight: 600;
}
.kdl-inline-warning {
    margin-top: 8px;
}
/* ===== Excluded (non-leasable) items =====
   Visually muted product cards with a "Not lease-eligible" badge. Layout
   mirrors the leasable .lease-item-row but with grayscaled thumbnails and
   no qty-controls. */
.kdl-excluded-block {
    margin: 18px 0 10px;
    padding: 14px 16px 16px;
    background: #fff8e8;
    border: 1px solid #f0d997;
    border-radius: var(--kdl-radius-md);
}
.kdl-excluded-heading {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6f5300;
    line-height: 1.5;
}
.kdl-icon-warning::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01'/%3E%3C/svg%3E");
    background-color: currentColor;
}
.kdl-excluded-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.kdl-excluded-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #f0d997;
    border-radius: 10px;
    opacity: 0.85;
}
.kdl-excluded-image {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f8fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kdl-excluded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mute the visual — these items are NOT going into the lease. */
    filter: grayscale(0.6) opacity(0.7);
    transition: filter 0.2s;
}
.kdl-excluded-image:hover img {
    filter: grayscale(0) opacity(1);
}
.kdl-excluded-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kdl-excluded-name {
    color: var(--kdl-text);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    line-height: 1.35;
}
a.kdl-excluded-name:hover {
    color: var(--kdl-accent);
}
.kdl-excluded-badge {
    align-self: flex-start;
    display: inline-block;
    background: #fdecc8;
    color: #6f5300;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 11px;
}
.kdl-excluded-admin-link {
    align-self: flex-start;
    font-size: 11.5px;
    color: var(--kdl-accent);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
}
.kdl-excluded-admin-link:hover {
    text-decoration: underline;
}
.kdl-excluded-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--kdl-text-muted);
    font-size: 13px;
}
.kdl-excluded-qty {
    color: var(--kdl-text-muted);
    font-size: 12px;
}
.kdl-excluded-price {
    color: #6f5300;
    font-weight: 600;
    text-decoration: line-through;
}
.kdl-excluded-footnote {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #6f5300;
    line-height: 1.5;
}
.kdl-excluded-footlink {
    color: var(--kdl-accent);
    margin-left: 6px;
    font-weight: 600;
    text-decoration: none;
}
.kdl-excluded-footlink:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .kdl-excluded-item {
        flex-wrap: wrap;
    }
    .kdl-excluded-meta {
        flex: 1 1 100%;
        align-items: flex-start;
        flex-direction: row;
        gap: 10px;
        margin-top: 4px;
        padding-left: 60px;
    }
}

/* ===== Primary buttons — Koningdrone CTA style =====
   !important + element-qualified selectors are intentional. Many WordPress
   themes set strong defaults on `button[type="submit"]` (background, color,
   border-radius, text-transform). Without this, the form submit button
   inherits the theme's CTA pink/magenta and looks completely off-brand.
   This block is the single source of truth for these two buttons. */
.lease-container button.toggle-form-btn,
.lease-container button.submit-form-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: var(--kdl-accent) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 13px 28px !important;
    border-radius: var(--kdl-radius-pill) !important;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    letter-spacing: 0.1px !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-shadow: none !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.lease-container button.toggle-form-btn:hover,
.lease-container button.submit-form-btn:hover,
.lease-container button.toggle-form-btn:focus,
.lease-container button.submit-form-btn:focus {
    background: var(--kdl-accent-hover) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
}
/* "Open no-obligation lease form" toggle is intentionally green — it's the
   main call to action on the page, distinct from the blue accent used
   elsewhere (catalog CTAs, "view all products", etc). */
.lease-container button.toggle-form-btn {
    background: var(--kdl-cta-green) !important;
}
.lease-container button.toggle-form-btn:hover,
.lease-container button.toggle-form-btn:focus {
    background: var(--kdl-cta-green-hover) !important;
}

/* ========================================================================
   Submit loading state — spinner inside the button + blurred form behind.
   JS adds .is-loading to the submit button and .kdl-form-loading to the
   <form> while the fetch is in flight; both classes are removed on
   success / error / network failure.
   ======================================================================== */
.lease-container button.submit-form-btn.is-loading {
    color: transparent !important;
    cursor: wait !important;
    pointer-events: none !important;
    position: relative;
}
.lease-container button.submit-form-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kdlSpin 0.7s linear infinite;
}
@keyframes kdlSpin {
    to { transform: rotate(360deg); }
}

/* Blur overlay on the form while submitting — uses backdrop-filter on a
   ::before pseudo so the submit button (lifted via z-index below) stays
   crisp on top, but the rest of the form is gently blurred. */
.lease-container .lease-request-form {
    position: relative;
    transition: opacity 0.3s ease;
}
.lease-container .lease-request-form.kdl-form-loading {
    pointer-events: none;
}
.lease-container .lease-request-form.kdl-form-loading::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    border-radius: 12px;
    z-index: 10;
    pointer-events: none;
    animation: kdlBlurIn 0.3s ease forwards;
}
@keyframes kdlBlurIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/* Keep the submit button + its spinner ABOVE the blur overlay, sharp. */
.lease-container .lease-request-form.kdl-form-loading .submit-form-btn {
    position: relative;
    z-index: 11;
}
.lease-container button.toggle-form-btn {
    width: 100%;
    padding: 15px 28px !important;
    margin: 14px 0 4px;
}

.view-all-faqs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--kdl-accent-deep);
    border: 1px solid var(--kdl-accent);
    font-family: "Open Sans", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--kdl-radius-pill);
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}
.view-all-faqs-btn:hover {
    background: var(--kdl-accent-soft);
    color: var(--kdl-accent-ink);
}

/* ===== Expandable form ===== */
.expandable-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 32px;
}
.expandable-form-wrapper.open {
    max-height: 5000px;
    margin-top: 20px;
}
.form-inner {
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-lg);
    padding: 34px 38px;
    box-shadow: var(--kdl-shadow-card);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--kdl-accent-deep);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin: 28px 0 18px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--kdl-border-soft);
}
.form-section-title::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--kdl-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 133, 248, 0.18);
}
.form-section-title:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--kdl-text);
    margin-bottom: 6px;
}
.form-group .required {
    color: var(--kdl-error-bd);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--kdl-text);
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    line-height: 1.4;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--kdl-text-muted);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c5cddb;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--kdl-accent);
    box-shadow: 0 0 0 4px rgba(0, 133, 248, 0.16);
}

/* ========================================================================
   Invalid-state highlight — added by lease-form.js when a required field
   fails the on-submit validation (or when the server returns a 422 with a
   per-field error map). Cleared automatically as soon as the user starts
   editing the field (input/change/focus listener in the JS).
   ======================================================================== */
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #e25b5b !important;
    background-color: rgba(226, 91, 91, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(226, 91, 91, 0.14) !important;
    animation: kdlShake 0.38s ease-out;
}
.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus {
    border-color: #c83838 !important;
    box-shadow: 0 0 0 4px rgba(226, 91, 91, 0.22) !important;
}
/* Consent checkboxes — red label text + red checkbox ring when unticked
   and the user hits Submit. */
.kdl-consent.is-invalid .kdl-consent-label,
.form-group.is-invalid .kdl-consent-label {
    color: #c83838;
}
.kdl-consent.is-invalid input[type="checkbox"],
.form-group.is-invalid input[type="checkbox"] {
    outline: 2px solid #e25b5b;
    outline-offset: 2px;
    border-radius: 3px;
    animation: kdlShake 0.38s ease-out;
}
@keyframes kdlShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(2px); }
}
.form-group textarea {
    resize: vertical;
    min-height: 84px;
}
.form-group input[readonly],
.form-group textarea[readonly] {
    background: var(--kdl-bg-page);
    color: var(--kdl-text-body);
    cursor: default;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.downpayment-amount-field {
    display: none;
}
.downpayment-amount-field.visible {
    display: block;
}

/* Honeypot — multi-layer hide.
   We belt-and-suspender this because Chrome/Edge autofill ignores
   `autocomplete="off"` if the field looks like a known type. Combining
   off-screen positioning, zero size, opacity 0, and pointer-events:none
   makes the field undiscoverable to a sighted user even with smart autofill
   while still keeping it in the DOM for bots that fire-and-forget every
   input. */
.kdl-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Defensive: some screen-readers index visibility:hidden but ignore
       aria-hidden, so we also signal "this isn't real content" via
       visibility on the wrapper. */
}
.kdl-honeypot input { width: 1px; height: 1px; }

/* Captcha group has a narrower input */
.kdl-captcha-group input {
    max-width: 240px;
}

/* Consent rows */
.kdl-consent {
    background: var(--kdl-bg-page);
    border: 1px solid var(--kdl-border-soft);
    border-radius: var(--kdl-radius-md);
    padding: 14px 18px;
}
.kdl-consent + .kdl-consent {
    margin-top: 12px;
}
.kdl-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--kdl-text);
}
.kdl-consent-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--kdl-accent);
    cursor: pointer;
}
.kdl-consent-link {
    margin: 8px 0 0 29px;
    font-size: 12.5px;
}
.kdl-consent-link a {
    color: var(--kdl-accent-deep);
    text-decoration: underline;
    font-weight: 600;
}
.kdl-consent-link a:hover {
    color: var(--kdl-accent-ink);
}

/* Submit feedback */
.kdl-success,
.kdl-error {
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: var(--kdl-radius-md);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.kdl-success {
    background: var(--kdl-success-bg);
    color: var(--kdl-success-fg);
    border: 1px solid var(--kdl-success-bd);
}
.kdl-error {
    background: var(--kdl-error-bg);
    color: var(--kdl-error-fg);
    border: 1px solid var(--kdl-error-bd);
}

/* Submit button — full width (specificity must match the main rule above) */
.lease-container button.submit-form-btn {
    width: 100%;
    margin-top: 22px;
    padding: 16px 28px !important;
}

/* ===== T layout: terms + process (shortcode-mode only) ===== */
.t-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 28px;
}
.terms-card,
.process-section {
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-lg);
    padding: 28px 30px;
    box-shadow: var(--kdl-shadow-card);
}
.terms-card h3,
.process-title {
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--kdl-text);
    margin: 0 0 16px;
    letter-spacing: -0.1px;
}
.terms-text p {
    font-size: 14px;
    color: var(--kdl-text-body);
    margin: 0 0 12px;
    line-height: 1.65;
}
.benefits-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.benefits-list li {
    padding: 10px 0 10px 26px;
    border-top: 1px solid var(--kdl-border-soft);
    font-size: 14px;
    color: var(--kdl-text);
    position: relative;
}
.benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--kdl-accent);
    border-bottom: 2px solid var(--kdl-accent);
    transform: rotate(-45deg);
}
.benefits-list li:last-child {
    padding-bottom: 0;
}

/* Process steps */
.steps-vertical {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.step-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--kdl-border-soft);
}
.step-row:first-child {
    border-top: 0;
    padding-top: 0;
}
.step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--kdl-accent-soft);
    color: var(--kdl-accent-deep);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 117, 207, 0.18);
}
.step-content h4 {
    font-family: "Open Sans", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--kdl-text);
    margin: 0 0 3px;
}
.step-content p {
    font-size: 13.5px;
    color: var(--kdl-text-body);
    margin: 0;
    line-height: 1.5;
}
.process-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--kdl-border-soft);
    font-size: 12.5px;
    color: var(--kdl-text-muted);
    line-height: 1.55;
}

/* ===== FAQ (shortcode-mode only) ===== */
.faq-section {
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-lg);
    padding: 30px 34px;
    margin-bottom: 28px;
    box-shadow: var(--kdl-shadow-card);
}
.faq-section h2 {
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--kdl-text);
    margin: 0 0 22px;
    letter-spacing: -0.2px;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
}
.faq-item {
    border-bottom: 1px solid var(--kdl-border-soft);
}
.faq-item:last-child {
    border-bottom: 0;
}
.faq-question {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--kdl-text);
    cursor: pointer;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: color 0.2s;
}
.faq-question:hover {
    color: var(--kdl-accent-deep);
}
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kdl-bg-page);
    color: var(--kdl-text-muted);
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    transition: background 0.2s, color 0.2s, transform 0.25s;
    font-weight: 700;
}
.faq-item.open .faq-icon {
    background: var(--kdl-accent);
    color: #fff;
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--kdl-text-body);
    font-size: 14px;
    line-height: 1.65;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 0 16px;
}
.view-all-faqs-wrapper {
    margin-top: 22px;
    text-align: center;
}
.faq-cta {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--kdl-border-soft);
    font-size: 14px;
    color: var(--kdl-text-body);
    text-align: center;
}
.faq-cta strong {
    color: var(--kdl-text);
    margin-right: 6px;
}

/* ===== FAQ modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 24px;
    backdrop-filter: blur(2px);
}
.modal.active {
    display: flex;
}
.modal-content {
    background: var(--kdl-bg);
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    border-radius: var(--kdl-radius-lg);
    padding: 30px 34px;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--kdl-shadow-pop);
}
.modal-content h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--kdl-text);
    margin: 0 0 22px;
    padding-right: 32px;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    color: var(--kdl-text-muted);
    cursor: pointer;
    line-height: 1;
    background: transparent;
    border: 0;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--kdl-text);
}
.faq-category {
    margin: 24px 0 10px;
    padding-left: 12px;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--kdl-accent-deep);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    border-left: 3px solid var(--kdl-accent);
}
.faq-category:first-child {
    margin-top: 0;
}
.modal-faq-list {
    display: flex;
    flex-direction: column;
}
.modal-faq-item {
    border-bottom: 1px solid var(--kdl-border-soft);
}
.modal-faq-question {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--kdl-text);
    cursor: pointer;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.modal-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    font-size: 14px;
    color: var(--kdl-text-body);
    line-height: 1.65;
}
.modal-faq-item.open .modal-faq-answer {
    max-height: 400px;
    padding: 0 0 14px;
}

/* ===== Closing block (shortcode-mode only) ===== */
.closing-block {
    background: var(--kdl-bg);
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-lg);
    padding: 38px 34px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--kdl-shadow-card);
}
.closing-block h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--kdl-text);
    margin: 0 0 12px;
    letter-spacing: -0.2px;
}
.closing-block p {
    font-size: 14.5px;
    color: var(--kdl-text-body);
    margin: 0 auto 20px;
    max-width: 580px;
    line-height: 1.65;
}
.trust-row {
    margin: 18px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--kdl-border-soft);
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    font-size: 13.5px;
    color: var(--kdl-text-body);
}
.trust-row li {
    padding-left: 20px;
    position: relative;
}
.trust-row li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kdl-accent);
    box-shadow: 0 0 0 3px rgba(0, 133, 248, 0.18);
}

/* Product-page "Lease this product" button:
   Markup uses Elementor's `.elementor-button` classes, so styling is fully
   inherited from the site's Elementor button theme settings — same look as
   any other CTA on the site. No CSS overrides here. (Fallback rules live
   inline in LeaseButton::print_inline_css() for non-Elementor environments.) */

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .lease-container {
        margin: 24px auto 40px;
        padding: 0 16px;
        font-size: 14.5px;
    }
    .kdl-hero {
        padding: 22px 22px;
    }
    .kdl-hero-title {
        font-size: 20px;
    }
    .overview-card {
        padding: 24px 20px 20px;
    }
    .form-inner {
        padding: 24px 22px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .t-layout,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .terms-card,
    .process-section,
    .faq-section,
    .closing-block {
        padding: 24px 22px;
    }
    .lease-item-row {
        grid-template-columns: 56px 1fr auto;
        grid-template-areas:
            "image title remove"
            "image price price"
            "qty qty qty";
        gap: 8px 12px;
    }
    .lease-item-image { grid-area: image; }
    .item-info        { grid-area: title; }
    .item-price       { grid-area: price; text-align: left; }
    .item-price--dual { align-items: flex-start; min-width: 0; }
    .item-quantity    { grid-area: qty; justify-self: start; }
    .remove-item-btn  { grid-area: remove; align-self: start; }
    .lease-totals     { flex-direction: row; align-items: center; }
    .lease-totals-value { align-items: flex-end; }
    .lease-container button.toggle-form-btn,
    .lease-container button.submit-form-btn {
        font-size: 15px !important;
        padding: 14px 24px !important;
    }
}


/* =============================================================================
   Products summary card — visible mirror of the hidden #kdl_products textarea
   (the textarea remains the canonical submit field; JS keeps both in sync).
   ============================================================================= */
.lease-container .kdl-products-summary {
    background: var(--kdl-bg-page);
    border: 1px solid var(--kdl-border-soft);
    border-radius: var(--kdl-radius-md);
    padding: 4px 18px;
}
.lease-container .kdl-ps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lease-container .kdl-ps-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--kdl-border-soft);
}
.lease-container .kdl-ps-row:last-child {
    border-bottom: 0;
}
.lease-container .kdl-ps-qty {
    flex: 0 0 auto;
    min-width: 36px;
    padding: 3px 9px;
    border-radius: var(--kdl-radius-pill);
    background: var(--kdl-accent-soft);
    color: var(--kdl-accent-ink);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}
.lease-container .kdl-ps-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--kdl-text);
    font-weight: 600;
    font-size: 0.95rem;
}
.lease-container .kdl-ps-prices {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.4;
    white-space: nowrap;
}
.lease-container .kdl-ps-excl {
    color: var(--kdl-text);
    font-weight: 700;
    font-size: 0.95rem;
}
.lease-container .kdl-ps-incl {
    color: var(--kdl-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}
.lease-container .kdl-ps-prices small {
    font-size: 0.72em;
    font-weight: 600;
    color: var(--kdl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lease-container .kdl-ps-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--kdl-border);
}
.lease-container .kdl-ps-total-label {
    color: var(--kdl-text);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lease-container .kdl-ps-empty {
    padding: 14px 0;
    color: var(--kdl-text-muted);
}
@media (max-width: 560px) {
    .lease-container .kdl-ps-row {
        flex-wrap: wrap;
    }
    .lease-container .kdl-ps-prices {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        align-items: baseline;
        gap: 10px;
    }
}

/* ========================================================================
   Empty-state leasable-products catalog (search + grid)
   Shown by Form\Renderer when the cart is empty: a searchable picker of
   every published leasable product so a direct visitor isn't dead-ended.
   ===================================================================== */
.kdl-catalog { margin-top: 18px; text-align: left; }
.kdl-catalog-head {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.kdl-catalog-title {
    margin: 0; font-size: 14px !important; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--kdl-accent-deep);
}
.kdl-catalog-search-wrap { flex: 1 1 220px; max-width: 340px; }
.kdl-catalog-search {
    width: 100%; box-sizing: border-box;
    padding: 9px 14px; font-size: 14px; font-family: inherit;
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-pill);
    outline: none;
}
.kdl-catalog-search:focus {
    border-color: var(--kdl-accent);
    box-shadow: 0 0 0 3px var(--kdl-accent-soft);
}
.kdl-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.kdl-catalog-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--kdl-border);
    border-radius: var(--kdl-radius-md);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.kdl-catalog-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.kdl-catalog-card-media {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--kdl-bg-page);
}
.kdl-catalog-card-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    padding: 8px; box-sizing: border-box;
    border-radius: 24px;
}
.kdl-catalog-oos {
    position: absolute; top: 8px; left: 8px;
    background: #fdecc8; color: #6f5300;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: var(--kdl-radius-pill);
}
.kdl-catalog-body {
    flex: 1 1 auto;
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.kdl-catalog-name {
    font-size: 13.5px; font-weight: 600;
    color: var(--kdl-text); text-decoration: none; line-height: 1.35;
}
.kdl-catalog-name:hover { color: var(--kdl-accent-deep); }
.kdl-catalog-price {
    font-size: 13px; font-weight: 700;
    color: var(--kdl-text); font-variant-numeric: tabular-nums;
    margin-top: auto;
}
.kdl-catalog-price del { color: var(--kdl-text-muted); font-weight: 500; margin-right: 4px; }
.kdl-catalog-price ins { text-decoration: none; }
.kdl-catalog-cta {
    display: block; margin: 0 12px 12px;
    text-align: center; padding: 8px 12px;
    font-size: 13px; font-weight: 600;
    border-radius: var(--kdl-radius-pill);
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}
.kdl-catalog-select { background: var(--kdl-accent); color: #fff !important; }
.kdl-catalog-select:hover { background: var(--kdl-accent-hover); color: #fff !important; }
.kdl-catalog-view {
    background: transparent;
    color: var(--kdl-accent-deep) !important;
    border: 1px solid var(--kdl-accent);
}
.kdl-catalog-view:hover { background: var(--kdl-accent-soft); }
.kdl-catalog-actions {
    display: flex; flex-direction: column; gap: 7px; margin-top: auto;
    padding: 10px 12px 12px;
}
.kdl-catalog-actions .kdl-catalog-cta { width: 100%; margin: 0; }
.kdl-catalog-noresults { margin: 14px 0 0; text-align: center; color: var(--kdl-text-muted); font-size: 13px; }
.kdl-catalog-foot { margin: 14px 0 0; text-align: center; }
.kdl-catalog-browse-link { color: var(--kdl-accent-deep); font-weight: 600; font-size: 13px; text-decoration: none; }
.kdl-catalog-browse-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .kdl-catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .kdl-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* "View all lease products" button in the inline 6-product preview
   ================================================================ */
.kdl-catalog-foot {
    margin: 18px 0 0;
    display: flex; flex-direction: column; gap: 10px;
    align-items: center; justify-content: center;
}
.kdl-catalog-view-all-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    background: var(--kdl-accent); color: #fff !important;
    padding: 14px 32px; border-radius: var(--kdl-radius-pill);
    font-size: 16px; font-weight: 600; text-decoration: none;
    box-sizing: border-box;
    transition: background-color .2s ease;
}
.kdl-catalog-view-all-btn:hover { background: var(--kdl-accent-hover); color: #fff !important; }
.kdl-catalog-foot-note {
    margin: 0; font-size: 18px; color: var(--kdl-text-muted); text-align: center; line-height: 1.4;
}

/* Full leasable-products catalog page  [koningdrone_lease_catalog]
   ================================================================ */
.kdl-fc-page-wrap { max-width: 1100px; margin: 40px auto; padding: 0 16px; box-sizing: border-box; }

.kdl-full-catalog { text-align: left; }

.kdl-fc-header {
    margin-bottom: 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.kdl-fc-title-row {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.kdl-fc-title {
    margin: 0;
    font-family: "Open Sans", sans-serif !important;
    font-size: 22px !important; font-weight: 700 !important;
    color: var(--kdl-text) !important;
    letter-spacing: -0.2px !important; line-height: 1.3 !important;
}
.kdl-fc-count {
    font-size: 13px; color: var(--kdl-text-muted); font-weight: 500;
}
.kdl-fc-controls {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.kdl-fc-search {
    flex: 1 1 260px; max-width: 380px;
    padding: 10px 16px; font-size: 14px; font-family: inherit;
    border: 1.5px solid var(--kdl-border); border-radius: var(--kdl-radius);
    background: #fff; color: var(--kdl-text);
    box-sizing: border-box; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kdl-fc-search:focus {
    border-color: var(--kdl-accent);
    box-shadow: 0 0 0 3px var(--kdl-accent-soft);
}
.kdl-fc-filters {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.kdl-fc-filter {
    padding: 8px 16px !important; font-size: 13px !important; font-weight: 600 !important; font-family: inherit !important;
    border: 1.5px solid var(--kdl-border) !important; border-radius: var(--kdl-radius-pill) !important;
    background: #fff !important; color: var(--kdl-text-muted) !important;
    cursor: pointer; line-height: 1.4 !important; letter-spacing: 0 !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    box-shadow: none !important; outline: none;
}
.kdl-fc-filter:hover {
    border-color: var(--kdl-accent) !important;
    color: var(--kdl-accent-deep) !important;
    background: var(--kdl-accent-soft) !important;
}
.kdl-fc-filter.is-active {
    background: var(--kdl-accent) !important;
    border-color: var(--kdl-accent) !important;
    color: #fff !important;
}
.kdl-fc-filter.is-active:hover {
    background: var(--kdl-accent-hover) !important;
    border-color: var(--kdl-accent-hover) !important;
    color: #fff !important;
}
.kdl-fc-lease-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--kdl-accent); color: #fff !important;
    padding: 8px 18px; border-radius: var(--kdl-radius-pill);
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background-color .2s ease; white-space: nowrap;
}
.kdl-fc-lease-cta:hover { background: var(--kdl-accent-hover); color: #fff !important; }

.kdl-fc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
/* Full-catalog cards are slightly taller than the inline preview cards */
.kdl-fc-card .kdl-catalog-card-media { height: 190px; }

.kdl-fc-noresults {
    margin: 24px 0 0; text-align: center;
    color: var(--kdl-text-muted); font-size: 14px;
}
.kdl-fc-empty {
    margin: 32px 0; text-align: center;
    color: var(--kdl-text-muted); font-size: 14px;
}

@media (max-width: 768px) {
    .kdl-fc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .kdl-fc-search { max-width: 100%; }
}
@media (max-width: 480px) {
    .kdl-fc-grid { grid-template-columns: repeat(2, 1fr); }
    .kdl-fc-title { font-size: 18px !important; }
}
