/* UH Bestellen – bestelscherm en bestellingen. Kleur volgt het platform via --uhb-accent (UH Core). */
.uhbs { --s-acc: var(--uhb-accent, #e06400); --s-on: var(--uhb-on-accent, #fff); --s-ink: var(--uhb-accent-ink, #a84d00); --s-tint: var(--uhb-tint, #fff4ea); --s-text: #1f2a30; --s-mut: #5b6770; --s-line: #dfe5ea; --s-soft: #f4f6f8; color: var(--s-text); font-size: 16px; line-height: 1.5; max-width: 1100px; }
.uhbs *, .uhbs *::before, .uhbs *::after { box-sizing: border-box; }
.uhbs-h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.2; }
.uhbs-h2 { margin: 18px 0 10px; font-size: 19px; }
.uhbs-head { margin: 0 0 14px; }
.uhbs-h3 { margin: 12px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--s-mut); }
.uhbs-head p { margin: 0; color: var(--s-mut); }
.uhbs-sub { color: var(--s-mut); margin: 0 0 12px; }
.uhbs-muted { color: var(--s-mut); font-size: 14px; margin: 8px 0; }
.uhbs-badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--s-soft); color: var(--s-mut); white-space: nowrap; }
.uhbs-badge.is-open { background: #e7f6ec; color: #1d6b3a; }
.uhbs-badge.is-off { background: #fdecea; color: #8c1d18; }
.uhbs-note { padding: 10px 14px; border-radius: 10px; background: var(--s-soft); margin: 0 0 14px; }
.uhbs-note ul { margin: 0; padding-left: 18px; }
.uhbs-note.is-ok { background: #e7f6ec; color: #1d6b3a; }
.uhbs-note.is-error { background: #fdecea; color: #8c1d18; }
.uhbs-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.uhbs-tabs a, .uhbs-days a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--s-line); background: #fff; color: var(--s-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.uhbs-tabs a[aria-current], .uhbs-days a[aria-current] { background: var(--s-acc); border-color: var(--s-acc); color: var(--s-on); }
.uhbs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.uhbs-items { display: grid; gap: 8px; }
.uhbs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--s-line); border-radius: 12px; padding: 12px 14px; }
.uhbs-item.has-pic { grid-template-columns: 72px minmax(0, 1fr) auto auto; }
.uhbs-pic { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.uhbs-item.is-on { border-color: var(--s-acc); box-shadow: inset 3px 0 0 var(--s-acc); }
.uhbs-item__txt { display: grid; gap: 2px; min-width: 0; }
.uhbs-item__txt small { color: var(--s-mut); font-size: 14px; }
.uhbs-item__txt .uhbs-alg { font-size: 13px; }
.uhbs-price { font-weight: 600; white-space: nowrap; }
.uhbs-qty { display: inline-flex; align-items: center; border: 1px solid var(--s-line); border-radius: 10px; overflow: hidden; }
.uhbs-qty button { width: 38px; height: 38px; border: 0; background: var(--s-soft); font: 600 20px/1 system-ui, sans-serif; color: var(--s-text); cursor: pointer; }
.uhbs-qty button:hover { background: var(--s-tint); }
.uhbs-qty input { width: 44px; height: 38px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.uhbs-qty input::-webkit-inner-spin-button, .uhbs-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.uhbs-cart { position: sticky; top: 16px; background: #fff; border: 1px solid var(--s-line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; }
.uhbs-cart .uhbs-h2 { margin: 0 0 4px; }
.uhbs-sum { display: flex; justify-content: space-between; gap: 10px; margin: 2px 0; font-size: 15px; }
.uhbs-sum > span:last-child { white-space: nowrap; }
.uhbs-sum.is-total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--s-line); padding-top: 8px; margin-top: 4px; }
.uhbs-field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.uhbs-field small { font-weight: 400; color: var(--s-mut); }
.uhbs-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.uhbs-input { width: 100%; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #c9d2da; border-radius: 9px; background: #fff; color: inherit; }
.uhbs-input:focus { outline: 2px solid var(--s-acc); outline-offset: 1px; }
.uhbs-snippet { font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.uhbs-btn { display: inline-block; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--s-acc); background: var(--s-acc); color: var(--s-on); font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.uhbs-cart .uhbs-btn { width: 100%; margin-top: 4px; font-size: 17px; }
.uhbs-btn.is-alt { background: #fff; color: var(--s-text); border-color: var(--s-line); }
.uhbs-btn:focus-visible { outline: 2px solid var(--s-text); outline-offset: 2px; }
.uhbs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.uhbs-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.uhbs-loc { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; color: var(--s-text); text-decoration: none; }
.uhbs-loc small { color: var(--s-mut); }
/* Bevestiging */
.uhbs-receipt { max-width: 520px; background: #fff; border: 1px solid var(--s-line); border-radius: 14px; padding: 18px 20px; }
.uhbs-receipt p { margin: 6px 0; }
.uhbs-code { display: flex; justify-content: space-between; align-items: baseline; }
.uhbs-code strong { font-size: 26px; letter-spacing: .08em; }
.uhbs-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; background: var(--s-soft); }
.uhbs-status.is-nieuw { background: var(--s-tint); color: var(--s-ink); }
.uhbs-status.is-bevestigd { background: #fff6dc; color: #7a5400; }
.uhbs-status.is-klaar { background: #e7f6ec; color: #1d6b3a; }
.uhbs-status.is-geannuleerd { background: #fdecea; color: #8c1d18; }
/* Bestellingen (backoffice) */
.uhbs-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.uhbs-days { display: flex; gap: 6px; flex-wrap: wrap; }
.uhbs-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.uhbs-order { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.uhbs-order.is-nieuw { border-color: var(--s-acc); box-shadow: inset 4px 0 0 var(--s-acc); }
.uhbs-order.is-afgerond, .uhbs-order.is-geannuleerd { opacity: .6; }
.uhbs-order header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uhbs-order p { margin: 0; font-size: 15px; }
.uhbs-time { font-size: 22px; font-weight: 700; }
.uhbs-ordcode { margin-left: auto; font: 600 13px ui-monospace, Menlo, monospace; color: var(--s-mut); }
.uhbs-order .uhbs-status { font-size: 13px; padding: 2px 10px; }
.uhbs-olist { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.uhbs-onote { background: #fff6dc; padding: 6px 10px; border-radius: 8px; }
.uhbs-order footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--s-line); padding-top: 8px; }
.uhbs-acts { display: flex; gap: 6px; }
.uhbs-acts form { margin: 0; }
.uhbs-acts .uhbs-btn { padding: 8px 14px; font-size: 14px; }
.uhbs-settings fieldset { border: 1px solid var(--s-line); border-radius: 12px; padding: 12px 16px 14px; margin: 0 0 14px; background: #fff; display: grid; gap: 12px; max-width: 640px; }
.uhbs-settings legend { font-weight: 700; padding: 0 6px; }
.uhbs-check { display: flex; gap: 8px; align-items: flex-start; }
.uhbs-card { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; display: grid; gap: 10px; }
.uhbs-card .uhbs-h2 { margin: 0; }
.uhbs-link { word-break: break-all; }
/* Widget (iframe) */
body.uhbs-widget { margin: 0; padding: 16px; background: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
@media (max-width: 860px) {
	.uhbs-cols { grid-template-columns: 1fr; }
	.uhbs-cart { position: static; }
}
@media (max-width: 480px) {
	.uhbs-item { grid-template-columns: minmax(0, 1fr) auto; }
	.uhbs-item.has-pic { grid-template-columns: 64px minmax(0, 1fr) auto; }
	.uhbs-pic { width: 64px; height: 64px; }
	.uhbs-item .uhbs-qty { grid-column: 1 / -1; justify-self: end; }
}
/* Keuzevenster: variant en opties */
.uhbs-pick { padding: 9px 16px; font-size: 15px; }
.uhbs-dlg { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.uhbs-dlg::backdrop { background: rgba(20, 28, 34, .45); }
.uhbs-dlg__in { padding: 18px 20px; display: grid; gap: 12px; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2a30; }
.uhbs-dlg .uhbs-h2 { margin: 0; font-size: 20px; }
.uhbs-grp { border: 1px solid #dfe5ea; border-radius: 12px; padding: 8px 12px 10px; margin: 0; }
.uhbs-grp legend { font-weight: 700; padding: 0 4px; }
.uhbs-grp legend small { font-weight: 400; color: #5b6770; }
.uhbs-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.uhbs-opt span { margin-left: auto; color: #5b6770; font-variant-numeric: tabular-nums; }
.uhbs-opt input { width: 18px; height: 18px; accent-color: var(--uhb-accent, #e06400); }
.uhbs-dlg__foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uhbs-dlg__foot .uhbs-btn { padding: 10px 16px; }
.uhbs-dlg .uhbs-btn { border-color: var(--uhb-accent, #e06400); background: var(--uhb-accent, #e06400); color: var(--uhb-on-accent, #fff); }
.uhbs-dlg .uhbs-btn.is-alt { background: #fff; color: #1f2a30; border-color: #dfe5ea; }
.uhbs-x { border: 0; background: none; color: #8c1d18; font-size: 16px; cursor: pointer; padding: 0 4px; }
.uhbs-extra { display: block; color: var(--s-mut); font-size: 13px; }
.uhbs-btw { font-size: 13px; color: var(--s-mut); }
.uhbs-btw + .uhbs-btw { margin-top: 0; }

/* Tijdsloten in de lijst met bestellingen */
.uhbs-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 0 0 12px; }
.uhbs-slot { border: 1px solid var(--s-line); border-radius: 10px; padding: 8px 10px; background: #fff; display: grid; gap: 2px; }
.uhbs-slot strong { font-size: 17px; }
.uhbs-slot > span { font-size: 14px; color: var(--s-mut); font-variant-numeric: tabular-nums; }
.uhbs-slot.is-full { background: #fff6dc; border-color: #f0d58a; }
.uhbs-slot.is-closed { background: #fdecea; border-color: #f2c2bc; }
.uhbs-slot.is-closed > span { color: #8c1d18; font-weight: 600; }
.uhbs-slot.is-own { box-shadow: inset 3px 0 0 var(--s-acc); }
.uhbs-slot__btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.uhbs-slot__btns form { margin: 0; }
.uhbs-slot__btns button { min-width: 32px; height: 30px; border: 1px solid var(--s-line); border-radius: 8px; background: var(--s-soft); font: 600 15px/1 system-ui, sans-serif; color: var(--s-text); cursor: pointer; padding: 0 8px; }
.uhbs-slot__btns button:hover { background: var(--s-tint); }

.uhbs-unit { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--s-ink) !important; }

/* QR aan tafel: kaartjes */
.uhbs-qrcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.uhbs-qrcard { border: 1px dashed #b9b9b9; border-radius: 12px; padding: 14px; text-align: center; background: #fff; break-inside: avoid; }
.uhbs-qrcard__name { font-size: 1.35em; font-weight: 700; margin: 0 0 6px; }
.uhbs-qrcard__code svg { width: 160px; height: 160px; display: block; margin: 0 auto; }
.uhbs-qrcard__cta { font-weight: 600; margin: 6px 0 0; }
.uhbs-qrcard__loc { color: #666; font-size: .85em; margin: 2px 0 0; }
.uhbs-qrcard__acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; }
.uhbs-qrcard__acts form { margin: 0; }
.uhbs-badge.is-due { background: #f3e6fb; color: #6a2a9c; }
.uhbs-qr .uhbs-h1 { margin-bottom: 2px; }
@media print {
	body * { visibility: hidden; }
	.uhbs-qrcards, .uhbs-qrcards * { visibility: visible; }
	.uhbs-qrcards { position: absolute; left: 0; top: 0; width: 100%; grid-template-columns: repeat(3, 1fr); }
	.uhbs-noprint, .uhbs-qrcard__acts { display: none !important; }
}
/* 0.8.0: online betalen (Mollie). */
.uhbs-pay { border: 1px solid #dfe5ea; border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.uhbs-pay legend { font-weight: 700; padding: 0 4px; }
.uhbs-pay .uhbs-check { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.uhbs-paid { background: #e7f6ec; color: #1d6b3a; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.uhbs-badge.is-paid { background: #e7f6ec; color: #1d6b3a; }
.uhbs-ok { color: #1d6b3a; font-weight: 600; } .uhbs-warn { color: #8a5300; font-weight: 600; }
.uhbs-pay-key { margin: 6px 0; }
.uhbs-in-bo .uhbs-input { width: 100%; box-sizing: border-box; } .uhbs-in-bo .uhbs-check { display: flex; gap: 8px; align-items: center; margin: 4px 0; } .uhbs-in-bo { max-width: none; }
