/* The Help button and panel on every screen (public/assets/help.js). Self-contained: it sits on the site's pages and
   on The Pass's screens, which have different styles, so it brings its own. */
.hw-open { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 2px solid #1E1612; background: #FFFDF7; color: #1E1612;
  font: 800 1rem/1 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 6px 18px rgba(30, 22, 18, 0.18); cursor: pointer; }
.hw-q { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F5B81C; font-size: 1.1rem; }
.hw-open[aria-expanded="true"] { background: #1E1612; color: #FFFDF7; }
.hw-panel { position: fixed; left: 14px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 61; width: min(380px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #FFFDF7; color: #1E1612; border: 2px solid #1E1612;
  border-radius: 18px; box-shadow: 0 16px 40px rgba(30, 22, 18, 0.28); font: 500 1rem/1.45 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
.hw-panel[hidden], .hw-chat[hidden], .hw-form[hidden] { display: none; }
.hw-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #F5B81C; border-bottom: 2px solid #1E1612; }
.hw-head h2 { margin: 0; font: 800 1.15rem/1 "Hanken Grotesk", system-ui, sans-serif; }
.hw-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.hw-chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.hw-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.hw-msg { margin: 0; padding: 10px 12px; border-radius: 14px; max-width: 92%; white-space: pre-wrap; }
.hw-them { background: #F3E6CC; align-self: flex-start; }
.hw-me { background: #1E1612; color: #FFFDF7; align-self: flex-end; }
.hw-ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(30, 22, 18, 0.12); }
.hw-ask textarea, .hw-form textarea, .hw-form input { flex: 1; width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 2px solid rgba(30, 22, 18, 0.2);
  border-radius: 12px; background: #fff; color: #1E1612; resize: vertical; }
.hw-ask textarea:focus, .hw-form textarea:focus, .hw-form input:focus { outline: none; border-color: #1E1612; }
.hw-send { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; background: #C8281E; color: #fff; font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1; cursor: pointer; align-self: flex-end; }
.hw-send:disabled { opacity: 0.6; }
.hw-form { padding: 12px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.hw-form h3 { margin: 0 0 4px; font-size: 1.1rem; }
.hw-form label { font-weight: 700; margin-top: 6px; }
.hw-form .hw-send { align-self: stretch; margin-top: 10px; }
.hw-note { color: #A81F17; font-weight: 700; margin: 4px 0 0; }
.hw-done { margin: 8px 0; font-weight: 700; color: #2F6B3A; }
.hw-foot { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 10px 12px; border-top: 1px solid rgba(30, 22, 18, 0.12); }
.hw-link { border: 0; background: none; padding: 8px 4px; font-family: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; color: #1E1612; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hw-open:focus-visible, .hw-x:focus-visible, .hw-send:focus-visible, .hw-link:focus-visible { outline: 3px solid #C8281E; outline-offset: 2px; }
@media print { .hw-open, .hw-panel { display: none !important; } }
/* The customer pages have a bar along the bottom on phones (order, cart): sit above it. */
@media (max-width: 899px) {
  .hw-customer.hw-open { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .hw-customer.hw-panel { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); max-height: min(520px, calc(100vh - 170px)); }
}
/* The first-time walkthrough. */
.hw-tour { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(30, 22, 18, 0.55); }
.hw-tour-card { width: min(420px, 100%); background: #FFFDF7; color: #1E1612; border: 2px solid #1E1612; border-radius: 20px; padding: 22px;
  box-shadow: 0 20px 50px rgba(30, 22, 18, 0.35); font: 500 1.05rem/1.5 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
.hw-tour-step { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: rgba(30, 22, 18, 0.6); }
.hw-tour-card h2 { margin: 0 0 8px; font: 800 1.35rem/1.15 "Hanken Grotesk", system-ui, sans-serif; }
.hw-tour-words { margin: 0; }
.hw-tour-dots { display: flex; gap: 6px; margin: 16px 0 6px; }
.hw-tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(30, 22, 18, 0.2); }
.hw-tour-dots i.on { background: #C8281E; }
.hw-tour-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.hw-foot { flex-wrap: wrap; }
/* The logo's blue and red (Nov 23). */
.hw-open { border-color: #1D6DB2; }
.hw-me { background: #1D6DB2; }
.hw-panel { border-color: #1D6DB2; }
.hw-head { border-bottom-color: #1D6DB2; }

/* ---- On the right edge, halfway down (Chandler, Nov 23: "Throw it on the right, nothing is hardly over there"). A slim tab
   that sticks out from the edge, and the panel opens beside it. Replaces the bottom-left placement above. */
.hw-open, .hw-customer.hw-open { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%);
  flex-direction: column; gap: 6px; min-height: 0; padding: 10px 6px 12px; border-right: 0; border-radius: 14px 0 0 14px;
  box-shadow: -4px 4px 14px rgba(30, 22, 18, 0.16); }
.hw-open > span:last-child { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.9rem; letter-spacing: 0.04em; }
.hw-q { width: 28px; height: 28px; font-size: 1rem; }
.hw-panel, .hw-customer.hw-panel { left: auto; right: 54px; top: 50%; bottom: auto; transform: translateY(-50%);
  max-height: min(560px, calc(100vh - 40px)); }
@media (max-width: 480px) {
  .hw-panel, .hw-customer.hw-panel { right: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 32px); }
}
.hw-open, .hw-customer.hw-open { padding: 8px 3px 10px; gap: 4px; }
.hw-q { width: 24px; height: 24px; font-size: 0.9rem; }
.hw-open > span:last-child { font-size: 0.82rem; }

/* ---- Right edge, at the bottom (Chandler, Nov 23: "put it at the bottom"). On the customer pages' phones it sits just
   above their bottom bar. The panel opens above and beside it. */
.hw-open, .hw-customer.hw-open { top: auto; transform: none; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.hw-panel, .hw-customer.hw-panel { top: auto; transform: none; right: 44px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 899px) {
  .hw-customer.hw-open { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .hw-customer.hw-panel { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 110px); }
}
@media (max-width: 480px) {
  .hw-panel, .hw-customer.hw-panel { right: 8px; }
  .hw-panel { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 130px); }
  .hw-customer.hw-panel { bottom: calc(178px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 200px); }
}
/* Yellow is the accent (Nov 23): the panel's header takes the logo blue. */
.hw-head { background: #1D6DB2; color: #fff; }
.hw-head .hw-x { color: #fff; }

/* The time at the top of the tab (help.js): read across, not turned like "Help". */
.hw-time { display: flex; flex-direction: column; align-items: center; line-height: 1; padding-bottom: 6px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(30, 22, 18, 0.18); font-variant-numeric: tabular-nums; }
.hw-time b { font-size: 0.72rem; font-weight: 800; letter-spacing: -0.02em; }
.hw-time small { font-size: 0.6rem; font-weight: 700; margin-top: 2px; opacity: 0.75; }
.hw-open[aria-expanded="true"] .hw-time { border-bottom-color: rgba(255, 253, 247, 0.3); }

/* Staff and the owner (help.js messages): a dot on Help when she wrote back, and the conversation. */
.hw-open { position: relative; }
.hw-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #C72521; border: 2px solid #fff; }
.hw-dot[hidden] { display: none; }
.hw-thread { max-height: 260px; }
.hw-when { display: block; font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }
.hw-link-strong { font-weight: 800; }
