/**
 * LVD Configurator — front end, white label.
 * White surfaces, black buttons, grays for everything else; the same on any theme. Only the
 * font is the site's. Every rule is scoped (.lvd-cfg / .lvd-cfg-sheet) with enough weight
 * to beat what a theme hangs on button, h2, table or ul.
 * Layout reacts to the configurator's own width (container queries), not the viewport.
 */

.lvd-cfg,
.lvd-cfg-sheet {
    --lvd-cfg-ink: #111;
    --lvd-cfg-on-ink: #fff;
    --lvd-cfg-text: #111;
    --lvd-cfg-muted: #6b6b6b;
    --lvd-cfg-line: #e2e2e2;
    --lvd-cfg-line-strong: #a3a3a3;
    --lvd-cfg-soft: #f4f4f4;
    --lvd-cfg-track: #d4d4d4; /* Darker than any page gray, so progress reads on gray sections too. */
    --lvd-cfg-surface: #fff;
    --lvd-cfg-radius: 16px;
    /* The one place colour enters: the contact buttons. On the LiveDesign theme they follow
       its tokens; elsewhere the same values stand in. White on this green is about 2.4:1,
       below AA — a deliberate brand choice; bold text softens it. */
    --lvd-cfg-contact: var(--lvd-color-success, #00c44f);
    --lvd-cfg-on-contact: #fff;
    --lvd-cfg-shadow-button: var(--lvd-shadow-button, 0 2px 5px rgba(54, 54, 54, 0.28));
    color: var(--lvd-cfg-text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.lvd-cfg *,
.lvd-cfg-sheet * {
    box-sizing: border-box;
}

/* Theme-proof resets: these elements arrive styled by most themes. */
.lvd-cfg button,
.lvd-cfg-sheet button {
    margin: 0;
    padding: 0;
    width: auto;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-align: inherit;
    text-decoration: none;
    text-transform: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.lvd-cfg h2,
.lvd-cfg h3,
.lvd-cfg p,
.lvd-cfg ul,
.lvd-cfg li,
.lvd-cfg table,
.lvd-cfg-sheet h3,
.lvd-cfg-sheet p,
.lvd-cfg-sheet ul,
.lvd-cfg-sheet li {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.lvd-cfg .lvd-cfg-app {
    container-type: inline-size;
    position: relative;
}

/* LiveDesign theme: lateral gutters on the theme's own breakpoints (as LVD Price List). */
@media (max-width: 767px) {
    .lvd-cfg.lvd-cfg--ld {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1344px) {
    .lvd-cfg.lvd-cfg--ld .lvd-cfg-inner {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ---------- type ---------- */

.lvd-cfg .lvd-cfg-shell,
.lvd-cfg .lvd-cfg-step {
    max-width: 760px;
}

.lvd-cfg .lvd-cfg-q {
    margin: 0 0 8px;
    color: var(--lvd-cfg-text);
    font-size: clamp(28px, 22px + 1.6vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    outline: none;
}

.lvd-cfg .lvd-cfg-eyebrow {
    margin: 0 0 8px;
    color: var(--lvd-cfg-muted);
    font-size: 15px;
}

.lvd-cfg .lvd-cfg-lead {
    margin: 0 0 28px;
    color: var(--lvd-cfg-muted);
    font-size: 17px;
    line-height: 1.5;
}

.lvd-cfg .lvd-cfg-hint {
    margin: -16px 0 28px;
    color: var(--lvd-cfg-muted);
    font-size: 14px;
}

.lvd-cfg .lvd-cfg-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--lvd-cfg-soft);
    font-size: 15px;
}

.lvd-cfg .lvd-cfg-notice[hidden] {
    display: none;
}

/* ---------- layout ---------- */

/* minmax(0, 1fr) and min-width: 0 all the way down: without them WebKit (Safari, and every
   browser on iOS) sizes the column from the 4:3 slider's min-content and the whole step runs
   past the right edge of the phone. */
.lvd-cfg .lvd-cfg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.lvd-cfg .lvd-cfg-main,
.lvd-cfg .lvd-cfg-step,
.lvd-cfg .lvd-cfg-card,
.lvd-cfg .lvd-cfg-media {
    min-width: 0;
}

@container (min-width: 900px) {
    .lvd-cfg .lvd-cfg-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
        gap: 48px;
    }
    .lvd-cfg .lvd-cfg-layout.is-finale {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- progress ---------- */

.lvd-cfg .lvd-cfg-progress {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 36px;
}

.lvd-cfg .lvd-cfg-progress-text {
    justify-self: end;
    color: var(--lvd-cfg-muted);
    font-size: 14px;
}

.lvd-cfg .lvd-cfg-progress-track {
    grid-column: 1 / -1;
    height: 3px;
    border-radius: 3px;
    background: var(--lvd-cfg-track);
    overflow: hidden;
}

.lvd-cfg .lvd-cfg-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--lvd-cfg-ink);
    transition: width 0.35s ease;
}

.lvd-cfg .lvd-cfg-back {
    color: var(--lvd-cfg-text);
    font-size: 15px;
}

.lvd-cfg .lvd-cfg-back::before {
    content: "‹ ";
}

.lvd-cfg .lvd-cfg-back:hover {
    text-decoration: underline;
}

.lvd-cfg .lvd-cfg-back.is-hidden {
    visibility: hidden;
}

/* ---------- cards ---------- */

.lvd-cfg .lvd-cfg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.lvd-cfg .lvd-cfg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--lvd-cfg-radius);
    background: var(--lvd-cfg-surface);
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.lvd-cfg .lvd-cfg-card:hover {
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
}

.lvd-cfg .lvd-cfg-card.is-selected {
    box-shadow: inset 0 0 0 2px var(--lvd-cfg-ink);
}

.lvd-cfg .lvd-cfg-card-hit {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 20px;
    text-align: left;
}

.lvd-cfg .lvd-cfg-card-hit:focus-visible {
    outline: 2px solid var(--lvd-cfg-ink);
    outline-offset: -4px;
    border-radius: var(--lvd-cfg-radius);
}

.lvd-cfg .lvd-cfg-card-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 32px;
}

.lvd-cfg .lvd-cfg-card-title {
    color: var(--lvd-cfg-text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.lvd-cfg .lvd-cfg-card-sub,
.lvd-cfg-sheet .lvd-cfg-card-sub {
    color: var(--lvd-cfg-muted);
    font-size: 15px;
    line-height: 1.4;
}

.lvd-cfg .lvd-cfg-card-shown,
.lvd-cfg-sheet .lvd-cfg-card-shown {
    color: var(--lvd-cfg-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.lvd-cfg .lvd-cfg-badge,
.lvd-cfg-sheet .lvd-cfg-badge {
    align-self: flex-start;
    justify-self: start;
    margin-bottom: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--lvd-cfg-soft);
    color: var(--lvd-cfg-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lvd-cfg .lvd-cfg-check {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--lvd-cfg-line-strong);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.lvd-cfg .lvd-cfg-card.is-selected .lvd-cfg-check {
    background: var(--lvd-cfg-ink);
    box-shadow: none;
}

/* Centred on the circle; the -60% lifts the tick so its visual mass, not its box, is centred. */
.lvd-cfg .lvd-cfg-card.is-selected .lvd-cfg-check::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid var(--lvd-cfg-on-ink);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.lvd-cfg .lvd-cfg-cost,
.lvd-cfg-sheet .lvd-cfg-cost {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.lvd-cfg .lvd-cfg-cost-total,
.lvd-cfg-sheet .lvd-cfg-cost-total {
    color: var(--lvd-cfg-text);
    font-size: 19px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Instalments: always the second line, quieter than the total (RESEARCH D6). */
.lvd-cfg .lvd-cfg-cost-month,
.lvd-cfg-sheet .lvd-cfg-cost-month {
    margin-top: -2px;
    color: var(--lvd-cfg-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* Volume pricing: the nearest tier above the quantity, as information, never as a total. */
.lvd-cfg .lvd-cfg-cost-next,
.lvd-cfg-sheet .lvd-cfg-cost-next {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 8px;
    background: var(--lvd-cfg-soft);
    color: var(--lvd-cfg-text);
    font-size: 13px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.lvd-cfg .lvd-cfg-cost-parts,
.lvd-cfg-sheet .lvd-cfg-cost-parts {
    color: var(--lvd-cfg-muted);
    font-size: 13px;
    line-height: 1.45;
}

/* ---------- exact number on a range card ("2–4 rooms" → 3) ---------- */

.lvd-cfg .lvd-cfg-ask {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin: -4px 20px 20px;
    padding-top: 16px;
    border-top: 1px solid var(--lvd-cfg-line);
}

.lvd-cfg .lvd-cfg-card.is-selected .lvd-cfg-ask {
    display: flex;
}

.lvd-cfg .lvd-cfg-ask-label {
    color: var(--lvd-cfg-text);
    font-size: 15px;
    font-weight: 500;
}

.lvd-cfg .lvd-cfg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lvd-cfg .lvd-cfg-chip {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
    font-size: 17px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.lvd-cfg .lvd-cfg-chip:hover {
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-ink);
}

.lvd-cfg .lvd-cfg-chip.is-on {
    background: var(--lvd-cfg-ink);
    box-shadow: none;
    color: var(--lvd-cfg-on-ink);
}

.lvd-cfg .lvd-cfg-stepper {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
}

.lvd-cfg .lvd-cfg-stepper-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}

.lvd-cfg .lvd-cfg-stepper-btn:hover:not(:disabled) {
    background: var(--lvd-cfg-soft);
}

.lvd-cfg .lvd-cfg-stepper-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.lvd-cfg .lvd-cfg-step-value {
    min-width: 32px;
    font-size: 19px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.lvd-cfg .lvd-cfg-chip:focus-visible,
.lvd-cfg .lvd-cfg-stepper-btn:focus-visible {
    outline: 2px solid var(--lvd-cfg-ink);
    outline-offset: 2px;
}

.lvd-cfg .lvd-cfg-more {
    align-self: flex-start;
    margin: -6px 20px 18px;
    color: var(--lvd-cfg-text);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- media on cards ---------- */

.lvd-cfg .lvd-cfg-media {
    position: relative;
    flex: none;
    aspect-ratio: 4 / 3;
    background: var(--lvd-cfg-soft);
    overflow: hidden; /* Without it, a tall portrait sets the height and breaks the 4:3 row. */
}

.lvd-cfg .lvd-cfg-slides {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.lvd-cfg .lvd-cfg-slides::-webkit-scrollbar {
    display: none;
}

.lvd-cfg .lvd-cfg-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.lvd-cfg .lvd-cfg-slide img,
.lvd-cfg .lvd-cfg-poster img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.lvd-cfg .lvd-cfg-poster {
    position: relative;
    display: block;
    height: 100%;
}

.lvd-cfg .lvd-cfg-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
}

.lvd-cfg .lvd-cfg-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    transform: translate(-50%, -50%);
}

.lvd-cfg .lvd-cfg-dots,
.lvd-cfg-sheet .lvd-cfg-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.lvd-cfg .lvd-cfg-dot,
.lvd-cfg-sheet .lvd-cfg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease;
}

.lvd-cfg .lvd-cfg-dot.is-active,
.lvd-cfg-sheet .lvd-cfg-dot.is-active {
    background: #fff;
}

/* Prev / next: pointer devices only — on touch the track is swiped. */
.lvd-cfg .lvd-cfg-nav,
.lvd-cfg-sheet .lvd-cfg-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lvd-cfg .lvd-cfg-nav.is-prev,
.lvd-cfg-sheet .lvd-cfg-nav.is-prev {
    left: 10px;
}

.lvd-cfg .lvd-cfg-nav.is-next,
.lvd-cfg-sheet .lvd-cfg-nav.is-next {
    right: 10px;
}

.lvd-cfg .lvd-cfg-nav::before,
.lvd-cfg-sheet .lvd-cfg-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: solid var(--lvd-cfg-ink);
    border-width: 0 2px 2px 0;
    transform: translate(-65%, -50%) rotate(-45deg);
}

.lvd-cfg .lvd-cfg-nav.is-prev::before,
.lvd-cfg-sheet .lvd-cfg-nav.is-prev::before {
    transform: translate(-35%, -50%) rotate(135deg);
}

@media (hover: hover) and (pointer: fine) {
    .lvd-cfg .lvd-cfg-nav,
    .lvd-cfg-sheet .lvd-cfg-nav {
        display: block;
    }
    .lvd-cfg .lvd-cfg-media:hover .lvd-cfg-nav,
    .lvd-cfg-sheet .lvd-cfg-sheet-gallery:hover .lvd-cfg-nav,
    .lvd-cfg .lvd-cfg-nav:focus-visible,
    .lvd-cfg-sheet .lvd-cfg-nav:focus-visible {
        opacity: 1;
    }
}

.lvd-cfg .lvd-cfg-nav[hidden],
.lvd-cfg-sheet .lvd-cfg-nav[hidden] {
    display: none;
}

.lvd-cfg-sheet .lvd-cfg-sheet-gallery {
    position: relative;
}

/* ---------- summary (desktop) ---------- */

.lvd-cfg .lvd-cfg-summary {
    display: none;
}

@container (min-width: 900px) {
    .lvd-cfg .lvd-cfg-summary {
        position: sticky;
        top: var(--lvd-cfg-top, 24px); /* Set by configurator.js from the site's fixed header. */
        display: block;
        padding: 24px;
        border-radius: 24px;
        background: var(--lvd-cfg-surface);
        box-shadow: inset 0 0 0 1px var(--lvd-cfg-line);
    }
}

.lvd-cfg .lvd-cfg-sum-label {
    color: var(--lvd-cfg-muted);
    font-size: 14px;
}

.lvd-cfg .lvd-cfg-sum-total {
    margin: 4px 0 20px;
    color: var(--lvd-cfg-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.lvd-cfg .lvd-cfg-sum-month {
    margin: -14px 0 20px;
    color: var(--lvd-cfg-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.lvd-cfg .lvd-cfg-sum-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--lvd-cfg-line);
    color: var(--lvd-cfg-muted);
    font-size: 11px;
    line-height: 1.45;
}

.lvd-cfg .lvd-cfg-sum-month[hidden],
.lvd-cfg .lvd-cfg-sum-note[hidden],
.lvd-cfg .lvd-cfg-bar-month[hidden] {
    display: none;
}

.lvd-cfg .lvd-cfg-sum-list {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--lvd-cfg-line);
    list-style: none;
}

.lvd-cfg .lvd-cfg-sum-list li {
    display: grid;
    gap: 2px;
    list-style: none;
}

.lvd-cfg .lvd-cfg-sum-list li::before,
.lvd-cfg .lvd-cfg-sum-list li::marker {
    content: none;
}

.lvd-cfg .lvd-cfg-sum-step {
    color: var(--lvd-cfg-muted);
    font-size: 13px;
}

.lvd-cfg .lvd-cfg-sum-card {
    font-size: 15px;
    font-weight: 500;
}

.lvd-cfg .lvd-cfg-sum-empty {
    color: var(--lvd-cfg-muted);
    font-size: 15px;
}

/* ---------- bottom bar ---------- */

/* Above floating action buttons (the theme's FAB is 999), below the site header. */
.lvd-cfg .lvd-cfg-bar {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    margin-top: 32px;
    padding: 12px 0;
    border-top: 1px solid var(--lvd-cfg-line);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}

.lvd-cfg .lvd-cfg-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lvd-cfg .lvd-cfg-bar-sum {
    display: grid;
}

.lvd-cfg .lvd-cfg-bar-label {
    color: var(--lvd-cfg-muted);
    font-size: 12px;
}

.lvd-cfg .lvd-cfg-bar-total {
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lvd-cfg .lvd-cfg-bar-month {
    color: var(--lvd-cfg-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Phones: the bar runs edge to edge, past the page gutters. */
@media (max-width: 767px) {
    .lvd-cfg .lvd-cfg-bar {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

/* Wide: the summary holds the total, so the button simply follows the cards. */
@container (min-width: 900px) {
    .lvd-cfg .lvd-cfg-bar {
        position: static;
        border-top: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .lvd-cfg .lvd-cfg-bar-inner {
        justify-content: flex-start;
    }
    .lvd-cfg .lvd-cfg-bar-sum {
        display: none;
    }
}

/* ---------- buttons ---------- */

.lvd-cfg .lvd-cfg-btn,
.lvd-cfg-sheet .lvd-cfg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.lvd-cfg .lvd-cfg-btn-primary,
.lvd-cfg-sheet .lvd-cfg-btn-primary {
    background: var(--lvd-cfg-ink);
    color: var(--lvd-cfg-on-ink);
}

.lvd-cfg .lvd-cfg-btn-primary:hover,
.lvd-cfg-sheet .lvd-cfg-btn-primary:hover {
    background: #333;
    color: var(--lvd-cfg-on-ink);
}

.lvd-cfg .lvd-cfg-btn-primary:disabled {
    background: var(--lvd-cfg-ink);
    opacity: 0.25;
    cursor: not-allowed;
}

/* White with an outline, not gray: a gray fill disappears on the theme's gray sections. */
.lvd-cfg .lvd-cfg-btn-quiet {
    background: var(--lvd-cfg-surface);
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
    color: var(--lvd-cfg-text);
}

.lvd-cfg .lvd-cfg-btn-quiet:hover {
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-ink);
}

.lvd-cfg .lvd-cfg-btn:focus-visible,
.lvd-cfg-sheet .lvd-cfg-btn:focus-visible {
    outline: 2px solid var(--lvd-cfg-ink);
    outline-offset: 3px;
}

/* ---------- details sheet (appended to <body>, outside .lvd-cfg) ---------- */

.lvd-cfg-sheet {
    width: min(640px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: var(--lvd-cfg-surface);
    overflow: auto;
}

.lvd-cfg-sheet::backdrop {
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lvd-cfg-sheet .lvd-cfg-sheet-inner {
    position: relative;
}

.lvd-cfg-sheet .lvd-cfg-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
}

.lvd-cfg-sheet .lvd-cfg-sheet-close::before,
.lvd-cfg-sheet .lvd-cfg-sheet-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.lvd-cfg-sheet .lvd-cfg-sheet-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lvd-cfg-sheet .lvd-cfg-sheet-media {
    display: flex;
    aspect-ratio: 16 / 10;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: var(--lvd-cfg-soft);
}

/* Height from the box, not from the image's own height attribute. */
.lvd-cfg-sheet .lvd-cfg-sheet-media > * {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    scroll-snap-align: start;
}

.lvd-cfg-sheet .lvd-cfg-sheet-body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.lvd-cfg-sheet .lvd-cfg-sheet-title {
    color: var(--lvd-cfg-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.lvd-cfg-sheet .lvd-cfg-sheet-text {
    line-height: 1.55;
}

.lvd-cfg-sheet .lvd-cfg-bullets {
    padding-left: 20px;
    line-height: 1.6;
    list-style: disc;
}

.lvd-cfg-sheet .lvd-cfg-bullets li {
    list-style: disc;
}

.lvd-cfg-sheet .lvd-cfg-btn {
    justify-self: start;
    margin-top: 8px;
}

/* The question asked before a choice undoes earlier ones. */
.lvd-cfg-sheet.lvd-cfg-confirm {
    width: min(480px, calc(100vw - 32px));
}

.lvd-cfg-sheet .lvd-cfg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.lvd-cfg-sheet .lvd-cfg-actions .lvd-cfg-btn {
    margin-top: 0;
}

.lvd-cfg-sheet .lvd-cfg-btn-quiet {
    background: var(--lvd-cfg-surface);
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
    color: var(--lvd-cfg-text);
}

.lvd-cfg-sheet .lvd-cfg-btn-quiet:hover {
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-ink);
}

/* ---------- estimate ---------- */

.lvd-cfg .lvd-cfg-estimate {
    max-width: 880px;
}

.lvd-cfg .lvd-cfg-estimate-total {
    display: grid;
    gap: 4px;
    margin: 8px 0 32px;
    padding: 24px;
    border-radius: 24px;
    background: var(--lvd-cfg-surface);
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line);
}

.lvd-cfg .lvd-cfg-estimate-month {
    color: var(--lvd-cfg-muted);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.lvd-cfg .lvd-cfg-estimate-amount {
    font-size: clamp(36px, 28px + 2.4vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.lvd-cfg .lvd-cfg-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: none;
    font-size: 15px;
}

.lvd-cfg .lvd-cfg-table tr {
    background: none;
}

.lvd-cfg .lvd-cfg-table th,
.lvd-cfg .lvd-cfg-table td {
    padding: 14px 8px;
    border: 0;
    border-bottom: 1px solid var(--lvd-cfg-line);
    background: none;
    color: var(--lvd-cfg-text);
    font-size: inherit;
    font-weight: 400;
    text-align: right;
    font-variant-numeric: tabular-nums;
    vertical-align: top;
}

.lvd-cfg .lvd-cfg-table th:first-child {
    padding-left: 0;
    text-align: left;
    font-weight: 500;
}

.lvd-cfg .lvd-cfg-table td:last-child {
    padding-right: 0;
}

.lvd-cfg .lvd-cfg-table thead th {
    color: var(--lvd-cfg-muted);
    font-size: 13px;
    font-weight: 500;
}

.lvd-cfg .lvd-cfg-tag {
    display: block;
    margin-top: 2px;
    color: var(--lvd-cfg-muted);
    font-size: 13px;
    font-weight: 400;
}

/* Related services in the estimate: their own heading, after the choices. */
.lvd-cfg .lvd-cfg-table .is-heading th {
    padding-top: 28px;
    color: var(--lvd-cfg-text);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@container (max-width: 560px) {
    .lvd-cfg .lvd-cfg-table .is-heading {
        padding-top: 24px;
    }
}

/* Related services step: a mandatory card is shown ticked but cannot be unticked. */
.lvd-cfg .lvd-cfg-card.is-locked .lvd-cfg-card-hit {
    cursor: default;
}

.lvd-cfg .lvd-cfg-card.is-locked.is-selected {
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
}

.lvd-cfg .lvd-cfg-card.is-locked .lvd-cfg-check {
    opacity: 0.35;
}

@container (max-width: 560px) {
    .lvd-cfg .lvd-cfg-table thead {
        display: none;
    }
    .lvd-cfg .lvd-cfg-table tr {
        display: grid;
        padding: 12px 0;
        border-bottom: 1px solid var(--lvd-cfg-line);
    }
    .lvd-cfg .lvd-cfg-table th,
    .lvd-cfg .lvd-cfg-table td {
        padding: 2px 0;
        border: 0;
    }
    .lvd-cfg .lvd-cfg-table td {
        display: flex;
        justify-content: space-between;
        color: var(--lvd-cfg-muted);
    }
    .lvd-cfg .lvd-cfg-table td::before {
        content: attr(data-label);
    }
    .lvd-cfg .lvd-cfg-table td:last-child {
        color: var(--lvd-cfg-text);
        font-weight: 600;
    }
}

.lvd-cfg .lvd-cfg-instalments {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.lvd-cfg .lvd-cfg-sub {
    color: var(--lvd-cfg-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.lvd-cfg .lvd-cfg-plan-name {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
}

.lvd-cfg .lvd-cfg-plan-note {
    margin-top: 10px;
    color: var(--lvd-cfg-muted);
    font-size: 12px;
    line-height: 1.5;
}

.lvd-cfg .lvd-cfg-disclaimer {
    margin: 20px 0 0;
    color: var(--lvd-cfg-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- what next: one card, one path per wish (RESEARCH D1) ---------- */

.lvd-cfg .lvd-cfg-next {
    display: grid;
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    border-radius: 24px;
    background: var(--lvd-cfg-surface);
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line);
}

.lvd-cfg .lvd-cfg-next-list {
    display: grid;
}

.lvd-cfg .lvd-cfg-next-item {
    border-top: 1px solid var(--lvd-cfg-line);
}

.lvd-cfg .lvd-cfg-next-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px 0;
    border: 0;
    background: none;
    color: var(--lvd-cfg-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lvd-cfg .lvd-cfg-next-head:focus-visible {
    outline: 2px solid var(--lvd-cfg-ink);
    outline-offset: 2px;
    border-radius: 8px;
}

/* A radio-like dot: the open path is the chosen one. */
.lvd-cfg .lvd-cfg-next-dot {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--lvd-cfg-line-strong);
}

.lvd-cfg .lvd-cfg-next-item.is-open .lvd-cfg-next-dot {
    box-shadow: inset 0 0 0 6px var(--lvd-cfg-ink);
}

.lvd-cfg .lvd-cfg-next-title {
    display: grid;
    gap: 2px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.lvd-cfg .lvd-cfg-next-hint {
    color: var(--lvd-cfg-muted);
    font-size: 14px;
    font-weight: 400;
}

.lvd-cfg .lvd-cfg-next-body {
    padding: 0 0 24px 34px;
}

.lvd-cfg .lvd-cfg-next-body[hidden] {
    display: none;
}

.lvd-cfg .lvd-cfg-next-body .lvd-cfg-actions {
    margin-top: 4px;
}

.lvd-cfg .lvd-cfg-next-note {
    color: var(--lvd-cfg-muted);
    font-size: 14px;
    line-height: 1.5;
}

@container (max-width: 560px) {
    .lvd-cfg .lvd-cfg-next {
        padding: 20px 16px;
    }
    .lvd-cfg .lvd-cfg-next-body {
        padding-left: 0;
    }
}

.lvd-cfg .lvd-cfg-gate-form {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.lvd-cfg .lvd-cfg-gate-error[hidden] {
    display: none;
}

.lvd-cfg .lvd-cfg-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
}

.lvd-cfg .lvd-cfg-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.lvd-cfg .lvd-cfg-field-label {
    color: var(--lvd-cfg-muted);
    font-size: 13px;
}

/* 16px or more: below that, iOS zooms the page when the field gets focus. */
.lvd-cfg .lvd-cfg-field input,
.lvd-cfg .lvd-cfg-field textarea {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--lvd-cfg-surface);
    box-shadow: inset 0 0 0 1px var(--lvd-cfg-line-strong);
    color: var(--lvd-cfg-text);
    font: inherit;
    font-size: 16px;
    outline: none;
}

.lvd-cfg .lvd-cfg-field textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

.lvd-cfg .lvd-cfg-field input:focus,
.lvd-cfg .lvd-cfg-field textarea:focus {
    box-shadow: inset 0 0 0 2px var(--lvd-cfg-ink);
}

.lvd-cfg .lvd-cfg-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--lvd-cfg-text);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.lvd-cfg .lvd-cfg-check-row input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--lvd-cfg-ink);
}

.lvd-cfg .lvd-cfg-check-row a {
    color: inherit;
    text-decoration: underline;
}

.lvd-cfg .lvd-cfg-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lvd-cfg .lvd-cfg-gate-error {
    padding: 10px 14px;
    border-radius: 12px;
    background: #fdecec;
    color: #8a1c1c;
    font-size: 14px;
}

.lvd-cfg .lvd-cfg-claimed {
    display: grid;
    gap: 6px;
    text-align: center;
}

.lvd-cfg .lvd-cfg-code {
    margin: 4px 0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: clamp(28px, 22px + 2vw, 40px);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lvd-cfg .lvd-cfg-claimed-text {
    color: var(--lvd-cfg-muted);
    font-size: 15px;
}

.lvd-cfg a.lvd-cfg-btn {
    text-decoration: none;
}

.lvd-cfg .lvd-cfg-btn-contact,
.lvd-cfg .lvd-cfg-btn-contact:hover {
    gap: 10px;
    background: var(--lvd-cfg-contact);
    box-shadow: var(--lvd-cfg-shadow-button);
    color: var(--lvd-cfg-on-contact);
}

.lvd-cfg .lvd-cfg-btn-contact:hover {
    opacity: 0.88;
}

/* Bootstrap Icons (MIT), as masks so they take the text colour. */
.lvd-cfg .lvd-cfg-btn-contact::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--lvd-cfg-icon) center / contain no-repeat;
    mask: var(--lvd-cfg-icon) center / contain no-repeat;
}

.lvd-cfg .lvd-cfg-btn-whatsapp {
    --lvd-cfg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232'/%3E%3C/svg%3E");
}

.lvd-cfg .lvd-cfg-btn-phone {
    --lvd-cfg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z'/%3E%3C/svg%3E");
}

@media (forced-colors: active) {
    .lvd-cfg .lvd-cfg-btn-contact {
        border: 1px solid ButtonText;
    }
}

.lvd-cfg .lvd-cfg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

@media (prefers-reduced-motion: reduce) {
    .lvd-cfg *,
    .lvd-cfg-sheet * {
        transition: none !important;
    }
}
