/* Supreme CBD VIP — customer chat. Soft green chat look on the supremecbd.uk teal. */
:root {
  --ink: #023032; --ink2: #0b3b3c; --accent: #0A7C34; --accent2: #0c6b31;
  --soft: #e9f3ea; --soft2: #f3f8f3; --line: #dfe7e1; --text: #1c2b29; --muted: #5a6866;
  --amber: #fdf1d3; --amber-ink: #7a5300; --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 Poppins, Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); background: #eef2ef; min-height: 100vh; }
[hidden] { display: none !important; }
button, .button { font: inherit; cursor: pointer; }
a { color: var(--ink); }

.shell { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; position: relative; }
@media (min-width: 520px) { .shell { margin: 16px auto; min-height: calc(100vh - 32px); border-radius: 22px; box-shadow: 0 10px 40px rgba(2, 48, 50, .12); } }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 520px) { .top { border-radius: 22px 22px 0 0; } }
.top .logo { height: 30px; width: auto; max-width: 52%; object-fit: contain; object-position: left center; }
.topright { display: flex; align-items: center; gap: 6px; }
.tag { border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .14em; padding: 4px 8px; border-radius: 999px; }
.live { display: flex; flex-direction: column; line-height: 1.25; font-size: 11px; color: #cfe3dd; white-space: nowrap; }
.live b { color: #fff; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 3px rgba(62, 207, 110, .25); flex: none; }
.live.off .dot { background: #9aa8a5; box-shadow: 0 0 0 3px rgba(154, 168, 165, .25); }
.hero .live { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal; font-size: 12.5px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 12px; align-self: flex-start; }
.hero .live b { font-size: 12.5px; }
.menubtn { background: transparent; border: 0; color: #fff; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.menubtn:hover { background: rgba(255,255,255,.1); }
.menubtn .ic { width: 22px; height: 22px; stroke-width: 3; }

main { padding-bottom: 96px; }
.loading, .center { text-align: center; padding: 32px 16px; color: var(--muted); }
.center.small { padding: 0; font-size: 11.5px; }
.err { background: #fdecea; color: #8a1c13; padding: 10px 12px; font-size: 13px; margin: 8px 0; border-radius: 10px; }
.ok { background: var(--soft); color: #0b5d27; padding: 9px 12px; font-size: 13px; font-weight: 600; margin: 4px 0 0; border-radius: 10px; }
.note { background: var(--amber); color: var(--amber-ink); padding: 10px 12px; font-size: 13px; margin: 0 0 12px; border-radius: 12px; }
.muted { color: var(--muted); font-size: 13px; }

/* icons */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.ic.star { fill: var(--accent); stroke: var(--accent); }
.ic.tick { width: 15px; height: 15px; color: #8fd19e; }

/* buttons */
.primary, .button, .start button[type=submit] { background: var(--accent2); color: #fff; border: 0; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: 14px; min-height: 50px; padding: 12px 18px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border-radius: 14px; }
.pill, .start button[type=submit] { border-radius: 999px; }
.primary:hover, .button:hover { background: #0a5b29; }
.primary:disabled, .start button:disabled { opacity: .6; cursor: wait; }
.primary .ic, .primary .bell { stroke: #fff; width: 20px; height: 20px; }
.secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 700; min-height: 46px; padding: 10px 14px; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; border-radius: 999px; }
.secondary.small { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.textbutton { background: none; border: 0; color: var(--ink); text-decoration: underline; font-weight: 600; min-height: 44px; }

/* start page */
.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink2) 100%); color: #fff; padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 8px; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #8fd19e; }
.hero h1 { margin: 0; font-size: 27px; line-height: 1.1; font-weight: 700; }
.hero p { margin: 0; font-size: 14px; color: #d6e3e0; }
.start { padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 8px; }
.start label, .details label, .pair label { font-size: 13px; font-weight: 600; }
input, textarea, select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c6d2cc; border-radius: 12px; background: #fff; width: 100%; color: var(--text); }
input:focus, textarea:focus { outline: 3px solid #bfe5c9; outline-offset: 0; border-color: var(--accent); }
.upper { text-transform: uppercase; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check label { font-weight: 400 !important; font-size: 13px; color: #3c4b49; }
.privacy { margin: 0 18px; background: var(--soft2); padding: 4px 14px; font-size: 13px; color: #3c4b49; border-radius: 12px; }
.pair { margin: 12px 16px; background: var(--soft2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pair h2 { margin: 0; font-size: 17px; color: var(--ink); }
.pair p { margin: 0; font-size: 13px; color: var(--muted); }
.paircollapsed { margin: 4px 16px 16px; }
.paircollapsed .pair { margin: 8px 0 0; }
.pair .paircollapsed { margin: 0; }
input.code { font: 700 22px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; text-align: center; }

/* notifications card */
.notify { margin: 12px 12px 4px; background: linear-gradient(135deg, #eef6ee 0%, #e3f0e4 100%); border-radius: 18px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.notify.on { background: var(--soft2); padding: 10px 14px; gap: 4px; }
.nhead { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.nhead > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #3c4b49; padding-right: 22px; }
.nhead b { font-size: 15.5px; color: var(--text); }
.bellwrap { width: 48px; height: 48px; border-radius: 50%; background: #d6ead8; display: flex; align-items: center; justify-content: center; flex: none; }
.bell { width: 24px; height: 24px; fill: none; stroke: var(--accent2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nclose { position: absolute; right: -4px; top: -4px; background: none; border: 0; width: 36px; height: 36px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.notify .primary { margin: 0 auto; max-width: 340px; }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.howto li::marker { font-weight: 700; color: var(--accent); }
.howto .ico { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: #0a66d8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.codeblock { background: #fff; padding: 10px 12px; font-size: 13px; border-radius: 12px; }
.codeblock p { margin: 0 0 4px; }
.bigcode { font: 700 28px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--ink); }
.nrow { display: flex; gap: 14px; flex-wrap: wrap; }

/* your chats menu */
.chatmenu { margin: 12px 12px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 20px rgba(2,48,50,.08); }
.chatmenu h2 { margin: 0; font-size: 15px; color: var(--ink); }
.chatmenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chatmenu li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.chatmenu li.cur { border-color: var(--accent); background: var(--soft2); }
.chatmenu li div { display: flex; flex-direction: column; font-size: 12.5px; min-width: 0; }
.chatmenu li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* messages */
.msgs > * { flex-shrink: 0; }
.msgs { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.day { align-self: center; margin: 6px 0 0; }
.day span { background: #eef2ef; color: var(--muted); font-size: 11.5px; padding: 3px 10px; border-radius: 8px; }
.row { display: flex; gap: 8px; align-items: flex-start; }
.row.me { justify-content: flex-end; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.avatar img { width: 28px; height: 28px; object-fit: contain; }
.bubble { max-width: 78%; padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 2px; border-radius: 16px; }
.bubble .text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.bubble .meta { display: flex; gap: 4px; align-items: center; align-self: flex-end; font-size: 10.5px; opacity: .75; }
.bubble.me { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { background: var(--soft); border-top-left-radius: 6px; }
.bubble .from { font-size: 12.5px; color: var(--accent2); }

/* deal / order card */
.dealcard { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(2,48,50,.05); }
.dhead { background: var(--soft); padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--ink); }
.dhead b { font-size: 14px; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; }
.dhead.off { background: #eef0ef; color: var(--muted); }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; }
.badge.white { background: #fff; color: var(--accent2); }
.badge.amber { background: var(--amber); color: var(--amber-ink); }
.badge.green { background: #d6ead8; color: #0b5d27; }
.badge.grey { background: #e7ebe9; color: var(--muted); }
.dlines { display: flex; gap: 14px; padding: 14px; }
.thumb { width: 84px; height: 104px; border-radius: 12px; background: var(--soft2); display: flex; align-items: center; justify-content: center; flex: none; }
.thumb img { width: 58px; height: 58px; object-fit: contain; }
.litems { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.line.deliv { color: var(--muted); font-size: 13.5px; }
.line.deliv .ic { width: 17px; height: 17px; }
.line.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 15.5px; }
.dbody { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.dfoot { display: flex; justify-content: space-between; gap: 8px; padding: 2px 14px 12px; font-size: 12.5px; color: var(--muted); }
.dfoot time { font-size: 11px; }
.dbody h3 { margin: 4px 0 0; font-size: 14px; color: var(--ink); letter-spacing: .02em; }
.bank { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; margin: 0; font-size: 14px; }
.bank dt { color: var(--muted); font-size: 13px; }
.bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bank .amount { font-size: 16px; color: var(--ink); }
.bank .ref { background: var(--amber); padding: 3px 8px; border-radius: 6px; justify-self: start; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #c6d2cc; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); border-radius: 10px; }
.copy .ic { width: 15px; height: 15px; }
.refnote { margin: 0; font-size: 13px; background: var(--amber); color: var(--amber-ink); padding: 10px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; }
.refnote .ic { color: #d59a12; width: 20px; height: 20px; }
.steps { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; background: var(--soft2); border-radius: 12px; }
.steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.steps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9aa8a5; flex: none; background: #fff; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--accent2); border-color: var(--accent2); box-shadow: inset 0 0 0 3px #fff; }
.details { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.details h3 { margin: 4px 0; font-size: 15px; color: var(--ink); }
.pinbox { background: var(--soft2); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; margin-top: 6px; border-radius: 12px; }
.pinbox b { color: var(--ink); font-size: 14px; }
.pinrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pinrow label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

.note.closed { margin: 12px; display: flex; flex-direction: column; gap: 10px; }
.note.closed p { margin: 0; }
.note.closed .primary, .note.closed .secondary { width: auto; flex: 1; }

/* composer */
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: flex-end; max-width: 480px; margin: 0 auto; border-top: 1px solid var(--line); }
@media (min-width: 520px) { .composer { bottom: 16px; border-radius: 0 0 22px 22px; } }
.composer textarea:focus { outline: 2px solid #bfe5c9; }
.composer textarea { resize: none; min-height: 48px; border-radius: 999px; padding: 12px 18px; background: #f6f8f7; }
.composer button { width: 48px; height: 48px; flex: none; border: 0; background: var(--accent2); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.composer svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sendErr { position: fixed; bottom: 80px; left: 12px; right: 12px; max-width: 456px; margin: 0 auto; z-index: 9; }
.closed { margin: 12px; }
