/* frontendshop2 — fixed shop page layout.
   Colours are CSS custom properties set per shop (views/site/_styletag.php):
   --shop-headerBackground/-headerText, --shop-mainBackground/-mainText,
   --shop-buttonBackground/-buttonText, --shop-footerBackground/-footerText,
   --shop-sublineBackground/-sublineText, --shop-fontFamily. */

/* Hausschriften, lokal ausgeliefert (keine externen CDNs, DSGVO).
   Die Dateien liegen in @frontendshop2/assets/public/fonts und werden über
   ShopAsset::$publishOptions mitpubliziert — der 'only'-Filter dort muss
   'fonts/*' enthalten, sonst laufen die relativen URLs unten ins Leere.

   Aktiv genutzt wird derzeit nur Matter (Default in --shop-fontFamily).
   Concrette, Ginto und Playpen sind vorbereitet: Datei + @font-face liegen
   bereit, auswählbar per Backend-Feld "Schriftart" (shopStyle.fontFamily
   in common/config/_base/_shopcontent.php). Kundeneigene Schriften kommen
   nicht hierher, sondern ins Storage — siehe das customCss-Feld.

   Die Einzelschnitt-Familien deklarieren font-weight als Range 400 700,
   damit der Browser fette Auszeichnungen aus derselben Datei bedient statt
   sie synthetisch zu verzerren. */

/* Matter — Fließtext- und UI-Schrift, drei echte Schnitte */
@font-face {
    font-family: 'Matter';
    src: url('../fonts/MatterRegular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Matter';
    src: url('../fonts/MatterMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Matter';
    src: url('../fonts/Matter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Concrette — vorbereitet, nicht aktiv */
@font-face {
    font-family: 'Concrette';
    src: url('../fonts/ConcretteS-Regular.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Ginto (ABC Ginto Nord Condensed) — vorbereitet, nicht aktiv; Display-Schrift */
@font-face {
    font-family: 'Ginto';
    src: url('../fonts/ABCGintoNordCondensed-Bold.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Playpen Sans — vorbereitet, nicht aktiv */
@font-face {
    font-family: 'Playpen';
    src: url('../fonts/PlaypenSans-Regular.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --shop-fontFamily: 'Matter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --shop-headerBackground: #002a43;
    --shop-headerText: #ffffff;
    --shop-sublineBackground: #ffffff;
    --shop-sublineText: #e75700;
    --shop-mainBackground: #ffffff;
    --shop-mainText: #1a1a1a;
    --shop-buttonBackground: #1f2937;
    --shop-buttonText: #ffffff;
    --shop-footerBackground: #1f2937;
    --shop-footerText: #ffffff;
    --shop-max-width: 1080px;
}

* { box-sizing: border-box; }

/* no rounded corners anywhere on the shop page */
*,
*::before,
*::after { border-radius: 0 !important; }

body {
    margin: 0;
    font-family: var(--shop-fontFamily, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    line-height: 1.55;
    background: var(--shop-mainBackground);
    color: var(--shop-mainText);
}

/* Bootstrap rides along as a ShopAsset dependency and colours links. The reset below wins for
   the resting state, but its "a:hover" is one specificity step higher, so links used to turn
   Bootstrap blue the moment the pointer touched them - in the header, in editor texts, anywhere.
   Naming the hover state here is enough: equal specificity, and shop.css is loaded last. */
a { color: inherit; }
a:hover { color: inherit; }
img { max-width: 100%; height: auto; }

/* Bootstrap 5 instead of 4 since 2026-11: the shops keep Bootstrap 4's look. Links underlined only on hover (where a
   rule below does not say otherwise), the content no wider than 1140px on very wide screens (Bootstrap 5 adds a
   1320px step from 1400px), and Bootstrap 4's 30px gutters between template columns instead of 24px. */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
@media (min-width: 1400px) {
    .container { max-width: 1140px; }
}
/* the containers too: Bootstrap 5 takes their side padding from the same variable */
.container, .container-fluid, .row { --bs-gutter-x: 30px; }
/* lists indented like the browser default (Bootstrap 5: 2rem); dividers fully opaque and light grey unless a shop's
   own CSS colours them (Bootstrap 5: 25% of the text colour) */
ul, ol { padding-left: 40px; }
hr { opacity: 1; border-top-color: rgba(0, 0, 0, .1); }

.shop-slot { display: block; }

/* header */
.shop-header { background: var(--shop-headerBackground); color: var(--shop-headerText); }
.shop-header__inner {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.shop-header__logo img { max-height: 55px; width: auto; display: block; }
.shop-header__actions { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.shop-header__lang { display: flex; gap: 0.75rem; }
.shop-header__lang a { text-decoration: none; opacity: 0.7; }
.shop-header__lang a.is-active { opacity: 1; font-weight: 700; text-decoration: underline; }
.shop-header__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.shop-header__cart-icon { display: block; }
.shop-header__cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.6rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-buttonBackground);
    color: var(--shop-buttonText);
    /* The badge takes the CTA colours, which a shop may well set close to its header colour -
       with the stock palette the two are one step apart. The ring keeps the circle readable as a
       shape whatever the two are set to. */
    box-shadow: 0 0 0 1px var(--shop-headerText);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    /* bewusste Ausnahme vom globalen "no rounded corners"-Reset oben */
    border-radius: 999px !important;
}

/* main — desktop 2 columns, mobile 1 */
.shop-main {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    /* Bild- und Textspalte beginnen beide oben, statt zur Mitte der hoeheren Spalte
       ausgerichtet zu werden. Einspaltig (mobil) macht das keinen Unterschied. */
    align-items: start;
}
@media (max-width: 820px) {
    .shop-main { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
    .shop-subline {font-size: 1.1rem;  }
}
.shop-headline { margin: 0 0 0.5rem; font-size: 2rem; }
.shop-subline { margin: 0 0 1.25rem; font-size: 1.25rem; line-height:1.2; opacity: 0.8; }
.shop-belowbutton { margin: 0.75rem 0 0; font-size: 0.95rem; opacity: 0.75; }

/* order confirmation / thank-you page */
.shop-confirmation { max-width: var(--shop-max-width); margin: 0 auto; padding: 4rem 1.25rem; }
.shop-confirmation__inner { max-width: 620px; }
.shop-confirmation__headline { margin: 0 0 1rem; font-size: 1.9rem; }
.shop-confirmation__text { margin: 0 0 0.75rem; font-size: 1.05rem; }
.shop-confirmation__text--muted { opacity: 0.75; font-size: 0.95rem; }
.shop-confirmation__download { margin: 1rem 0 0.5rem; }
.shop-confirmation__pending { margin-top: 1rem; opacity: 0.85; font-style: italic; }
.shop-confirmation__back { margin-top: 2rem; font-size: 0.95rem; }
@media (max-width: 820px) { .shop-confirmation { padding: 2.5rem 1.25rem; } }

/* product images */
.shop-productimages { position: relative; overflow: hidden; }
.shop-productimages__track {
    display: flex;
    transition: transform 0.3s ease;
}
/* pan-y laesst vertikales Scrollen der Seite zu und behaelt die horizontale Geste
   fuer den Bildwechsel — ohne das wuerde ein Wisch auf dem Bild die Seite scrollen. */
.shop-productimages--multi .shop-productimages__track {
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}
.shop-productimages--multi.is-dragging .shop-productimages__track { cursor: grabbing; }
/* waehrend des Ziehens folgt das Bild dem Finger, da darf keine Transition dazwischen */
.shop-productimages--multi.is-dragging .shop-productimages__track { transition: none; }
.shop-productimages__img { flex: 0 0 100%; width: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
    .shop-productimages__track { transition: none; }
}
.shop-productimages__dots { display: flex; gap: 0.4rem; justify-content: center; align-items: center; margin-top: 0.7rem; }
.shop-productimages__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    position: relative;
    /* bewusste Ausnahme vom globalen "no rounded corners"-Reset oben */
    border-radius: 999px !important;
    transition: width 0.25s ease, background-color 0.25s ease;
}
/* unsichtbar groessere Klickflaeche — 8px trifft man mit dem Finger sonst kaum.
   Horizontal nur bis zur Haelfte der gap, damit sich benachbarte Dots nicht ueberlappen. */
.shop-productimages__dot::after { content: ''; position: absolute; inset: -9px -3px; }
.shop-productimages__dot:hover { background: rgba(0, 0, 0, 0.4); }
.shop-productimages__dot.is-active { width: 26px; background: var(--shop-buttonBackground); }
@media (prefers-reduced-motion: reduce) {
    .shop-productimages__dot { transition: none; }
}

/* buy form */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size:1.2rem;
    min-height: 3rem;
    padding: 0.7rem 1.5rem;
    background: var(--shop-buttonBackground);
    color: var(--shop-buttonText);
    text-decoration: none;
    border: 1px solid var(--shop-buttonBackground);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.shop-btn:hover { opacity: 0.9; }
/* pointer-events also keeps the :hover opacity from firing while the button is locked */
.shop-btn:disabled, .shop-btn.is-loading { opacity: 0.6; cursor: default; pointer-events: none; }
.shop-buy { width: 340px; max-width: 100%; }
.shop-buy__amount-row { margin-bottom: 0.6rem; }
.shop-buy__action-row { display: flex; gap: 0.6rem; align-items: stretch; }

.shop-buy__value, .shop-buy__custom, .shop-buy__qty {
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: #ffffff;
    color: #1a1a1a;
    font: inherit;
    line-height: 1.2;
}
.shop-buy__value, .shop-buy__custom { width: 100%; display: block; }
.shop-buy__value {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%231a1a1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
}
.shop-buy__value:focus, .shop-buy__custom:focus, .shop-buy__qty:focus {
    outline: none;
    border-color: var(--shop-buttonBackground);
}
.shop-buy__custom { margin-top: 0.4rem; }
.shop-buy__qty { width: 4.5rem; text-align: center; flex: 0 0 auto; }
.shop-buy__action-row .shop-btn { flex: 1 1 auto; }
.shop-buy__soldout { opacity: 0.7; font-style: italic; }
/* FontAwesome icon inside the button label; --loading is the spinner that replaces it on click */
.shop-buy__icon { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
    .shop-buy__icon--loading.fa-spin { animation-duration: 3s; }
}

/* inline "button" links inside editor texts: <a class="button" href="…">…</a> */
.shop-main a.button,
.shop-belowheader a.button,
.shop-belowmain a.button,
.shop-footer a.button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid currentColor;
    font-weight: 600;
    text-decoration: none;
}
.shop-main a.button:hover,
.shop-belowheader a.button:hover,
.shop-belowmain a.button:hover,
.shop-footer a.button:hover { opacity: 0.8; }

/* free text strip under the header — colour across the full width, content on the grid.
   Without content the whole section is left out, so the padding never shows on its own. */
.shop-belowheader {
    background: var(--shop-sublineBackground);
    color: var(--shop-sublineText);
}
.shop-belowheader__inner {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}
.shop-belowheader__inner > :first-child { margin-top: 0; }
.shop-belowheader__inner > :last-child { margin-bottom: 0; }
.shop-belowheader__inner img { display: block; }
@media (max-width: 820px) {
    .shop-belowheader__inner { padding: 1.25rem 1.25rem; }
}

/* belowmain free text — full width */
.shop-belowmain { background: rgba(0,0,0,0.03); }
.shop-belowmain__inner { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.shop-belowmain__inner img { display: block; }
.shop-belowmain__inner p:last-child { margin-bottom:0; }

/* footer */
.shop-footer { background: var(--shop-footerBackground); color: var(--shop-footerText); }
.shop-footer__inner {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1rem;
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 720px) { .shop-footer__inner { grid-template-columns: 1fr; } }
.shop-footer__logo { max-height: 48px; width: auto; display: block; margin-bottom: 0.9rem; }
.shop-footer__about { margin: 0; opacity: 0.9; }
.shop-footer__contact-headline { font-weight: 700; margin-bottom: 0.35rem; }
.shop-footer__address { font-style: normal; opacity: 0.9; }
.shop-footer__pay-headline { font-weight: 700; margin: 0.9rem 0 0.4rem; }
.shop-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 1.6rem; opacity: 0.9; }
.shop-footer__pay-text { font-size: 0.8rem; border: 1px solid currentColor; padding: 0.1rem 0.4rem; }

.shop-footer__bottom {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1.5rem;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1.5rem;
}
.shop-footer__powered { opacity: 0.8; }
.shop-footer__legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; opacity: 0.8; }
.shop-footer__legal a { text-decoration: none; }
.shop-footer__legal a:hover { text-decoration: underline; }

/* Footer links fade instead of changing colour; a.button keeps the 0.8 it has among the
   editor-text buttons. The colour itself is handled by the a:hover reset at the top. */
.shop-footer a { transition: opacity 0.3s; }
.shop-footer a:not(.button):hover { opacity: 0.85; }
@media (max-width: 720px) {
    .shop-footer__bottom { flex-direction: column; align-items: flex-start; }
    .shop-footer__powered,
    .shop-footer__legal { font-size: 0.9em; }
}

/* "powered by" brand links — inherit the footer text colour */
.shop-footer__pb-link { color: inherit; text-decoration: underline; }
.shop-footer__pb-logo {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    vertical-align: -0.12em;
}
.shop-footer__pb-logo-svg { 
    height: 1.35em;
    width: auto;
    display: block;
    transform: translateY(2px);
}

/* ==========================================================================
   Template "restaurant" (.shop-tx) — transactional page built from the partner profile:
   staged voucher, amount buttons, reassurances, image strip, sticky buy bar on small screens.
   Works with the shop colours alone: the voucher card takes the header colours (the header logo
   is made for them), every accent is the button colour, tints are mixed from those.
   ========================================================================== */

.shop-tx {
    --tx-accent: var(--shop-buttonBackground);
    --tx-on-accent: var(--shop-buttonText);
    --tx-line: color-mix(in srgb, var(--shop-mainText) 16%, transparent);
    --tx-muted: color-mix(in srgb, var(--shop-mainText) 68%, transparent);
    --tx-tint: color-mix(in srgb, var(--shop-headerBackground) 9%, var(--shop-mainBackground));
    --tx-surface: color-mix(in srgb, var(--shop-mainBackground) 94%, #ffffff);
    --tx-radius: 14px;
    --tx-radius-small: 10px;
}

/* hero: stage on the left, buy panel on the right; one column below 900px */
.shop-tx__hero { background: var(--tx-tint); }
.shop-tx__hero-inner {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.shop-tx__stage { min-width: 0; }
.shop-tx__panel {
    min-width: 0;
    padding: 1.75rem;
    /* the panel has its own colours (white unless the shop says otherwise); everything inside
       derives its lines, muted text and button surfaces from them */
    --tx-panel: var(--shop-panelBackground, #ffffff);
    --tx-panel-text: var(--shop-panelText, #1a1a1a);
    --tx-line: color-mix(in srgb, var(--tx-panel-text) 16%, transparent);
    --tx-muted: color-mix(in srgb, var(--tx-panel-text) 68%, transparent);
    --tx-surface: var(--tx-panel);
    background: var(--tx-panel);
    color: var(--tx-panel-text);
    border: 1px solid var(--tx-line);
    border-radius: 24px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 22px 44px -26px rgba(0, 0, 0, 0.35);
}
.shop-tx .shop-headline { margin: 0 0 0.4rem; font-size: 1.85rem; line-height: 1.15; text-wrap: balance; }
.shop-tx .shop-subline { margin: 0 0 1.4rem; font-size: 1.05rem; line-height: 1.4; opacity: 1; color: var(--tx-muted); }
.shop-tx .shop-belowbutton { margin: 0.8rem 0 0; font-size: 0.9rem; opacity: 1; color: var(--tx-muted); text-align: center; }

@media (max-width: 900px) {
    .shop-tx__hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 1.75rem 1rem 2.25rem; }
    .shop-tx__panel { padding: 1.25rem; border-radius: 20px !important; }
    .shop-tx .shop-headline { font-size: 1.5rem; }
}

/* ---- voucher preview ---- */
.shop-voucher { position: relative; max-width: 460px; margin: 0 auto; padding: 1.25rem 1rem 1.75rem; }

/* stage: the voucher, followed by the product images as further slides */
.shop-stage { position: relative; min-width: 0; }
.shop-stage__track { display: flex; align-items: center; }
.shop-stage__slide { flex: 0 0 100%; min-width: 0; }
.shop-stage--multi .shop-stage__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* a scroll container clips: room for the card's turn and shadow */
    padding: 1.5rem 0 2.5rem;
}
.shop-stage--multi .shop-stage__track::-webkit-scrollbar { display: none; }
.shop-stage--multi .shop-stage__slide { scroll-snap-align: center; scroll-snap-stop: always; padding: 0 1.25rem; }
.shop-stage__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--tx-radius) !important;
}
.shop-stage__nav { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: -1rem; }
.shop-stage__dots { display: flex; align-items: center; gap: 0.4rem; }
.shop-stage__dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--shop-mainText) 25%, transparent);
    cursor: pointer;
    border-radius: 999px !important;
    transition: width 0.25s ease, background-color 0.25s ease;
}
.shop-stage__dot::after { content: ''; position: absolute; inset: -9px -3px; }
.shop-stage__dot.is-active { width: 26px; background: var(--tx-accent); }
.shop-stage__arrow {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1.5px solid color-mix(in srgb, var(--shop-mainText) 16%, transparent);
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 999px !important;
}
.shop-stage__arrow:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 900px) {
    .shop-stage--multi .shop-stage__track { padding: 0.75rem 0 2rem; }
    .shop-stage__img { max-height: 300px; }
    .shop-stage__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-stage__dot { transition: none; }
}

/* drawn card: credit-card proportions, header colours, a second card peeking out behind it */
.shop-voucher__card,
.shop-voucher__shadowcard {
    aspect-ratio: 1.586;
    border-radius: 18px !important;
}
.shop-voucher__shadowcard {
    position: absolute;
    inset: 1.25rem 1rem auto;
    background: var(--tx-accent);
    opacity: 0.9;
    transform: rotate(5deg) translate(3%, 4%);
}
.shop-voucher__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7% 8%;
    overflow: hidden;
    background: var(--shop-headerBackground);
    color: var(--shop-headerText);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 28px 50px -24px rgba(0, 0, 0, 0.55);
    transform: rotate(-3deg);
    container-type: inline-size;
}
/* soft light from the top left, so a flat brand colour reads as a physical card */
.shop-voucher__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}
.shop-voucher__brand { position: relative; min-height: 22%; display: flex; align-items: flex-start; }
.shop-voucher__logo { max-height: 3.25rem; max-width: 55%; width: auto; height: auto; object-fit: contain; display: block; }
.shop-voucher__name { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.shop-voucher__value { position: relative; display: flex; flex-direction: column; }
.shop-voucher__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.shop-voucher__amount { font-size: 2.6rem; font-size: clamp(1.9rem, 13cqw, 3.1rem); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.shop-voucher__foot { position: relative; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; opacity: 0.75; }
.shop-voucher__foot-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-voucher__code { letter-spacing: 0.12em; white-space: nowrap; }

/* picture of the real voucher, the chosen amount as a badge. Two kinds:
   --plain  a flat DIN A4 page: shown as a sheet with rounded corners and a shadow
   --mockup a staged mock-up that brings its own depth: larger, no frame, no shadow */
.shop-voucher--image { max-width: 420px; }
.shop-voucher--mockup { max-width: 560px; padding: 0; }
.shop-voucher--mockup .shop-voucher__img { max-height: 620px; border-radius: 0 !important; box-shadow: none; }
.shop-voucher--mockup .shop-voucher__badge { right: 6%; bottom: 5%; }
.shop-voucher__frame { position: relative; }
.shop-voucher__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 10px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 28px 50px -24px rgba(0, 0, 0, 0.5);
}
.shop-voucher__badge {
    position: absolute;
    right: -0.75rem;
    bottom: -0.9rem;
    padding: 0.45rem 0.95rem;
    background: var(--tx-accent);
    color: var(--tx-on-accent);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
    transform: rotate(4deg);
}
@media (max-width: 900px) {
    .shop-voucher { padding: 0.75rem 0.75rem 1.25rem; }
    .shop-voucher__shadowcard { inset: 0.75rem 0.75rem auto; }
    /* small enough that the amount buttons start on the first screen */
    .shop-voucher { max-width: 300px; }
    .shop-voucher--image { max-width: 230px; }
    .shop-voucher__img { max-height: 280px; }
    .shop-voucher__badge { font-size: 1.15rem; right: -0.5rem; bottom: -0.7rem; }
    .shop-voucher--mockup { max-width: 340px; padding: 0; }
    .shop-voucher--mockup .shop-voucher__img { max-height: 360px; }
}
@media (prefers-reduced-motion: no-preference) {
    .shop-voucher__card, .shop-voucher__frame { transition: transform 0.35s ease; }
    .shop-tx__stage:hover .shop-voucher__card { transform: rotate(-1deg) translateY(-3px); }
    .shop-tx__stage:hover .shop-voucher__frame { transform: translateY(-3px); }
}

/* ---- buy form with amount buttons ---- */
.shop-buy--buttons { width: auto; }
.shop-buy__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.shop-buy__legend { float: none; width: auto; margin: 0 0 0.5rem; padding: 0; font-size: 0.9rem; font-weight: 600; }
.shop-buy__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shop-buy__chip {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 3rem;
    margin: 0;
    padding: 0.6rem 0.25rem;
    border: 1.5px solid var(--tx-line);
    border-radius: var(--tx-radius-small) !important;
    background: var(--tx-surface);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.shop-buy__chip-input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; appearance: none; cursor: pointer; }
.shop-buy__chip:hover { border-color: color-mix(in srgb, var(--tx-panel-text, var(--shop-mainText)) 40%, transparent); }
.shop-buy__chip:has(.shop-buy__chip-input:checked) {
    border-color: var(--tx-accent);
    background: color-mix(in srgb, var(--tx-accent) 12%, var(--tx-panel, var(--shop-mainBackground)));
    box-shadow: inset 0 0 0 1px var(--tx-accent);
}
.shop-buy__chip:has(.shop-buy__chip-input:focus-visible) { outline: 2px solid var(--tx-panel-text, var(--shop-mainText)); outline-offset: 2px; }
/* the free amount takes two cells: its label is a word, not a number */
.shop-buy__chip--custom { grid-column: span 2; font-weight: 500; }
.shop-buy--buttons .shop-buy__custom,
.shop-buy--buttons .shop-buy__qty {
    border: 1.5px solid var(--tx-line);
    border-radius: var(--tx-radius-small) !important;
}
.shop-buy--buttons .shop-buy__custom { margin-top: 8px; border-color: var(--tx-accent); }
.shop-buy--buttons .shop-buy__amount-row { margin-bottom: 1rem; }
.shop-buy--buttons .shop-buy__action-row { gap: 0.6rem; }
.shop-buy__stepper { display: flex; flex: 0 0 auto; }
.shop-buy__step {
    width: 2.6rem;
    min-height: 3.25rem;
    padding: 0;
    border: 1.5px solid var(--tx-line);
    background: var(--tx-surface);
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.shop-buy__step:hover { background: color-mix(in srgb, var(--tx-panel-text, var(--shop-mainText)) 8%, var(--tx-panel, var(--shop-mainBackground))); }
.shop-buy__step:first-child { border-right: 0; border-radius: var(--tx-radius-small) 0 0 var(--tx-radius-small) !important; }
.shop-buy__step:last-child { border-left: 0; border-radius: 0 var(--tx-radius-small) var(--tx-radius-small) 0 !important; }
.shop-buy__stepper .shop-buy__qty {
    width: 3rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.2rem;
    border-radius: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.shop-buy__stepper .shop-buy__qty::-webkit-outer-spin-button,
.shop-buy__stepper .shop-buy__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-buy--buttons .shop-buy__submit { min-height: 3.25rem; border-radius: var(--tx-radius-small) !important; }
@media (max-width: 380px) {
    .shop-buy__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    /* stepper a little narrower, so the button label stays on one line on a phone */
    .shop-buy__step { width: 2.2rem; }
    .shop-buy__stepper .shop-buy__qty { width: 2.4rem; }
    .shop-buy--buttons .shop-buy__submit { padding-left: 0.75rem; padding-right: 0.75rem; font-size: 1.1rem; white-space: nowrap; }
}

/* ---- reassurances + payment brands ---- */
.shop-trust { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--tx-line); }
.shop-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.shop-trust__item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; line-height: 1.35; }
.shop-trust__check { flex: 0 0 auto; margin-top: 0.05rem; color: var(--tx-accent); }
.shop-trust__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 1.7rem; line-height: 1; color: var(--tx-muted); }
.shop-trust__pay-text { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.45rem; border: 1px solid currentColor; border-radius: 4px !important; }

/* ---- image strip ----
   The page has three bands: the tinted hero, the image strip on the plain page colour and the
   free text on a light shade of the text colour. A hairline closes the hero, so the bands stay
   apart even where a shop's page colour is close to the tint. */
.shop-tx__hero { border-bottom: 1px solid var(--tx-line); }
.shop-gallery { background: var(--shop-mainBackground); }
.shop-gallery__inner { max-width: var(--shop-max-width); margin: 0 auto; padding: 4rem 1.25rem 2rem; }
.shop-gallery__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.shop-gallery__headline { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.shop-gallery__arrows { display: none; gap: 0.5rem; margin-left: auto; }
.shop-gallery.has-overflow .shop-gallery__arrows { display: flex; }
.shop-gallery__arrow {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--tx-line);
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 999px !important;
}
.shop-gallery__arrow:disabled { opacity: 0.35; cursor: default; }
.shop-gallery__arrow:not(:disabled):hover { border-color: currentColor; }
.shop-gallery__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2.5rem;
}
.shop-gallery__track::-webkit-scrollbar { display: none; }
.shop-gallery__item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.shop-gallery__img { display: block; height: 260px; width: auto; max-width: 78vw; object-fit: cover; border-radius: var(--tx-radius) !important; }
/* a single picture is a banner, not a strip */
.shop-gallery:not(.shop-gallery--multi) .shop-gallery__item { flex: 1 1 auto; }
.shop-gallery:not(.shop-gallery--multi) .shop-gallery__img { width: 100%; max-width: none; height: auto; max-height: 420px; }
@media (max-width: 900px) {
    .shop-gallery__inner { padding: 2.5rem 0 0.75rem 1rem; }
    .shop-gallery__head { padding-right: 1rem; }
    .shop-gallery__arrows { display: none !important; }
    .shop-gallery__img { height: 200px; }
    /* the last picture can still be pulled to the left edge */
    .shop-gallery__track { padding-right: 1rem; scroll-padding-left: 0; }
    .shop-gallery:not(.shop-gallery--multi) .shop-gallery__inner { padding-right: 1rem; }
}

/* ---- free text below; the section vanishes without content ---- */
.shop-tx__text {
    background: color-mix(in srgb, var(--shop-mainText) 4%, var(--shop-mainBackground));
    border-top: 1px solid var(--tx-line);
}
.shop-tx__text:has(.shop-tx__text-inner:empty) { display: none; }
.shop-tx__text-inner { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 3.5rem; font-size: 0.95rem; }
.shop-tx__text-inner:empty { display: none; }
.shop-tx__text-inner img { display: block; }
.shop-tx__text-inner > :last-child { margin-bottom: 0; }

/* ---- sticky buy bar, small screens only ---- */
.shop-sticky { display: none; }
@media (max-width: 900px) {
    .shop-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
        background: var(--shop-mainBackground);
        color: var(--shop-mainText);
        border-top: 1px solid color-mix(in srgb, var(--shop-mainText) 16%, transparent);
        box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, 0.4);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .shop-sticky.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease; }
    /* the amount looks like a select: it leads back to the amount buttons */
    .shop-sticky__amount {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 2.9rem;
        padding: 0 0.7rem;
        border: 1.5px solid color-mix(in srgb, var(--shop-mainText) 22%, transparent);
        background: transparent;
        color: inherit;
        font-size: 1.05rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        cursor: pointer;
        border-radius: 10px !important;
    }
    .shop-sticky__stepper {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        min-height: 2.9rem;
        border: 1.5px solid color-mix(in srgb, var(--shop-mainText) 22%, transparent);
        border-radius: 10px !important;
    }
    .shop-sticky__step { width: 2rem; height: 2.7rem; padding: 0; border: 0; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
    .shop-sticky__qty { min-width: 1.4rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
    .shop-sticky__btn { flex: 1 1 auto; min-width: 0; min-height: 2.9rem; padding: 0.6rem 0.8rem; font-size: 1rem; white-space: nowrap; border-radius: 10px !important; }
    /* room for the bar, so it never covers the end of the footer */
    body.has-shop-sticky { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-sticky, .shop-sticky.is-visible { transition: none; }
}

/* ---- header of the template "restaurant": one surface with the buying area ----
   Same tint as the hero below, closed by a hairline. Logo with the shop's name and a short line
   on the left ({headerbrand}), language and cart on the right. The header colours of the shop
   are not used here - they colour the drawn voucher card. */
.shop-header--tx {
    --tx-line: color-mix(in srgb, var(--shop-mainText) 16%, transparent);
    background: color-mix(in srgb, var(--shop-headerBackground) 9%, var(--shop-mainBackground));
    color: var(--shop-mainText);
    border-bottom: 1px solid var(--tx-line);
}
.shop-header--tx .shop-header__inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.shop-header__brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; color: inherit; text-decoration: none; }
.shop-header__brand:hover { text-decoration: none; }
.shop-header__brand-logo { flex: 0 0 auto; display: block; width: auto; height: auto; max-height: 48px; max-width: 160px; object-fit: contain; }
.shop-header__brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.shop-header__brand-name { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-header__brand-tagline { font-size: 0.8rem; color: color-mix(in srgb, var(--shop-mainText) 62%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-header--tx .shop-header__actions { flex: 0 0 auto; gap: 1rem; }
.shop-header--tx .shop-header__lang { font-size: 0.85rem; }
/* "powered by" over the BON BON word mark: quiet, in the text colour */
.shop-header__powered {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    color: color-mix(in srgb, var(--shop-mainText) 62%, transparent);
    text-decoration: none;
    line-height: 1;
    transition: color 0.15s;
}
.shop-header__powered:hover { color: var(--shop-mainText); text-decoration: none; }
.shop-header__powered-label { font-size: 0.65rem; letter-spacing: 0.02em; }
.shop-header__powered-logo { display: block; height: 1.15rem; width: auto; }
@media (max-width: 900px) {
    .shop-header__powered-label { font-size: 0.6rem; }
    .shop-header__powered-logo { height: 0.95rem; }
}
/* cart as a round outlined button; the count keeps the button colours */
.shop-header--tx .shop-header__cart {
    width: 2.6rem;
    height: 2.6rem;
    justify-content: center;
    border: 1.5px solid color-mix(in srgb, var(--shop-mainText) 22%, transparent);
    border-radius: 999px !important;
    transition: border-color 0.15s;
}
.shop-header--tx .shop-header__cart:hover { border-color: currentColor; }
.shop-header--tx .shop-header__cart-icon { width: 20px; height: 20px; }
.shop-header--tx .shop-header__cart-count { top: -0.3rem; right: -0.35rem; box-shadow: 0 0 0 2px color-mix(in srgb, var(--shop-headerBackground) 9%, var(--shop-mainBackground)); }
/* the hero follows without a second line under the header's */
.shop-header--tx + .shop-tx .shop-tx__hero { border-top: 0; }
@media (max-width: 900px) {
    .shop-header--tx .shop-header__inner { padding: 0.6rem 1rem; gap: 0.75rem; }
    .shop-header__brand-logo { max-height: 40px; max-width: 120px; }
    .shop-header__brand-name { font-size: 0.98rem; }
    .shop-header__brand-tagline { font-size: 0.75rem; }
}

/* ==========================================================================
   Template "restaurantproduct" (.shop-tx--product) — the classic product page.
   Images with thumbnails on the left, name and a buy box with numbered steps and a total on the
   right; then a band of reassurances, the image strip and "Gut zu wissen". Calmer than
   "restaurant": the buying area sits on the plain page colour, bands and lines give the order.
   ========================================================================== */

.shop-tx--product .shop-tx__hero { background: var(--shop-mainBackground); border-bottom: 0; }
.shop-tx--product .shop-tx__hero-inner { align-items: start; padding-top: 2.5rem; padding-bottom: 3rem; gap: 2.75rem; }
.shop-tx__buy { min-width: 0; }
.shop-tx--product .shop-headline { font-size: 2rem; margin-bottom: 0.35rem; }
.shop-tx--product .shop-subline { margin-bottom: 1.25rem; color: color-mix(in srgb, var(--shop-mainText) 68%, transparent); }
.shop-tx--product .shop-tx__panel { padding: 1.5rem; border-radius: 16px !important; box-shadow: none; }

/* stage: one large picture on a tinted plate, thumbnails below */
.shop-stage--thumbs .shop-stage__track {
    background: var(--tx-tint);
    border-radius: 16px !important;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    width: 100%;
    padding: 0;
    align-items: stretch;
}
.shop-stage--thumbs .shop-stage__slide { display: grid; place-items: center; padding: 1.5rem; }
.shop-stage--thumbs.shop-stage--multi .shop-stage__slide { padding: 1.5rem; }
.shop-stage--thumbs .shop-stage__img { max-height: 100%; }
.shop-stage--thumbs .shop-voucher { padding: 0; width: 100%; max-width: 380px; }
.shop-stage--thumbs .shop-voucher--mockup { max-width: 100%; }
.shop-stage--thumbs .shop-voucher--mockup .shop-voucher__img { max-height: 440px; }
.shop-stage--thumbs .shop-voucher--plain .shop-voucher__img { max-height: 400px; width: auto; margin: 0 auto; }
.shop-stage--thumbs .shop-voucher__shadowcard { inset: 0 0 auto; }
/* the plate clips: the amount badge sits inside the picture's corner here */
.shop-stage--thumbs .shop-voucher__badge { right: 0.4rem; bottom: 0.4rem; }
.shop-stage__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.shop-stage__thumbs::-webkit-scrollbar { display: none; }
.shop-stage__thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    padding: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 2px solid transparent;
    background: var(--tx-tint);
    cursor: pointer;
    border-radius: 10px !important;
    transition: border-color 0.15s;
}
.shop-stage__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-stage__thumb:hover { border-color: color-mix(in srgb, var(--shop-mainText) 30%, transparent); }
.shop-stage__thumb.is-active { border-color: var(--tx-accent); }
/* stand-in for the drawn voucher card */
.shop-stage__thumb-card { width: 44px; height: 28px; background: var(--shop-headerBackground); border-radius: 4px !important; transform: rotate(-4deg); box-shadow: 4px 3px 0 var(--tx-accent); }

/* buy box as numbered steps with a total */
.shop-buy__num {
    display: inline-grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 0.5rem;
    background: var(--tx-accent);
    color: var(--tx-on-accent);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: 0.05em;
    border-radius: 999px !important;
}
.shop-buy--steps .shop-buy__legend { display: flex; align-items: center; margin-bottom: 0.6rem; font-size: 1rem; }
.shop-buy--steps .shop-buy__action-row { flex-direction: column; align-items: stretch; gap: 0; }
.shop-buy__qty-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.shop-buy__qty-row .shop-buy__legend { margin-bottom: 0; }
.shop-buy__qty-row .shop-buy__step,
.shop-buy__qty-row .shop-buy__qty { min-height: 2.75rem; }
.shop-buy__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tx-line);
}
.shop-buy__total-label { font-size: 0.95rem; color: var(--tx-muted); font-variant-numeric: tabular-nums; }
.shop-buy__total-value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-buy--steps .shop-buy__submit { width: 100%; margin-top: 0.9rem; }
.shop-payicons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; font-size: 1.6rem; line-height: 1; color: var(--tx-muted); }
.shop-payicons__text { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.45rem; border: 1px solid currentColor; border-radius: 4px !important; }

/* band of reassurances */
.shop-trustband {
    background: var(--shop-panelBackground, #ffffff);
    color: var(--shop-panelText, #1a1a1a);
    border-top: 1px solid color-mix(in srgb, var(--shop-mainText) 14%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--shop-mainText) 14%, transparent);
}
.shop-trustband__inner {
    list-style: none;
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 1.75rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.shop-trustband__inner--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-trustband__inner--1 { grid-template-columns: minmax(0, 1fr); }
.shop-trustband__tile { display: flex; align-items: flex-start; gap: 0.85rem; }
.shop-trustband__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    color: var(--shop-buttonBackground);
    background: color-mix(in srgb, var(--shop-buttonBackground) 12%, transparent);
    border-radius: 999px !important;
}
.shop-trustband__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.shop-trustband__title { font-size: 1rem; font-weight: 700; }
.shop-trustband__line { font-size: 0.9rem; color: color-mix(in srgb, var(--shop-panelText, #1a1a1a) 66%, transparent); }

/* "Gut zu wissen" */
.shop-faq__inner { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 3.5rem; }
.shop-faq__headline { margin: 0 0 0.75rem; font-size: 1.35rem; line-height: 1.2; }
.shop-faq__item { border-bottom: 1px solid var(--tx-line); }
.shop-faq__item:first-of-type { border-top: 1px solid var(--tx-line); }
.shop-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.shop-faq__question::-webkit-details-marker { display: none; }
.shop-faq__chevron { flex: 0 0 auto; transition: transform 0.2s ease; }
.shop-faq__item[open] .shop-faq__chevron { transform: rotate(180deg); }
.shop-faq__answer { padding: 0 2rem 1.1rem 0; color: color-mix(in srgb, var(--shop-mainText) 78%, transparent); }
.shop-faq__answer > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
    .shop-faq__chevron { transition: none; }
}

@media (max-width: 900px) {
    .shop-tx--product .shop-tx__hero-inner { padding-top: 1rem; padding-bottom: 2rem; gap: 1.25rem; }
    .shop-tx--product .shop-headline { font-size: 1.5rem; }
    .shop-stage--thumbs .shop-stage__track { aspect-ratio: 4 / 3; }
    .shop-stage--thumbs .shop-stage__slide,
    .shop-stage--thumbs.shop-stage--multi .shop-stage__slide { padding: 1rem; }
    .shop-stage--thumbs .shop-voucher { max-width: 260px; }
    .shop-stage--thumbs .shop-voucher--mockup .shop-voucher__img,
    .shop-stage--thumbs .shop-voucher--plain .shop-voucher__img { max-height: 240px; }
    .shop-stage__thumb { width: 56px; height: 56px; }
    .shop-trustband__inner,
    .shop-trustband__inner--2 { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem 1rem; }
    .shop-faq__inner { padding: 2rem 1rem 2.5rem; }
}

/* Template "restaurant" on wide screens: the buy panel gets the larger share, so it stays low -
   five amounts per row instead of four, and the text runs in fewer lines. The product page keeps
   its even columns. */
@media (min-width: 901px) {
    .shop-tx:not(.shop-tx--product) .shop-tx__hero-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; }
    .shop-tx:not(.shop-tx--product) .shop-buy__chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .shop-tx:not(.shop-tx--product) .shop-tx__panel { padding: 1.5rem 1.75rem; }
    .shop-tx:not(.shop-tx--product) .shop-subline { margin-bottom: 1.1rem; }
}
@media (min-width: 901px) {
    /* the reassurances side by side while there is room; they wrap when a text runs long */
    .shop-tx:not(.shop-tx--product) .shop-trust__list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
    .shop-tx:not(.shop-tx--product) .shop-trust__item { font-size: 0.88rem; gap: 0.4rem; }
    .shop-tx:not(.shop-tx--product) .shop-trust__check { width: 18px; height: 18px; }
}
