/* HOH QR Ordering (WooCommerce) */
:root { --wine:#7a1f1f; --wine-d:#5e1616; --cream:#faf6f2; --ink:#2b2320; --line:#ece0d6; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--ink); background:#fff; }
[hidden]{ display:none !important; }
button { font-family:inherit; }

/* Customer order */
.qb-order { background:var(--cream); padding-bottom:90px; }
.qb-top { background:var(--wine); color:#fff; padding:16px 18px; position:sticky; top:0; z-index:20; }
.qb-brand { font-size:20px; font-weight:800; }
.qb-table { opacity:.9; font-size:14px; margin-top:2px; }

/* Name/phone gate */
.qb-gate { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:60; display:flex; align-items:center; justify-content:center; padding:20px; }
.qb-gate-card { background:#fff; border-radius:16px; padding:24px; width:400px; max-width:94vw; }
.qb-gate-card h2 { margin:0 0 4px; color:var(--wine); }
.qb-gate-card p { color:#6b5c53; margin:0 0 10px; }
.qb-gate-card label { display:block; font-weight:600; font-size:14px; margin:12px 0 0; }
.qb-gate-card input { width:100%; padding:11px 12px; border:1px solid #d8cfc7; border-radius:8px; font-size:15px; margin-top:5px; }

.qb-tabs { display:flex; gap:8px; overflow-x:auto; padding:12px 14px; position:sticky; top:64px; background:var(--cream); z-index:15; }
.qb-tab { flex:0 0 auto; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:22px; padding:8px 16px; font-weight:600; font-size:14px; cursor:pointer; }
.qb-tab.is-active { background:var(--wine); color:#fff; border-color:var(--wine); }
.qb-cat { padding:6px 14px 20px; }
.qb-cat-title { font-size:18px; margin:12px 4px; display:flex; align-items:center; gap:10px; }
.qb-dept { font-size:11px; font-weight:700; padding:2px 8px; border-radius:10px; }
.qb-dept-kitchen { background:#e7f0ff; color:#1c4e80; } .qb-dept-bar { background:#fdeede; color:#9a5b12; }
.qb-item { display:flex; gap:12px; align-items:center; justify-content:space-between; background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.qb-item-name { font-weight:700; }
.qb-item-desc { font-size:13px; color:#7a6a60; margin:3px 0; }
.qb-item-price { font-weight:800; color:var(--wine); }
.qb-item-price del { color:#aaa; font-weight:400; }
.qb-stepper { display:flex; align-items:center; border:1px solid var(--line); border-radius:10px; overflow:hidden; flex:0 0 auto; }
.qb-stepper button { width:38px; height:38px; border:0; background:var(--wine); color:#fff; font-size:20px; cursor:pointer; }
.qb-qty { width:34px; text-align:center; font-weight:700; }
.qb-empty,.qb-muted { color:#8a7a70; padding:10px; }

.qb-cartbar { position:fixed; left:12px; right:12px; bottom:12px; z-index:30; display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--wine); color:#fff; border:0; border-radius:12px; padding:14px 18px; font-size:15px; font-weight:700; box-shadow:0 8px 24px rgba(0,0,0,.25); cursor:pointer; }
.qb-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:40; display:flex; align-items:flex-end; }
.qb-modal-card { background:#fff; width:100%; max-height:92vh; overflow:auto; border-radius:16px 16px 0 0; padding:20px; position:relative; }
.qb-modal-x { position:absolute; top:12px; right:14px; border:0; background:none; font-size:28px; cursor:pointer; }
.qb-modal-card label { display:block; font-weight:600; margin-top:12px; }
.qb-modal-card textarea { width:100%; padding:11px; border:1px solid #d8cfc7; border-radius:8px; margin-top:5px; }
.qb-cline { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed var(--line); font-size:14px; }
.qb-cart-grand { display:flex; justify-content:space-between; font-size:17px; margin:12px 0; }
.qb-alert { background:#fdecea; color:#8a1c13; border:1px solid #f5c6c0; padding:10px 12px; border-radius:8px; margin-top:12px; font-size:14px; }
.qb-place { width:100%; margin-top:16px; background:var(--wine); color:#fff; border:0; padding:14px; border-radius:10px; font-size:16px; font-weight:800; cursor:pointer; }

.qb-status { position:fixed; inset:0; background:var(--cream); z-index:50; display:flex; align-items:center; justify-content:center; padding:24px; }
.qb-status-card { text-align:center; max-width:420px; }
.qb-status-emoji { font-size:60px; }
.qb-status-eta { margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px; color:var(--wine); font-weight:600; }
.qb-status-fb { display:inline-block; margin-top:18px; color:var(--wine); font-weight:700; }

/* Feedback */
.qb-fb { max-width:480px; margin:0 auto; padding:24px 18px; }
.qb-fb h1 { color:var(--wine); }
.qb-fb-row { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0; }
.qb-fb-row .lbl { font-weight:700; margin-bottom:8px; }
.qb-stars { display:flex; gap:6px; font-size:30px; cursor:pointer; }
.qb-stars span { color:#ddd; } .qb-stars span.on { color:#f2b01e; }
.qb-fb textarea { width:100%; padding:11px; border:1px solid #d8cfc7; border-radius:8px; }

/* Boards — kitchen display */
.qb-dash { background:#efe9e3; background-image:radial-gradient(rgba(122,31,31,.05) 1px,transparent 1px); background-size:22px 22px; min-height:100vh; }
.qb-staffnav { background:linear-gradient(135deg,var(--wine-d),var(--wine)); color:#fff; display:flex; align-items:center; gap:16px; padding:12px 18px; position:sticky; top:0; z-index:20; box-shadow:0 4px 18px rgba(0,0,0,.18); }
.qb-staffnav-brand { font-weight:800; display:flex; align-items:center; }
.qb-staffnav-user { font-size:13px; opacity:.92; }
.qb-board-tabs { display:flex; gap:8px; flex:1; }
.qb-board-tabs a { color:#fff; text-decoration:none; padding:8px 18px; border-radius:999px; font-weight:700; font-size:14px; opacity:.85; transition:.15s; }
.qb-board-tabs a.is-active { background:#fff; color:var(--wine); opacity:1; box-shadow:0 3px 10px rgba(0,0,0,.15); }
.qb-board-tabs a:hover { background:rgba(255,255,255,.22); opacity:1; }
.qb-board { padding:22px 18px 60px; max-width:1280px; margin:0 auto; }
.qb-board h1 { font-size:24px; display:flex; align-items:center; gap:12px; margin:0 0 18px; color:var(--wine-d); }
.qb-live { font-size:11px; letter-spacing:.5px; text-transform:uppercase; background:#1a7f37; color:#fff; padding:4px 10px; border-radius:999px; display:inline-flex; align-items:center; gap:6px; }
.qb-live::before { content:""; width:7px; height:7px; border-radius:50%; background:#fff; animation:qb-pulse 1.4s infinite; }
.qb-count { margin-left:auto; font-size:14px; font-weight:700; color:#8a7a70; }
@keyframes qb-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.7)} }
@keyframes qb-in { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }

.qb-orders { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; align-items:start; }
.qb-card { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 6px 22px rgba(80,40,20,.10); animation:qb-in .25s ease both; border:1px solid #ece2da; }
.qb-card-top { background:linear-gradient(135deg,var(--wine),var(--wine-d)); color:#fff; padding:12px 16px; display:flex; align-items:center; gap:10px; }
.qb-table-no { font-size:19px; font-weight:800; letter-spacing:.3px; }
.qb-wait { margin-left:auto; background:rgba(255,255,255,.2); color:#fff; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; }
.qb-ordno { margin-left:8px; background:rgba(0,0,0,.16); color:#fff; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; }
.qb-card-warn .qb-card-top { background:linear-gradient(135deg,#e08a1e,#c9720c); }
.qb-card-late .qb-card-top { background:linear-gradient(135deg,#c0392b,#96271b); animation:qb-flash 1.1s infinite; }
@keyframes qb-flash { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.22)} }
.qb-card-sub { display:flex; align-items:center; gap:10px; padding:9px 16px; background:#faf5f1; border-bottom:1px dashed var(--line); font-size:13px; color:#6b5c53; }
.qb-cust-name { font-weight:700; color:var(--ink); }
.qb-pax { margin-left:auto; }
.qb-lines { list-style:none; margin:0; padding:6px 14px 4px; }
.qb-line { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px dashed var(--line); }
.qb-line:last-child { border-bottom:0; }
.qb-lq { flex:0 0 auto; min-width:30px; height:30px; padding:0 8px; display:inline-flex; align-items:center; justify-content:center; background:var(--cream); color:var(--wine); border:1px solid var(--line); border-radius:9px; font-weight:800; font-size:14px; }
.qb-ln { flex:1; font-weight:600; line-height:1.25; }
.qb-pill { display:inline-block; margin-left:6px; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; vertical-align:middle; }
.qb-pill-cook { background:#fff1dd; color:#b26a00; } .qb-pill-ready { background:#e3f6e9; color:#1a7f37; } .qb-pill-served { background:#eef0f2; color:#66707a; }
.qb-line.qb-st-accepted { background:linear-gradient(90deg,#fff8ef,transparent); }
.qb-line.qb-st-ready { background:linear-gradient(90deg,#f0faf3,transparent); }
.qb-line.qb-st-accepted .qb-lq { border-color:#f0c58a; }
.qb-line.qb-st-ready .qb-ln { color:#1a7f37; }
.qb-lbtns { flex:0 0 auto; display:flex; gap:6px; }
.qb-b { border:0; border-radius:9px; padding:8px 13px; font-weight:700; font-size:13px; cursor:pointer; transition:.12s; }
.qb-b:hover { transform:translateY(-1px); }
.qb-b-go { background:#1a7f37; color:#fff; box-shadow:0 3px 8px rgba(26,127,55,.28); }
.qb-b-x { background:#f4eeea; color:#a3271c; }
.qb-b-done { background:linear-gradient(135deg,var(--wine),var(--wine-d)); color:#fff; flex:1; box-shadow:0 4px 12px rgba(122,31,31,.28); }
.qb-b-cancel { background:#eef0f2; color:#66707a; }
.qb-card-foot { display:flex; gap:8px; padding:12px 14px 14px; }

/* Sound toggle + pending alerts */
.qb-sound-toggle { background:rgba(255,255,255,.18); color:#fff; border:0; border-radius:999px; padding:7px 13px; font-size:15px; cursor:pointer; font-weight:700; line-height:1; }
.qb-sound-toggle.off { opacity:.5; }
.qb-alerts { display:grid; gap:10px; margin-bottom:16px; }
.qb-alerts:empty { display:none; }
.qb-alert-toast { display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:#fff4e5; border:1px solid #f0c58a; border-left:5px solid #e08a1e; color:#8a5200; padding:13px 16px; border-radius:12px; font-weight:600; box-shadow:0 6px 18px rgba(0,0,0,.08); animation:qb-in .2s both; }
.qb-alert-toast .qb-b-ack { margin-left:auto; background:#e08a1e; color:#fff; }

/* Staff login */
.qb-auth { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5e1616,#7a1f1f); padding:20px; }
.qb-login { background:#fff; border-radius:16px; padding:30px 26px; width:380px; max-width:94vw; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.qb-login-brand { font-weight:800; font-size:18px; color:var(--wine); display:flex; justify-content:center; margin-bottom:10px; }
.qb-login-brand img { max-width:180px; }
.qb-login h1 { margin:6px 0 2px; font-size:22px; }
.qb-login-sub { color:#7a6a60; margin:0 0 14px; font-size:14px; }
.qb-login label { display:block; font-weight:600; font-size:14px; margin-top:14px; }
.qb-login input { width:100%; padding:12px; border:1px solid #d8cfc7; border-radius:9px; font-size:15px; margin-top:6px; }
.qb-login .qb-place { margin-top:20px; }
.qb-login-hint { color:#8a7a70; font-size:12.5px; text-align:center; margin:14px 0 0; }

/* menu-item images (added Sep 2026) */
.qb-item-img{width:58px;height:58px;object-fit:cover;border-radius:10px;flex:0 0 auto;background:#f0ece7}
.qb-item-info{flex:1 1 auto;min-width:0}

/* ---- Download Android app button (customer welcome gate) ---- */
.qb-appdl{margin-top:18px}
.qb-appdl-or{text-align:center;color:#9a8f86;font-size:13px;margin:0 0 12px;letter-spacing:.5px}
.qb-appdl-btn{display:flex;align-items:center;gap:12px;justify-content:center;
  text-decoration:none;background:linear-gradient(135deg,#2e7d32,#1b5e20);color:#fff;
  padding:13px 16px;border-radius:14px;box-shadow:0 8px 20px rgba(27,94,32,.3)}
.qb-appdl-btn:active{transform:translateY(1px)}
.qb-appdl-ico{font-size:24px;line-height:1}
.qb-appdl-txt{display:flex;flex-direction:column;text-align:left;line-height:1.25}
.qb-appdl-txt strong{font-size:15.5px;font-weight:700}
.qb-appdl-txt small{font-size:11.5px;opacity:.85}

/* ---- Public browse-only menu (?hohqr=menu) ---- */
.qb-menunote{margin:12px 14px 0;padding:11px 14px;background:#fff7e8;border:1px solid #f0dcae;
  color:#7a5a12;border-radius:12px;font-size:13.5px;line-height:1.4}
.qb-menu-only #qb-menuscan{border:none;cursor:pointer}

/* ---- My Account (?hohqr=account) ---- */
.qb-account #acc-dash{padding:14px 14px 40px;max-width:640px;margin:0 auto}
.acc-hello{display:flex;justify-content:space-between;align-items:center;gap:12px;
  background:#2b0b0f;color:#f6ecd9;padding:16px 16px;border-radius:14px;margin:4px 0 16px}
.acc-hello strong{font-size:19px;color:#c9a24b}
.acc-signout{background:transparent;border:1px solid rgba(246,236,217,.4);color:#f6ecd9;
  padding:8px 12px;border-radius:9px;font-size:13px;cursor:pointer}
.acc-sec{background:#fff;border:1px solid #eee;border-radius:14px;padding:14px 16px;margin:0 0 14px;
  box-shadow:0 2px 10px rgba(0,0,0,.04)}
.acc-sec h3{margin:0 0 12px;font-size:15px}
.acc-muted{color:#8a8078;font-size:13.5px;line-height:1.5}
.acc-offer{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px dashed #eee}
.acc-offer:last-child{border-bottom:0}
.acc-offer-badge{flex:0 0 auto;background:linear-gradient(135deg,#c9a24b,#a5822f);color:#241012;
  font-weight:800;font-size:13px;padding:6px 12px;border-radius:999px;white-space:nowrap}
.acc-order{border:1px solid #eee;border-radius:12px;padding:11px 13px;margin:0 0 10px;background:#fcfbfa}
.acc-order-top{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px}
.acc-order-id{font-weight:700;color:#555;font-size:13px}
.acc-order-items{font-size:13.5px;color:#3a332e;line-height:1.45}
.acc-order-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12.5px;color:#8a8078}
.acc-order-foot strong{color:#8e1b1b;font-size:15px}
.acc-badge{font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:999px}
.acc-badge-new{background:#fff3d6;color:#8a6a12}
.acc-badge-prep{background:#e2f0ff;color:#1c5aa6}
.acc-badge-done{background:#e3f6e6;color:#1f7a33}
.acc-badge-cancel{background:#f4e2e2;color:#a33}
.acc-note{font-size:13px;color:#6b625b;line-height:1.5;background:#fff7e8;border-color:#f0dcae}

/* ---- Small "Download app" pill, pinned to the bottom of the welcome gate ---- */
.qb-appdl-mini{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:60;
  display:inline-flex;align-items:center;gap:7px;background:linear-gradient(135deg,#2e7d32,#1b5e20);
  color:#fff;text-decoration:none;font-size:13px;font-weight:700;padding:9px 18px;border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.28);white-space:nowrap}
.qb-appdl-mini:active{transform:translateX(-50%) translateY(1px)}

/* ---- Reservations board (?hohqr=bookings) ---- */
.qb-rz-filters{display:flex;gap:8px;margin:6px 0 16px;flex-wrap:wrap}
.qb-rz-filters button{border:1px solid #d8cfc6;background:#fff;color:#5a5049;border-radius:999px;
  padding:8px 16px;font-size:13.5px;font-weight:700;cursor:pointer}
.qb-rz-filters button.is-active{background:#8e1b1b;color:#fff;border-color:#8e1b1b}
.qb-rz-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.qb-rz{background:#fff;border:1px solid #ece5de;border-radius:14px;padding:14px 16px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.qb-rz-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.qb-rz-top strong{font-size:16px}
.qb-rz-title{font-size:14px;color:#3a332e}
.qb-rz-title b{color:#8e1b1b;font-weight:700}
.qb-rz-meta{font-size:13px;color:#6b625b;margin-top:8px}
.qb-rz-note{font-size:12.5px;color:#7a5a12;background:#fff7e8;border:1px solid #f0dcae;border-radius:9px;padding:7px 10px;margin-top:8px}
.qb-rz-src{margin-top:10px}
.qb-rz-tag{display:inline-block;font-size:11px;font-weight:700;color:#4a423c;background:#f0ece7;border-radius:999px;padding:4px 10px}
.qb-badge{font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.qb-badge-new{background:#fff3d6;color:#8a6a12}
.qb-badge-event{background:#efe6ff;color:#5b3ea6}
.qb-badge-done{background:#e3f6e6;color:#1f7a33}
.qb-badge-cancel{background:#f4e2e2;color:#a33}

/* ---- iPhone download button (Apple black), sits under the Android one ---- */
.qb-appdl-ios{background:linear-gradient(135deg,#333,#000);margin-top:10px;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.qb-appdl-ios .qb-appdl-ico{display:flex;align-items:center;justify-content:center}

/* ---- Billing board (?hohqr=billing) ---- */
.qb-bill{background:#fff;border:1px solid #ece5de;border-radius:14px;padding:14px 16px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.qb-bill-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.qb-bill-top strong{font-size:17px}
.qb-bill-total{font-size:20px;font-weight:800;color:#8e1b1b}
.qb-bill-split{display:flex;gap:16px;margin:8px 0;font-size:13.5px;color:#5a5049}
.qb-bill-items{font-size:12.5px;color:#8a8078;line-height:1.45;margin-bottom:12px}
.qb-bill-pay{display:flex;gap:8px}
.qb-bill-method{flex:1 1 auto;padding:9px;border:1px solid #d8cfc6;border-radius:9px;background:#fff;font-size:14px}
.qb-bill-btn{flex:0 0 auto;background:#1f7a33;color:#fff;border:none;border-radius:9px;padding:9px 16px;font-size:14px;font-weight:700;cursor:pointer}
.qb-bill-btn:disabled{opacity:.6}

/* Guest phone on kitchen/bar tickets */
.qb-card-sub{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.qb-cust-phone{color:#7a1020;text-decoration:none;font-weight:600;font-size:.86em;white-space:nowrap}
.qb-cust-phone:hover{text-decoration:underline}

/* Party / Event menu hero bar (shown on scan when an event menu is live) */
.qb-eventbar{margin:12px 14px;padding:14px 16px;border-radius:12px;
  background:linear-gradient(120deg,#7a1020,#a8324a);color:#fff;
  box-shadow:0 6px 18px rgba(122,16,32,.28);text-align:center}
.qb-eventbar-tag{display:inline-block;font:700 11px/1 system-ui;letter-spacing:.6px;
  text-transform:uppercase;background:rgba(255,255,255,.18);padding:5px 10px;border-radius:999px}
.qb-eventbar-name{display:block;margin-top:7px;font:800 22px/1.15 Georgia,serif}
.qb-eventbar-when{display:block;margin-top:4px;font:600 12.5px/1 system-ui;color:#ffe1c2}
