/* ==========================================================================
   BN Shop — Public-Frontend (5 Themes + Suche + Landing-Page)
   Geladen via layout_shop.php nach den theme-spezifischen CSS-Vars.
   ========================================================================== */

:root {
    --bnsh-primary: #1a2744;
    --bnsh-bg: #ffffff;
    --bnsh-text: #1a2744;
    --bnsh-text-muted: #6b7280;
    --bnsh-border: #e5e7eb;
    --bnsh-card-bg: #ffffff;
    --bnsh-card-border: #e5e7eb;
    --bnsh-radius-card: 12px;
    --bnsh-radius-btn: 8px;
    --bnsh-shadow-card: 0 1px 3px rgba(0, 0, 0, .04);
    --bnsh-shadow-hover: 0 8px 24px rgba(26, 39, 68, .08);
    --bnsh-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bnsh-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bnsh-h1-size: 28px;
    --bnsh-card-padding: 14px;
    --bnsh-grid-gap: 16px;
    --bnsh-cover-aspect: 1;
    --bnsh-cover-fit: cover;
    --bnsh-overlay: transparent;
}

/* Font-Familien */
.bnsh-font-inter      { --bnsh-font-body: 'Inter', system-ui, sans-serif; --bnsh-font-heading: 'Inter', system-ui, sans-serif; }
.bnsh-font-dm-sans    { --bnsh-font-body: 'DM Sans', system-ui, sans-serif; --bnsh-font-heading: 'DM Sans', system-ui, sans-serif; }
.bnsh-font-cormorant  { --bnsh-font-body: -apple-system, sans-serif; --bnsh-font-heading: 'Cormorant Garamond', Georgia, serif; }
.bnsh-font-mono       { --bnsh-font-body: ui-monospace, Menlo, Monaco, Consolas, monospace; --bnsh-font-heading: ui-monospace, Menlo, Monaco, Consolas, monospace; }

/* ============================================================
   THEME 1: MINIMAL (Default)
   Clean, viel Whitespace, helle Cards, Basis-Look
   ============================================================ */
.bnsh-theme-minimal {
    --bnsh-bg: #fafafa;
    --bnsh-card-bg: #ffffff;
    --bnsh-card-border: #ececec;
    --bnsh-radius-card: 12px;
    --bnsh-card-padding: 16px;
    --bnsh-grid-gap: 18px;
}
.bnsh-theme-minimal .bnsh-card { box-shadow: none; }
.bnsh-theme-minimal .bnsh-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.bnsh-theme-minimal .bnsh-hero h1 { font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   THEME 2: BOLD
   Kräftige Farben, große Typo, dicke Buttons (Insta-Style)
   ============================================================ */
.bnsh-theme-bold {
    --bnsh-bg: #ffffff;
    --bnsh-card-bg: #ffffff;
    --bnsh-card-border: transparent;
    --bnsh-radius-card: 18px;
    --bnsh-radius-btn: 14px;
    --bnsh-card-padding: 18px;
    --bnsh-grid-gap: 22px;
    --bnsh-h1-size: 38px;
    --bnsh-shadow-card: 0 4px 16px rgba(0,0,0,.06);
}
.bnsh-theme-bold .bnsh-hero h1 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.bnsh-theme-bold .bnsh-cta {
    padding: 16px 28px; font-size: 17px; font-weight: 700;
    border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.bnsh-theme-bold .bnsh-card { box-shadow: var(--bnsh-shadow-card); border: none; }
.bnsh-theme-bold .bnsh-card .price { font-size: 18px; font-weight: 800; }
.bnsh-theme-bold .bnsh-cat-pill { font-weight: 600; padding: 8px 18px; }

/* ============================================================
   THEME 3: SHOWCASE
   Vollbild-Produktbilder, Hero-Galerien, Marken/Foto-Stil
   ============================================================ */
.bnsh-theme-showcase {
    --bnsh-bg: #ffffff;
    --bnsh-card-bg: #ffffff;
    --bnsh-card-border: transparent;
    --bnsh-radius-card: 0;
    --bnsh-card-padding: 12px 14px 20px;
    --bnsh-grid-gap: 24px;
    --bnsh-cover-aspect: 4 / 5;
    --bnsh-shadow-card: none;
}
.bnsh-theme-showcase .bnsh-card { border: none; box-shadow: none; transition: transform .25s ease; }
.bnsh-theme-showcase .bnsh-card:hover { transform: translateY(-4px); }
.bnsh-theme-showcase .bnsh-card .img { border-radius: 0; }
.bnsh-theme-showcase .bnsh-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.bnsh-theme-showcase .bnsh-card .price { font-size: 14px; font-weight: 400; opacity: .85; }
.bnsh-theme-showcase .bnsh-hero h1 { font-size: 42px; font-weight: 200; letter-spacing: -0.02em; }
.bnsh-theme-showcase .bnsh-banner { height: 480px; }

/* ============================================================
   THEME 4: EDITORIAL
   Magazin-Layout, Serif-Typo, Spalten (Blog/Coach)
   ============================================================ */
.bnsh-theme-editorial {
    --bnsh-bg: #fefdfb;
    --bnsh-card-bg: #ffffff;
    --bnsh-card-border: #e8e4dc;
    --bnsh-radius-card: 4px;
    --bnsh-radius-btn: 4px;
    --bnsh-card-padding: 18px 20px 22px;
    --bnsh-grid-gap: 26px;
    --bnsh-font-heading: 'Cormorant Garamond', Georgia, serif;
}
.bnsh-theme-editorial { font-family: 'Cormorant Garamond', Georgia, serif; }
.bnsh-theme-editorial .bnsh-hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 44px; font-style: italic; line-height: 1.1; }
.bnsh-theme-editorial .bnsh-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 18px; }
.bnsh-theme-editorial .bnsh-card { border-top: 3px solid var(--bnsh-primary); }
.bnsh-theme-editorial .bnsh-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bnsh-theme-editorial .bnsh-cat-pill { border-radius: 0; border-color: var(--bnsh-primary); }

/* ============================================================
   THEME 5: DARK
   Durchgehend dunkler Hintergrund, hohe Kontraste
   ============================================================ */
.bnsh-theme-dark {
    --bnsh-bg: #0f172a;
    --bnsh-text: #e2e8f0;
    --bnsh-text-muted: #94a3b8;
    --bnsh-border: #1e293b;
    --bnsh-card-bg: #1e293b;
    --bnsh-card-border: #334155;
    --bnsh-radius-card: 14px;
    --bnsh-card-padding: 16px;
    --bnsh-grid-gap: 18px;
    --bnsh-shadow-card: none;
    --bnsh-shadow-hover: 0 10px 30px rgba(0,0,0,.4);
}
.bnsh-theme-dark .bnsh-header { background: rgba(15, 23, 42, .92); border-bottom-color: #1e293b; backdrop-filter: blur(10px); }
.bnsh-theme-dark .bnsh-card .img { background: #0f172a; }
.bnsh-theme-dark input, .bnsh-theme-dark select, .bnsh-theme-dark textarea {
    background: #0f172a !important; color: #e2e8f0 !important; border-color: #334155 !important;
}
.bnsh-theme-dark .bnsh-cat-pill { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; }
.bnsh-theme-dark .bnsh-cat-pill.is-active { background: var(--bnsh-primary); color: #fff; }
.bnsh-theme-dark .bnsh-footer { border-top-color: #1e293b; }

/* ============================================================
   GEMEINSAME PUBLIC-LAYOUT-KLASSEN
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--bnsh-font-body); background: var(--bnsh-bg); color: var(--bnsh-text); line-height: 1.6; }
a { color: var(--bnsh-primary); }

.bnsh-container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Header */
.bnsh-header {
    background: var(--bnsh-card-bg); border-bottom: 1px solid var(--bnsh-border);
    padding: 14px 0; position: sticky; top: 0; z-index: 50;
}
.bnsh-header__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bnsh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bnsh-text); }
.bnsh-brand img { height: 44px; max-width: 200px; object-fit: contain; }
.bnsh-brand .name { font-family: var(--bnsh-font-heading); font-size: 20px; font-weight: 700; }
.bnsh-header__actions { display: flex; align-items: center; gap: 16px; }

/* Suche */
.bnsh-search { position: relative; }
.bnsh-search input {
    padding: 9px 14px 9px 38px; border: 1px solid var(--bnsh-border);
    border-radius: 999px; font-size: 14px; background: var(--bnsh-card-bg);
    color: var(--bnsh-text); width: 220px; transition: width .2s, border-color .15s;
}
.bnsh-search input:focus { outline: none; border-color: var(--bnsh-primary); width: 300px; }
.bnsh-search::before {
    content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 14px; pointer-events: none;
}
.bnsh-search input::placeholder { color: var(--bnsh-text-muted); }
@media (max-width: 700px) { .bnsh-search input { width: 130px; } .bnsh-search input:focus { width: 200px; } }

/* Cart-Button */
.bnsh-cart {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; background: var(--bnsh-primary); color: #fff;
    text-decoration: none; border-radius: var(--bnsh-radius-btn); font-weight: 500; font-size: 14px;
    transition: opacity .15s;
}
.bnsh-cart:hover { opacity: .9; color: #fff; }
.bnsh-cart .badge {
    background: #fff; color: var(--bnsh-primary);
    padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700;
}

/* Banner */
.bnsh-banner {
    width: 100%; height: 280px; background-color: #f5f4f0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
@media (max-width: 700px) { .bnsh-banner { height: 160px; } }

/* Hero */
.bnsh-hero { padding: 32px 0 12px; }
.bnsh-hero h1 { margin: 0 0 8px; font-size: var(--bnsh-h1-size); font-family: var(--bnsh-font-heading); color: var(--bnsh-text); }
.bnsh-hero .tagline { color: var(--bnsh-text-muted); font-size: 17px; margin: 0; }
.bnsh-hero .desc { margin-top: 16px; line-height: 1.7; max-width: 720px; }

/* Kategorien-Pills */
.bnsh-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 8px; }
.bnsh-cat-pill {
    display: inline-flex; align-items: center;
    padding: 7px 16px; background: var(--bnsh-card-bg); border: 1px solid var(--bnsh-border);
    border-radius: 999px; text-decoration: none; color: var(--bnsh-text);
    font-size: 14px; transition: all .15s;
}
.bnsh-cat-pill:hover { border-color: var(--bnsh-primary); }
.bnsh-cat-pill.is-active { background: var(--bnsh-primary); color: #fff; border-color: var(--bnsh-primary); }

/* Sortierung + Trefferzahl */
.bnsh-resultbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; gap: 12px; flex-wrap: wrap; }
.bnsh-resultbar__count { color: var(--bnsh-text-muted); font-size: 14px; }
.bnsh-resultbar select { padding: 6px 10px; border: 1px solid var(--bnsh-border); border-radius: 6px; background: var(--bnsh-card-bg); color: var(--bnsh-text); font-size: 13px; }

/* Produkt-Grid */
.bnsh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--bnsh-grid-gap); padding: 12px 0 40px;
}

/* Produkt-Card */
.bnsh-card {
    background: var(--bnsh-card-bg);
    border: 1px solid var(--bnsh-card-border);
    border-radius: var(--bnsh-radius-card);
    overflow: hidden;
    box-shadow: var(--bnsh-shadow-card);
    transition: box-shadow .2s, transform .2s;
}
.bnsh-card:hover { box-shadow: var(--bnsh-shadow-hover); }
.bnsh-card a { text-decoration: none; color: inherit; display: block; }
.bnsh-card .img {
    aspect-ratio: var(--bnsh-cover-aspect); background: #f3f4f6 center/var(--bnsh-cover-fit) no-repeat;
    display: flex; align-items: center; justify-content: center; font-size: 40px; color: #d1d5db;
}
.bnsh-card .body { padding: var(--bnsh-card-padding); }
.bnsh-card h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--bnsh-font-heading); color: var(--bnsh-text); }
.bnsh-card .sub { color: var(--bnsh-text-muted); font-size: 13px; margin: 0 0 8px; min-height: 1em; }
.bnsh-card .price { color: var(--bnsh-primary); font-weight: 700; font-size: 16px; }
.bnsh-card .stock-low { color: #dc2626; font-size: 12px; margin-top: 4px; }
.bnsh-card .badge {
    display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px;
    font-weight: 600; background: var(--bnsh-primary); color: #fff;
}

/* Produkt-Detail */
.bnsh-pdp {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0;
    align-items: start;
}
@media (max-width: 760px) { .bnsh-pdp { grid-template-columns: 1fr; gap: 24px; } }
.bnsh-pdp__gallery { position: sticky; top: 90px; }
.bnsh-pdp__main {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: var(--bnsh-radius-card); background: var(--bnsh-card-bg);
    cursor: zoom-in;
}
.bnsh-pdp__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.bnsh-pdp__thumbs img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 6px;
    cursor: pointer; flex-shrink: 0; opacity: .7; transition: opacity .15s;
    border: 2px solid transparent;
}
.bnsh-pdp__thumbs img.is-active, .bnsh-pdp__thumbs img:hover { opacity: 1; border-color: var(--bnsh-primary); }
.bnsh-pdp__title { font-size: 30px; font-family: var(--bnsh-font-heading); margin: 0 0 8px; color: var(--bnsh-text); }
.bnsh-pdp__sub { color: var(--bnsh-text-muted); margin: 0 0 18px; font-size: 16px; }
.bnsh-pdp__price { font-size: 30px; font-weight: 700; color: var(--bnsh-primary); margin: 18px 0 4px; }
.bnsh-pdp__tax { font-size: 13px; color: var(--bnsh-text-muted); margin: 0 0 20px; }
.bnsh-pdp__short {
    margin: 18px 0; padding: 16px 18px; background: var(--bnsh-card-bg);
    border-left: 3px solid var(--bnsh-primary); border-radius: 6px; line-height: 1.65;
}
.bnsh-pdp__short ul { margin: 6px 0; padding-left: 22px; }
.bnsh-pdp__cta {
    display: flex; gap: 10px; align-items: stretch; margin-top: 24px;
}
.bnsh-pdp__cta input {
    width: 80px; padding: 14px 12px; border: 1px solid var(--bnsh-border);
    border-radius: var(--bnsh-radius-btn); text-align: center; font-size: 16px; background: var(--bnsh-card-bg); color: var(--bnsh-text);
}
.bnsh-cta {
    flex: 1; padding: 16px 24px; background: var(--bnsh-primary); color: #fff;
    border: 0; border-radius: var(--bnsh-radius-btn); font-size: 16px; font-weight: 600;
    cursor: pointer; transition: opacity .15s;
}
.bnsh-cta:hover { opacity: .9; }
.bnsh-pdp__stock { font-size: 13px; color: var(--bnsh-text-muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.bnsh-pdp__stock--low { color: #dc2626; }
.bnsh-pdp__sharing {
    display: flex; gap: 8px; align-items: center; margin-top: 24px;
    padding-top: 18px; border-top: 1px solid var(--bnsh-border);
    color: var(--bnsh-text-muted); font-size: 13px;
}
.bnsh-pdp__sharing a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bnsh-card-bg); border: 1px solid var(--bnsh-border); border-radius: 50%;
    font-size: 16px; text-decoration: none;
}
.bnsh-pdp__sharing a:hover { background: var(--bnsh-primary); color: #fff; border-color: var(--bnsh-primary); }
.bnsh-pdp__bundle {
    margin: 18px 0; padding: 16px; background: #fefce8; border: 1px solid #fde68a; border-radius: var(--bnsh-radius-card);
}
.bnsh-pdp__bundle ul { margin: 8px 0 0; padding-left: 22px; }
.bnsh-pdp__bundle .saving { margin-top: 10px; color: #16a34a; font-weight: 700; }

/* Lange Beschreibung als eigene Sektion */
.bnsh-pdp-desc {
    padding: 40px 0; max-width: 760px; line-height: 1.85; font-size: 16px;
}
.bnsh-pdp-desc h2 {
    margin: 0 0 20px; font-size: 24px; color: var(--bnsh-primary);
    font-family: var(--bnsh-font-heading);
}

/* Verwandte Produkte */
.bnsh-related { padding: 40px 0; border-top: 1px solid var(--bnsh-border); }
.bnsh-related h2 { font-family: var(--bnsh-font-heading); font-size: 22px; margin: 0 0 20px; }

/* Empty-State */
.bnsh-empty {
    text-align: center; padding: 80px 20px; color: var(--bnsh-text-muted);
    background: var(--bnsh-card-bg); border-radius: var(--bnsh-radius-card);
}
.bnsh-empty__icon { font-size: 64px; opacity: .25; margin-bottom: 14px; }

/* Cart-Page */
.bnsh-cart-table {
    background: var(--bnsh-card-bg); border: 1px solid var(--bnsh-card-border);
    border-radius: var(--bnsh-radius-card); overflow: hidden;
}
.bnsh-cart-row {
    display: flex; gap: 16px; padding: 16px;
    border-bottom: 1px solid var(--bnsh-border); align-items: center;
}
.bnsh-cart-row:last-child { border-bottom: 0; }
.bnsh-cart-row__img {
    width: 80px; height: 80px; background: #f3f4f6 center/cover no-repeat;
    border-radius: 8px; flex-shrink: 0;
}
.bnsh-cart-row__main { flex: 1; min-width: 0; }
.bnsh-cart-row__qty { width: 70px; padding: 8px; border: 1px solid var(--bnsh-border); border-radius: 6px; text-align: center; background: var(--bnsh-card-bg); color: var(--bnsh-text); }
.bnsh-cart-summary {
    margin-top: 18px; background: var(--bnsh-card-bg); border-radius: var(--bnsh-radius-card);
    padding: 20px; border: 1px solid var(--bnsh-card-border);
}
.bnsh-cart-summary table { width: 100%; }
.bnsh-cart-summary tr td { padding: 6px 0; }
.bnsh-cart-summary .total { font-weight: 700; font-size: 18px; color: var(--bnsh-primary); border-top: 1px solid var(--bnsh-border); padding-top: 10px; }

/* Pause-Banner */
.bnsh-paused { background: #fef3c7; color: #78350f; padding: 12px; text-align: center; font-weight: 500; }

/* Footer */
.bnsh-footer { border-top: 1px solid var(--bnsh-border); padding: 32px 0; margin-top: 48px; color: var(--bnsh-text-muted); font-size: 14px; background: var(--bnsh-card-bg); }
.bnsh-footer .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.bnsh-footer a { color: var(--bnsh-text-muted); text-decoration: none; }
.bnsh-footer a:hover { color: var(--bnsh-primary); }
.bnsh-footer .branding { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bnsh-border); text-align: center; }

/* iOS-Zoom-Fix für alle Inputs */
input, textarea, select, button { font-family: inherit; }
@media (max-width: 900px) { input, textarea, select { font-size: 16px !important; } }

/* ============================================================
   LANDING-PAGE-MODUS (?landing=1)
   Header reduziert: nur Logo + Cart-Badge, kein Nav, kein Banner
   ============================================================ */
.bnsh-landing .bnsh-header { background: transparent; border-bottom: 0; box-shadow: none; }
.bnsh-landing .bnsh-banner { display: none; }
.bnsh-landing .bnsh-search { display: none; }
.bnsh-landing .bnsh-back-to-shop {
    display: block; text-align: center; padding: 30px 0 10px;
    color: var(--bnsh-text-muted); font-size: 14px;
}
.bnsh-landing .bnsh-back-to-shop a { color: var(--bnsh-primary); font-weight: 600; }

/* Lightbox */
.bnsh-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.bnsh-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bnsh-lightbox__close {
    position: absolute; top: 20px; right: 30px; color: #fff;
    font-size: 32px; cursor: pointer; background: none; border: 0;
}

/* ============================================================
   DIGITALE PRODUKTE — Inline-Preview + Download (Order-Detail)
   ============================================================ */
.bnsh-digital-wrap { display: flex; flex-direction: column; gap: 18px; }
.bnsh-digital-intro { padding: 4px 4px 0; }

.bnsh-digital-card {
    background: #fff;
    border: 1px solid var(--bnsh-border, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px -12px rgba(0,0,0,.08);
}
.bnsh-digital-card__head {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.bnsh-digital-card__title strong { font-size: 17px; }
.bnsh-digital-card__meta {
    margin-top: 6px;
    display: flex; flex-wrap: wrap; gap: 10px;
    color: #6b7280; font-size: 13px; align-items: center;
}
.bnsh-digital-card__meta .bnsh-pill {
    background: var(--bnsh-primary, #1a2744); color: #fff;
    padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

.bnsh-digital-card__preview {
    background: #0f172a;
    display: flex; align-items: center; justify-content: center;
    min-height: 240px;
    overflow: hidden;
}
.bnsh-digital-card__preview img { max-width: 100%; max-height: 520px; display: block; }
.bnsh-digital-card__preview video { width: 100%; max-height: 520px; display: block; background: #000; }
.bnsh-digital-card__preview iframe { width: 100%; height: 600px; border: 0; background: #fff; }

.bnsh-audio-stage {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff; padding: 30px; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.bnsh-audio-stage__icon { font-size: 64px; }

.bnsh-file-stage {
    color: #cbd5e1; padding: 50px 30px;
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.bnsh-file-stage__icon { font-size: 80px; opacity: .85; }
.bnsh-file-stage__hint { font-size: 14px; max-width: 380px; }

.bnsh-digital-card__actions {
    padding: 18px 20px;
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    border-top: 1px solid #f3f4f6;
}
.bnsh-digital-card__limits {
    margin-left: auto; font-size: 13px; color: #6b7280;
}
@media (max-width: 600px) {
    .bnsh-digital-card__limits { margin-left: 0; flex-basis: 100%; }
    .bnsh-digital-card__preview iframe { height: 420px; }
}

.bnsh-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bnsh-btn:hover { transform: translateY(-1px); }
.bnsh-btn--primary { background: var(--bnsh-primary, #1a2744); color: #fff; }
.bnsh-btn--primary:hover { background: var(--bnsh-primary-hover, #0f172a); box-shadow: 0 6px 16px -6px rgba(26,39,68,.6); }
.bnsh-btn--ghost { background: #f3f4f6; color: #1f2937; border-color: #e5e7eb; }
.bnsh-btn--ghost:hover { background: #e5e7eb; }
.bnsh-btn--lg { padding: 14px 22px; font-size: 16px; }

.bnsh-portal-hint {
    background: #fefce8; border: 1px solid #fde68a;
    color: #713f12; padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.5;
}
.bnsh-portal-hint a { color: #92400e; font-weight: 700; text-decoration: underline; }

/* ============================================================
   PLATFORM-HINWEIS — ueber Cart + Checkout
   ============================================================ */
.bnsh-platform-hint {
    display: flex; gap: 16px; align-items: center;
    margin: 18px 0 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 12px;
}
.bnsh-platform-hint__icon {
    font-size: 36px; line-height: 1; flex-shrink: 0;
}
.bnsh-platform-hint__body {
    flex: 1; min-width: 0;
}
.bnsh-platform-hint__body strong {
    display: block; color: #713f12; font-size: 15px; margin-bottom: 4px;
}
.bnsh-platform-hint__body p {
    margin: 0; color: #92400e; font-size: 13px; line-height: 1.5;
}
.bnsh-platform-hint .bnsh-btn { flex-shrink: 0; }
@media (max-width: 700px) {
    .bnsh-platform-hint { flex-direction: column; align-items: flex-start; }
    .bnsh-platform-hint__icon { font-size: 28px; }
    .bnsh-platform-hint .bnsh-btn { align-self: stretch; justify-content: center; }
}

/* Thanks-Page Card */
.bnsh-thanks-card {
    background: #fff; border: 1px solid var(--bnsh-border,#e5e7eb);
    border-radius: 14px; padding: 22px 26px;
    box-shadow: 0 6px 24px -12px rgba(0,0,0,.08);
    max-width: 640px; margin: 0 auto 18px;
}
.bnsh-thanks-card__row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f3f4f6; gap: 16px; flex-wrap: wrap;
}
.bnsh-thanks-card__row:last-of-type { border-bottom: 0; }
.bnsh-thanks-card__label { color: #6b7280; font-size: 13px; }
.bnsh-thanks-card__value { font-size: 16px; font-family: ui-monospace,Menlo,monospace; }
.bnsh-thanks-card__cta { margin-top: 18px; text-align: center; }

.bnsh-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bnsh-pill--success { background: #d1fae5; color: #065f46; }
.bnsh-pill--warn    { background: #fef3c7; color: #92400e; }
.bnsh-pill--neutral { background: #e5e7eb; color: #374151; }

/* ============================================================
   PORTAL Dashboard — Merchant-Card + Order-Row + Modal
   ============================================================ */
.bnsh-portal-merchant {
    display: flex; gap: 14px; align-items: center; padding: 4px 4px 14px;
    border-bottom: 1px solid #f3f4f6; margin-bottom: 8px;
}
.bnsh-portal-merchant__logo {
    width: 56px; height: 56px; border-radius: 12px;
    background: #f3f4f6 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.bnsh-portal-merchant__actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}
@media (max-width: 700px) {
    .bnsh-portal-merchant { flex-wrap: wrap; }
    .bnsh-portal-merchant__actions { width: 100%; margin-top: 4px; }
    .bnsh-portal-merchant__actions .bnsh-btn { flex: 1; justify-content: center; }
}

.bnsh-portal-orderlist { display: flex; flex-direction: column; gap: 8px; }
.bnsh-portal-order {
    display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
    padding: 14px 16px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px;
    color: inherit; text-decoration: none;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.bnsh-portal-order:hover {
    background: #fff; border-color: var(--bnsh-primary, #1a2744);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -10px rgba(26,39,68,.4);
}
.bnsh-portal-order__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bnsh-portal-order__num { font-size: 15px; font-family: ui-monospace,Menlo,monospace; }
.bnsh-portal-order__meta { font-size: 12px; color: #6b7280; }
.bnsh-portal-order__price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.bnsh-portal-order__btn {
    background: var(--bnsh-primary, #1a2744); color: #fff;
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .bnsh-portal-order { grid-template-columns: 1fr auto; }
    .bnsh-portal-order__btn { grid-column: 1 / -1; text-align: center; }
}

/* Native <dialog> Modal */
.bnsh-modal {
    border: 0; border-radius: 14px; padding: 26px 28px;
    max-width: 520px; width: calc(100% - 32px);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,.4);
}
.bnsh-modal::backdrop { background: rgba(15,23,42,.55); }
.bnsh-modal__close-form { float: right; margin: -8px -8px 0 0; }
.bnsh-modal__close {
    background: none; border: 0; font-size: 28px; line-height: 1;
    cursor: pointer; color: #6b7280; padding: 4px 10px;
}
.bnsh-modal__list { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; }
.bnsh-modal__list dt { color: #6b7280; font-size: 13px; }
.bnsh-modal__list dd { margin: 0; font-size: 14px; word-break: break-word; }
.bnsh-modal__list a { color: var(--bnsh-primary, #1a2744); }
@media (max-width: 500px) {
    .bnsh-modal__list { grid-template-columns: 1fr; gap: 4px 0; }
    .bnsh-modal__list dt { margin-top: 8px; font-weight: 600; }
}
