/* Fenster der Bestellannahme – Grundform (RestaurantExpress und Modern passen Farben an) */
.dlg-back { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; background: rgba(30, 34, 38, .35); padding: 16px; }
.dlg { background: var(--dlg-bg, #fff); color: var(--dlg-fg, #1d2329); border: var(--dlg-border, 0); border-radius: var(--dlg-radius, 12px); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); width: min(520px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
.dlg.wide { width: min(900px, 96vw); }
.dlg-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--dlg-tpad, 12px 16px); font-weight: 700; background: var(--dlg-tbg, transparent); color: var(--dlg-tfg, inherit); border-bottom: 1px solid var(--dlg-line, #e3e6ea); border-radius: var(--dlg-radius, 12px) var(--dlg-radius, 12px) 0 0; }
.dlg-x { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 8px; color: inherit; }
.dlg-body { padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.dlg-input { width: 100%; padding: 10px 12px; border: 1px solid var(--dlg-line2, #c8ced5); border-radius: var(--dlg-iradius, 8px); font-size: 16px; }
.dlg-input.big { font-size: 26px; text-align: center; }
.dlg-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--dlg-muted, #6b7480); border-top: 1px solid var(--dlg-line, #e3e6ea); padding-top: 8px; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.size-list { display: flex; flex-direction: column; gap: 6px; }
.size-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--dlg-line2, #d0d5db); border-radius: var(--dlg-iradius, 8px); background: var(--dlg-item, #fff); cursor: pointer; font-size: 16px; text-align: left; }
.size-btn .nm { flex: 1; font-weight: 600; }
.size-btn .pr { font-variant-numeric: tabular-nums; }
.size-btn.sel { background: var(--dlg-sel, #1f6f43); color: var(--dlg-selfg, #fff); border-color: transparent; }
.size-btn.sel kbd { background: transparent; color: inherit; border-color: currentColor; }

.tbl-wrap { overflow: auto; max-height: 55vh; border: 1px solid var(--dlg-line, #e3e6ea); border-radius: 6px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { position: sticky; top: 0; background: var(--dlg-th, #f3f5f7); text-align: left; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--dlg-line, #e3e6ea); }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--dlg-line, #eef0f2); cursor: pointer; }
.tbl td small { color: var(--dlg-muted, #7a828c); }
.tbl td.nr { font-weight: 700; width: 56px; }
.tbl tr.sel td { background: var(--dlg-sel, #1f6f43); color: var(--dlg-selfg, #fff); }
.tbl tr.sel td small { color: inherit; opacity: .8; }

/* Auswahl: Soßen, ohne …, Extras */
.opt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; overflow: auto; max-height: 62vh; }
.opt-col { border: 1px solid var(--dlg-line, #e3e6ea); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.opt-col.cur { border-color: var(--dlg-sel, #1f6f43); box-shadow: 0 0 0 1px var(--dlg-sel, #1f6f43) inset; }
.opt-h { font-weight: 700; font-size: 13px; padding: 2px 4px 6px; }
.opt-h small { font-weight: 400; color: var(--dlg-muted, #7a828c); }
.opt { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; padding: 6px; border-radius: 6px; cursor: pointer; text-align: left; }
.opt:hover { background: var(--dlg-hover, #f2f4f6); }
.opt .box { width: 24px; height: 22px; display: grid; place-items: center; border: 1px solid #b9c0c8; border-radius: 4px; font-weight: 700; font-size: 12px; background: #fff; color: #1d2329; flex: none; }
.opt .nm { flex: 1; }
.opt .pr { font-size: 12px; color: var(--dlg-muted, #6b7480); font-variant-numeric: tabular-nums; }
.opt .minus { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: #e9ecef; color: #333; font-weight: 700; }
.opt.on .box { background: #1f6f43; border-color: #1f6f43; color: #fff; }
.k-ohne .opt.on .box { background: #fff; color: #1f6f43; border-color: #9fb8a9; }
.opt.ohne { color: #b03a2e; }
.opt.ohne .nm { text-decoration: line-through; }
.opt.ohne .box { background: #b03a2e; border-color: #b03a2e; color: #fff; }
.opt.cur { border-color: var(--dlg-sel, #1f6f43); background: var(--dlg-cur, #eaf4ee); }

/* Pizza teilen */
.split-choose { display: flex; gap: 10px; flex-wrap: wrap; }
.split-n { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--dlg-line2, #d0d5db); border-radius: 10px; background: #fff; cursor: pointer; }
.split-n:hover { border-color: var(--dlg-sel, #1f6f43); }
.split-n svg text { display: none; }
.split-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.split-pie svg { width: 100%; height: auto; background: #fff; border-radius: 8px; }
.split-parts { display: flex; flex-direction: column; gap: 6px; }
.split-part { display: grid; grid-template-columns: 78px 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--dlg-line, #e3e6ea); border-radius: 8px; cursor: pointer; }
.split-part .no { font-weight: 800; }
.split-part .nm { font-weight: 600; }
.split-part .md { grid-column: 2 / 3; font-size: 12px; color: var(--dlg-muted, #6b7480); }
.split-part .btn { grid-row: 1 / span 2; grid-column: 3; }
.split-part.cur { border-color: var(--dlg-sel, #1f6f43); background: var(--dlg-cur, #eaf4ee); }
.split-in { display: flex; flex-direction: column; gap: 4px; font-weight: 700; margin-top: 6px; }
.split-in input { font-size: 22px; padding: 8px 10px; border: 2px solid var(--dlg-sel, #1f6f43); border-radius: 8px; width: 160px; }
@media (max-width: 720px) { .split-grid { grid-template-columns: 1fr; } }

.dlg-info.blacklist .dlg-title { background: #a93226; color: #fff; }
.dlg-info.internal .dlg-title { background: #f6d55c; }
.info-text { font-size: 18px; margin: 4px 0 8px; }

/* ---------- Lieferportale: Hinweis und Annehmen/Ablehnen ---------- */
.pt-badge { display: inline-block; background: var(--pc); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.pt-bell { position: fixed; right: 18px; bottom: 18px; z-index: 700; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-left: 6px solid var(--pc); border-radius: 12px;
  background: #fff; color: #1d2329; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); cursor: pointer; text-align: left; font: inherit; max-width: 440px; animation: pt-pop .3s ease-out; }
.pt-bell b { display: block; font-size: 15px; }
.pt-bell small { color: #59626b; font-size: 13px; }
.pt-bell-go { background: var(--pc); color: #fff; font-weight: 700; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.pt-ring { font-size: 26px; animation: pt-ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes pt-ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
@keyframes pt-pop { from { transform: translateY(20px); opacity: 0; } }
.dlg.pt-dlg { width: min(980px, 96vw); }
.pt-wait { padding: 30px; text-align: center; color: #59626b; }
.pt-test { background: #eef3ff; border: 1px solid #b9c8f2; color: #22407a; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.pt-warn { background: #fff4e0; border: 1px solid #f0c27a; color: #6b4300; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pt-cols { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.pt-who { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.pt-ch { align-self: flex-start; background: var(--pc); color: #fff; font-weight: 800; font-size: 17px; padding: 4px 12px; border-radius: 8px; margin-bottom: 4px; }
.pt-type { font-weight: 600; color: #3b4148; }
.pt-name { font-size: 18px; margin-top: 4px; }
.pt-note { background: #fffbe6; border-left: 3px solid #e0b100; padding: 4px 8px; margin-top: 4px; font-size: 13.5px; }
.pt-when { color: #59626b; font-size: 13px; margin-top: 6px; }
.pt-pay { margin-top: 8px; font-weight: 700; padding: 6px 10px; border-radius: 8px; align-self: flex-start; }
.pt-pay.paid { background: #e3f4e9; color: #1d6a3a; }
.pt-pay.cash { background: #fde8d7; color: #8a3b00; }
.pt-items table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pt-items td { padding: 5px 6px; border-bottom: 1px solid #edf0f2; vertical-align: top; }
.pt-items td.q { width: 34px; font-weight: 700; }
.pt-items td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-items tr.x td { color: #59626b; }
.pt-items tr.sum td { font-weight: 800; font-size: 17px; border-bottom: 0; border-top: 2px solid #1d2329; }
.pt-sub { padding-left: 10px; font-size: 13px; color: #3b4148; }
.pt-sub.ohne { font-weight: 700; text-decoration: underline; }
.pt-sub.note { font-style: italic; }
.pt-free { background: #fde8d7; color: #8a3b00; font-size: 11px; padding: 0 6px; border-radius: 6px; font-weight: 600; }
.pt-onote { margin-top: 8px; color: #3b4148; font-size: 13px; }
.pt-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid #e3e6ea; padding-top: 12px; }
.pt-lbl { font-weight: 700; }
.pt-min { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-min button { border: 1px solid #b9c0c8; background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pt-min button.on { background: #1d2329; color: #fff; border-color: #1d2329; }
.pt-min kbd, .pt-accept kbd { font-size: 10.5px; opacity: .65; border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; }
.pt-act .pt-accept { font-size: 16px; padding: 10px 18px; }
.btn.danger { background: #b3261e; border-color: #8f1e18; color: #fff; font-weight: 600; }
.btn.danger:disabled { opacity: .5; }
@media (max-width: 760px) { .pt-cols { grid-template-columns: 1fr; } .pt-bell { left: 12px; right: 12px; max-width: none; } }
