/* Food Business Portal: account pages (Food Business Portal design, Oct 2026). Account, Messages and help, Nouri.
   Every rule is scoped under body.fb and the area's own fba- classes, so other areas are not restyled. */

/* Page header: app.css also has a .ph (the photo placeholder: 2.8rem, centred, striped); undo it for the toned header. */
body.fb .ph.fba-ph { width: auto; height: auto; background: none; font-size: inherit; color: inherit; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
body.fb .ph.fba-ph .ph-a { display: flex; flex-wrap: wrap; gap: 8px; }
body.fb .ph.fba-ph .ph-a form { margin: 0; }

/* Shared building blocks */
body.fb .mono { font-family: var(--mono); }
body.fb .fba-v-sm { font-size: 18px !important; line-height: 1.25; overflow-wrap: anywhere; }
body.fb .fba-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
body.fb .fba-g2.fba-g2-wide { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
body.fb .fba-g2 > div > .card, body.fb .fba-g2 > div > section { margin-bottom: 16px; }
body.fb .fba-g2 > div > :last-child { margin-bottom: 0; }
body.fb .fba-g2.fba-g2-even { margin: 0 0 4px; }
@media (max-width: 1000px) { body.fb .fba-g2, body.fb .fba-g2.fba-g2-wide { grid-template-columns: 1fr; } }
body.fb .fba-sec-h { font-size: 19px; margin: 22px 0 10px; }
body.fb .fba-sub { display: block; font-size: 12.5px; margin-top: 1px; }
body.fb .fba-k { font-weight: 700; margin: 0 0 6px; }
body.fb .fba-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
body.fb .fba-plain { list-style: none; margin: 6px 0 0; padding: 0; }
body.fb .fba-plain li { padding: 4px 0; }
body.fb .fba-pre { white-space: pre-line; margin: 6px 0 0; }
body.fb .fba-pn { font-weight: 700; }
body.fb .fba-btn-sm { min-height: 34px !important; padding: 0 14px !important; font-size: 13px !important; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
body.fb .fba-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
body.fb .fba-actions form { margin: 0; }
body.fb .fba-form label, body.fb .fba-inline label { display: block; font-weight: 600; margin: 12px 0 4px; }
body.fb .fba-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), body.fb .fba-form select, body.fb .fba-form textarea,
body.fb .fba-inline input:not([type=checkbox]):not([type=radio]):not([type=hidden]), body.fb .fba-inline select { width: 100%; max-width: 100%; }
body.fb .fba-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 14px; }
body.fb .fba-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 8px; }
body.fb .fba-inline > div { min-width: 0; }
body.fb .fba-inline label { margin-top: 0; }
body.fb .fba-grow { flex: 1 1 240px; }
body.fb .fba-narrow, body.fb .fba-inline input.fba-narrow { max-width: 170px !important; }
body.fb label.fba-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; min-height: 44px; margin: 6px 0 0 !important; }
body.fb label.fba-consent { align-items: flex-start; }
body.fb label.fba-consent input { margin-top: 4px; }
body.fb .fba-more { margin-top: 12px; }
body.fb .fba-more > summary, body.fb details.fba-add > summary { cursor: pointer; font-weight: 700; }
body.fb details.fba-add > summary { font-family: var(--display); font-size: 17px; }
body.fb .fba-av { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 18px; border: var(--bw) solid var(--ink); }
body.fb .fba-av.sm { width: 34px; height: 34px; font-size: 12.5px; border-width: 1.5px; }
body.fb .fba-rows { list-style: none; margin: 0; padding: 0; }
body.fb .fba-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
body.fb .fba-rows li:first-child { border-top: 0; padding-top: 0; }
body.fb .fba-rows li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.fb .callout.fba-urg, body.fb .callout.fba-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
body.fb .callout.fba-urg .btn { flex: none; text-decoration: none; }
@media (max-width: 640px) { body.fb .callout.fba-urg { flex-direction: column; align-items: stretch; } }
body.fb .fba-fs { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
body.fb .fba-fs legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
body.fb label.fba-opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 8px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 400; }
body.fb label.fba-opt:has(input:checked) { border-color: var(--ink); background: var(--seashell); }
body.fb label.fba-opt > span { display: flex; flex-direction: column; }
body.fb .fba-table td { vertical-align: top; }

/* Account hub */
body.fb .fba-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.fb .fba-me h2 { margin: 0; font-size: 21px; }
body.fb .fba-me .hint { margin: 2px 0 0; }
body.fb .fba-me-dl { margin: 0 0 0 auto; }
body.fb .fba-hub { margin-bottom: 8px; }
body.fb .fba-hub h2 { font-size: 17px; margin: 18px 0 10px; }
body.fb .fba-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
body.fb a.card.fba-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 40px 16px 18px; text-decoration: none; border-width: 1.5px !important; border-color: var(--idle-bd) !important; min-height: 92px; }
body.fb a.card.fba-tile:hover { border-color: var(--ink) !important; background: #fff; }
body.fb a.card.fba-tile b { font-family: var(--display); font-size: 16px; }
body.fb a.card.fba-tile .bi { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* People */
body.fb .fba-who { display: flex; align-items: center; gap: 10px; }
body.fb .fba-person { padding: 12px 18px; margin-bottom: 10px; border-width: 1.5px !important; border-color: var(--line) !important; }
body.fb .fba-person[open] { border-color: var(--ink) !important; }
body.fb .fba-person > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
body.fb .fba-person > summary::-webkit-details-marker { display: none; }
body.fb .fba-person > summary > span:nth-child(2) { flex: 1; min-width: 0; }
body.fb .fba-person > summary::after { content: "Manage"; font-weight: 700; font-size: 13px; text-decoration: underline; }
body.fb .fba-person[open] > summary::after { content: "Close"; }
body.fb .fba-person-b { border-top: 1px solid var(--hair); margin-top: 12px; padding-top: 12px; }

/* Delivery addresses */
body.fb .fba-ad .fb-card-h h2 .pill { margin-left: 6px; vertical-align: middle; }

/* Notification settings */
body.fb .fba-prefs th[scope=row] { font-weight: 500; font-family: var(--body); font-size: 13.5px; letter-spacing: 0; text-transform: none; background: none; }
body.fb .fba-prefs .c { text-align: center; }
body.fb .fba-prefs td.c input { width: 20px; height: 20px; accent-color: var(--pink); }

/* Messages: two-pane inbox */
body.fb .fba-ms { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); padding: 0; overflow: hidden; }
body.fb .fba-ms-list { border-right: 1.5px solid var(--hair); background: var(--seashell); padding: 12px; min-width: 0; max-height: 72vh; overflow-y: auto; }
body.fb .fba-ms-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
body.fb .fba-ms-bar form { margin: 0; }
body.fb .seg.fba-seg a, body.fb .seg.fba-seg button { padding: 6px 14px; font-size: 13px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink); background: none; border: 0; min-height: 0; }
body.fb .seg.fba-seg a.on, body.fb .seg.fba-seg button.on { background: var(--ink); color: var(--seashell); }
body.fb .fba-ms-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.fb a.fba-mt { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1.5px solid var(--hair); border-radius: var(--r-sm); background: #fff; text-decoration: none; color: var(--ink); }
body.fb a.fba-mt:hover { border-color: var(--ink); color: var(--ink); }
body.fb a.fba-mt.on { border: var(--bw) solid var(--ink); }
body.fb a.fba-mt.unread .fba-mt-t { font-weight: 700; }
body.fb .fba-mt-h { display: flex; justify-content: space-between; gap: 8px; }
body.fb .fba-mt-h .hint { font-family: var(--mono); font-size: 11.5px; flex: none; }
body.fb .fba-mt-t { font-size: 13.5px; overflow-wrap: anywhere; }
body.fb a.fba-mt .pill { align-self: flex-start; }
body.fb .fba-ms-empty { color: var(--muted); padding: 12px 4px; margin: 0; }
body.fb .fba-pager { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
body.fb .fba-ms-thread { padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; }
body.fb .fba-ms-thread:focus { outline: 0; }
body.fb .fba-ms-thread .fb-card-h { align-items: flex-start; border-bottom: 1px solid var(--hair); padding-bottom: 12px; }
body.fb .fba-ms-thread .fb-card-h .hint { margin: 2px 0 0; }
@media (max-width: 860px) {
    body.fb .fba-ms { grid-template-columns: 1fr; }
    body.fb .fba-ms-list { border-right: 0; border-bottom: 1.5px solid var(--hair); max-height: none; }
}

/* Bubbles (Messages and case conversations) */
body.fb .fba-bubs { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
body.fb .fba-bub { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--shell2); }
body.fb .fba-bub p { margin: 0 0 4px; overflow-wrap: anywhere; }
body.fb .fba-bub .hint { font-size: 12px; }
body.fb .fba-bub.them { align-self: flex-start; border-bottom-left-radius: 4px; }
body.fb .fba-bub.me { align-self: flex-end; background: #fff; border: 1.5px solid var(--ink); border-bottom-right-radius: 4px; }
body.fb .fba-reply label { margin: 4px 0 6px; display: block; font-weight: 600; }
body.fb .fba-reply-row { display: flex; gap: 10px; align-items: flex-end; }
body.fb .fba-reply-row textarea { flex: 1 1 auto; min-width: 0; }
body.fb .fba-reply-row button { flex: none; }

/* Support cases */
body.fb tr.fba-unread td:first-child b { color: var(--pink-d); }
body.fb .fba-none { margin: 10px 0 0; }

/* Notices */
body.fb .fba-notices { list-style: none; margin: 0; padding: 0; }
body.fb .fba-notice { padding: 14px 0; border-top: 1px solid var(--hair); }
body.fb .fba-notice:first-child { border-top: 0; padding-top: 0; }
body.fb .fba-notice.crit { border-left: 4px solid var(--pink); padding-left: 14px; }
body.fb .fba-notice-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.fb .fba-notice-h h3 { margin: 0; font-size: 17px; }
body.fb .fba-notice .hint { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; }

/* Help centre */
body.fb .fba-hsearch .fba-inline { margin: 0; }
body.fb .fba-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 0 0 16px; }
body.fb a.card.fba-topic { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-decoration: none; border-width: 1.5px !important; border-color: var(--idle-bd) !important; }
body.fb a.card.fba-topic:hover { border-color: var(--ink) !important; }
body.fb a.card.fba-topic b { font-family: var(--display); font-size: 15px; }
body.fb .fba-nl { list-style: none; margin: 0; padding: 0; }
body.fb .fba-nl li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--hair); }
body.fb .fba-nl li:first-child { border-top: 0; padding-top: 0; }
body.fb .fba-nl li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 640px) { body.fb .fba-nl li > .btn { display: none; } }
body.fb .fba-stuck { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
body.fb .fba-stuck h2 { margin: 0; font-size: 19px; }
body.fb .fba-stuck .hint, body.fb .fba-stuck .fba-actions { margin: 4px 0 0; }
body.fb .fba-article { font-size: 15px; line-height: 1.6; }
body.fb .fba-article > :first-child { margin-top: 0; }
body.fb .fba-article h2 { font-size: 20px; margin: 22px 0 8px; }
body.fb .fba-article h3 { font-size: 17px; margin: 18px 0 6px; }
body.fb .fba-rel li { border-top: 1px solid var(--hair); padding: 8px 0; }
body.fb .fba-rel li:first-child { border-top: 0; }

/* Weekly basket */
body.fb .fba-site { margin-bottom: 8px; }
body.fb .fba-sg { margin-bottom: 14px; }
body.fb .fba-sg h3 { margin: 0; font-size: 17px; }
body.fb .fba-lines { list-style: none; margin: 0; padding: 0; }
body.fb .fba-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: end; padding: 12px 0; border-top: 1px solid var(--hair); }
body.fb .fba-line:first-child { border-top: 0; padding-top: 0; }
body.fb .fba-line-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.fb .fba-why { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
body.fb .fba-why .tag { margin-right: 6px; background: var(--shell2); color: var(--ink); }
body.fb .fba-line-a { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
body.fb .fba-line-a .fba-inline { margin: 0; }
body.fb .fba-line-a form { margin: 0; }
body.fb input.fba-qty { width: 90px !important; }
@media (max-width: 760px) { body.fb .fba-line { grid-template-columns: 1fr; } body.fb .fba-line-a { justify-content: flex-start; } }

/* Nouri */
body.fb .fba-chat { display: flex; flex-direction: column; }
body.fb .fba-chat-h { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--hair); }
body.fb .fba-chat-h h2 { margin: 0; font-size: 19px; }
body.fb .fba-chat-h .hint { margin: 0; }
body.fb .fba-orb { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, var(--green) 45%, var(--teal-d) 100%); border: var(--bw) solid var(--ink); color: var(--ink); }
body.fb .fba-chat .chat-log { min-height: 280px; max-height: 58vh; }
body.fb .fba-chat .msg { border: 0; border-radius: 14px; background: var(--shell2); max-width: 80%; }
body.fb .fba-chat .msg.user { background: #fff; border: 1.5px solid var(--ink); border-bottom-right-radius: 4px; }
body.fb .fba-chat .msg.assistant { border-bottom-left-radius: 4px; }
body.fb .fba-chat .msg.system { background: var(--att-bg); }
body.fb .fba-chat .msg .who { font-family: var(--mono); color: var(--muted); font-size: 10.5px; }
body.fb .fba-confirm { border: var(--bw) solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: var(--sh-pri); }
body.fb .fba-confirm h3 { text-transform: none; font-family: var(--display); font-size: 17px; }
body.fb .fba-chat-form { border-top: 1px solid var(--hair); padding-top: 12px; }
body.fb .fba-chat-form [data-chat-status] { margin: 6px 0 0; min-height: 1em; }
body.fb .fba-chiplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.fb .fba-chiplist form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
body.fb .fba-chiplist button { white-space: normal; text-align: left; }
