/* 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; }
