/* Vaste balk met uitklappaneel voor de telefoon (besluit Sander 03-11-2026); de werking staat in shared/paneel.js.
   Zelfde opmaak los (beheer.beleef-eindhoven.nl/offerte/) en in het kleine venster dat de website onderaan zet (/offerte/balk/). */
.pb {
  --pb-aubergine: #501f3a; --pb-oranje: #fc8e5b; --pb-lichtpaars: #993a8c; --pb-lichtpaars-donker: #7e2e73;
  --pb-turquoise: #40c4aa; --pb-turquoise-donker: #1f7f6c; --pb-rand: #f0dfe4; --pb-grijs: #8f6d80;
  font-family: 'Poppins', system-ui, sans-serif; color: var(--pb-aubergine); font-size: 14px; line-height: 1.4;
}
.pb [hidden] { display: none !important; }
/* :where() houdt dit zwak (specificiteit 0), anders won het van .pb-knop en werden de knoppen dun en kleiner */
:where(.pb) button { font: inherit; }

/* ---------- de balk ---------- */
.pb-balk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(80, 31, 58, .14);
}
.pb-balk__bedragen { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.pb-label { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.pb-balk__totaal { font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--pb-oranje); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-balk__pp { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-balk__pp:empty { display: none; }
.pb-balk.is-leeg .pb-balk__totaal { color: inherit; opacity: .45; }
.pb-balk__actie { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.pb-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pb-oranje); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.pb-nr.pulseer { animation: pb-pulseer 1.6s ease-out infinite; }
@keyframes pb-pulseer {
  0% { box-shadow: 0 0 0 0 rgba(252, 142, 91, .75); transform: scale(1); }
  35% { transform: scale(1.07); }
  70% { box-shadow: 0 0 0 12px rgba(252, 142, 91, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(252, 142, 91, 0); transform: scale(1); }
}

.pb-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pb-lichtpaars); color: #fff; font-weight: 600; font-size: 15px; padding: 11px 18px; white-space: nowrap;
  box-shadow: 0 5px 14px rgba(153, 58, 140, .3); transition: background-color .15s;
}
.pb-knop:hover { background: var(--pb-lichtpaars-donker); }
.pb-knop:focus-visible, .pb-sluit:focus-visible, .pb-balk__bedragen:focus-visible { outline: 2px solid var(--pb-oranje); outline-offset: 2px; }

/* los op beheer.beleef-eindhoven.nl: de balk blijft aubergine (besluit Sander 03-11-2026) */
.pb--donker .pb-balk { background: var(--pb-aubergine); color: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); }
.pb--donker .pb-knop { box-shadow: 0 5px 14px rgba(0, 0, 0, .25); }

/* ---------- het paneel ---------- */
.pb-scherm { position: fixed; inset: 0; z-index: 60; background: rgba(43, 20, 34, .45); opacity: 0; transition: opacity .22s ease-out; }
.pb-blad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: flex; flex-direction: column;
  max-height: 88vh; max-height: 88dvh; background: #fff; color: var(--pb-aubergine); border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(43, 20, 34, .25); transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.pb.is-open .pb-scherm { opacity: 1; }
.pb.is-open .pb-blad { transform: none; }
.pb.is-open .pb-balk { visibility: hidden; }
.pb-blad__greep { width: 40px; height: 4px; border-radius: 2px; background: var(--pb-rand); margin: 8px auto 2px; flex: 0 0 auto; }
.pb-blad__kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 8px; flex: 0 0 auto; }
.pb-blad__kop h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.pb-sluit { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f7eef2; color: var(--pb-aubergine); cursor: pointer; flex: 0 0 auto; }
.pb-blad__inhoud { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }

.pb-leeg { margin: 6px 0 18px; padding: 16px 4px; text-align: center; font-size: 13px; color: #7a5a6c; }

.pb-tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.pb-tabel th { text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--pb-grijs); padding: 0 0 5px; border-bottom: 2px solid var(--pb-rand); }
.pb-tabel td { padding: 6px 0; border-bottom: 1px solid var(--pb-rand); vertical-align: top; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pb-tabel td:first-child { padding-right: 12px; }
.pb-tabel tbody tr:last-child td { border-bottom: 0; }
.pb-tabel tfoot td { border-top: 2px solid var(--pb-rand); border-bottom: 0; font-weight: 700; padding-top: 7px; }
.pb-tabel .r { text-align: right; white-space: nowrap; }
.pb-tabel tr.korting td { color: var(--pb-turquoise-donker); }

.pb-meldingen { list-style: none; margin: 4px 0 0; padding: 0; }
.pb-meldingen li { font-size: 12px; color: var(--pb-grijs); padding: 2px 0; }
.pb-meldingen:empty { display: none; }

.pb-samen { margin: 10px 0 0; padding: 10px 12px; background: #fbf6f8; border-radius: 12px; font-size: 13px; }
.pb-samen div { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; }
.pb-samen dt { color: #7a5a6c; }
.pb-samen dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-samen div:first-child dd { font-weight: 700; }

.pb-bijz { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pb-bijz .pb-label { margin-bottom: 2px; }
.pb-vink { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.35; cursor: pointer; position: relative; padding: 2px 0; }
.pb-vink input { position: absolute; opacity: 0; pointer-events: none; }
.pb-vink__vak { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid #cdb3c1; background: #fff; flex: 0 0 auto; display: grid; place-items: center; }
.pb-vink input:checked + .pb-vink__vak { background: var(--pb-turquoise); border-color: var(--pb-turquoise); }
.pb-vink input:checked + .pb-vink__vak::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; }
.pb-vink input:focus-visible + .pb-vink__vak { outline: 2px solid var(--pb-oranje); outline-offset: 2px; }

.pb-aanvraag { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 16px; }
.pb-knop--groot { font-size: 17px; font-weight: 700; padding: 13px 20px; min-height: 48px; }
.pb-noot { text-align: center; font-size: 11.5px; opacity: .65; }

@media (prefers-reduced-motion: reduce) { .pb *, .pb { animation: none !important; transition: none !important; } }

/* Drank-uitleg onder de offerte: oranje i in een rondje ervoor (besluit Sander 07-11-2026) */
.meldingen li[data-soort="drank"], .pb-meldingen li[data-soort="drank"] { display: flex; gap: 6px; align-items: flex-start; }
.meldingen li[data-soort="drank"]::before, .pb-meldingen li[data-soort="drank"]::before {
  content: 'i'; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%;
  background: #fc8e5b; color: #fff; font: italic 700 10px/14px Georgia, 'Times New Roman', serif; text-align: center;
}
/* zaalhureneindhoven.nl (12-11-2026): geen bedrag per persoon */
.pb-samen div[hidden] { display: none; }
