/* Assistant discovery · the desktop as WhatsApp Web (assistant-v2, 5 Oct 2026).

   The owner, on assistant-v1's desktop: "too bad … make it look more like WhatsApp Web desktop, to make it
   look enterprise grade." So on a computer (900 px and wider) the page is WhatsApp Web's three panes:
   the chat list (the Assistant; the FoodBridge team's inbox and the outbox once they hold something), and the
   conversation — a light header, the doodle wallpaper edge to edge, a flat message bar —
   with the business-info drawer on the right. Lists and forms open as centred dialogs, not bottom sheets.
   Narrower than 900 px nothing here applies: the phone layout of assistant-v1 stays. */

:root {
  --wa-panel: #FFFFFF; --wa-panel-2: #F0F2F5; --wa-hover: #F5F6F6; --wa-active: #F0F2F5; --wa-icon: #54656F;
  --wa-green: #00A884; --wa-green-d: #008069; --wa-unread: #25D366; --wa-border: #E9EDEF; --wa-bg: #EFF2F5;
}

.wa, .wa-main { display: contents; }          /* narrower than 900 px: only the chat, as on a phone */
.wa-side, .wa-info, .wa-ro { display: none; }

@media (min-width: 900px) {
  html.has-wa, html.has-wa body { height: 100%; margin: 0; overflow: hidden; background: var(--wa-bg); }
  html.has-wa body::before { content: none; }
  .wa { display: flex; position: fixed; inset: 0; max-width: 1760px; margin: 0 auto; background: var(--wa-panel);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: var(--wa-ink); }
  @media (min-width: 1800px) { .wa { inset: 19px 0; box-shadow: 0 6px 18px rgba(11, 20, 26, .12); } }

  /* ── the chat list ── */
  .wa-side { flex: 0 0 30%; min-width: 340px; max-width: 460px; display: flex; flex-direction: column; background: var(--wa-panel); border-right: 1px solid var(--wa-border); }
  .wa-sh { flex: none; display: flex; align-items: center; height: 59px; padding: 0 20px; background: var(--wa-panel-2); border-bottom: 1px solid var(--wa-border); }
  .wa-sh h1 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; color: var(--wa-green-d); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
  .wa-sh h1 img { width: 26px; height: 26px; }
  .wa-ib { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--wa-icon); cursor: pointer; }
  .wa-ib svg { width: 22px; height: 22px; }
  .wa-ib:hover { background: rgba(11, 20, 26, .07); }
  .wa-list { flex: 1; overflow-y: auto; }
  /* the discovery's feedback (screens/feedback.js): the one thing a tester is asked to do besides trying it */
  .wa-fb { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px 16px; height: 44px; border: 1px solid #D1D7DB; border-radius: 22px;
    background: #fff; color: var(--wa-green-d); font: 600 15px/1 inherit; cursor: pointer; }
  .wa-fb:hover { background: #EFFAF6; border-color: var(--wa-green); }
  .wa-fb svg { width: 20px; height: 20px; }
  .wa-row { display: flex; align-items: center; gap: 13px; width: 100%; height: 72px; padding: 0 15px 0 13px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
  .wa-row:hover { background: var(--wa-hover); }
  .wa-row.on { background: var(--wa-active); }
  .wa-av { flex: none; width: 49px; height: 49px; border-radius: 50%; background: #FFE8D2 no-repeat 33% 0 / 155%; display: grid; place-items: center; overflow: hidden; }
  .wa-av.is-logo { background: #E7F8F2; } .wa-av.is-logo img { width: 30px; height: 30px; }
  .wa-av.is-icon { background: #DFE5E7; color: #fff; } .wa-av.is-icon svg { width: 26px; height: 26px; color: #8696A0; }
  .wa-rm { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-bottom: 1px solid var(--wa-border); padding-right: 2px; }
  .wa-row:last-child .wa-rm { border-bottom: 0; }
  .wa-r1, .wa-r2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .wa-r1 b { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 400; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
  .wa-r1 time { flex: none; font-size: 12px; color: var(--wa-sub); }
  .wa-r1 time.is-new { color: var(--wa-unread); font-weight: 600; }
  .wa-r2 span { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: var(--wa-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wa-r2 span.is-typing { color: var(--wa-green); }
  .wa-r2 i { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wa-unread); color: #fff; font: 600 12px/20px inherit; font-style: normal; text-align: center; }
  .wa-tick { color: #53BDEB; display: inline-flex; } .wa-tick svg { width: 16px; height: 16px; }

  /* ── the conversation ── */
  .wa-main { flex: 1; min-width: 0; position: relative; display: flex; }
  html.has-wa .cb-chat { position: relative; inset: auto; flex: 1; min-width: 0; width: auto; height: 100%; border-radius: 0; box-shadow: none; animation: none; z-index: auto; }
  html.has-wa .cb-head { height: 59px; padding: 0 12px 0 16px; gap: 14px; background: var(--wa-panel-2); color: var(--wa-ink); border-left: 1px solid var(--wa-border); }
  html.has-wa .cb-head .cb-back { display: none !important; }
  html.has-wa .cb-ava { width: 40px; height: 40px; }
  html.has-wa .cb-ava.is-logo { background: #E7F8F2 url(../store/foodbridge-mark-green.png) no-repeat center / 24px; }
  html.has-wa .cb-ava.is-icon { background: #DFE5E7; }
  html.has-wa .cb-who { margin-left: 0; cursor: pointer; }
  html.has-wa .cb-who b { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
  html.has-wa .cb-status { font-size: 13px; color: var(--wa-sub); opacity: 1; }
  html.has-wa .cb-hbtn { color: var(--wa-icon); }
  html.has-wa .cb-hbtn:hover { background: rgba(11, 20, 26, .07); }
  html.has-wa .cb-hbtn.cb-info { display: grid; margin-left: auto; }
  html.has-wa .cb-hbtn.cb-more { margin-left: 0; }
  html.has-wa .cb-hbtn.on { background: rgba(11, 20, 26, .1); }
  html.has-wa .cb-body { padding: 14px clamp(24px, 6%, 80px) 10px; }
  html.has-wa .cb-grp { max-width: 65%; }
  html.has-wa .cb-grp.is-wide { max-width: min(65%, 600px); }
  html.has-wa .cb-bub { font-size: 14.2px; line-height: 19px; }
  html.has-wa .cb-chip { font-size: 12.5px; }
  html.has-wa .cb-btns { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  html.has-wa .cb-btn { flex: 1 1 auto; min-width: 140px; }

  /* the message bar: flat, as WhatsApp Web's */
  html.has-wa .cb-bar { align-items: flex-end; gap: 8px; min-height: 62px; padding: 9px 16px 10px 10px; background: var(--wa-panel-2); border-left: 1px solid var(--wa-border); }
  html.has-wa .cb-clip { width: 42px; height: 42px; background: none; box-shadow: none; color: var(--wa-icon); }
  html.has-wa .cb-clip:hover { background: rgba(11, 20, 26, .07); }
  html.has-wa textarea.cb-input { height: 42px; padding: 11px 14px; border-radius: 8px; box-shadow: none; font-size: 15px; }
  html.has-wa textarea.cb-input:focus { box-shadow: none; }
  html.has-wa .cb-send { width: 42px; height: 42px; background: none; box-shadow: none; color: var(--wa-icon); }
  html.has-wa .cb-send:not(:disabled) { color: var(--wa-green); }
  html.has-wa .cb-send:disabled { opacity: .6; }
  html.has-wa .cb-hi { bottom: 80px; }
  html.has-wa .cb-dropzone { inset: 59px 0 0; }

  /* a chat you read but don't write in (the team's inbox, the outbox) */
  html.has-wa .cb-chat.is-readonly .cb-bar, html.has-wa .cb-chat.is-readonly .cb-hi { display: none; }
  html.has-wa .cb-chat.is-readonly .wa-ro { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 62px; padding: 10px 24px;
    background: var(--wa-panel-2); color: var(--wa-sub); font-size: 14px; text-align: center; border-left: 1px solid var(--wa-border); }
  .wa-ro svg { width: 16px; height: 16px; flex: none; }
  .ro-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; clear: both; }
  .ro-files button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--wa-border); border-radius: 8px; background: #F7F8FA;
    font: 13px/16px inherit; color: var(--wa-ink); cursor: pointer; }
  .ro-files button:hover { border-color: var(--wa-green); }
  .ro-files svg { width: 16px; height: 16px; color: var(--wa-icon); }
  /* v7: the request's ticket step, and the discovery's stand-in for the team (dashed: not part of the product) */
  .ro-steps { display: flex; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; clear: both; font-size: 12px; }
  .ro-steps li { flex: 1; padding: 4px 6px; border-radius: 6px; background: #F0F2F5; color: #8696A0; text-align: center; white-space: nowrap; }
  .ro-steps li.is-done { background: #E7F3EC; color: #0B7534; }
  .ro-steps li.is-now { background: #FDF7EA; color: #A15C07; font-weight: 500; }
  .ro-steps li.is-ready { background: #25D366; color: #fff; }
  .ro-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 8px; border: 1px dashed #C9CED3; border-radius: 8px; font-size: 12px; color: #667781; }
  .ro-demo button { padding: 3px 8px; border: 1px solid var(--wa-border); border-radius: 6px; background: #fff; font: inherit; color: #111B21; cursor: pointer; }
  .ro-demo button:hover { border-color: var(--wa-green); }
  .ro-to { display: block; margin-top: 6px; font-size: 12.5px; color: var(--wa-sub); }
  .ro-held { display: inline-flex; align-items: center; gap: 4px; color: #8696A0; }
  .ro-held svg { width: 14px; height: 14px; }

  /* dialogs instead of bottom sheets */
  html.has-wa .cb-sheetwrap { position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; background: rgba(11, 20, 26, .4); }
  html.has-wa .cb-sheet { width: min(480px, 92vw); max-height: 80vh; border-radius: 12px; padding-bottom: 6px; box-shadow: 0 17px 50px rgba(11, 20, 26, .19), 0 12px 15px rgba(11, 20, 26, .24); }
  html.has-wa .cb-sheet.is-form { width: min(860px, 94vw); max-height: 86vh; }
  html.has-wa .cb-sh { padding: 14px 16px 12px 8px; border-radius: 12px 12px 0 0; }
  html.has-wa .cb-sh b { text-align: left; margin: 0 0 0 6px; font-size: 17px; }
  html.has-wa .sf-foot { border-radius: 0 0 12px 12px; }

  /* ── business info (the drawer) ── */
  .wa-info { flex: 0 0 30%; min-width: 320px; max-width: 420px; display: flex; flex-direction: column; background: var(--wa-panel-2); border-left: 1px solid var(--wa-border); }
  .wa-info[hidden] { display: none; }
  .wi-h { flex: none; display: flex; align-items: center; gap: 18px; height: 59px; padding: 0 16px 0 12px; background: var(--wa-panel-2); font-size: 16px; }
  .wi-b { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
  .wi-card { background: var(--wa-panel); padding: 18px 26px; box-shadow: 0 1px 3px rgba(11, 20, 26, .08); }
  .wi-k { margin: 0 0 10px; font-size: 14px; color: var(--wa-sub); }
  .wi-steps { list-style: none; margin: 0; padding: 0; }
  .wi-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--wa-border); font-size: 15px; }
  .wi-steps li:first-child { border-top: 0; }
  .wi-steps .d { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid #D1D7DB; color: #fff; }
  .wi-steps .d svg { width: 14px; height: 14px; }
  .wi-steps li.is-done .d { background: var(--wa-green); border-color: var(--wa-green); }
  .wi-steps li.is-now .d { border-color: var(--wa-green); }
  .wi-steps li span { flex: 1; } .wi-steps li small { color: var(--wa-sub); font-size: 13.5px; }
  .wi-bar { height: 6px; border-radius: 3px; background: #E9EDEF; overflow: hidden; margin: 2px 0 12px; }
  .wi-bar i { display: block; height: 100%; background: var(--wa-green); border-radius: 3px; }
  .wi-act { display: flex; align-items: center; gap: 18px; width: 100%; padding: 14px 26px; border: 0; background: var(--wa-panel); color: #EA0038; font: 16px/1 inherit; text-align: left; cursor: pointer;
    box-shadow: 0 1px 3px rgba(11, 20, 26, .08); }
  .wi-act svg { width: 22px; height: 22px; }
  .wi-act:hover { background: var(--wa-hover); }
  .wi-act.is-plain { color: var(--wa-ink); } .wi-act.is-plain svg { color: var(--wa-icon); }
}











