/* Gift card shop v3: same design as the live shop, a little more modern and responsive.
   Loaded only by /v3/index.php. "html body" prefixes beat the !important rules in index.php. */

/* Tailwind utilities as fixed CSS (Tom 19.11.): the Tailwind CDN sometimes builds them only on the next
   redraw, so the post box / buttons first showed in 16px and then "jumped" smaller. Same values as Tailwind;
   placed first so every v3 rule and Tailwind itself still win as before. */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-500 { border-color: rgb(107 114 128); }
.border-gray-600 { border-color: rgb(75 85 99); }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.gap-4 { gap: 1rem; }
.items-start { align-items: flex-start; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

html { -webkit-text-size-adjust: 100%; }
html body { overflow-x: hidden; }

/* ---------- Buttons: bigger tap targets, softer corners ---------- */
html body #stepContainer .next-btn,
html body #stepContainer .back-btn {
    min-height: 48px;
    border-radius: 0.875rem !important;
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
html body #stepContainer .next-btn:active,
html body #stepContainer .back-btn:active { transform: scale(0.98); }
html body #stepContainer .amount-btn { min-height: 48px; border-radius: 0.75rem !important; }

/* Keyboard users see where they are */
html body #stepContainer [data-theme]:focus-visible,
html body #stepContainer [data-card]:focus-visible,
html body #stepContainer [data-gift]:focus-visible,
html body #stepContainer button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ---------- Next / Back always reachable ---------- */
html body #stepContainer .v3-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 1rem -1rem -1rem !important;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(32, 32, 32, 0.98) 72%, rgba(32, 32, 32, 0));
    border-radius: 0 0 1rem 1rem;
}

/* ---------- Product tiles ---------- */
html body #stepContainer .v3-grid > *,
html body #stepContainer .theme-option {
    border-radius: 0.9rem !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
@media (hover: hover) {
    html body #stepContainer .v3-grid > *:hover,
    html body #stepContainer .theme-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }
}
html body #stepContainer .card-option.selected,
html body #stepContainer .gift-option.selected,
html body #stepContainer .theme-option.border-lpc-orange {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* 3D cards: the main-site photos have different shapes, so give every tile the same box */
html body #stepContainer .card-img > img {
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    padding: 0.5rem;
    background: #fff;
}

/* Goodies: square stage, image centred, no fixed 250px block */
html body #stepContainer .v3-gift-media {
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 70%);
}
html body #stepContainer .v3-gift-media img {
    width: auto !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}
html body #stepContainer .gift-option h3 { font-size: 0.875rem; line-height: 1.25; }
@media (min-width: 640px) {
    html body #stepContainer .gift-option h3 { font-size: 1rem; }
}

/* ---------- Phones: a little tighter ---------- */
@media (max-width: 420px) {
    html body #stepContainer h2 { font-size: 1.35rem !important; }
    html body #stepContainer .v3-grid { gap: 0.6rem !important; }
}

/* ---------- Desktop: banner left, choices right, no scrolling for Next ---------- */
@media (min-width: 1024px) {
    html body main#mainContent { max-width: 76rem !important; }
    html body #stepContainer { max-width: 72rem !important; }
    html body #stepContainer > div {
        display: grid !important;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        column-gap: 1.75rem;
        align-items: start;
    }
    html body #stepContainer > div > * { grid-column: 2; min-width: 0; }
    html body #stepContainer > div > .promo-banner {
        grid-column: 1;
        grid-row: 1 / span 30;
        position: sticky;
        top: 7.5rem;
        margin-bottom: 0 !important;
    }
    /* Without a banner: one centred column as before */
    html body #stepContainer > div:not(:has(> .promo-banner)) {
        display: block !important;
        max-width: 48rem;
        margin: 0 auto;
    }
    html body #stepContainer .v3-nav { margin-top: 1.25rem !important; }
}

/* Next + Back side by side (Back small on the left), so the sticky bar stays slim */
html body #stepContainer .v3-nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 0.75rem;
}
html body #stepContainer .v3-nav > * { margin-top: 0 !important; }
html body #stepContainer .v3-nav .next-btn { flex: 1 1 auto; width: auto !important; }
html body #stepContainer .v3-nav .back-btn { flex: 0 0 auto; width: auto !important; padding-left: 1.1rem; padding-right: 1.1rem; white-space: nowrap; }

/* Printed card edition: Klassik (free) / Exklusiv (coming soon) */
html body #stepContainer .v3-editions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
html body #stepContainer .v3-edition {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 0.6rem 0.5rem 0.7rem; border-radius: 0.8rem; border: 2px solid rgba(156, 163, 175, 0.7);
    background: rgba(0, 0, 0, 0.25); color: #fff; min-height: 48px; transition: border-color 0.15s, box-shadow 0.15s;
}
html body #stepContainer .v3-edition.is-on { border-color: var(--lpc-orange, #c0392b); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
html body #stepContainer .v3-edition[disabled] { cursor: not-allowed; opacity: 0.7; }
html body #stepContainer .v3-edition-media { display: flex; justify-content: center; align-items: center; height: 64px; width: 100%; margin-bottom: 0.4rem; }
html body #stepContainer .v3-edition-media img { height: 100% !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; }
html body #stepContainer .v3-edition-media img + img { margin-left: -28%; }
html body #stepContainer .v3-edition-title { font-weight: 700; font-size: 0.95rem; }
html body #stepContainer .v3-edition-sub { font-size: 0.72rem; line-height: 1.25; opacity: 0.85; margin-top: 0.1rem; }
html body #stepContainer .v3-edition-price { font-size: 0.85rem; margin-top: 0.3rem; }
html body #stepContainer .v3-edition-badge {
    position: absolute; top: -0.55rem; right: 0.4rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.1rem 0.45rem; border-radius: 999px; background: #fde68a; color: #92400e;
}

/* ---------- Header: solid, slim, aligned with the content ---------- */
html body header {
    background: linear-gradient(to bottom, rgba(14, 12, 12, 0.96), rgba(22, 19, 19, 0.92)) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
html body header .container {
    max-width: 72rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
html body header img { height: 3rem !important; }
@media (min-width: 768px) { html body header img { height: 3.75rem !important; } }
@media (min-width: 1024px) {
    html body main#mainContent { align-items: flex-start !important; padding-top: 1.5rem !important; }
    html body #stepContainer > div > .promo-banner { top: 6.5rem; }
}

/* ---------- Carousel (3D cards, goodies) ---------- */
html body #stepContainer .v3-carousel { position: relative; margin: 0 -1rem 0.75rem; }
html body #stepContainer .v3-track {
    display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 0.75rem 14% 0.5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
html body #stepContainer .v3-track::-webkit-scrollbar { display: none; }
html body #stepContainer .v3-slide {
    position: relative; flex: 0 0 72%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center;
    padding: 0.9rem 0.9rem 1rem; border-radius: 1.1rem; border: 2px solid rgba(156, 163, 175, 0.55);
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 65%), rgba(0, 0, 0, 0.25);
    color: #fff; transform: scale(0.9); opacity: 0.65; transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.2s, box-shadow 0.2s;
}
html body #stepContainer .v3-slide.is-cur { transform: scale(1); opacity: 1; }
html body #stepContainer .v3-slide.is-on { border-color: var(--lpc-orange, #c0392b); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.45); opacity: 1; }
html body #stepContainer .v3-slide-media { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
html body #stepContainer .v3-slide-media img { width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: contain !important; filter: none !important; opacity: 1 !important; }
html body #stepContainer .v3-carousel[data-kind="card"] .v3-slide-media { background: #fff; border-radius: 0.8rem; padding: 0.5rem; }
html body #stepContainer .v3-slide-name { margin-top: 0.7rem; font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-align: center; }
html body #stepContainer .v3-slide-price { margin-top: 0.25rem; font-size: 0.9rem; }
html body #stepContainer .v3-slide-price s { opacity: 0.55; margin-right: 0.25rem; }
html body #stepContainer .v3-slide-check {
    position: absolute; top: 0.6rem; right: 0.6rem; width: 2rem; height: 2rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; background: var(--lpc-orange, #c0392b);
}
html body #stepContainer .v3-slide:not(.is-on) .v3-slide-check { display: none; }
html body #stepContainer .v3-arrow {
    position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; width: 2.75rem; height: 2.75rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(4px);
}
html body #stepContainer .v3-arrow:disabled { opacity: 0.25; cursor: default; }
html body #stepContainer .v3-prev { left: 0.4rem; }
html body #stepContainer .v3-next { right: 0.4rem; }
html body #stepContainer .v3-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.35rem; }
html body #stepContainer .v3-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width 0.2s, background 0.2s; }
html body #stepContainer .v3-dot.is-cur { width: 1.25rem; background: rgba(255, 255, 255, 0.85); }
html body #stepContainer .v3-dot.is-sel { background: var(--lpc-orange, #c0392b); }
html body #stepContainer .v3-hint { text-align: center; font-size: 0.75rem; opacity: 0.65; margin-top: 0.4rem; }
@media (min-width: 640px) {
    html body #stepContainer .v3-slide { flex-basis: 46%; }
    html body #stepContainer .v3-track { padding-left: 27%; padding-right: 27%; }
}
@media (min-width: 1024px) {
    html body #stepContainer .v3-carousel { margin: 0 0 0.75rem; }
    html body #stepContainer .v3-slide { flex-basis: 58%; }
    html body #stepContainer .v3-track { padding-left: 21%; padding-right: 21%; }
    html body #stepContainer .v3-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html body #stepContainer .v3-track { scroll-behavior: auto; }
    html body #stepContainer .v3-slide { transition: none; }
}

/* Carousel fixes: square image box regardless of image shape; slide width = visible window */
html body #stepContainer .v3-slide { flex: 0 0 100%; }
html body #stepContainer .v3-slide-media { position: relative; overflow: hidden; min-height: 0; height: auto; }
html body #stepContainer .v3-slide-media img {
    position: absolute; inset: 0; margin: auto;
    width: 100% !important; height: 100% !important; object-fit: contain !important;
}
html body #stepContainer .v3-carousel[data-kind="card"] .v3-slide-media img { inset: 0.5rem; width: calc(100% - 1rem) !important; height: calc(100% - 1rem) !important; }
html body #stepContainer .v3-track { padding: 0.75rem 15% 0.5rem; }
@media (min-width: 640px) { html body #stepContainer .v3-track { padding-left: 28%; padding-right: 28%; } }
@media (min-width: 1024px) { html body #stepContainer .v3-track { padding-left: 22%; padding-right: 22%; } }

/* Header shifted left on phones: the blurred page background is 5% larger than the screen
   (inset: -5%), which lets iOS Safari widen the page sideways. Keep it inside the viewport. */
html, html body { overflow-x: hidden; }
@supports (overflow: clip) { html, html body { overflow-x: clip; } }
html body #pageBgLayer { inset: 0 !important; }
html body header { left: 0; right: 0; width: 100%; }

/* Carousel: three products visible, all the same size, step one at a time */
html body #stepContainer .v3-track {
    padding: 0.6rem 0.1rem 0.4rem !important;
    gap: 0.6rem;
    scroll-snap-type: x mandatory;
}
html body #stepContainer .v3-slide {
    flex: 0 0 calc((100% - 1.2rem) / 3) !important;
    scroll-snap-align: start;
    transform: none !important;
    opacity: 1 !important;
    padding: 0.5rem 0.45rem 0.6rem;
    border-radius: 0.9rem;
}
html body #stepContainer .v3-slide.is-cur { transform: none; }
html body #stepContainer .v3-slide-name { font-size: 0.8rem; margin-top: 0.45rem; }
html body #stepContainer .v3-slide-price { font-size: 0.72rem; }
html body #stepContainer .v3-slide-check { width: 1.5rem; height: 1.5rem; top: 0.35rem; right: 0.35rem; font-size: 0.75rem; }
html body #stepContainer .v3-carousel[data-kind="card"] .v3-slide-media { padding: 0.25rem; border-radius: 0.6rem; }
html body #stepContainer .v3-carousel[data-kind="card"] .v3-slide-media img { inset: 0.25rem; width: calc(100% - 0.5rem) !important; height: calc(100% - 0.5rem) !important; }
html body #stepContainer .v3-carousel { margin: 0 0 0.75rem; padding: 0 1.5rem; }
html body #stepContainer .v3-arrow { width: 2.1rem; height: 2.1rem; top: 40%; font-size: 0.85rem; }
html body #stepContainer .v3-prev { left: -0.35rem; }
html body #stepContainer .v3-next { right: -0.35rem; }
@media (min-width: 640px) {
    html body #stepContainer .v3-track { gap: 0.9rem; }
    html body #stepContainer .v3-slide { flex-basis: calc((100% - 1.8rem) / 3) !important; padding: 0.7rem 0.6rem 0.8rem; }
    html body #stepContainer .v3-slide-name { font-size: 0.95rem; }
    html body #stepContainer .v3-slide-price { font-size: 0.82rem; }
    html body #stepContainer .v3-carousel { padding: 0 2rem; }
    html body #stepContainer .v3-arrow { width: 2.5rem; height: 2.5rem; }
}

/* ---------- Banner back on top (no left column on desktop) ---------- */
@media (min-width: 1024px) {
    html body #stepContainer { max-width: 52rem !important; }
    html body #stepContainer > div { display: block !important; }
    html body #stepContainer > div > .promo-banner { position: static; margin-bottom: 1.25rem !important; }
}
/* After the welcome step: flatter banner (same image, centred crop) */
html body #stepContainer .promo-banner.v3-banner-compact { aspect-ratio: 770 / 260 !important; }
@media (min-width: 768px) { html body #stepContainer .promo-banner.v3-banner-compact { aspect-ratio: 770 / 220 !important; } }
html body #stepContainer .promo-banner.v3-banner-compact img { object-position: center 55%; }
/* Sticky Next bar: blend in instead of a dark box */
html body #stepContainer .v3-nav { background: linear-gradient(to top, rgba(45, 45, 45, 0.97) 65%, rgba(45, 45, 45, 0)); }

/* ---------- Carousel arrows: clearly visible ---------- */
html body #stepContainer .v3-arrow {
    width: 2.6rem !important; height: 2.6rem !important; top: 38% !important;
    background: var(--lpc-orange, #c0392b) !important; color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    opacity: 1;
}
html body #stepContainer .v3-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.08); }
html body #stepContainer .v3-arrow:disabled { opacity: 0.35 !important; background: #6b7280 !important; }
html body #stepContainer .v3-arrow svg { display: block; }
html body #stepContainer .v3-prev { left: -0.6rem !important; }
html body #stepContainer .v3-next { right: -0.6rem !important; }
@media (min-width: 640px) {
    html body #stepContainer .v3-arrow { width: 3rem !important; height: 3rem !important; }
    html body #stepContainer .v3-prev { left: -0.4rem !important; }
    html body #stepContainer .v3-next { right: -0.4rem !important; }
}

/* ---------- Design carousel: landscape vouchers ---------- */
html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide-media { aspect-ratio: 16 / 10; }
html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide { flex-basis: calc((100% - 0.6rem) / 2) !important; }
@media (min-width: 640px) {
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide { flex-basis: calc((100% - 1.8rem) / 3) !important; }
}

/* Three per view on phones: long names must not widen a slide */
html body #stepContainer .v3-slide { min-width: 0 !important; }
html body #stepContainer .v3-slide-name { width: 100%; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) {
    html body #stepContainer .v3-slide-name { font-size: 0.72rem; }
    html body #stepContainer .v3-slide-price { font-size: 0.66rem; }
    html body #stepContainer .v3-carousel { padding: 0 1.1rem; }
}
@media (max-width: 420px) {
    html body #stepContainer .v3-slide { padding: 0.4rem 0.25rem 0.5rem !important; }
    html body #stepContainer .v3-slide-name { font-size: 0.66rem !important; overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto; letter-spacing: -0.01em; }
}

/* ================= Mobile optimisation ================= */
/* No double-tap zoom (pinch zoom still works), no grey tap flash */
html, html body { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html body button, html body a, html body label, html body input, html body .v3-slide, html body .v3-arrow { touch-action: manipulation; }
/* iOS zooms into inputs under 16px: keep form fields at 16px */
html body input, html body select, html body textarea, html body #customAmountInput { font-size: 16px !important; }
/* The drifting background scales above 100% and can widen the page: keep it still and inside */
html body #pageBgLayer { transform: none !important; animation: bgFadeIn 1.1s ease forwards !important; }

@media (max-width: 640px) {
    /* Less nested padding = more room for the products (was ~62px per side) */
    html body main#mainContent { padding-left: 0.5rem !important; padding-right: 0.5rem !important; padding-top: 0.6rem !important; }
    html body #stepContainer > div { padding: 0.6rem !important; border-radius: 0.9rem !important; }
    html body #stepContainer > div > .rounded-xl.shadow-lg { padding: 0.75rem 0.6rem !important; }
    html body #stepContainer .v3-nav { margin: 0.75rem -0.6rem -0.6rem !important; padding: 0.6rem 0.6rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); border-radius: 0 0 0.9rem 0.9rem; }
    html body #stepContainer .promo-banner { margin-bottom: 0.75rem !important; }
    html body #stepContainer .text-center.mb-4 { margin-bottom: 0.6rem !important; }

    /* Carousel uses the full width; arrows sit on the edges */
    html body #stepContainer .v3-carousel { padding: 0 !important; margin: 0 -0.15rem 0.6rem !important; }
    html body #stepContainer .v3-track { gap: 0.45rem !important; padding: 0.5rem 0.1rem 0.35rem !important; }
    html body #stepContainer .v3-slide { flex-basis: calc((100% - 0.9rem) / 3) !important; padding: 0.4rem 0.3rem 0.55rem !important; }
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide { flex-basis: calc((100% - 0.45rem) / 2) !important; }
    html body #stepContainer .v3-slide-name { font-size: 0.8rem !important; line-height: 1.2; }
    html body #stepContainer .v3-slide-price { font-size: 0.72rem !important; }
    html body #stepContainer .v3-arrow { width: 2.4rem !important; height: 2.4rem !important; }
    html body #stepContainer .v3-prev { left: -0.25rem !important; }
    html body #stepContainer .v3-next { right: -0.25rem !important; }
    html body #stepContainer h2 { font-size: 1.3rem !important; margin-bottom: 0.5rem !important; }
}
@media (max-width: 360px) {
    html body #stepContainer .v3-slide-name { font-size: 0.72rem !important; }
}

/* Phones: one product in the middle, half of the neighbours left and right */
@media (max-width: 640px) {
    html body #stepContainer .v3-carousel { margin: 0 -0.6rem 0.6rem !important; }
    html body #stepContainer .v3-track { gap: 0.6rem !important; padding: 0.6rem 25% 0.4rem !important; }
    html body #stepContainer .v3-slide,
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide {
        flex: 0 0 100% !important;
        scroll-snap-align: center !important;
        padding: 0.6rem 0.55rem 0.75rem !important;
        transform: scale(0.88) !important;
        opacity: 0.55 !important;
        transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.2s, box-shadow 0.2s !important;
    }
    html body #stepContainer .v3-slide.is-cur { transform: scale(1) !important; opacity: 1 !important; }
    html body #stepContainer .v3-slide-name { font-size: 0.95rem !important; }
    html body #stepContainer .v3-slide-price { font-size: 0.82rem !important; }
    html body #stepContainer .v3-slide-check { width: 1.75rem; height: 1.75rem; }
    html body #stepContainer .v3-prev { left: 0.3rem !important; }
    html body #stepContainer .v3-next { right: 0.3rem !important; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    html body #stepContainer .v3-slide { transition: none !important; }
}
@media (max-width: 640px) {
    html body #stepContainer .v3-slide.is-on { opacity: 1 !important; }
}
@media (max-width: 640px) {
    html body #stepContainer .v3-carousel .v3-slide.is-cur,
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide.is-cur { transform: scale(1) !important; opacity: 1 !important; }
    html body #stepContainer .v3-carousel .v3-slide.is-on,
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide.is-on { opacity: 1 !important; }
}

/* Two options only (designs): side by side, no arrows or dots */
html body #stepContainer .v3-carousel.v3-few .v3-track { justify-content: center; overflow: visible; padding: 0.5rem 0 0.3rem !important; scroll-snap-type: none; }
html body #stepContainer .v3-carousel.v3-few .v3-slide,
html body #stepContainer .v3-carousel.v3-few[data-kind="theme"] .v3-slide { flex: 0 1 48% !important; transform: none !important; opacity: 1 !important; }
html body #stepContainer .v3-carousel.v3-few .v3-arrow,
html body #stepContainer .v3-carousel.v3-few .v3-dots,
html body #stepContainer .v3-carousel.v3-few .v3-hint { display: none !important; }
html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide-media { aspect-ratio: 8 / 5; }

/* ---------- Compact banner from step 1: full image, no crop, blurred backdrop ---------- */
html body #stepContainer .promo-banner.v3-banner-compact {
    position: relative !important; overflow: hidden; border-radius: 0.9rem;
    aspect-ratio: 770 / 250 !important; background: #1a1414;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) { html body #stepContainer .promo-banner.v3-banner-compact { aspect-ratio: 770 / 210 !important; } }
html body #stepContainer .promo-banner.v3-banner-compact img.v3-bb {
    position: absolute; inset: -8%; width: 116% !important; height: 116% !important; max-width: none !important;
    object-fit: cover !important; filter: blur(18px) brightness(0.55) saturate(1.2); transform: scale(1.05);
}
html body #stepContainer .promo-banner.v3-banner-compact img.v3-bf {
    position: relative; display: block !important; margin: 0 auto; height: 100% !important; width: auto !important;
    max-width: 100% !important; object-fit: contain !important; border-radius: 0.6rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* ---------- Designs (2): real carousel again ---------- */
/* undo the "side by side" rules for the phone carousel */
@media (max-width: 640px) {
    html body #stepContainer .v3-carousel.v3-few .v3-track { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.6rem 25% 0.4rem !important; }
    html body #stepContainer .v3-carousel.v3-few .v3-slide,
    html body #stepContainer .v3-carousel.v3-few[data-kind="theme"] .v3-slide { flex: 0 0 100% !important; transform: scale(0.88) !important; opacity: 0.55 !important; }
    html body #stepContainer .v3-carousel.v3-few .v3-slide.is-cur { transform: scale(1) !important; opacity: 1 !important; }
    html body #stepContainer .v3-carousel.v3-few .v3-slide.is-on { opacity: 1 !important; }
    html body #stepContainer .v3-carousel.v3-few .v3-arrow { display: flex !important; }
    html body #stepContainer .v3-carousel.v3-few .v3-dots { display: flex !important; }
    html body #stepContainer .v3-carousel.v3-few .v3-hint { display: block !important; }
}
/* tablet/desktop: up to 3 items fit, so centre them and keep it calm */
@media (min-width: 641px) {
    html body #stepContainer .v3-carousel.v3-few .v3-slide,
    html body #stepContainer .v3-carousel.v3-few[data-kind="theme"] .v3-slide { flex: 0 0 calc((100% - 1.8rem) / 3) !important; }
}
html body #stepContainer > div > .promo-banner,
html body #stepContainer .promo-banner.v3-banner-compact { top: auto !important; grid-row: auto !important; }

/* Phones: banner at 100% width in its own format (no blurred side areas, nothing cropped) */
@media (max-width: 767px) {
    html body #stepContainer .promo-banner.v3-banner-compact { aspect-ratio: 770 / 400 !important; background: transparent; }
    html body #stepContainer .promo-banner.v3-banner-compact img.v3-bb { display: none !important; }
    html body #stepContainer .promo-banner.v3-banner-compact img.v3-bf {
        width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0.9rem; box-shadow: none;
    }
}

/* Voucher language choice (DE/AT/CH only) */
html body #stepContainer .v3-lang { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
html body #stepContainer .v3-lang-label { font-size: 0.85rem; opacity: 0.85; }
html body #stepContainer .v3-lang-btn {
    min-height: 40px; padding: 0.35rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: #fff;
    border: 2px solid rgba(156, 163, 175, 0.7); background: rgba(0, 0, 0, 0.25);
}
html body #stepContainer .v3-lang-btn.is-on { border-color: var(--lpc-orange, #c0392b); background: var(--lpc-orange, #c0392b); }
html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide-media { aspect-ratio: 1200 / 560 !important; }
/* Phones: landscape voucher sets get a wider slide (80%) */
@media (max-width: 640px) {
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-track { padding-left: 10% !important; padding-right: 10% !important; }
}

/* Design step: motif covers (about 6:5) */
html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide-media { aspect-ratio: 6 / 5 !important; }
@media (max-width: 640px) {
    html body #stepContainer .v3-carousel[data-kind="theme"] .v3-track { padding-left: 18% !important; padding-right: 18% !important; }
}
/* Edition tiles: real product images */
html body #stepContainer .v3-edition-media { height: 78px; }
html body #stepContainer .v3-edition-media img + img { margin-left: 0; }
html body #stepContainer .v3-edition-edit { margin-top: 0.3rem; font-size: 0.75rem; text-decoration: underline; opacity: 0.9; }

/* ---------- Exclusive configurator (bottom sheet on phones, dialog on desktop) ---------- */
.v3x-backdrop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); touch-action: manipulation; }
@media (min-width: 768px) { .v3x-backdrop { align-items: center; padding: 1.5rem; } }
.v3x-sheet { width: 100%; max-width: 560px; max-height: 94dvh; display: flex; flex-direction: column; background: #fbf8f4; color: #1f1a17;
    border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4); font-family: 'Rubik', sans-serif; }
@media (min-width: 768px) { .v3x-sheet { border-radius: 1.25rem; max-height: 90vh; } }
.v3x-sheet * { color: inherit; }
.v3x-head { display: flex; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.1rem 0.6rem; }
.v3x-head h3 { margin: 0; font-size: 1.45rem; font-weight: 700; font-family: Georgia, 'Times New Roman', serif; color: #1f1a17; }
.v3x-head p { margin: 0.2rem 0 0; font-size: 0.85rem; color: #5b524c; }
.v3x-close { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 999px; font-size: 1.6rem; line-height: 1; color: #3b3330; background: transparent; }
.v3x-body { overflow-y: auto; padding: 0 1.1rem 0.5rem; -webkit-overflow-scrolling: touch; }
.v3x-preview { background: linear-gradient(180deg, #f3ece5, #e9dfd5); border-radius: 1rem; padding: 0.9rem 0.8rem 0.6rem; text-align: center; }
.v3x-preview img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25)); }
.v3x-caption { margin-top: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #3b3330; }
.v3x-label { text-align: center; font-weight: 600; font-size: 0.95rem; color: #5b524c; margin: 0.9rem 0 0.45rem; }
.v3x-motif-wrap { position: relative; }
.v3x-motifs { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.3rem 2.6rem 0.4rem; scrollbar-width: none; }
.v3x-motifs::-webkit-scrollbar { display: none; }
.v3x-motif { flex: 0 0 38%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.4rem;
    border-radius: 0.8rem; border: 2px solid transparent; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); touch-action: manipulation; }
.v3x-motif img { width: 100%; aspect-ratio: 6 / 5; object-fit: contain; }
.v3x-motif span { font-size: 0.78rem; font-weight: 600; color: #3b3330; text-align: center; line-height: 1.2; }
.v3x-motif.is-on { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }
@media (min-width: 768px) { .v3x-motif { flex-basis: 28%; } }
.v3x-arrow { position: absolute; top: 40%; transform: translateY(-50%); z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 999px;
    background: #fff; border: 2px solid #c0392b; color: #c0392b; font-size: 1.5rem; line-height: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.v3x-prev { left: 0; } .v3x-next { right: 0; }
.v3x-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.v3x-opt { min-height: 52px; border-radius: 999px; border: 2px solid #e2d8cf; background: #fff; font-weight: 600; font-size: 1rem; color: #1f1a17;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; line-height: 1.15; padding: 0.4rem 0.8rem; text-align: center; }
.v3x-opt small { font-weight: 500; font-size: 0.8rem; color: #5b524c; }
.v3x-opt.is-on { border-color: #c0392b; background: #fbe9e5; }
.v3x-dot { width: 1rem; height: 1rem; border-radius: 999px; flex: 0 0 auto; }
.v3x-dot-black { background: #111; } .v3x-dot-pink { background: #f2a0b4; }
.v3x-foot { display: flex; gap: 0.6rem; padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ece3da; }
.v3x-back { flex: 0 0 auto; min-height: 52px; padding: 0 1.3rem; border-radius: 999px; border: 2px solid #e2d8cf; background: #fff; font-weight: 600; color: #1f1a17; }
.v3x-ok { flex: 1 1 auto; min-height: 52px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; color: #fff !important;
    background: linear-gradient(90deg, #e9795c, #c0392b); box-shadow: 0 8px 18px rgba(192, 57, 43, 0.35); }
.v3x-opt-text { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.v3x-opt-text small { display: block; margin-top: 0.1rem; }

/* Step 1: chosen card summary + "Design your card" */
html body #stepContainer .v3-cardsum { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.9rem; }
html body #stepContainer .v3-cardsum span { opacity: 0.9; }
html body #stepContainer .v3-cardsum button {
    min-height: 40px; padding: 0.35rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: #fff;
    background: var(--lpc-orange, #c0392b); border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
html body #stepContainer .v3-theme-slide { cursor: pointer; }
.v3x-preview.is-classic img { max-height: 260px; width: auto; max-width: 100%; margin: 0 auto; }
.v3x-note { margin: 0.4rem 0 0; text-align: center; font-size: 0.78rem; color: #6b625c; }
.v3x-opt[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ================= Image placeholders + fade-in ================= */
@keyframes v3Shimmer { 0% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
html.v3-js #stepContainer img:not(.is-loaded),
html.v3-js .v3x-sheet img:not(.is-loaded) { opacity: 0 !important; }
html.v3-js #stepContainer img,
html.v3-js .v3x-sheet img { transition: opacity 0.28s ease; }
/* shimmer on the box while its image loads */
html.v3-js #stepContainer .v3-slide-media:has(img:not(.is-loaded)),
html.v3-js #stepContainer .v3-edition-media:has(img:not(.is-loaded)),
html.v3-js #stepContainer .promo-banner:has(img:not(.is-loaded)),
html.v3-js .v3x-pimg:has(img:not(.is-loaded)),
html.v3-js .v3x-motif:has(img:not(.is-loaded)) img + span {
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 70%) !important;
    background-size: 200% 100% !important;
    animation: v3Shimmer 1.1s linear infinite;
}
html.v3-js .v3x-pimg:has(img:not(.is-loaded)) { background-color: rgba(0, 0, 0, 0.06) !important; border-radius: 0.6rem; }
@media (prefers-reduced-motion: reduce) {
    html.v3-js #stepContainer img, html.v3-js .v3x-sheet img { transition: none; }
    html.v3-js #stepContainer *, html.v3-js .v3x-sheet * { animation-duration: 0s !important; }
}
/* fixed boxes so nothing jumps */
.v3x-pimg { width: 100%; aspect-ratio: 1200 / 560; display: flex; align-items: center; justify-content: center; }
.v3x-pimg img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain; }
.v3x-preview.is-classic img { max-height: none; }
.v3x-motif img { display: block; }
html body #stepContainer .v3-edition-media img { height: 100% !important; }

/* Banner always 100% width in its own format (all screens), no blurred sides */
html body #stepContainer .promo-banner.v3-banner-compact { aspect-ratio: 770 / 400 !important; background: transparent !important; box-shadow: none; }
html body #stepContainer .promo-banner.v3-banner-compact img.v3-bb { display: none !important; }
html body #stepContainer .promo-banner.v3-banner-compact img.v3-bf {
    width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0.9rem; box-shadow: none !important;
}

/* ================= "Karte gestalten" on phones: more compact ================= */
.v3x-grip { display: none; }
.v3x-type { margin-top: 0.1rem; }
.v3x-type .v3x-choice { margin-bottom: 0.65rem; }
@media (max-width: 640px) {
    .v3x-sheet { max-height: 92dvh; border-radius: 1.1rem 1.1rem 0 0; }
    .v3x-grip { display: block; width: 2.6rem; height: 0.3rem; border-radius: 999px; background: #d9cec4; margin: 0.5rem auto 0; }
    .v3x-head { padding: 0.4rem 0.9rem 0.45rem; align-items: center; }
    .v3x-head h3 { font-size: 1.2rem; }
    .v3x-head p { font-size: 0.74rem; line-height: 1.3; }
    .v3x-close { width: 2.1rem; height: 2.1rem; font-size: 1.4rem; }
    .v3x-body { padding: 0 0.9rem 0.4rem; }
    .v3x-preview { padding: 0.5rem 0.5rem 0.4rem; border-radius: 0.85rem; }
    .v3x-pimg { max-height: 27dvh; }
    .v3x-caption { margin-top: 0.3rem; font-size: 0.8rem; }
    .v3x-label { margin: 0.6rem 0 0.35rem; font-size: 0.85rem; }
    .v3x-motifs { gap: 0.45rem; padding: 0.2rem 2.2rem 0.3rem; }
    .v3x-motif { flex-basis: 31%; padding: 0.3rem; border-radius: 0.65rem; }
    .v3x-motif span { font-size: 0.68rem; }
    .v3x-arrow { width: 2rem; height: 2rem; font-size: 1.25rem; }
    .v3x-choice { gap: 0.45rem; }
    .v3x-opt { min-height: 46px; font-size: 0.92rem; padding: 0.3rem 0.6rem; }
    .v3x-opt small { font-size: 0.72rem; }
    .v3x-note { font-size: 0.72rem; }
    .v3x-foot { padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); gap: 0.5rem; }
    .v3x-back, .v3x-ok { min-height: 48px; }
    .v3x-ok { font-size: 0.98rem; }
}

/* ================= Page buttons in the same style as the sheet ================= */
html body #stepContainer .next-btn,
html body #v3PreviewModal #v3PreviewClose {
    border-radius: 999px !important;
    background: linear-gradient(90deg, #e9795c, #c0392b) !important;
    color: #fff !important; font-weight: 700 !important; border: 0 !important;
    box-shadow: 0 8px 18px rgba(192, 57, 43, 0.35) !important;
    min-height: 52px;
}
html body #stepContainer .back-btn {
    border-radius: 999px !important; background: #fbf8f4 !important; color: #1f1a17 !important;
    border: 2px solid #e2d8cf !important; font-weight: 600 !important; min-height: 52px;
}
html body #stepContainer .back-btn i, html body #stepContainer .back-btn * { color: #1f1a17 !important; }
html body #stepContainer .amount-btn { border-radius: 999px !important; }
html body #stepContainer .v3-none { border-radius: 999px !important; min-height: 48px; }
html body #stepContainer .v3-cardsum button {
    border-radius: 999px; border: 0; background: linear-gradient(90deg, #e9795c, #c0392b);
    box-shadow: 0 6px 14px rgba(192, 57, 43, 0.35);
}
/* Phones: arrows sit on the outer edge so they cover less of the half-visible neighbours */
@media (max-width: 640px) {
    html body #stepContainer .v3-prev { left: -0.2rem !important; }
    html body #stepContainer .v3-next { right: -0.2rem !important; }
    html body #stepContainer .v3-arrow { width: 2.2rem !important; height: 2.2rem !important; }
}

/* ================= Colours: carousel arrows, dots, step indicator ================= */
html body #stepContainer .v3-arrow {
    background: #fbf8f4 !important; color: #c0392b !important;
    border: 0 !important; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6) inset !important;
}
html body #stepContainer .v3-arrow:hover:not(:disabled) { background: #fff !important; color: #e9795c !important; }
html body #stepContainer .v3-arrow:disabled { opacity: 0 !important; pointer-events: none; }
html body #stepContainer .v3-dots { gap: 0.45rem; margin-top: 0.5rem; }
html body #stepContainer .v3-dot { width: 0.45rem; height: 0.45rem; background: rgba(251, 248, 244, 0.28); }
html body #stepContainer .v3-dot.is-sel { background: rgba(233, 121, 92, 0.75); }
html body #stepContainer .v3-dot.is-cur { width: 1.4rem; background: linear-gradient(90deg, #e9795c, #c0392b); box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5); }

/* step indicator */
html body #stepContainer .v3-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto; max-width: 22rem; }
html body #stepContainer .v3-step {
    flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: rgba(251, 248, 244, 0.7) !important;
    background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(251, 248, 244, 0.25);
}
html body #stepContainer .v3-step.is-done { color: #e9795c !important; border-color: rgba(233, 121, 92, 0.8); background: rgba(233, 121, 92, 0.12); }
html body #stepContainer .v3-step.is-done svg { stroke: #e9795c; }
html body #stepContainer .v3-step.is-cur {
    color: #fff !important; border: 0; background: linear-gradient(135deg, #e9795c, #c0392b);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.5), 0 0 0 4px rgba(233, 121, 92, 0.18);
    transform: scale(1.08);
}
html body #stepContainer .v3-step-line { flex: 1 1 auto; height: 2px; min-width: 0.8rem; max-width: 2.6rem; margin: 0 0.25rem; border-radius: 2px; background: rgba(251, 248, 244, 0.2); }
html body #stepContainer .v3-step-line.is-done { background: linear-gradient(90deg, #e9795c, #c0392b); }

/* Arrow icon: the page's global "* { color: white }" also hits the svg, so set it on the svg itself */
html body #stepContainer .v3-arrow svg, html body #stepContainer .v3-arrow svg * { color: #c0392b !important; stroke: #c0392b !important; }
html body #stepContainer .v3-arrow:hover:not(:disabled) svg, html body #stepContainer .v3-arrow:hover:not(:disabled) svg * { color: #e9795c !important; stroke: #e9795c !important; }

/* 3D cards: no white tile, the cut-out photo stands on the dark card like the goodies */
html body #stepContainer .v3-carousel[data-kind="card"] .v3-slide-media {
    background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%) !important;
    padding: 0.2rem !important; border-radius: 0.7rem;
}
html body #stepContainer .v3-carousel[data-kind="card"] .v3-slide-media img {
    inset: 0.2rem !important; width: calc(100% - 0.4rem) !important; height: calc(100% - 0.4rem) !important;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)) !important;
}
html.v3-js #stepContainer img.v3-nofade, html.v3-js .v3x-sheet img.v3-nofade { transition: none !important; }

/* ================= Smooth designer open / close ================= */
@keyframes v3xFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes v3xFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes v3xSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes v3xSlideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes v3xPopIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes v3xPopOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(0.98); } }
.v3x-backdrop { animation: v3xFadeIn 0.28s ease both; }
.v3x-backdrop .v3x-sheet { animation: v3xSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; will-change: transform; }
.v3x-backdrop.is-closing { animation: v3xFadeOut 0.22s ease both; }
.v3x-backdrop.is-closing .v3x-sheet { animation: v3xSlideDown 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
@media (min-width: 768px) {
    .v3x-backdrop .v3x-sheet { animation: v3xPopIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .v3x-backdrop.is-closing .v3x-sheet { animation: v3xPopOut 0.2s ease both; }
}
/* contents inside the sheet fade softly when switching motif / card type (no hard swap) */
.v3x-preview img.is-loaded { animation: v3xFadeIn 0.25s ease both; }
@media (prefers-reduced-motion: reduce) {
    .v3x-backdrop, .v3x-backdrop .v3x-sheet, .v3x-backdrop.is-closing, .v3x-backdrop.is-closing .v3x-sheet, .v3x-preview img.is-loaded { animation: none !important; }
}

/* ================= One colour family everywhere (the designer's coral) ================= */
/* The promotion sets --lpc-orange inline (#b8321c); a stylesheet !important wins over that. */
html { --lpc-orange: #d9573f !important; --v3-accent: #e9795c; --v3-accent-dark: #c0392b; --v3-grad: linear-gradient(90deg, #e9795c, #c0392b); }
html body .bg-lpc-orange { background: var(--v3-grad) !important; background-color: #d9573f !important; background-image: var(--v3-grad) !important; }
html body .border-lpc-orange { border-color: var(--v3-accent) !important; }
html body .text-lpc-orange { color: #f08a6c !important; }
html body #stepContainer a.text-lpc-orange { color: #f3a184 !important; }
html body .custom-checkbox, html body .custom-radio { border-color: var(--v3-accent) !important; }
html body .custom-checkbox:checked, html body .custom-radio:checked { background-color: #d9573f !important; border-color: var(--v3-accent) !important; }
/* selected amount / "no card" pills */
html body #stepContainer .amount-btn.bg-lpc-orange, html body #stepContainer .v3-none.bg-lpc-orange {
    border-color: transparent !important; box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4); color: #fff !important;
}
html body #stepContainer .amount-btn:not(.bg-lpc-orange), html body #stepContainer .v3-none:not(.bg-lpc-orange) { border-color: rgba(251, 248, 244, 0.28) !important; }
/* selected tiles, check badges, delivery cards */
html body #stepContainer .v3-slide.is-on, html body #stepContainer .v3-edition.is-on { border-color: var(--v3-accent) !important; box-shadow: 0 0 0 3px rgba(233, 121, 92, 0.22), 0 14px 30px rgba(0, 0, 0, 0.45) !important; }
html body #stepContainer .v3-slide-check { background: var(--v3-grad) !important; box-shadow: 0 3px 8px rgba(192, 57, 43, 0.45); }
html body #stepContainer .delivery-option.border-lpc-orange { box-shadow: 0 0 0 3px rgba(233, 121, 92, 0.18); }
html body #stepContainer .delivery-option .bg-lpc-orange.rounded-full { background: var(--v3-grad) !important; }
/* big value display uses the soft coral tint instead of the old dark red */
html body #stepContainer [style*="184, 50, 28"], html body #stepContainer [style*="#b8321c"] { background-color: rgba(233, 121, 92, 0.16) !important; }
html body #stepContainer .v3-value { border-radius: 1rem !important; border: 1px solid rgba(233, 121, 92, 0.35); }
/* Re-painting the sheet (motif / type / colour change) must not replay the opening animation */
.v3x-backdrop.v3x-ready { animation: none; }
.v3x-backdrop.v3x-ready .v3x-sheet { animation: none; }
.v3x-backdrop.v3x-ready.is-closing { animation: v3xFadeOut 0.22s ease both; }
.v3x-backdrop.v3x-ready.is-closing .v3x-sheet { animation: v3xSlideDown 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
@media (min-width: 768px) { .v3x-backdrop.v3x-ready.is-closing .v3x-sheet { animation: v3xPopOut 0.2s ease both; } }
/* designer: no fade on swapped images, hidden helper */
.v3x-preview img.is-loaded { animation: none !important; }
.v3x-exonly[hidden] { display: none !important; }
.v3x-pimg img:not([src]) { visibility: hidden; }
/* banner: never hidden, never shimmering, never part of the step animation */
html.v3-js #stepContainer .promo-banner img { opacity: 1 !important; transition: none !important; animation: none !important; }
html.v3-js #stepContainer .promo-banner { animation: none !important; background-image: none !important; }
html body #stepContainer .promo-banner.v3-banner { opacity: 1 !important; transform: none !important; }

/* First visit of step 1: loader instead of the carousel until the designer is open */
@keyframes v3Spin { to { transform: rotate(360deg); } }
html body #stepContainer .v3-pending { position: relative; }
html body #stepContainer .v3-pending .v3-carousel,
html body #stepContainer .v3-pending .v3-cardsum { visibility: hidden; }
html body #stepContainer .v3-loader { position: absolute; inset: 3.2rem 0 0 0; display: flex; align-items: center; justify-content: center; }
html body #stepContainer .v3-spinner {
    width: 2.6rem; height: 2.6rem; border-radius: 999px;
    border: 3px solid rgba(251, 248, 244, 0.18); border-top-color: #e9795c; border-right-color: #c0392b;
    animation: v3Spin 0.8s linear infinite;
}
html body .v3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html body #stepContainer .v3-spinner { animation-duration: 2s; } }
.v3x-classic-only[hidden], .v3x-exnote[hidden] { display: none !important; }
/* step 1 tiles: landscape gift cards */
html body #stepContainer .v3-carousel[data-kind="theme"] .v3-slide-media { aspect-ratio: 1000 / 610 !important; }

/* ================= Footer (like lepetitchef.com/gift) ================= */
html body .v3-footer { text-align: center; padding: 0.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
html body .v3-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.1rem; }
html body .v3-footer-links a {
    font-size: 0.82rem; color: rgba(251, 248, 244, 0.72) !important; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: rgba(251, 248, 244, 0.35); padding: 0.55rem 0.15rem; min-height: 44px; display: inline-flex; align-items: center;
}
html body .v3-footer-links a:hover { color: #fff !important; text-decoration-color: #e9795c; }
html body main#mainContent { min-height: auto !important; }

/* ================= First load: footer at the bottom + loader ================= */
html body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
html body > header { flex: 0 0 auto; }
html body main#mainContent { flex: 1 0 auto; position: relative; width: 100%; }
html body .v3-footer { flex: 0 0 auto; margin-top: auto; }
/* loader while the shop data loads (stepContainer is empty and invisible until .has-content) */
html body .v3-page-loader { position: absolute; left: 0; right: 0; top: 0; height: min(28rem, 60vh); display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity 0.25s ease; }
html body #stepContainer.has-content ~ .v3-page-loader { opacity: 0; visibility: hidden; }
html body .v3-page-loader .v3-spinner {
    width: 2.8rem; height: 2.8rem; border-radius: 999px;
    border: 3px solid rgba(251, 248, 244, 0.18); border-top-color: #e9795c; border-right-color: #c0392b;
    animation: v3Spin 0.8s linear infinite;
}

/* ================= First load: wireframe (skeleton) in the shape of the start page ================= */
html body .v3-page-loader { height: auto; top: 0; padding: 0.6rem 0.5rem 0; align-items: flex-start; }
html body .v3-page-loader .v3-spinner { display: none; }
html body .v3-skel {
    width: 100%; max-width: 48rem; margin: 0 auto; padding: 0.6rem; border-radius: 0.9rem;
    background: linear-gradient(43deg, rgba(39, 39, 39, 0.92) 0%, rgba(66, 67, 67, 0.92) 66%, rgba(39, 39, 39, 0.92) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
@media (min-width: 641px) { html body .v3-skel { padding: 1rem; border-radius: 1rem; } }
html body .v3-sk {
    display: block; border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.07) linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 70%);
    background-size: 200% 100%; animation: v3Shimmer 1.2s linear infinite;
}
html body .v3-sk-banner { aspect-ratio: 770 / 400; border-radius: 0.9rem; margin-bottom: 0.9rem; }
html body .v3-sk-note { height: 3.6rem; width: 86%; margin: 0 auto 0.9rem; border-radius: 0.8rem; }
html body .v3-sk-card { padding: 1rem 0.9rem; border-radius: 0.8rem; background: rgba(255, 255, 255, 0.04); }
html body .v3-sk-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
html body .v3-sk-ico { width: 1.2rem; height: 1.2rem; border-radius: 0.3rem; flex: 0 0 auto; }
html body .v3-sk-line { height: 0.9rem; border-radius: 999px; }
html body .v3-sk-promo { height: 3.2rem; margin-top: 0.4rem; border-radius: 0.6rem; }
html body .v3-sk-btn { height: 52px; border-radius: 999px; margin-top: 1.1rem; }
@media (prefers-reduced-motion: reduce) { html body .v3-sk { animation: none; } }
/* while loading, keep room for the skeleton so the footer sits at the bottom */
html body #stepContainer:not(.has-content) { min-height: min(46rem, 85vh) !important; }
/* skeleton in the normal flow: it defines the height while loading, footer sits at the bottom */
html body main#mainContent { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; }
html body main#mainContent > #stepContainer { margin-left: auto; margin-right: auto; }
html body #stepContainer:not(.has-content) { min-height: 0 !important; }
html body .v3-page-loader { position: static !important; padding: 0 !important; }
html body #stepContainer.has-content ~ .v3-page-loader { display: none !important; }

/* Bigger tap areas in the delivery step (same look): checkbox rows and the terms "(View)" link */
html body #stepContainer label:has(> .custom-checkbox),
html body #stepContainer label:has(> .custom-radio) { min-height: 44px; }
html body #stepContainer .custom-checkbox, html body #stepContainer .custom-radio { flex: 0 0 auto; }
html body #stepContainer a.text-lpc-orange {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.35rem; margin: -0.8rem 0 -0.8rem -0.1rem;
}

/* Custom amount + alert dialogs in the designer style */
html body #inputModal > div, html body #alertModal > div { border-radius: 1.25rem !important; background: #fbf8f4 !important; }
html body #inputModal h3, html body #inputModal p, html body #alertModal h3, html body #alertModal p { color: #1f1a17 !important; }
html body #inputModal button[onclick^="closeInputModal"] {
    border-radius: 999px !important; background: #fff !important; color: #1f1a17 !important; border: 2px solid #e2d8cf !important; min-height: 48px;
}
html body #inputModal button[onclick^="confirmCustomAmount"], html body #alertModal button {
    border-radius: 999px !important; background: linear-gradient(90deg, #e9795c, #c0392b) !important; color: #fff !important; border: 0 !important;
    min-height: 48px; box-shadow: 0 8px 18px rgba(192, 57, 43, 0.35);
}
html body #inputModal input { border-radius: 0.8rem !important; border: 2px solid #e2d8cf !important; color: #1f1a17 !important; background: #fff !important; min-height: 48px; }
html body #inputModal input:focus { border-color: #e9795c !important; outline: none; box-shadow: 0 0 0 3px rgba(233, 121, 92, 0.2); }
/* Preview: long SKU names wrap instead of being cut */
html body #v3PreviewModal td { overflow-wrap: anywhere; word-break: break-word; }
html body #v3PreviewModal > div { max-height: 92dvh; overflow-y: auto; }

/* TMT designer: preview carousel (front / back / flyer + envelope) */
.v3x-pcar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v3x-pcar::-webkit-scrollbar { display: none; }
.v3x-pslide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.v3x-pslide span { font-size: 0.78rem; font-weight: 600; color: #5b524c; }
html.v3-brand-tmt .v3x-tmt-preview .v3x-pslide .v3x-pimg { aspect-ratio: 16 / 7 !important; width: 100%; }
.v3x-pdots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.4rem; }
.v3x-pdots i { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: rgba(0, 0, 0, 0.18); cursor: pointer; transition: width 0.2s; }
.v3x-pdots i.is-cur { width: 1.3rem; background: linear-gradient(90deg, #e9795c, #c0392b); }

/* Delivery options: compact like the original LPC list (tap area still 40px) */
html body #stepContainer .delivery-option .space-y-3 > label:has(> .custom-checkbox) { min-height: 40px; margin-top: 0 !important; }
html body #stepContainer .delivery-option .space-y-3 > label:has(> .custom-checkbox) + label:has(> .custom-checkbox) { margin-top: 0.1rem !important; }
html body #stepContainer .delivery-option .space-y-3 > div.pt-2 { margin-top: 0.5rem !important; }
html body #stepContainer .delivery-option label:has(> .custom-radio) { min-height: 40px; }

/* ================= 1) more room above the step indicator on desktop ================= */
@media (min-width: 768px) {
    html body #stepContainer .v3-steps { margin-top: 1.4rem; }
}

/* ================= 2) banner variants (debug) ================= */
html body #stepContainer .promo-banner.v3-banner { position: relative !important; overflow: hidden; }
/* original: full height */
html[data-v3banner] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 400 !important; background: transparent !important; }
html[data-v3banner] body #stepContainer .promo-banner.v3-banner img.v3-bb { display: none !important; }
html[data-v3banner] body #stepContainer .promo-banner.v3-banner img.v3-bf {
    position: relative; display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important;
    object-position: center 50%; border-radius: 0.9rem; box-shadow: none !important;
}
/* -20% / -40%: same width, height cut, centred */
html[data-v3banner="h80"] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 320 !important; }
html[data-v3banner="h60"] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 240 !important; }
/* blur: whole banner, lower height, blurred copy fills left and right */
html[data-v3banner="blur"] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 260 !important; background: #140f0d !important; }
@media (min-width: 768px) { html[data-v3banner="blur"] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 220 !important; } }
html[data-v3banner="blur"] body #stepContainer .promo-banner.v3-banner img.v3-bb {
    display: block !important; position: absolute; inset: -10%; width: 120% !important; height: 120% !important; max-width: none !important;
    object-fit: cover !important; filter: blur(18px) brightness(0.55) saturate(1.2); border-radius: 0;
}
html[data-v3banner="blur"] body #stepContainer .promo-banner.v3-banner img.v3-bf {
    width: auto !important; max-width: 100% !important; margin: 0 auto; object-fit: contain !important; border-radius: 0.6rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}
/* debug buttons, top right */
html body #stepContainer .v3-bdbg {
    position: absolute; top: 0.4rem; right: 0.4rem; z-index: 3; display: flex; gap: 0.2rem; padding: 0.2rem;
    border-radius: 999px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); border: 1px dashed rgba(255, 255, 255, 0.45);
}
html body #stepContainer .v3-bdbg button {
    font: 600 0.68rem/1 'Rubik', sans-serif; color: #fff !important; padding: 0.35rem 0.5rem; border-radius: 999px; background: transparent; min-height: 0;
}
html body #stepContainer .v3-bdbg button.is-on { background: #fff; color: #111 !important; }
html[data-v3banner="blur"] body #stepContainer .promo-banner.v3-banner img.v3-bb { filter: blur(16px) brightness(0.85) saturate(1.35) !important; }
html[data-v3banner="h80"] body #stepContainer .promo-banner.v3-banner img.v3-bf { object-position: center 42% !important; }
html[data-v3banner="h60"] body #stepContainer .promo-banner.v3-banner img.v3-bf { object-position: center 36% !important; }
/* single packaging option: shown as chosen, not greyed out */
html body #stepContainer .v3-pack-only { cursor: default; opacity: 1 !important; }
html body #stepContainer .v3-pack-only .custom-radio:disabled { opacity: 1 !important; cursor: default; }
html body #stepContainer .v3-pack-note { margin: 0.15rem 0 0 0.5rem; font-size: 0.78rem; line-height: 1.35; color: rgba(251, 248, 244, 0.7) !important; }
/* -60% banner draft */
html[data-v3banner="h40"] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 160 !important; }
html[data-v3banner="h40"] body #stepContainer .promo-banner.v3-banner img.v3-bf { object-position: center 38% !important; }
/* step indicator: same space above and below on desktop (18px) */
@media (min-width: 768px) {
    html body #stepContainer .v3-steps { margin-top: calc(1.4rem - 4px); }
    html body #stepContainer .text-center.mb-4:has(> .v3-steps) { margin-bottom: 18px !important; }
}
html body #stepContainer .v3-bdbg button { padding: 0.35rem 0.42rem; }
/* step indicator: exactly the same space above and below on desktop */
@media (min-width: 768px) {
    html body #stepContainer > div > .promo-banner.v3-banner { margin-bottom: 16px !important; }
    html body #stepContainer .v3-steps { margin-top: 0 !important; }
    html body #stepContainer > div > .text-center.mb-4 { margin-top: 0 !important; margin-bottom: 16px !important; }
}
@media (min-width: 768px) {
    html body #stepContainer div:has(> .v3-steps) { margin-top: 0 !important; margin-bottom: 16px !important; }
}
html body #stepContainer div:has(> .v3-steps) + * { margin-top: 0 !important; }
@media (max-width: 767px) { html body #stepContainer div:has(> .v3-steps) { margin-bottom: 12px !important; } }
html body #stepContainer div:has(> .v3-steps) { display: flex; justify-content: center; line-height: 0; }
html body #stepContainer div:has(> .v3-steps) .v3-step { line-height: 1; }
@media (min-width: 768px) { html body #stepContainer .text-center.mb-4:has(> .v3-steps) { margin-bottom: 16px !important; } }
@media (max-width: 767px) { html body #stepContainer .text-center.mb-4:has(> .v3-steps) { margin-bottom: 12px !important; } }

/* Start page benefits box: fixed padding (Tailwind's p-5 is missing when the CDN loads late) */
html body #stepContainer .rounded-xl.p-5 { padding: 1.25rem !important; }
html body #stepContainer .rounded-xl.p-5 .benefit-row + .rounded-xl,
html body #stepContainer .rounded-xl.p-5 > div > div:last-child:not(.benefit-row) { margin-top: 0.75rem; }
@media (max-width: 420px) { html body #stepContainer .rounded-xl.p-5 { padding: 1rem 0.9rem !important; } }

/* Exklusiv "coming soon" tile (Tom 18.11.) */
html body #stepContainer .v3-slide.is-soon { cursor: default; }
html body #stepContainer .v3-slide.is-soon .v3-slide-media img { filter: grayscale(.85); opacity: .45; }
html body #stepContainer .v3-slide.is-soon .v3-slide-name { opacity: .6; }
html body #stepContainer .v3-slide.is-soon .v3-slide-check { display: none; }
html body #stepContainer .v3-slide-media .v3-soon-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  padding: .45rem 1rem; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #e9795c, #c0392b); color: #fff;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Tablet/desktop: 2.5 products visible so people see there is more to scroll (Tom 18.11.) */
@media (min-width: 641px) {
    html body #stepContainer .v3-carousel:not(.v3-few):not([data-kind="theme"]) .v3-slide { flex-basis: calc((100% - 1.8rem) / 2.5) !important; }
}

/* Banner -30% (Tom 18.11.: the chosen banner height) */
html[data-v3banner="h70"] body #stepContainer .promo-banner.v3-banner.v3-banner-compact { aspect-ratio: 770 / 280 !important; }
html[data-v3banner="h70"] body #stepContainer .promo-banner.v3-banner img.v3-bf { object-position: center 40% !important; }

/* Delivery step: terms as its own card with room above the sticky buttons (Tom 18.11.) */
html body #stepContainer .v3-terms {
    margin-top: 1.25rem !important; padding: 0.9rem 1rem !important; border: 2px solid rgba(255,255,255,0.18) !important;
    border-radius: 0.9rem; background: rgba(255,255,255,0.05); scroll-margin: 6rem 0 9rem;
    transition: border-color .2s, background-color .2s;
}
html body #stepContainer .v3-terms label { align-items: flex-start !important; gap: 0.8rem !important; }
html body #stepContainer .v3-terms .custom-checkbox { flex: 0 0 auto; width: 1.6rem !important; height: 1.6rem !important; margin-top: 0.05rem; }
html body #stepContainer .v3-terms span { font-size: 0.95rem !important; line-height: 1.45; }
html body #stepContainer .v3-terms.is-ok { border-color: rgba(255,255,255,0.32) !important; }
html body #stepContainer .v3-terms.v3-terms-attn { border-color: var(--lpc-orange, #d9573f) !important; background: rgba(217,87,63,0.12); animation: v3TermsPulse 0.9s ease-in-out 2; }
@keyframes v3TermsPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,87,63,0); } 50% { box-shadow: 0 0 0 6px rgba(217,87,63,0.35); } }
@media (prefers-reduced-motion: reduce) { html body #stepContainer .v3-terms.v3-terms-attn { animation: none; } }
/* room below the terms so the sticky Back/Weiter bar never covers them */
html body #stepContainer div:has(> div > .v3-terms) { padding-bottom: 0.5rem; }
@media (max-width: 640px) {
    html body #stepContainer .v3-terms { margin-bottom: 1rem; }
}

/* Cookie "settings" button of the consent banner: on phones/tablets it covered the Back button of the
   sticky button bar. Hidden there; the footer "Cookies" link reopens the same settings (Tom 18.11.). */
@media (max-width: 1023px) {
    html body #lpc-cc2 .cc-reopen { display: none !important; }
}

/* Smaller phones: everything a little smaller (Tom 18.11.). Inputs stay 16px (no iOS zoom). */
@media (max-width: 400px) { html { font-size: 15px; } }
@media (max-width: 360px) { html { font-size: 14px; } }

/* Page background (TMT sparkles / LPC kitchen): phones resized the fixed layer when the browser bar
   collapsed while scrolling -> the background jumped and a dark band showed at the bottom (Tom 18.11.).
   Size it to the LARGEST viewport so it never resizes, and keep it still. */
html body #pageBgLayer {
    inset: auto !important; top: 0 !important; left: 0 !important; right: 0 !important;
    height: 100vh !important; height: 100lvh !important;
    transform: none !important;
}
html, html body { background-color: #111 !important; }

/* preview pop-up: test card number was white on white in TMT */
html body #v3PreviewModal b { color: #111827 !important; }
