/* Shared customer shell for sizing and account flows. */
.customer-flow {
  --paper: #faf9f6;
  --bone: #efeee8;
  --ink: #252722;
  --muted: #686a61;
  --line: #dedfd7;
  --tape: #f1cd52;
  --serif: var(--sans);
  --display-weight: 700;
  --mono: 'Hanken Grotesk', 'IBM Plex Sans Arabic', sans-serif;
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom);
}
.customer-flow::after { display: none; }
.customer-flow .nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.customer-flow .nav-inner { gap: 20px; }
.customer-flow .logo { flex-shrink: 0; }
.customer-flow .nav-links a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.customer-flow .nav-cta { margin-inline-start: auto; }
.customer-flow :is(.lang-btn, .btn-sm) { min-height: 44px; height: auto; }
.customer-flow .lang-btn { min-width: 44px; }
.customer-flow :is(button, a, input, select, summary):focus-visible { outline: 3px solid #315444; outline-offset: 3px; }
.customer-flow :is(.finder, #acct):focus { outline: none; }
.flow-skip { position: fixed; top: 8px; inset-inline-start: 12px; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; transform: translateY(-150%); z-index: 1000; }
.flow-skip:focus { transform: translateY(0); }
.flow-merchant { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; text-underline-offset: 4px; }
.flow-bottom-nav { display: none; }
.flow-help { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; margin-top: 22px; color: var(--muted); font-size: 14px; text-underline-offset: 5px; }
.customer-flow .shop-hero { padding-block: 40px 64px; }
.customer-flow .shop-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.customer-flow .shop-copy { padding-top: 30px; }
.customer-flow .shop-copy .display { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.2; }
html[lang="ar"] .customer-flow .shop-copy .display { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.5; }
.customer-flow .shop-copy .lede { max-width: 34ch; font-size: 17px; }
.customer-flow .shop-badges { display: grid; gap: 8px; margin-top: 24px; }
.customer-flow .shop-badges > span { border: 0; border-radius: 0; padding: 0; background: none; color: var(--muted); font-size: 14px; }
.customer-flow .shop-badges > span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #315444; }
.customer-flow .finder { border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 36px rgb(37 39 34 / 5%); scroll-margin-top: 92px; min-width: 0; }
.customer-flow .finder-top { padding: 14px 22px; }
.customer-flow .finder-back { min-width: 44px; width: 44px; height: 44px; }
.customer-flow .finder-progress { height: 5px; border: 0; border-radius: 8px; background: var(--bone); }
.customer-flow .finder-progress span { background: var(--ink); }
.customer-flow .finder-body { padding: 26px; min-height: 420px; }
.customer-flow .finder-step { min-width: 0; }
.customer-flow .finder-q { line-height: 1.3; }
.customer-flow .finder-q:focus { outline: 0; }
.customer-flow :is(.finder .chip, .finder .seg button, .try-rm, .wallet-acts button, .wallet-acts a, .acct-nav a) { min-height: 44px; }
.customer-flow .finder .chip { height: auto; padding-block: 9px; }
.customer-flow .finder :is(.btn, .link) { max-width: 100%; white-space: normal; height: auto; min-height: 44px; }
.customer-flow .finder .btn { padding-block: 12px; }
.customer-flow .finder .btn-row { flex-wrap: wrap; }
.customer-flow .finder .link { display: inline-flex; align-items: center; }
.customer-flow :is(.shape-opt, .big-opt) { border-radius: 14px; }
.customer-flow :is(.big-opt:hover, .big-opt.is-on) { transform: none; box-shadow: none; }
.customer-flow .meas-card { padding-inline: 14px; }
.customer-flow .meas-card input[type="range"] { min-height: 44px; }
.customer-flow .meas-val { display: inline-flex; align-items: center; gap: 6px; }
.customer-flow .measure-number { width: 84px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: 600 24px 'Hanken Grotesk', sans-serif; text-align: center; direction: ltr; }
.customer-flow .measure-number:focus { border-color: #315444; }
.customer-flow .measure-number:invalid { border-color: #a32f22; }
.customer-flow :is(.input, .finder input[type="text"], .finder input[type="email"]) { min-width: 0; font-size: 16px; }
.customer-flow .fit-note { align-items: start; gap: 12px; flex-wrap: wrap; }
.customer-flow .read-details { overflow-x: auto; }
.customer-flow :is(.fit-notes, .brand-rows, .try-grid, .try-pieces) { min-width: 0; }
.customer-flow .try-piece { grid-template-columns: 64px minmax(0, 1fr); }
.customer-flow .try-thumb { width: 64px; height: 72px; }
.customer-flow .try-piece-head { flex-wrap: wrap; }
.customer-flow .consent { min-height: 44px; align-items: center; }
.customer-flow .consent input { width: 22px; height: 22px; margin: 0; }
.customer-flow .how-steps { margin-block: 22px; }
.customer-flow .trend-card { box-shadow: none; border-color: var(--line); border-radius: 16px; }
.customer-flow .trend-art { border-color: var(--line); background: var(--bone); }
.customer-flow .trend-title { font-size: clamp(26px, 3vw, 38px); }
html[lang="ar"] .customer-flow .trend-title { font-size: clamp(24px, 2.8vw, 34px); }
.customer-flow .trend-controls .seg button { min-height: 44px; }
.customer-flow .trend-links a { min-height: 44px; display: inline-flex; align-items: center; }
.flow-discover { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 38px 60px; border-top: 1px solid var(--line); }
.flow-discover h2 { font-size: 22px; line-height: 1.5; }
.flow-discover p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.flow-discover .btn { flex-shrink: 0; }
.customer-flow .acct-title { font-size: clamp(30px, 4vw, 50px); }
.customer-flow .acct-meta { overflow-wrap: anywhere; }
.customer-flow .acct-meta bdi { max-width: 100%; }
.customer-flow .acct-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.customer-flow .acct-quicklinks a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; text-decoration: none; background: white; }
.customer-flow .acct-quicklinks a:hover { border-color: var(--ink); }
.customer-flow .acct-quicklinks svg { width: 18px; height: 18px; }
.customer-flow .acct-panel { padding: clamp(18px, 3vw, 28px); border-color: var(--line); box-shadow: none; border-radius: 18px; }
.customer-flow .acct-panel .panel-head { flex-wrap: wrap; gap: 14px; }
.customer-flow .acct-panel .panel-head > div { min-width: 0; }
.customer-flow .acct-panel .btn { white-space: normal; height: auto; padding-block: 12px; min-height: 44px; max-width: 100%; }
.customer-flow .acct-nav a { display: flex; align-items: center; }
.customer-flow .acct-refs li { flex-wrap: wrap; border-radius: 10px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.customer-flow .acct-closet span { min-width: 0; flex-basis: 200px; }
.customer-flow .wallet { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.customer-flow .wallet-item { background: #f8edc6; border-color: #daceaa; }
.customer-flow .wallet-acts { flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.customer-flow .wallet-acts a, .customer-flow .wallet-acts button { display: inline-flex; align-items: center; }
.customer-flow .meters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.customer-flow .meter-top { flex-wrap: wrap; }
.customer-flow .danger { padding: 16px; }
.customer-flow .req-list li > div { min-width: 0; flex-basis: 150px; overflow-wrap: anywhere; }
.customer-flow .flow-load-error { padding: 16px; background: var(--bone); border-radius: 12px; display: grid; gap: 12px; justify-items: start; }
.customer-flow .footer { padding-bottom: 28px; }
@media (max-width: 1100px) {
  .customer-flow .nav-links { gap: 0; }
  .customer-flow .nav-links a { padding-inline: 7px; font-size: 13px; }
  .customer-flow .nav-inner { gap: 12px; }
}
@media (max-width: 960px) {
  .customer-flow .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 700px; }
  .customer-flow .shop-copy { position: static; padding: 0; }
  .customer-flow .shop-copy .display { margin-block: 8px; }
  .customer-flow .shop-copy .lede { max-width: 58ch; font-size: 16px; }
  .customer-flow .shop-badges, .customer-flow .flow-help { display: none; }
}
@media (max-width: 860px) {
  .customer-flow { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .customer-flow .nav-inner { height: 68px; gap: 12px; }
  .customer-flow .nav-cta { gap: 12px; }
  .customer-flow #accountLink, .customer-flow .flow-size-link { display: none; }
  .customer-flow .flow-merchant { display: inline-flex; }
  .flow-bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 110; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: rgb(250 249 246 / 98%); }
  .flow-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; min-height: 56px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 600; text-decoration: none; border-radius: 10px; }
  .flow-bottom-nav svg { width: 21px; height: 21px; flex-shrink: 0; }
  .flow-bottom-nav a[aria-current="page"] { color: var(--ink); background: #ebece5; }
  .customer-flow .shop-hero { padding-block: 26px 40px; }
  .customer-flow .finder { scroll-margin-top: 84px; }
  .customer-flow .acct { padding-block: 28px 50px; }
  .customer-flow .acct-head { margin-bottom: 22px; }
  .customer-flow .acct-nav { margin: 0; padding: 0 0 8px; max-width: 100%; }
  .customer-flow .acct-panel { scroll-margin-top: 88px; }
  .flow-discover { align-items: start; flex-direction: column; gap: 18px; }
}
@media (max-width: 520px) {
  .customer-flow .shop-copy .eyebrow { font-size: 11px; }
  .customer-flow .shop-copy .display { font-size: 34px; }
  html[lang="ar"] .customer-flow .shop-copy .display { font-size: 28px; }
  .customer-flow .shop-copy .lede { font-size: 15px; line-height: 1.65; }
  .customer-flow .finder { border-radius: 18px; }
  .customer-flow .finder-top { padding: 10px 16px; gap: 10px; }
  .customer-flow .finder-body { padding: 20px 16px; min-height: 360px; }
  .customer-flow .finder-q { font-size: 26px; }
  html[lang="ar"] .customer-flow .finder-q { font-size: 21px; }
  .customer-flow .finder-sub { margin-bottom: 20px; }
  .customer-flow .finder .btn-row > .btn { flex: 1 1 100%; }
  .customer-flow .finder .btn-lg { font-size: 15px; }
  .customer-flow .big-opts { gap: 10px; }
  .customer-flow .big-opt { padding: 18px 8px; }
  .customer-flow .big-opt svg { width: 60px; height: 60px; }
  .customer-flow .shape-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-flow .finder .seg { border-radius: 12px; }
  .customer-flow .finder .seg button { border-radius: 9px; font-size: 13px; padding: 8px 4px; }
  .customer-flow .finder .brand-grid { max-height: 240px; }
  .customer-flow .brand-rows { grid-template-columns: minmax(0, 1fr); }
  .customer-flow .try-piece { padding: 10px; gap: 10px; }
  .customer-flow .result-size { font-size: 76px; overflow-wrap: anywhere; }
  .customer-flow .big-ring { width: 86px; height: 86px; }
  .customer-flow .result-hero { gap: 12px; }
  .customer-flow .acct-title { font-size: 30px; }
  html[lang="ar"] .customer-flow .acct-title { font-size: 28px; }
  .customer-flow .acct-meta { font-size: 14px; }
  .customer-flow .acct-panel { padding: 18px 14px; }
  .customer-flow .acct-panel .two { grid-template-columns: minmax(0, 1fr); }
  .customer-flow .acct-panel .label { flex-wrap: wrap; gap: 4px 10px; }
  .customer-flow .wallet-empty { padding: 16px; }
  .customer-flow .wallet-empty .btn { width: 100%; }
  .customer-flow .meter { padding: 12px; }
  .customer-flow .size-tape-row span { min-width: 0; font-size: 12px; overflow-wrap: anywhere; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-flow :is(.finder-step, .result-size, .brand-row) { animation: none; }
  .customer-flow * { scroll-behavior: auto !important; }
}
/* Match the customer discovery shell without changing the merchant interface. */
.customer-flow .logo{direction:ltr;min-height:44px}
.customer-flow :is(.btn,.input){border-radius:8px}
.customer-flow .lang-btn{border:0;background:transparent}
