/* Account page /account/ (BNN, 2026-10-27). DESIGN-SYSTEM.md section 20. Same black scene, thin lines, margins and headings as the
   cart and order pages (banan-cart.css, banan-order.css); one column up to 760 px. Buttons: thin outline, 44 px, capitals. */
.ba { max-width: 760px; min-height: 50vh; font: 300 14px/22px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .02em; color: #fff; }
.ba.bo { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
.ba .bo-main { grid-area: auto; }
.ba .bo-meta { margin: 16px 0 12px; text-transform: none; letter-spacing: .02em; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.ba-sec { margin-top: 56px; padding-top: 28px; border-top: .5px solid rgba(255, 255, 255, .3); }
.ba-note { margin: 0 0 14px; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .7); }
.ba-empty { margin: 0 0 20px; color: rgba(255, 255, 255, .7); }
.ba .ba-cta { max-width: 320px; }

/* buttons and text buttons */
.ba-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 0 20px; background: transparent; color: #fff;
  border: .5px solid rgba(255, 255, 255, .6); border-radius: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 400 13px/1.2 "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; touch-action: manipulation; }
.ba-btn:hover { border-color: #fff; }
.ba-btn:focus-visible, .ba-link:focus-visible, .ba summary:focus-visible, .ba-copy:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.ba-primary { border-color: #fff; }
.ba-btn:disabled, .ba-btn[aria-busy="true"] { color: rgba(255, 255, 255, .4); border-color: rgba(255, 255, 255, .3); cursor: default; }
.ba-danger { color: var(--bnn-error, #ff2d2d); border-color: rgba(255, 45, 45, .6); }
.ba-danger:hover { border-color: var(--bnn-error, #ff2d2d); }
.ba-link { background: none; border: 0; padding: 8px 0; margin: 0; color: rgba(255, 255, 255, .7); cursor: pointer; font: 300 14px/22px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 4px; }
.ba-link:hover { color: #fff; }
.ba-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 16px 0 0; }
.ba-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.ba-acts .ba-link { margin-right: 12px; }
.ba-status { min-height: 22px; margin: 0 0 12px; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .8); }
.ba-status:empty { min-height: 0; margin: 0; }
.ba-status.is-bad { color: var(--bnn-error, #ff2d2d); }
.ba-form { max-width: 520px; margin-top: 28px; }
.ba-sec > .ba-form, .ba-card .ba-form, .ba-edit .ba-form { margin-top: 0; }
.ba-form .ba-btn { margin-top: 4px; }
.ba-card { margin-top: 16px; padding: 20px; border: .5px solid rgba(255, 255, 255, .3); }
.ba-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.ba-fs { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.ba-fs legend { padding: 0; margin: 0 0 8px; color: #999; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ba-check { margin: 8px 0; }
.ba-copy { flex: 1 1 260px; min-width: 0; box-sizing: border-box; height: 44px; padding: 0 12px; background: transparent; color: #fff; border: .5px solid rgba(255, 255, 255, .4); border-radius: 0; font: 300 14px/20px "Helvetica Neue", HelveticaNeue, Arial, sans-serif; }
.ba-copied { min-width: 60px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.ba-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 8px 0 14px; }
.ba-code { margin: 0 0 12px; font: 400 28px/1.2 "Helvetica Neue", HelveticaNeue, Arial, sans-serif; letter-spacing: .18em; }

/* orders */
.ba-orders, .ba-lines, .ba-list { list-style: none; margin: 0; padding: 0; }
.ba-order { padding: 20px 0 24px; border-top: .5px solid rgba(255, 255, 255, .3); }
.ba-order:last-child { border-bottom: .5px solid rgba(255, 255, 255, .3); }
.ba-order-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.ba-order-no { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.ba-order-date { color: rgba(255, 255, 255, .6); font-size: 13px; }
.ba-order-total { font-size: 14px; white-space: nowrap; text-align: right; }
.ba-badge { display: inline-block; justify-self: start; padding: 2px 8px; border: .5px solid rgba(255, 255, 255, .5); font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ba-order-head .ba-badge { grid-column: 3; }
.ba-line { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px 0; }
.ba-line:not(:has(.bo-img)) { grid-template-columns: minmax(0, 1fr); }
.ba-line .bo-img { width: 48px; }
.ba-line-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ba-track { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); overflow-wrap: anywhere; }
.ba-ret { margin-top: 8px; }

/* addresses */
.ba-addr { padding: 16px 0; border-top: .5px solid rgba(255, 255, 255, .3); }
.ba-addr .bo-addr { border-top: 0; padding-top: 0; }
.ba-addr .ba-badge { margin-top: 8px; }
.ba-edit:empty { display: none; }

/* data */
.ba-hist { margin: 20px 0 0; }
.ba-hist summary { cursor: pointer; padding: 8px 0; color: rgba(255, 255, 255, .8); }
.ba-hist-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; border-top: .5px solid rgba(255, 255, 255, .2); font-size: 13px; }
.ba-hist-src { grid-column: 2; color: rgba(255, 255, 255, .5); }
.ba-delwrap { margin-top: 32px; }

@media (max-width: 600px) {
  .ba-two { grid-template-columns: minmax(0, 1fr); }
  .ba-order-head { grid-template-columns: minmax(0, 1fr) auto; }
  .ba-order-head .ba-badge { grid-column: 1; grid-row: 2; }
  .ba-order-date { grid-column: 1; }
  .ba-order-total { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .ba-acts .ba-btn { flex: 1 1 auto; }
  .ba-card { padding: 16px; }
  .ba-hist-row { grid-template-columns: 1fr; }
  .ba-hist-src { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .ba-btn { transition: none; } }

/* ---------- sign-in gate: e-mail step and code step (BNN, 2026-10-28). DESIGN-SYSTEM.md section 20.
   One focused task, so the form is a narrow centred column between the header and the footer row instead of a left-aligned block
   in the corner. The window is filled (footer row at the bottom). The column hangs from a fixed top offset (a share of the window
   height: about the optical middle of the free area, lower on a tall screen, higher on a phone so the keyboard does not cover the
   button), not from true centring: when an error line or a message appears, only what is below it moves, never the heading. The logged-in page
   (orders, addresses, data) is not touched: only a page that contains .ba-gate gets this. */
body:has(#banan-account) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body:has(#banan-account) > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body:has(#banan-account) .bc-page { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 0; }
.bc-page:has(.ba-gate) { padding: clamp(96px, 19vh, 220px) var(--bc-m) 64px; padding-top: clamp(96px, 19svh, 220px); }
/* "Loading…" shows only if the answer is slow, so the page does not flash a line before the form */
#banan-account > .bc-empty:only-child { opacity: 0; animation: ba-in .01s linear .45s forwards; }
@keyframes ba-in { to { opacity: 1; } }

.ba-gate { width: 100%; max-width: 400px; min-height: 0; margin-inline: auto; text-align: center; }
.ba-gate .bo-lead { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .7); text-wrap: balance; overflow-wrap: anywhere; }
.ba-gate .ba-form { max-width: none; margin-top: 40px; text-align: left; }
/* the error line under the field has its place reserved (negative margin = it does not add height), so showing it moves nothing */
.ba-gate .bc-field { margin-bottom: 0; padding-bottom: 36px; }
.ba-gate .bc-field .bnn-error, .ba-gate .bc-field .bc-err { margin: 8px 0 -28px; }
/* the line under a field is a control boundary: 3:1 on black needs a lighter grey than the cart's #555; focus thickens it to 2 px without moving anything */
.ba-gate .bc-field input { padding: 12px 0; font-size: 16px; border-bottom-color: #8c8c8c; }
.ba-gate .bc-field input:focus { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.ba-gate .bc-field input[aria-invalid="true"] { border-bottom-color: var(--bnn-error, #ff2d2d); box-shadow: 0 1px 0 var(--bnn-error, #ff2d2d); }
.ba-gate .bc-field .ba-code-input { padding: 8px 0 8px .32em; font-size: 28px; line-height: 40px; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.ba-gate .ba-status { margin: -12px 0 16px; }
.ba-gate .ba-form .ba-btn { width: 100%; min-height: 48px; margin-top: 0; }
.ba-gate .ba-links { justify-content: center; margin-top: 16px; }
.ba-gate .bo-help { margin-top: 32px; }
@media (max-width: 767px) {
  .bc-page:has(.ba-gate) { padding: clamp(96px, 14vh, 120px) var(--bc-m) 64px; padding-top: clamp(96px, 14svh, 120px); }
  .ba-gate .ba-form { margin-top: 32px; }
}
.ba-who[hidden] { display: none; }
