/* Customer QR menu, scoped independently from the staff workspace. */
body:has(.guest-reference) {
  --bg: #eef5fc;
  --surface: #fff;
  --subtle: #f3f7fc;
  --ink: #0f2342;
  --secondary: #304966;
  --muted: #5e6e87;
  --line: #dce4ef;
  --line-strong: #c5d2e4;
  --primary: #ea8212;
  --primary-hover: #d67108;
  --primary-soft: #fff1de;
  --primary-text: #9a5100;
  --focus: #f4aa48;
  background: radial-gradient(circle at 1px 1px,#3866a20b 1px,transparent 0) 0 0 / 4px 4px,var(--bg);
}
:root[data-theme=dark] body:has(.guest-reference) {
  --bg: #102840;
  --surface: #142e4d;
  --subtle: #1a3655;
  --ink: #edf4ff;
  --secondary: #d2e1f6;
  --muted: #afc1dc;
  --line: #2c4668;
  --line-strong: #416080;
  --primary-soft: #48351f;
  --primary-text: #ffd38f;
}
.guest.guest-reference {
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: env(safe-area-inset-top,0px) 0 100px;
  font-size: 1rem;
}
.guest-reference .guest-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 16px 42px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 88% 80%,#ffb06280,transparent 48%),radial-gradient(circle at 12% 10%,#ffbed75c,transparent 46%),linear-gradient(170deg,#3e62b0,#5a5cb0 50%,#7b5fac);
}
.guest-reference .guest-brand-row { position: relative; display: flex; justify-content: center; min-height: 62px; }
.guest-reference .guest-brand-logo { width: 64%; max-width: 230px; height: auto; object-fit: contain; }
.guest-reference .guest-brand-row > .icon-button {
  position: absolute;
  top: 0;
  left: -4px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  color: #fff;
  background: #ffffff26;
}
.guest-reference .guest-welcome { position: relative; margin-top: 10px; }
.guest-reference .guest-welcome > p { color: #ffe8c2; font-size: .9375rem; font-weight: 600; }
.guest-reference .guest-welcome h1 { margin: 4px 0 0; color: #fff; font-size: 1.9375rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; letter-spacing: -.025em; }
.guest-reference .guest-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.guest-reference .guest-meta > span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 5px 12px; border-radius: 99px; color: #fff; background: #ffffff29; font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.guest-reference .guest-meta svg { color: #ffd38f; }
.guest-reference .guest-service-actions { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; margin-top: 20px; }
.guest-reference .guest-service { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 80px; padding: 13px 5px; border: 1px solid #ffffff4d; border-radius: 18px; background: #ffffff26; color: #fff; font-size: .875rem; line-height: 1.3; font-weight: 800; }
.guest-reference .guest-service:not(:disabled):hover { background: #ffffff38; }
.guest-reference .guest-service:disabled { opacity: 1; }
.guest-reference .guest-call {
  width: 112px;
  height: 112px;
  min-height: 112px;
  padding: 0 5px;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  color: #0b3a6f;
  background: linear-gradient(150deg,#ffd38f,#f7a640);
  font-size: .84375rem;
}
.guest-reference .guest-call:not(:disabled):hover { background: linear-gradient(150deg,#ffe0b0,#ffb656); }
.guest-reference .guest-call > svg { width: 38px; height: 38px; fill: #0b3a6f; }
.guest-reference .guest-call > span { display: block; min-height: 0; }
.guest-reference .guest-call[data-calling] { color: #0b3a6f; background: linear-gradient(150deg,#d1f6d5,#8dd5aa); }
.guest-reference .guest-call[data-calling] > svg { fill: none; }
.guest-reference .guest-wave { position: absolute; z-index: 2; left: 0; bottom: -1px; width: 100%; height: 30px; }
.guest-reference .guest-wave path { fill: var(--bg); }
.guest-reference .guest-browse-tip { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: #fff; font-size: .875rem; }
.guest-ambience { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.guest-ambience::before,.guest-ambience::after { content: ""; position: absolute; border-radius: 50%; background: #ffffff0d; }
.guest-ambience::before { width: 130px; height: 130px; left: -30px; top: 120px; }
.guest-ambience::after { width: 150px; height: 150px; right: -45px; bottom: -20px; background: #ffd38f1a; }
.guest-record { position: absolute; width: 136px; height: 136px; right: -6px; top: -62px; border: 1px solid #ffffff13; border-radius: 50%; background: repeating-radial-gradient(circle,#16163f33 0 8px,#ffffff12 9px 10px); }
.guest-record::after { content: ""; position: absolute; inset: 53px; border: 11px solid #ffc870a8; border-radius: 50%; background: #3c3c82; }
.guest-note { position: absolute; font: 400 52px/1 Georgia,serif; color: #ffd7a8; opacity: .35; }
.note-one { left: 5%; top: 38%; transform: rotate(-15deg); }
.note-two { right: 4%; top: 32%; transform: rotate(14deg); color: #e2ebff; }
.note-three { left: 20%; top: 5%; font-size: 32px; color: #fff; }
.note-four { right: 29%; bottom: 13%; font-size: 37px; color: #ffc6d9; }
.note-five { left: 10%; bottom: 5%; font-size: 29px; color: #e0ebff; }
.guest-reference .guest-content { max-width: none; padding: 16px 16px 20px; }
.guest-reference .guest-categories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.guest-reference .guest-category { display: flex; justify-content: center; align-items: center; min-height: 48px; min-width: 0; padding: 8px 5px; border: 2px solid #4962af; border-radius: 14px; background: #4962af; color: #fff; font-size: .9375rem; line-height: 1.3; font-weight: 800; box-shadow: 0 2px 6px #2459a01a; overflow-wrap: anywhere; }
.guest-reference .guest-category.current { color: #0b3a6f; background: linear-gradient(150deg,#ffd38f,#f7a640); border-color: #f7a640; box-shadow: 0 3px 10px #f7a64038; }
.guest-reference .guest-category:not(.current):hover { background: #3d5399; }
.guest-reference .guest-search { display: flex; width: 100%; min-height: 46px; padding: 0 13px; margin-bottom: 15px; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); }
.guest-reference .guest-search input { width: 100%; min-width: 0; min-height: 44px; font-size: 1rem; color: var(--ink); }
.guest-reference .guest-catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 11px; }
.guest-reference .guest-catalog-heading h2 { font-size: 1rem; font-weight: 800; }
.guest-reference .guest-catalog-heading > span { flex: none; font-size: .8125rem; color: var(--muted); }
.guest-reference .guest-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.guest-reference .guest-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 2px 8px #2459a00a; }
.guest-reference .guest-item.is-selected { border-color: #f4ad55; }
.guest-reference .guest-item-pick { display: flex; flex: 1; flex-direction: column; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; text-align: left; }
.guest-reference .guest-item-pick:focus-visible { outline-offset: -3px; }
.guest-reference .guest-item-photo { position: relative; width: 100%; overflow: hidden; }
.guest-reference .guest-item-photo .photo { display: grid; width: 100%; height: 114px; min-height: 0; object-fit: cover; border-radius: 0; }
.guest-reference .guest-item-photo .empty-photo { color: #4962af; background: #e4eafa; }
.guest-reference .guest-item-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 99px; background: #fff3df; color: #8a4800; box-shadow: 0 2px 8px #0f23421a; font-size: .75rem; font-weight: 800; }
.guest-reference .guest-item-info { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 12px 0; }
.guest-reference .guest-item-info > strong { display: block; font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere; }
.guest-reference .guest-item-info > small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.guest-reference .guest-item-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 4px; min-height: 56px; padding: 9px 12px 12px; }
.guest-reference .guest-item-price { color: #bc5f00; font-size: .9375rem; white-space: nowrap; }
:root[data-theme=dark] .guest-reference .guest-item-price { color: #ffb45d; }
.guest-reference .guest-item-add { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #ea8212; color: #fff; }
.guest-reference .guest-item-add:not(:disabled):hover { background: #d67108; }
.guest-reference .guest-item-stepper { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; margin-left: auto; }
.guest-reference .guest-item-stepper > button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); }
.guest-reference .guest-item-stepper > .guest-item-add { color: #fff; border-color: #ea8212; background: #ea8212; }
.guest-reference .guest-item-stepper > span { min-width: 15px; text-align: center; font-size: .875rem; font-weight: 800; }
.guest-reference .guest-wifi-details { padding: 0 12px; margin-bottom: 14px; border-radius: 14px; }
.guest-reference .guest-wifi-details > summary { display: flex; align-items: center; gap: 7px; min-height: 46px; cursor: pointer; font-size: .875rem; list-style: none; }
.guest-reference .guest-wifi-details > summary::-webkit-details-marker { display: none; }
.guest-reference .guest-wifi-details > summary > strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.guest-reference .guest-wifi-details[open] > summary > svg:last-child { transform: rotate(180deg); }
.guest-reference .guest-wifi { margin: 0; padding: 10px 0 14px; border-top: 1px solid var(--line); }
.guest-reference .guest-cart-bar { position: fixed; z-index: 5; inset: auto 0 0; padding: 10px max(16px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); pointer-events: none; background: linear-gradient(transparent,var(--bg) 80%); }
.guest-reference .guest-order-confirm {
  position: static;
  inset: auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 488px;
  min-height: 58px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #ea8212;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 22px #ea82124d;
}
.guest-reference .guest-cart-bar-label { display: inline-flex; align-items: center; gap: 9px; }
.guest-reference .guest-cart-count { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; padding: 0 5px; border-radius: 99px; background: #fff; color: #b95a00; font-size: .875rem; }
.guest-reference .guest-cart-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.guest-reference .guest-cart-heading h2 { font-size: 1.125rem; }
.guest-reference .order-panel { padding: 16px; border-radius: 18px; }
.guest-reference .cart-list { max-height: none; }
.guest-reference .cart-line { padding: 12px 0; }
.guest-reference .cart-quantity { flex-direction: column; align-items: flex-end; }
.guest-reference .cart-line strong,.guest-reference .cart-total { font-size: .9375rem; }
.guest-reference .cart-line .subtext { font-size: .8125rem; }
.guest-reference .cart-total > strong { font-size: 1.25rem; }
.guest-reference .order-panel > .wide { min-height: 52px; margin-top: 12px; font-size: 1rem; border-radius: 14px; }
.guest-reference .notice { font-size: .875rem; border-radius: 13px; }
body:has(.guest-reference) #toast { max-width: min(90vw,480px); font-size: .875rem; }
body:has(.guest-reference) #dialog { width: min(100%,520px); max-height: 86dvh; margin: auto auto 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
body:has(.guest-reference) #dialog .dialog-head { padding: 16px; }
body:has(.guest-reference) #dialog .dialog-head h2 { font-size: 1.1875rem; }
body:has(.guest-reference) #dialog .btn { min-height: 44px; font-size: .9375rem; }
body:has(.guest-reference) #dialog :is(input,select,textarea) { font-size: 1rem; }
.guest-rating-intro { color: var(--muted); font-size: .9375rem; }
.guest-rating { border: 0; padding: 0; margin: 0; }
.guest-rating legend { font-size: .875rem; font-weight: 800; }
.guest-rating-stars { display: flex; justify-content: center; gap: 5px; margin: 10px 0; }
.guest-rating-stars > label { position: relative; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; color: var(--line-strong); }
.guest-rating-stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.guest-rating-stars label:has(input:checked),.guest-rating-stars label:has(~ label input:checked) { color: #ea8212; }
.guest-rating-stars label:has(input:checked) svg,.guest-rating-stars label:has(~ label input:checked) svg { fill: #ffca79; }
.guest-rating-stars label:has(input:focus-visible) { outline: 3px solid var(--focus); border-radius: 10px; }
.guest-feedback-panel { margin-bottom: 14px; }
.guest-feedback + .guest-feedback { border-top: 1px solid var(--line); padding-top: 12px; }
.guest-feedback > p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width:600px) {
  .guest.guest-reference { max-width: 720px; }
  .guest-reference .guest-products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .guest-reference .guest-item-photo .photo { height: 128px; }
  .guest-reference .guest-order-confirm { max-width: 688px; }
  body:has(.guest-reference) #dialog { width: min(100% - 32px,600px); margin-bottom: 18px; border-radius: 22px; }
}
@media (max-width:360px) {
  .guest-reference .guest-masthead { padding-inline: 12px; }
  .guest-reference .guest-content { padding-inline: 12px; }
  .guest-reference .guest-welcome h1 { font-size: 1.625rem; }
  .guest-reference .guest-meta > span { font-size: .8125rem; }
  .guest-reference .guest-service { font-size: .8125rem; }
  .guest-reference .guest-call { width: 98px; height: 98px; min-height: 98px; font-size: .75rem; }
  .guest-reference .guest-call > svg { width: 34px; height: 34px; }
  .guest-reference .guest-category { font-size: .8125rem; }
  .guest-reference .guest-products { gap: 10px; }
  .guest-reference .guest-item-photo .photo { height: 96px; }
  .guest-reference .guest-item-info { padding-inline: 10px; }
  .guest-reference .guest-item-bottom { padding-inline: 10px; }
  .guest-reference .guest-order-confirm { padding-inline: 13px; font-size: .9375rem; }
}
@media (prefers-reduced-motion:no-preference) {
  .guest-note { animation: guest-note-sway 6s ease-in-out infinite alternate; }
  .note-two,.note-four { animation-delay: -3s; }
  .guest-reference .guest-call:not(:disabled) { animation: guest-call-ring 2.5s ease-out infinite; }
  .guest-reference .selection-flash { animation: guest-cart-flash .55s ease-in-out; }
}
@keyframes guest-note-sway { to { translate: 5px -9px; opacity: .55; } }
@keyframes guest-call-ring { from { box-shadow: 0 0 0 0 #ffd38f66; } to { box-shadow: 0 0 0 13px #ffd38f00; } }
@keyframes guest-cart-flash { 50% { transform: scale(1.025); background: #cc6700; } }
