/* eatbase Marketing-Suite — Storefront-Styles (self-hosted, CSP-konform).
   Nutzt die globalen Markenfarben --eb-blue* mit Fallback aufs eatbase-Blau. */
:root {
    --eb-mkt-blue: var(--eb-blue, #299fd1);
    --eb-mkt-dark: var(--eb-blue-dark, #217ea6);
    --eb-mkt-tint: rgba(41, 159, 209, 0.10);
    --eb-mkt-green: #16a34a;
}

/* ── Promo-Strip (oben auf der Speisekarte) ──────────────────────────── */
.eb-promo-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.eb-promo-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--eb-mkt-tint);
    border: 1px solid var(--eb-mkt-blue);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
}
.eb-promo-chip__badge {
    background: var(--eb-mkt-blue); color: #fff;
    border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 0.75rem;
}
.eb-promo-chip__title { color: #1f1f1f; }
/* Ehrlicher Hinweis, wenn nur die günstigste Aktion greift. */
.eb-promo-note {
    margin: -10px 0 18px; font-size: 0.8rem; color: #6b7280;
    display: flex; align-items: center; gap: 6px;
}
.eb-promo-note::before { content: "ℹ️"; font-size: 0.85rem; }
.eb-promo-chip__code {
    font-weight: 700; color: var(--eb-mkt-dark);
    border: 1px dashed var(--eb-mkt-dark); border-radius: 6px; padding: 1px 6px;
}

/* ── Kategorie-Banner ────────────────────────────────────────────────── */
.eb-category-banner {
    display: flex; align-items: center; gap: 8px;
    background: var(--eb-mkt-tint);
    border-left: 3px solid var(--eb-mkt-blue);
    border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
    font-size: 0.9rem; color: var(--eb-mkt-dark);
}
.eb-category-banner__badge {
    background: var(--eb-mkt-blue); color: #fff; font-weight: 700;
    border-radius: 6px; padding: 2px 8px; font-size: 0.8rem;
}

/* ── Artikel-Badge ───────────────────────────────────────────────────── */
.eb-menu-card__badge.eb-mkt-badge {
    background: var(--eb-mkt-blue);
    color: #fff;
}

/* ── Gratis-Lieferung-Nudge ──────────────────────────────────────────── */
.eb-delivery-nudge {
    margin: 14px 0; padding: 12px 14px;
    background: #f2fbf6; border: 1px solid #d6efe0; border-radius: 12px;
}
.eb-delivery-nudge__text {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.86rem; color: #14532d; margin-bottom: 8px;
}
.eb-delivery-nudge__icon { color: var(--eb-mkt-green); }
.eb-delivery-nudge__text strong { color: #166534; }
.eb-delivery-nudge__bar {
    height: 8px; border-radius: 999px; background: #dcefe4; overflow: hidden;
}
.eb-delivery-nudge__bar span {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--eb-mkt-green), #22c55e);
    transition: width 0.3s ease;
}

/* ── Cross-Sell „passt dazu" ─────────────────────────────────────────── */
.eb-crosssell { margin: 16px 0 4px; padding-top: 14px; border-top: 1px dashed #e5e9ec; }
.eb-crosssell__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eb-crosssell__icon {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    background: var(--eb-mkt-tint); color: var(--eb-mkt-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem;
}
.eb-crosssell__title { font-weight: 700; font-size: 0.95rem; color: #1f2937; }
.eb-crosssell__items { display: flex; flex-direction: column; gap: 8px; }
.eb-crosssell__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: #fff;
    border: 1px solid #eef2f4; border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.eb-crosssell__item:hover { border-color: #cfe6f2; box-shadow: 0 2px 10px rgba(41, 159, 209, 0.08); }
.eb-crosssell__info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.eb-crosssell__name {
    font-size: 0.9rem; font-weight: 600; color: #1f2937;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eb-crosssell__price { font-size: 0.8rem; color: #6b7280; margin-top: 1px; }
.eb-crosssell__add {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: var(--eb-mkt-blue); color: #fff;
    border-radius: 999px; padding: 7px 13px;
    font-size: 0.82rem; font-weight: 600; line-height: 1; cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.eb-crosssell__add:hover { background: var(--eb-mkt-dark); }
.eb-crosssell__add:active { transform: scale(0.97); }
.eb-crosssell__add:disabled { opacity: 0.6; cursor: default; }
.eb-crosssell__addicon { font-size: 1rem; }

/* ── Warenkorb-Box: dezenter Feinschliff ─────────────────────────────── */
#cart-box.module-box {
    border-radius: 16px !important;
    border-color: #eef2f4 !important;
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06) !important;
    padding: 18px !important;
}
#cart-box #cart-items > h5 {
    font-weight: 700; font-size: 1.05rem; color: #1f2937; letter-spacing: -0.01em;
}
/* Artikelzeilen: klare Trenner nur zwischen Artikeln (nicht zwischen Optionen). */
#cart-box .cart-items > ul > li:not(:last-child) {
    padding-bottom: 12px; margin-bottom: 12px !important;
    border-bottom: 1px solid #f4f6f8;
}
#cart-box .cart-items .price { font-weight: 600; color: #1f2937; white-space: nowrap; }
#cart-box .cart-items .btn-outline-secondary:hover {
    background: var(--eb-mkt-blue); border-color: var(--eb-mkt-blue); color: #fff;
}
/* Summen: Zwischensummen ruhig, Gesamtsumme klar hervorgehoben. */
#cart-box #cart-totals td { color: #4b5563; }
#cart-box #cart-totals tr.fw-bold td {
    font-size: 1.1rem; color: #1f2937; padding-top: 8px;
}
#cart-box #cart-totals tr.fw-bold td.text-end { color: #1f2937; }

/* Kompakte Optionen/Extras je Warenkorb-Artikel: Drei-Spalten-Raster —
   Bezeichnung | Wert | Preis, jeweils bündig untereinander. */
.eb-opts {
    display: grid; grid-template-columns: auto 1fr auto;
    column-gap: 8px; row-gap: 2px; margin-top: 3px;
}
.eb-opt__label { color: #9aa3ad; }
.eb-opt__value { color: #4b5563; min-width: 0; }
.eb-opt__price { color: #9aa3ad; white-space: nowrap; text-align: right; }

/* ── Options-Popup: Scroll-Sprung verhindern ─────────────────────────────
   Der Body ist height:100% (h-100). Bootstraps overflow:hidden beschneidet ihn
   dann auf Fensterhöhe → scrollbare Höhe 0 → der Scroll klemmt hart nach oben.
   Mit overflow:visible beschneidet nichts, das Fenster scrollt normal weiter und
   die Position bleibt beim Öffnen/Schließen statisch. (focus:false in
   cart-enhance.js verhindert zusätzlich den Fokus-Scroll.) */
body.modal-open {
    overflow: visible !important;
}
