/* ============================================================
   irobot-th-2026 — My Account (all endpoints + lost/reset password)
   Enqueued by inc/enqueue.php only when is_account_page() · depends on design-system.css
   Design contract: content/account/DESIGN.md (Fable 5.1, Roomba-app look)

   [A] the prototype's stylesheet, copied verbatim (minus prototype-only rules) — edit it in
       content/account/account.css and run content/account/build_theme_assets.py
   [B] theme bridge: WooCommerce / woo-address-book / Omise / sharisma-warranty markup that the
       theme does not own, dressed in the same ac- language. Edit [B] here.

   Rules: colours only through var(--brand-color-*) (no hex, no rgb() literals) · English comments only.
   WooCommerce's own general/layout/smallscreen sheets are not loaded on account pages
   (inc/account.php) — [B] styles notices and form rows itself.
   ============================================================ */

/* [A] >>> copied from content/account/account.css by content/account/build_theme_assets.py — do not edit here */
  /* ============================================================
     My Account — page-specific styles. Class prefix: ac-
     Every color goes through var(--brand-color-*); no hex or rgb() literals.
     Comments are English only: this block is shared verbatim with en/ pages.
     Contract: content/account/DESIGN.md
     Ground = sand, content = white cards (24px radius, no border, faint shadow),
     one mint status card, grouped rows with chevrons, pill buttons, bottom sheets.
     Phones keep the Roomba-app structure; from 1024px the pages are composed for a wide
     screen (breadcrumb + large h1, bento dashboard, grids, sticky side columns from 1200px).
     ============================================================ */

  /* ---------- Ground and page-level tokens ---------- */
  .ac-main {
    --ac-radius: 24px;
    --ac-radius-sm: 16px;
    --ac-row: 60px;
    --ac-ink-2: rgba(var(--brand-color-black-rgb), .62);
    --ac-hair: rgba(var(--brand-color-hunter-rgb), .08);
    --ac-tint: rgba(var(--brand-color-mint-rgb), .6);
    --ac-shadow: 0 1px 2px rgba(var(--brand-color-hunter-rgb), .04), 0 10px 24px -18px rgba(var(--brand-color-hunter-rgb), .16);
    --ac-shadow-up: 0 2px 4px rgba(var(--brand-color-hunter-rgb), .05), 0 18px 32px -20px rgba(var(--brand-color-hunter-rgb), .28);
    background: var(--brand-color-sand);
    padding-bottom: clamp(48px, 7vw, 88px);
  }
  .ac-main + .irb-footer { margin-top: 0; }

  /* ---------- Icons: 48-viewBox two-tone line set (Support/About language) ----------
     .ac-ic sets the inherited stroke properties; the symbol paths take their colour from
     --ac-ic-1 (line) / --ac-ic-2 (accent) and fall back to currentColor. Containers that want
     the site's hunter + clover pair set the two properties; pills, buttons and the mint card
     leave them unset and get a single-colour icon. Sizes are tuned per context below. */
  .ac-ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .ac-ic--2, .ac-tile-ic, .ac-row-ic, .ac-help-ic, .ac-empty-ic, .ac-aside-ic, .ac-device-img--ph, .ac-sheet-list, .ac-notice-title {
    --ac-ic-1: var(--brand-color-hunter);
    --ac-ic-2: var(--brand-color-clover);
  }

  /* ---------- Layout: single column, left rail + content from 1024px ---------- */
  .ac-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 12px; }
  .ac-content { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
  .ac-layout--single .ac-content { max-width: 960px; margin: 0 auto; width: 100%; }
  .ac-rail { display: none; }
  .ac-crumb { display: none; }
  @media (min-width: 1024px) {
    .ac-crumb { display: block; padding: 22px 0 2px; }
    .ac-crumb ol { display: flex; flex-wrap: wrap; list-style: none; font-size: 14px; }
    .ac-crumb li { display: flex; align-items: center; }
    .ac-crumb li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--brand-color-border); }
    .ac-crumb a { color: var(--brand-color-gray); text-decoration: none; }
    .ac-crumb a:hover { color: var(--brand-color-black); text-decoration: underline; }
    .ac-crumb li[aria-current] { color: var(--brand-color-black); font-weight: 600; }
    .ac-layout { grid-template-columns: 280px minmax(0, 1fr); column-gap: clamp(32px, 4vw, 56px); align-items: start; padding-top: 10px; }
    .ac-layout--single { grid-template-columns: minmax(0, 1fr); }
    .ac-rail { display: block; position: sticky; top: 24px; }
    .ac-content { max-width: 1040px; gap: 20px; }
  }

  /* ---------- Cards ---------- */
  .ac-card { background: var(--brand-color-white); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); }
  .ac-card--pad { padding: 20px; }
  .ac-card--list { overflow: hidden; }
  .ac-group { display: flex; flex-direction: column; gap: 10px; }
  .ac-h2 { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 6px 4px 0; }
  .ac-h2 small { font-weight: 400; color: var(--ac-ink-2); font-size: 14px; margin-left: 6px; }
  .ac-h2--flat { margin: 0; }

  .ac-h3 { font-size: 14px; font-weight: 600; color: var(--ac-ink-2); letter-spacing: .02em; margin-bottom: 10px; }
  .ac-h3--in { padding: 18px 20px 0; }
  .ac-p { font-size: 15px; line-height: 1.6; color: var(--ac-ink-2); }
  .ac-p a { color: var(--brand-color-hunter); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .ac-lead { font-size: 14px; line-height: 1.6; color: var(--ac-ink-2); margin: -4px 4px 0; }
  .ac-lead a { color: var(--brand-color-hunter); font-weight: 600; }
  @media (min-width: 1024px) {
    .ac-card--pad { padding: 24px; }
    .ac-h2 { font-size: 19px; }
    .ac-h3 { font-size: 15px; }
    .ac-h3--in { padding: 22px 24px 0; }
    .ac-lead { font-size: 16px; margin-top: -10px; max-width: 70ch; }
  }

  /* ---------- Grouped rows (the app's settings list): leading icon tile, label, value, chevron ---------- */
  .ac-list { list-style: none; }
  .ac-list > li + li { border-top: 1px solid var(--ac-hair); }
  .ac-row {
    display: flex; align-items: center; gap: 12px; min-height: var(--ac-row); padding: 10px 20px;
    color: var(--brand-color-black); text-decoration: none; font-size: 17px; font-weight: 500; line-height: 1.35;
    width: 100%; background: transparent; border: 0; text-align: left; cursor: pointer;
  }
  .ac-row-ic { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-color-sand); }
  .ac-row-ic .ac-ic { width: 22px; height: 22px; stroke-width: 2.8; }
  .ac-row-label { flex: 1 1 auto; min-width: 0; }
  .ac-row-value { font-size: 15px; font-weight: 400; color: var(--ac-ink-2); text-align: right; white-space: nowrap; }
  .ac-row .ac-chev { width: 20px; height: 20px; color: var(--brand-color-gray); flex-shrink: 0; }
  .ac-row:hover { background: var(--brand-color-sand); }
  .ac-row:hover .ac-row-ic { background: var(--brand-color-white); }
  .ac-row:focus-visible { outline: 3px solid var(--brand-color-clover); outline-offset: -3px; }

  /* ---------- Account nav: grouped list on the dashboard (mobile), rail on desktop ---------- */
  .ac-nav ul { list-style: none; }
  .ac-nav li + li { border-top: 1px solid var(--ac-hair); }
  .ac-nav a { display: flex; align-items: center; gap: 12px; }
  .ac-nav--list a[aria-current] { display: none; }
  .ac-nav--list ul + ul { margin-top: 10px; }
  .ac-nav--list ul { background: var(--brand-color-white); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); overflow: hidden; }
  .ac-nav--list { display: block; }
  .ac-rail .ac-nav--rail ul { padding: 6px; }
  .ac-rail .ac-nav--rail ul + ul { border-top: 1px solid var(--ac-hair); }
  .ac-rail .ac-nav--rail li + li { border-top: 0; }
  .ac-rail .ac-nav--rail a { min-height: 48px; padding: 7px 12px; border-radius: 14px; font-size: 16px; }
  .ac-rail .ac-nav--rail a .ac-chev { display: none; }
  .ac-rail .ac-nav--rail a .ac-row-value { font-size: 14px; }
  .ac-rail .ac-row-ic { width: 34px; height: 34px; border-radius: 10px; }
  .ac-rail .ac-row-ic .ac-ic { width: 21px; height: 21px; }
  .ac-rail .ac-nav--rail a[aria-current="page"] { background: var(--brand-color-mint); color: var(--brand-color-hunter); font-weight: 600; }
  .ac-rail .ac-nav--rail a[aria-current="page"] .ac-row-value { color: var(--brand-color-hunter); }
  .ac-rail .ac-nav--rail a[aria-current="page"] .ac-row-ic { background: var(--brand-color-white); }
  .ac-rail-user { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--ac-hair); }
  .ac-rail-user .ac-avatar { width: 44px; height: 44px; font-size: 20px; }
  .ac-rail-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .ac-rail-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
  .ac-rail-mail { font-size: 13px; color: var(--ac-ink-2); overflow-wrap: anywhere; }
  .ac-rail-who .flag { align-self: flex-start; margin-top: 4px; }
  @media (min-width: 1024px) { .ac-nav--list { display: none; } }

  /* ---------- Top bar of every logged-in sub-page: back link, centred title, sample tag ---------- */
  .ac-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 2px 0; }
  .ac-back { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding-right: 8px; color: var(--brand-color-hunter); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 12px; justify-self: start; white-space: nowrap; }
  .ac-back .ac-ic { width: 22px; height: 22px; margin-left: -6px; }
  .ac-top h1 { font-size: 20px; font-weight: 600; line-height: 1.3; text-align: center; text-wrap: balance; }
  .ac-top .flag { justify-self: end; white-space: nowrap; }
  .ac-top-no { display: block; font-size: 14px; font-weight: 500; color: var(--ac-ink-2); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
  .ac-top--plain { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-top--plain h1 { text-align: left; font-size: 24px; }
  @media (min-width: 1024px) {
    .ac-top { grid-template-columns: minmax(0, 1fr) auto; padding: 0 0 2px; }
    .ac-back { display: none; }
    .ac-top h1, .ac-top--plain h1 { grid-column: 1; text-align: left; font-size: clamp(30px, 2.6vw, 36px); line-height: 1.2; }
    .ac-top .flag { display: none; }
    .ac-layout--single .ac-top .flag { display: inline-block; }
    .ac-top-no { display: inline; font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: 0; }
  }

  /* ---------- Dashboard hero: one compact row on phones (avatar | greeting, email, member since | sample flag);
     the greeting + member-since line only on desktop, where the rail already shows avatar and email.
     Owner 19.09.2026: the old centred stack (80px avatar, 4 rows) took half a phone screen ---------- */
  .ac-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av name flag" "av mail mail" "av since since"; align-items: center; column-gap: 14px; text-align: left; padding: 2px 0; }
  .ac-hero > .ac-avatar { grid-area: av; }
  .ac-hero > .flag { grid-area: flag; }
  .ac-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand-color-hunter); color: var(--brand-color-white);
    font-size: 24px; font-weight: 600; line-height: 1;
  }
  .ac-hero-copy { display: contents; }
  .ac-hero h1 { grid-area: name; min-width: 0; font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
  .ac-hero-mail { grid-area: mail; }
  .ac-hero-since { grid-area: since; }
  .ac-hero-mail, .ac-hero-since { font-size: 13px; line-height: 1.5; color: var(--ac-ink-2); overflow-wrap: anywhere; }
  .ac-hero .flag { align-self: start; margin-top: 2px; }
  @media (min-width: 1024px) {
    .ac-hero { display: block; padding: 0 0 2px; }
    .ac-hero .ac-avatar, .ac-hero-mail, .ac-hero .flag { display: none; }
    .ac-hero h1 { font-size: clamp(30px, 2.6vw, 36px); line-height: 1.2; }
    .ac-hero-since { margin-top: 6px; font-size: 15px; }
  }

  /* ---------- Mint status card (the app's robot status card) ---------- */
  .ac-status {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
    padding: 18px 20px; border-radius: var(--ac-radius);
    background: var(--brand-color-mint); color: var(--brand-color-hunter); text-decoration: none;
    transition: transform .15s ease;
  }
  .ac-status:hover { transform: translateY(-2px); }
  .ac-status-kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
  .ac-status-kicker .ac-ic { width: 20px; height: 20px; stroke-width: 3; }
  .ac-status-main { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
  .ac-status-main .ac-ic { width: 30px; height: 30px; stroke-width: 2.6; }
  .ac-status-sub { font-size: 14px; color: rgba(var(--brand-color-hunter-rgb), .78); }
  .ac-status-cta { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
  .ac-status-cta-t { display: none; }
  .ac-status-cta .ac-chev { width: 24px; height: 24px; }
  @media (min-width: 1024px) {
    .ac-status { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 26px 28px 22px; }
    .ac-status-main { font-size: 28px; gap: 12px; }
    .ac-status-main .ac-ic { width: 40px; height: 40px; stroke-width: 2.4; }
    .ac-status-sub { font-size: 15px; max-width: 46ch; }
    .ac-status-cta { margin-top: auto; padding-top: 16px; }
    .ac-status-cta-t { display: inline; text-decoration: underline; text-underline-offset: 3px; }
  }

  /* ---------- Quick actions: light circles with two-tone icons (phones), four tile cards with a hint (desktop) ---------- */
  .ac-quick-card { padding: 14px 10px 10px; }
  .ac-quick { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ac-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; border-radius: 16px;
    color: var(--brand-color-black); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; text-wrap: balance;
  }
  .ac-tile-ic { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--ac-tint); transition: transform .15s ease, background .15s ease; }
  .ac-tile-ic .ac-ic { width: 30px; height: 30px; }
  .ac-tile-s { display: none; }
  .ac-quick a:hover .ac-tile-ic { background: var(--brand-color-mint); transform: translateY(-2px); }
  @media (min-width: 560px) { .ac-quick { gap: 12px; } .ac-tile-ic { width: 64px; height: 64px; } .ac-tile-ic .ac-ic { width: 32px; height: 32px; } .ac-quick a { font-size: 14px; } }
  @media (min-width: 1024px) {
    .ac-quick-card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
    .ac-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ac-quick a {
      align-items: flex-start; gap: 6px; padding: 20px 20px 18px; border-radius: var(--ac-radius);
      background: var(--brand-color-white); box-shadow: var(--ac-shadow);
      font-size: 16px; text-align: left; text-wrap: pretty; transition: transform .15s ease, box-shadow .15s ease;
    }
    .ac-quick a:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-up); }
    .ac-quick a:hover .ac-tile-ic { transform: none; }
    .ac-tile-ic { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px; }
    .ac-tile-ic .ac-ic { width: 30px; height: 30px; }
    .ac-tile-t { display: block; }
    .ac-tile-s { display: block; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ac-ink-2); }
    .ac-quick > li { display: flex; }
    .ac-quick a { width: 100%; }
  }
  @media (min-width: 1200px) { .ac-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

  /* ---------- Robot card on the dashboard ---------- */
  .ac-robot { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; color: inherit; text-decoration: none; }
  .ac-robot .ac-device-img { width: 88px; height: 88px; }
  .ac-robot-kicker { display: none; }
  .ac-robot-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .ac-robot-model { font-size: 17px; font-weight: 600; line-height: 1.3; }
  .ac-robot .ac-chev { width: 22px; height: 22px; color: var(--brand-color-gray); }
  .ac-robot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .ac-robot-line .ac-ring { display: none; }
  .ac-robot-w { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .ac-big { font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--brand-color-hunter); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .ac-big small { font-size: 14px; font-weight: 400; color: var(--ac-ink-2); letter-spacing: 0; }
  @media (min-width: 1024px) {
    .ac-group--robot > .ac-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
    .ac-group--robot { display: flex; }
    .ac-group--robot .ac-robot { flex: 1 1 auto; }
    .ac-robot { grid-template-columns: 148px minmax(0, 1fr); grid-template-areas: "kicker kicker" "img body"; gap: 12px 22px; align-items: center; padding: 20px 24px 24px; transition: transform .15s ease, box-shadow .15s ease; }
    .ac-robot:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-up); }
    .ac-robot-kicker { grid-area: kicker; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ac-ink-2); }
    .ac-robot-kicker .ac-chev { width: 22px; height: 22px; }
    .ac-robot > .ac-chev { display: none; }
    /* the product cutouts are on white, so the tile is white with no frame: the robot floats on the card */
    .ac-robot .ac-device-img { grid-area: img; width: 148px; height: 148px; border: 0; border-radius: 0; }
    .ac-robot .ac-device-img img { padding: 0; }
    .ac-robot-body { grid-area: body; gap: 8px; }
    .ac-robot-model { font-size: 20px; }
    .ac-robot-line { gap: 14px; margin-top: 2px; }
    .ac-robot-line .ac-ring { display: block; width: 64px; height: 64px; }
    .ac-robot-line .ac-ring-num { font-size: 15px; }
    .ac-robot-w { flex: 1 1 160px; }
    .ac-robot { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "kicker kicker" "img model" "img pill" "line line"; align-items: center; row-gap: 8px; }
    .ac-robot .ac-device-img { width: 112px; height: 112px; }
    .ac-robot-body { display: contents; }
    .ac-robot-model { grid-area: model; align-self: end; font-size: 19px; }
    .ac-robot-body > .ac-pill { grid-area: pill; align-self: start; justify-self: start; }
    .ac-robot-line { grid-area: line; flex-wrap: nowrap; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ac-hair); }
    .ac-robot-line .ac-ring { flex-shrink: 0; width: 56px; height: 56px; }
    .ac-robot-w { flex-direction: column; align-items: flex-start; gap: 2px; }
  }

  /* ---------- Dashboard composition on wide screens: greeting · status + robot · quick tiles · help ---------- */
  @media (min-width: 1024px) {
    .ac-group--nav { display: none; }
  }
  @media (min-width: 1200px) {
    .ac-content--dash { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "hero hero" "status robot" "quick quick" "help help"; gap: 20px; align-items: stretch; }
    .ac-content--dash > .ac-hero { grid-area: hero; }
    .ac-content--dash > .ac-status { grid-area: status; }
    .ac-group--robot { grid-area: robot; }
    .ac-group--quick { grid-area: quick; }
    .ac-group--help { grid-area: help; }
  }

  /* ---------- Status pills: icon + text, never colour alone ---------- */
  .ac-pill {
    display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px 4px 8px; border-radius: var(--irb-radius-pill);
    font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    background: var(--brand-color-sand); color: var(--brand-color-black);
  }
  .ac-pill .ac-ic { width: 16px; height: 16px; stroke-width: 3.4; }
  .ac-pill--pending { background: var(--brand-color-mushroom); }
  .ac-pill--processing, .ac-pill--prepairing, .ac-pill--ok { background: var(--brand-color-mint); color: var(--brand-color-hunter); }
  .ac-pill--shipping { background: rgba(var(--brand-color-clover-rgb), .16); color: var(--brand-color-hunter); }
  .ac-pill--delivered { background: var(--brand-color-hunter); color: var(--brand-color-white); }
  .ac-pill--cancelled, .ac-pill--expired { background: rgba(var(--brand-color-gray-rgb), .14); color: var(--brand-color-gray); }
  .ac-pill--review { background: var(--brand-color-mushroom); }
  .ac-pill--default { background: var(--brand-color-mint); color: var(--brand-color-hunter); min-height: 24px; font-size: 12px; padding: 2px 9px; }
  .ac-pill--default .ac-ic { width: 14px; height: 14px; }
  .ac-pill--self { align-self: flex-start; }

  /* ---------- Buttons: shared .btn plus a compact size and an icon-only circle ---------- */
  .ac-btn-sm { padding: 9px 16px; font-size: 14px; min-height: 40px; }
  .ac-btn-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--brand-color-black); cursor: pointer; flex-shrink: 0; }
  .ac-btn-ic:hover { background: var(--brand-color-sand); }
  .ac-btn-ic .ac-ic { width: 22px; height: 22px; }
  .ac-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-color-hunter); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
  .ac-link .ac-ic { width: 18px; height: 18px; stroke-width: 3; }
  .ac-addr-actions .ac-link, .ac-paycard-actions .ac-link, .ac-track .ac-link, .ac-form-actions .ac-link, .ac-check-row .ac-link, .ac-empty .ac-link { min-height: 44px; }

  /* ---------- Order card ---------- */
  .ac-order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 16px 20px 10px; }
  .ac-order-head--bare { padding: 0 0 14px; }
  .ac-order-no { display: flex; flex-direction: column; gap: 2px; }
  .ac-order-no b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
  .ac-order-no time { font-size: 14px; color: var(--ac-ink-2); }
  .ac-order-head .ac-pill { margin-left: auto; }
  .ac-items { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 14px; }
  .ac-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .ac-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--brand-color-white); border: 1px solid var(--ac-hair); overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .ac-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
  .ac-item-name { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; }
  .ac-item-meta { display: block; font-size: 14px; color: var(--ac-ink-2); margin-top: 2px; }
  .ac-item-price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ac-note {
    display: flex; align-items: flex-start; gap: 8px; margin: 0 20px 14px; padding: 10px 12px; border-radius: 12px;
    background: var(--brand-color-sand); color: var(--brand-color-hunter); font-size: 14px; font-weight: 600; line-height: 1.45;
  }
  .ac-note .ac-ic { width: 20px; height: 20px; stroke-width: 2.8; margin-top: 0; }
  .ac-order-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--ac-hair); }
  .ac-order-total { font-size: 14px; color: var(--ac-ink-2); }
  .ac-order-total b { font-size: 18px; color: var(--brand-color-black); margin-left: 6px; font-variant-numeric: tabular-nums; }
  .ac-order-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
  .ac-track--card { padding: 0 20px 14px; }
  @media (min-width: 1024px) {
    /* items on the left, total + actions in a side cell: the eye travels from the last item name to the total in one step */
    .ac-order { display: grid; grid-template-columns: minmax(0, 1fr) 236px; grid-template-rows: auto minmax(0, 1fr) auto auto; }
    .ac-order-head { grid-column: 1 / -1; padding: 18px 24px 8px; }
    .ac-order .ac-items { grid-column: 1; grid-row: 2; padding: 10px 24px 18px; gap: 14px; }
    .ac-order .ac-note { grid-column: 1; grid-row: 3; margin: 0 24px 18px; }
    .ac-order .ac-track--card { grid-column: 1; grid-row: 4; padding: 0 24px 20px; }
    .ac-order-foot { grid-column: 2; grid-row: 2 / span 3; flex-direction: column; align-items: flex-end; justify-content: center; gap: 14px; margin: 10px 0 18px; padding: 8px 24px 8px 20px; border-top: 0; border-left: 1px solid var(--ac-hair); }
    .ac-order-total { display: flex; flex-direction: column; align-items: flex-end; }
    .ac-order-total b { margin-left: 0; font-size: 24px; line-height: 1.2; }
    .ac-order-actions { margin-left: 0; flex-wrap: wrap; justify-content: flex-end; }
    .ac-item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; }
    .ac-thumb { width: 72px; height: 72px; }
  }

  /* ---------- Four-step delivery bar (same steps as support/track-order) ---------- */
  .ac-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ac-step { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.35; color: var(--brand-color-gray); }
  .ac-step::before { content: ""; height: 6px; border-radius: 3px; background: rgba(var(--brand-color-border-rgb), .3); }
  .ac-step.is-done { color: var(--brand-color-black); font-weight: 600; }
  .ac-step.is-done::before { background: var(--brand-color-clover); }
  .ac-step[aria-current="step"] { color: var(--brand-color-hunter); font-weight: 600; }
  .ac-step[aria-current="step"]::before { background: var(--brand-color-hunter); }
  .ac-step time { display: block; font-size: 12px; font-weight: 400; color: var(--ac-ink-2); }
  @media (min-width: 560px) { .ac-step { font-size: 13px; } }
  @media (min-width: 1024px) { .ac-step { font-size: 14px; gap: 10px; } .ac-step time { font-size: 13px; } .ac-steps { gap: 8px; } }

  /* ---------- Tracking number row ---------- */
  .ac-track { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .ac-track-carrier { font-size: 14px; font-weight: 600; }
  .ac-track-no { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
  .ac-copy {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: var(--irb-radius-pill);
    border: 1.5px solid rgba(var(--brand-color-black-rgb), .2); background: var(--brand-color-white);
    font: inherit; font-size: 13px; font-weight: 600; color: var(--brand-color-black); cursor: pointer;
  }
  .ac-copy .ac-ic { width: 16px; height: 16px; stroke-width: 3.2; }
  .ac-copy.is-copied { border-color: var(--brand-color-clover); background: var(--brand-color-mint); color: var(--brand-color-hunter); }

  /* ---------- Key-value rows and totals ---------- */
  .ac-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; font-size: 15px; margin: 0; }
  .ac-kv--in { padding: 4px 20px 20px; }
  .ac-kv dt { color: var(--ac-ink-2); }
  .ac-kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
  .ac-kv dd small { display: block; font-size: 12px; font-weight: 400; color: var(--ac-ink-2); }
  .ac-kv .ac-kv-total { padding-top: 10px; border-top: 1px solid var(--ac-hair); font-size: 17px; }
  .ac-kv dd.ac-kv-total { font-size: 20px; }
  .ac-addr-text { font-style: normal; font-size: 15px; line-height: 1.6; }
  .ac-addr-text b { font-weight: 600; }
  .ac-split { display: grid; grid-template-columns: 1fr; gap: 14px; }
  @media (min-width: 720px) { .ac-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .ac-kv--in { padding: 6px 24px 22px; } }

  /* ---------- Order details: main column (steps · items · help) + sticky side column (delivery · ship-to · payment) from 1200px.
     On phones the side wrapper dissolves (display: contents) and its cards keep the app order via flex order. ---------- */
  .ac-vo-side { display: contents; }
  .ac-vo-side > .ac-vo-delivery { order: 0; }
  .ac-content--vo > .ac-vo-items { order: 1; }
  .ac-vo-side > .ac-split { order: 2; }
  .ac-content--vo > .ac-vo-help { order: 3; }
  @media (min-width: 1200px) {
    .ac-content--vo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
    .ac-content--vo > .ac-top { grid-column: 1 / -1; }
    .ac-content--vo > .ac-card, .ac-content--vo > .ac-vo-items, .ac-content--vo > .ac-vo-help { grid-column: 1; }
    .ac-vo-side { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 2 / span 3; position: sticky; top: 24px; }
    .ac-vo-side > .ac-split { grid-template-columns: 1fr; gap: 16px; }
    .ac-content--vo .ac-kv { max-width: 420px; margin-left: auto; }
    .ac-content--vo .ac-kv--in { padding-right: 24px; }
  }

  /* ---------- Device (warranty) card ---------- */
  .ac-devices { display: flex; flex-direction: column; gap: 14px; }
  .ac-device { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; padding: 20px; }
  .ac-device-img { width: 96px; height: 96px; border-radius: 18px; background: var(--brand-color-white); border: 1px solid var(--ac-hair); overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .ac-device-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
  .ac-device-img--ph { background: var(--brand-color-sand); border: 0; }
  .ac-device-img--ph .ac-ic { width: 48px; height: 48px; }
  .ac-device-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .ac-device-model { font-size: 17px; font-weight: 600; line-height: 1.3; }
  .ac-device-serial { font-size: 14px; color: var(--ac-ink-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; overflow-wrap: anywhere; }
  .ac-device-warranty { grid-column: 1 / -1; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--brand-color-sand); }
  .ac-device-warranty--off { grid-template-columns: minmax(0, 1fr); }
  .ac-ring { position: relative; width: 72px; height: 72px; }
  .ac-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .ac-ring circle { fill: none; stroke-width: 7; }
  .ac-ring-track { stroke: rgba(var(--brand-color-hunter-rgb), .12); }
  .ac-ring-fill { stroke: var(--brand-color-clover); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .6s ease; }
  .ac-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: var(--brand-color-hunter); font-variant-numeric: tabular-nums; }
  .ac-warranty-lines { list-style: none; font-size: 14px; color: var(--ac-ink-2); line-height: 1.5; margin-top: 2px; }
  .ac-warranty-lines--flat { margin: 0; }
  .ac-device-ref { grid-column: 1 / -1; font-size: 13px; color: var(--brand-color-gray); margin-top: -6px; }
  .ac-device-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
  .ac-device-slot { grid-column: 1 / -1; }
  @media (max-width: 400px) { .ac-device { grid-template-columns: 80px minmax(0, 1fr); } .ac-device-img { width: 80px; height: 80px; } }
  @media (min-width: 1024px) {
    /* two taller cards side by side; the product photo is the hero of each card */
    .ac-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
    .ac-device { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; }
    .ac-device-img { width: 100%; height: 210px; border: 0; border-radius: 0; }
    .ac-device-img img { padding: 6px; }
    .ac-device-img--ph .ac-ic { width: 96px; height: 96px; }
    .ac-device-body { gap: 8px; }
    .ac-device-model { font-size: 20px; }
    .ac-device-ref { margin-top: -4px; }
    .ac-device-actions { margin-top: auto; padding-top: 4px; }
  }

  /* ---------- Address book card ---------- */
  .ac-addr { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 18px; }
  .ac-addr-head { display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .ac-addr-name { font-size: 17px; font-weight: 600; }
  .ac-addr-head .ac-btn-ic { margin-left: auto; margin-right: -10px; }
  .ac-addr-actions { display: none; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
  .ac-addr-etax { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand-color-hunter); margin-top: 2px; }
  .ac-addr-etax .ac-ic { width: 20px; height: 20px; stroke-width: 2.8; }
  .ac-add {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 12px 16px;
    border-radius: var(--ac-radius); border: 1.5px dashed rgba(var(--brand-color-hunter-rgb), .35); background: transparent;
    color: var(--brand-color-hunter); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s ease;
  }
  .ac-add:hover { background: var(--brand-color-white); }
  @media (min-width: 1024px) {
    .ac-addr-head .ac-btn-ic { display: none; }
    .ac-addr-actions { display: flex; margin-top: auto; padding-top: 10px; }
    .ac-addr { padding: 20px 24px 20px; }
    .ac-addr-name { font-size: 19px; }
    /* address book as a two-column card grid; the add tile is a cell of the same grid */
    .ac-group--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: stretch; }
    .ac-group--grid > .ac-h2 { grid-column: 1 / -1; margin-bottom: -2px; }
    .ac-group--grid .ac-add { height: 100%; min-height: 140px; }
  }

  /* ---------- Saved card ---------- */
  .ac-paycard { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px; }
  .ac-paycard-brand { display: flex; align-items: center; justify-content: center; width: 48px; height: 32px; border-radius: 8px; background: var(--brand-color-hunter); color: var(--brand-color-white); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
  .ac-paycard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .ac-paycard-no { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 17px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
  .ac-paycard-meta { font-size: 14px; color: var(--ac-ink-2); }
  .ac-paycard-actions { display: none; gap: 6px 16px; }
  @media (min-width: 1024px) {
    .ac-paycard-actions { display: flex; }
    .ac-paycard .ac-btn-ic { display: none; }
    .ac-paycard { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; padding: 22px 24px; }
    .ac-paycard-brand { width: 64px; height: 42px; border-radius: 10px; font-size: 13px; }
  }

  /* ---------- Help line ---------- */
  .ac-help { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
  .ac-help-rows { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .ac-help-rows a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: inherit; text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 14px; }
  .ac-help-rows a small { display: block; font-size: 14px; font-weight: 400; color: var(--ac-ink-2); }
  .ac-help-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ac-tint); flex-shrink: 0; transition: background .15s ease; }
  .ac-help-ic .ac-ic { width: 24px; height: 24px; stroke-width: 2.6; }
  .ac-help-rows a:hover .ac-help-ic { background: var(--brand-color-mint); }
  @media (min-width: 1024px) {
    .ac-help { padding: 20px 24px; }
    .ac-help-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ac-help-rows a { min-height: 60px; font-size: 16px; padding: 6px 8px; margin: -6px -8px; }
    .ac-help-ic { width: 52px; height: 52px; }
    .ac-help-ic .ac-ic { width: 28px; height: 28px; stroke-width: 2.4; }
    .ac-help-rows--one { grid-template-columns: minmax(0, 1fr); }
  }

  /* ---------- Notice box (email claim, info) and empty state ---------- */
  .ac-notice { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--ac-radius); background: var(--brand-color-white); border: 1.5px solid rgba(var(--brand-color-clover-rgb), .45); }
  .ac-notice-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--brand-color-hunter); }
  .ac-notice-title .ac-ic { width: 26px; height: 26px; stroke-width: 2.6; }
  .ac-notice .ac-p { font-size: 14px; }
  .ac-notice .btn { align-self: flex-start; }
  .ac-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 20px; }
  .ac-empty-ic { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ac-tint); margin-bottom: 6px; }
  .ac-empty-ic .ac-ic { width: 38px; height: 38px; }
  .ac-empty h2 { font-size: 18px; font-weight: 600; }
  .ac-empty .ac-p { max-width: 36ch; font-size: 14px; }
  .ac-empty .btn { margin-top: 8px; }

  /* ---------- Forms ---------- */
  .ac-form { display: flex; flex-direction: column; gap: 16px; }
  .ac-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
  /* a fieldset that is also a card (edit-account) keeps the card padding: the reset above comes later in the
     file with the same specificity and used to strip it to 0, so the inputs touched the card edge */
  .ac-fieldset.ac-card--pad { padding: 20px; }
  @media (min-width: 1024px) { .ac-fieldset.ac-card--pad { padding: 24px; } }
  .ac-fieldset > legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ac-ink-2); letter-spacing: .02em; }
  .ac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .ac-label { font-size: 14px; font-weight: 600; line-height: 1.4; }
  .ac-label small { font-weight: 400; color: var(--ac-ink-2); }
  .ac-input, .ac-select {
    width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px;
    border: 1.5px solid rgba(var(--brand-color-border-rgb), .55); background: var(--brand-color-white);
    font: inherit; font-size: 16px; color: var(--brand-color-black);
  }
  .ac-input::placeholder { color: var(--brand-color-gray); }
  .ac-input:focus, .ac-select:focus { outline: none; border-color: var(--brand-color-hunter); box-shadow: 0 0 0 3px rgba(var(--brand-color-clover-rgb), .35); }
  .ac-input[aria-invalid="true"] { border-color: var(--brand-color-black); border-width: 2px; }
  .ac-input:read-only { background: var(--brand-color-sand); color: var(--ac-ink-2); }
  .ac-select-wrap { position: relative; }
  .ac-select { appearance: none; padding-right: 44px; }
  .ac-select-wrap .ac-ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--brand-color-gray); pointer-events: none; }
  .ac-row2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 560px) { .ac-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .ac-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; line-height: 1.5; cursor: pointer; }
  .ac-check input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand-color-hunter); }
  .ac-check-row { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .ac-check-row .ac-link { align-self: center; margin-left: auto; }
  .ac-pw { position: relative; }
  .ac-pw .ac-input { padding-right: 52px; }
  .ac-pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--brand-color-gray); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .ac-pw-toggle[aria-pressed="true"] { color: var(--brand-color-hunter); }
  .ac-pw-toggle .ac-i-on { display: none; }
  .ac-pw-toggle[aria-pressed="true"] .ac-i-on { display: block; }
  .ac-pw-toggle[aria-pressed="true"] .ac-i-off { display: none; }
  .ac-hint { font-size: 14px; line-height: 1.5; color: var(--ac-ink-2); }
  .ac-hint a { color: var(--brand-color-hunter); font-weight: 600; }
  .ac-hint--flat { margin: 0; }
  .ac-hint--tight { margin-top: -6px; }
  .ac-hint--after { margin-top: 14px; }
  .ac-hint--after-sm { margin-top: 4px; }
  .ac-error { display: none; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--brand-color-black); }
  .ac-error .ac-ic { width: 16px; height: 16px; margin-top: 1px; }
  .ac-field.is-invalid .ac-error { display: flex; }
  .ac-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
  .ac-form-actions .ac-link { margin-left: auto; }
  .ac-form-actions--after { margin-top: 14px; }
  .ac-form-actions--flat { padding-top: 2px; }
  @media (max-width: 559px) { .ac-form-actions .btn { width: 100%; } .ac-form-actions .ac-link { margin: 4px auto 0; } }
  .ac-turnstile {
    display: flex; align-items: center; justify-content: center; width: 100%; max-width: 300px; height: 65px; border-radius: 10px;
    border: 1.5px dashed rgba(var(--brand-color-border-rgb), .7); background: var(--brand-color-sand);
    font-size: 12px; color: var(--brand-color-gray); text-align: center; line-height: 1.4; padding: 0 12px;
  }
  .ac-divider { border: 0; border-top: 1px solid var(--ac-hair); margin: 4px 0; }

  /* ---------- Side note next to a form (desktop only): what the fields are for, in the site's own words ---------- */
  .ac-aside { display: none; }
  @media (min-width: 1200px) {
    .ac-content--form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; row-gap: 20px; align-items: start; }
    .ac-content--form > .ac-top { grid-column: 1 / -1; }
    .ac-content--form > .ac-form, .ac-content--form > .ac-group, .ac-content--form > .ac-card:not(.ac-side), .ac-content--form > .ac-variant { grid-column: 1; width: 100%; max-width: 680px; }
    .ac-side { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
    .ac-aside { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; }
    .ac-aside-ic { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ac-tint); }
    .ac-aside-ic .ac-ic { width: 28px; height: 28px; }
    .ac-aside h2 { font-size: 16px; font-weight: 600; line-height: 1.35; }
    .ac-aside ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--ac-ink-2); }
    .ac-aside li { position: relative; padding-left: 16px; }
    .ac-aside li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-color-clover); }
  }

  /* ---------- Logged-out: login + register panels, benefits ---------- */
  .ac-auth { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .ac-auth .ac-card { padding: 22px 20px 24px; }
  .ac-auth h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
  .ac-why { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .ac-why li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; }
  .ac-why .ac-help-ic { width: 40px; height: 40px; }
  .ac-why .ac-help-ic .ac-ic { width: 22px; height: 22px; stroke-width: 2.8; }
  @media (min-width: 900px) {
    .ac-auth { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
    .ac-auth .ac-card { padding: 28px 28px 30px; }
  }
  @media (min-width: 1024px) { .ac-auth h2 { font-size: 22px; } }
  .ac-narrow { max-width: 480px; margin: 0 auto; width: 100%; }
  .ac-narrow .ac-card { padding: 24px 20px 26px; }
  .ac-narrow .ac-p { margin-bottom: 16px; }
  .ac-narrow .ac-p--lead { margin: 0; }
  @media (min-width: 560px) { .ac-narrow .ac-card { padding: 30px 30px 32px; } }
  @media (min-width: 1024px) { .ac-narrow { max-width: 520px; } }

  /* ---------- Bottom sheet (native dialog): sheet on phones, centred modal on desktop ---------- */
  .ac-sheet {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88vh; margin: 0;
    border: 0; padding: 0; background: var(--brand-color-white); color: var(--brand-color-black);
    border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(var(--brand-color-black-rgb), .18);
    overflow: auto;
  }
  .ac-sheet::backdrop { background: rgba(var(--brand-color-black-rgb), .4); }
  .ac-sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(var(--brand-color-black-rgb), .18); margin: 10px auto 0; }
  .ac-sheet-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 6px 20px; }
  .ac-sheet-head h2 { flex: 1 1 auto; font-size: 18px; font-weight: 600; line-height: 1.3; }
  .ac-sheet-text { padding: 0 20px 10px; font-size: 15px; line-height: 1.55; color: var(--ac-ink-2); }
  .ac-sheet-list { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 6px 20px 24px; }
  .ac-sheet-list a, .ac-sheet-list button {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 16px;
    border: 1.5px solid rgba(var(--brand-color-hunter-rgb), .14); background: var(--brand-color-white);
    font: inherit; font-size: 16px; font-weight: 500; color: var(--brand-color-black); text-decoration: none; text-align: left; cursor: pointer;
  }
  .ac-sheet-list a:hover, .ac-sheet-list button:hover { background: var(--brand-color-sand); }
  .ac-sheet-list .ac-ic { width: 26px; height: 26px; stroke-width: 2.6; }
  .ac-sheet-actions { display: flex; flex-direction: column; gap: 8px; padding: 6px 20px 24px; }
  @media (min-width: 1024px) {
    .ac-sheet { inset: 0; margin: auto; width: min(100% - 40px, 420px); max-height: 80vh; border-radius: var(--ac-radius); box-shadow: 0 24px 60px rgba(var(--brand-color-black-rgb), .25); }
    .ac-sheet-grab { display: none; }
    .ac-sheet-head { padding-top: 18px; }
    .ac-sheet-actions { flex-direction: row-reverse; }
    .ac-sheet-actions .btn { flex: 1 1 auto; }
  }

  /* ---------- [hidden] must win over the display rules above (svg, flex cards, fieldsets) ---------- */
  .ac-main [hidden], .ac-main svg[hidden], .ac-main form[hidden], .ac-main .ac-card[hidden], .ac-main .ac-fieldset[hidden], .ac-main .ac-empty[hidden], .ac-main .ac-device-slot[hidden] { display: none; }

  /* ---------- Focus, motion ---------- */
  .ac-main a:focus-visible, .ac-main button:focus-visible, .ac-main select:focus-visible, .ac-main input:focus-visible, .ac-sheet a:focus-visible, .ac-sheet button:focus-visible {
    outline: 3px solid var(--brand-color-clover); outline-offset: 2px;
  }
  .ac-main .ac-input:focus-visible, .ac-main .ac-select:focus-visible { outline: none; }
  @media (prefers-reduced-motion: reduce) {
    .ac-status, .ac-tile-ic, .ac-ring-fill, .ac-add, .ac-quick a, .ac-robot, .ac-help-ic { transition: none; }
    .ac-status:hover, .ac-quick a:hover .ac-tile-ic, .ac-quick a:hover, .ac-robot:hover { transform: none; }
  }
/* [A] <<< end of copy */

/* ============================================================
   [B] Theme bridge
   ============================================================ */

/* ---------- Icon masks for markup we do not own (plugin buttons, notices, select chevron) ----------
   A mask only uses the alpha of the SVG; the colour comes from background: currentColor/token. */
.ac-main {
  --ac-mask-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ac-mask-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --ac-mask-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
  --ac-mask-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='currentColor' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 39h8l21-21a4 4 0 0 0-5.7-5.7L11 33.3Z'/%3E%3Cpath d='m27.5 15 5.7 5.7'/%3E%3C/svg%3E");
  --ac-mask-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='currentColor' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13h32M19 13V8h10v5M13 13l2 28h18l2-28M20.5 20v14M27.5 20v14'/%3E%3C/svg%3E");
  --ac-mask-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='currentColor' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='m24 6 5.4 11.2 12.3 1.7-9 8.6 2.2 12.2L24 33.9l-10.9 5.8 2.2-12.2-9-8.6 12.3-1.7Z'/%3E%3C/svg%3E");
  --ac-mask-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --ac-mask-chev-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.ac-mask { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ac-m) center / contain no-repeat; mask: var(--ac-m) center / contain no-repeat; }

/* ---------- Content column: gaps for wrappers we do not own ---------- */
.ac-main .woocommerce-notices-wrapper:empty { display: none; }
.ac-devices-page { display: contents; }
.ac-content > .ac-group--plugins { grid-column: 1 / -1; }
.ac-note--flat { margin: 0; }
.ac-pager { justify-content: center; }

/* ---------- WooCommerce notices (error list · message · info) ---------- */
.ac-main .woocommerce-notices-wrapper { display: flex; flex-direction: column; gap: 10px; }
.ac-main .woocommerce-error,
.ac-main .woocommerce-message,
.ac-main .woocommerce-info {
  position: relative; list-style: none; margin: 0; padding: 16px 20px 16px 52px;
  border-radius: 18px; background: var(--brand-color-white); color: var(--brand-color-black);
  border: 1.5px solid rgba(var(--brand-color-clover-rgb), .45);
  font-size: 15px; line-height: 1.55; box-shadow: var(--ac-shadow);
}
.ac-main .woocommerce-error { border: 2px solid var(--brand-color-black); font-weight: 600; }
.ac-main .woocommerce-error li + li { margin-top: 6px; }
.ac-main .woocommerce-error::before,
.ac-main .woocommerce-message::before,
.ac-main .woocommerce-info::before {
  content: ""; position: absolute; left: 18px; top: 16px; width: 22px; height: 22px;
  background: var(--brand-color-hunter); -webkit-mask: var(--ac-mask-info) center / contain no-repeat; mask: var(--ac-mask-info) center / contain no-repeat;
}
.ac-main .woocommerce-message::before { -webkit-mask-image: var(--ac-mask-check); mask-image: var(--ac-mask-check); }
.ac-main .woocommerce-error::before { background: var(--brand-color-black); -webkit-mask-image: var(--ac-mask-x); mask-image: var(--ac-mask-x); }
.ac-main .woocommerce-error a,
.ac-main .woocommerce-message a,
.ac-main .woocommerce-info a { color: var(--brand-color-hunter); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ac-main .woocommerce-message .button,
.ac-main .woocommerce-info .button { float: none; display: inline-flex; margin-left: 8px; }

/* ---------- Address forms: rows rendered by woocommerce_form_field() ----------
   Markup stays Woo's (p.form-row#…_field > label + span.woocommerce-input-wrapper > input) so
   wc-address-changer / wc-address-i18n / woo-address-book keep finding their ids.
   The theme adds .ac-field / .ac-label / .ac-input / .ac-select through woocommerce_form_field_args. */
.ac-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.ac-fields > .ac-reveal { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .ac-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-fields > * { grid-column: 1 / -1; }
  .ac-fields > .form-row-first { grid-column: 1; }
  .ac-fields > .form-row-last { grid-column: 2; }
}
.ac-form .form-row { margin: 0; padding: 0; }
.ac-form .form-row.ac-field { display: flex; flex-direction: column; gap: 6px; }
.ac-form .ac-field > .ac-label small,
.ac-form .ac-label .optional { font-weight: 400; color: var(--ac-ink-2); }
.ac-form .ac-label .required { display: none; }                 /* required is the default; the form lead says so */
.ac-form .ac-check .optional,
.ac-form .ac-reveal .optional { display: none; }                 /* e-Tax fields are required once the box is ticked */
.ac-form .woocommerce-input-wrapper { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-form .woocommerce-input-wrapper .description { font-size: 14px; line-height: 1.5; color: var(--ac-ink-2); }
.ac-form .form-row:has(.country_to_state--single) { display: none; }   /* one allowed country (TH): nothing to choose */
.ac-form .ac-check { font-weight: 400; }
.ac-form .ac-check .input-checkbox { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand-color-hunter); }
/* native select: our own chevron (the DS select has none) */
.ac-form .woocommerce-input-wrapper:has(> select.ac-select:not(.select2-hidden-accessible))::after {
  content: ""; position: absolute; right: 14px; top: 24px; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none;
  background: var(--brand-color-gray); -webkit-mask: var(--ac-mask-chev-d) center / contain no-repeat; mask: var(--ac-mask-chev-d) center / contain no-repeat;
}
/* selectWoo (Woo enhances the province select; wc-address-changer may enhance district / sub-district) */
.ac-form .select2-container { width: 100% !important; }
.ac-form .select2-container .select2-selection--single {
  height: 48px; border-radius: 14px; border: 1.5px solid rgba(var(--brand-color-border-rgb), .55); background: var(--brand-color-white);
}
.ac-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 45px; padding-left: 14px; padding-right: 44px; font-size: 16px; color: var(--brand-color-black); }
.ac-form .select2-container .select2-selection--single .select2-selection__arrow { height: 45px; right: 12px; }
.ac-form .select2-container--focus .select2-selection--single,
.ac-form .select2-container--open .select2-selection--single { border-color: var(--brand-color-hunter); box-shadow: 0 0 0 3px rgba(var(--brand-color-clover-rgb), .35); }
.irb-account .select2-dropdown { border: 1.5px solid rgba(var(--brand-color-border-rgb), .55); border-radius: 14px; overflow: hidden; font-size: 16px; }
.irb-account .select2-results__option--highlighted[aria-selected],
.irb-account .select2-results__option--highlighted[data-selected] { background: var(--brand-color-mint); color: var(--brand-color-hunter); }
.irb-account .select2-search--dropdown .select2-search__field { border-radius: 10px; border: 1.5px solid rgba(var(--brand-color-border-rgb), .55); padding: 8px 10px; font-size: 16px; }
/* Thai address typeahead (iqair-checkout-ux ≥1.27.11 on edit-address): type a sub-district, pick a row,
   district · province · postcode fill in. Lib = typeahead.js — span.twitter-typeahead wraps the input,
   .tt-hint is a readonly clone underneath (inline styles keep it white, not the .ac-input:read-only sand).
   The list matches the select2 dropdown above. Sub-district, district and postcode all get one.
   Phones: exactly the field's width. Two columns: rows are long, so the list may span both columns —
   the left field's list grows rightwards, the right field's leftwards (typeahead pins left:0 inline). */
.ac-form .twitter-typeahead { display: block !important; width: 100%; }
.ac-form .tt-menu {
  margin-top: 6px; padding: 6px; width: 100%;
  max-height: 312px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--brand-color-white); border: 1.5px solid rgba(var(--brand-color-border-rgb), .55); border-radius: 14px; box-shadow: var(--ac-shadow-up);
}
@media (min-width: 560px) {
  .ac-form .tt-menu { width: max-content; min-width: 100%; max-width: calc(200% + 16px); }   /* 16px = .ac-fields gap */
  .ac-form .form-row-last .tt-menu { left: auto !important; right: 0; }
}
.ac-form .tt-suggestion {
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  font-size: 15px; line-height: 1.45; color: var(--ac-ink-2); text-wrap: pretty; cursor: pointer;
}
.ac-form .tt-suggestion strong { font-weight: 600; color: var(--brand-color-black); }
.ac-form .tt-suggestion:hover,
.ac-form .tt-suggestion.tt-cursor { background: var(--brand-color-mint); color: var(--brand-color-hunter); }
.ac-form .tt-suggestion.tt-cursor strong,
.ac-form .tt-suggestion:hover strong { color: var(--brand-color-hunter); }

/* core's privacy sentence under the register form */
.ac-main .woocommerce-privacy-policy-text p { font-size: 14px; line-height: 1.5; color: var(--ac-ink-2); }
.ac-main .woocommerce-privacy-policy-text a { color: var(--brand-color-hunter); font-weight: 600; }

/* logged-out page with registration switched off: one centred panel */
.ac-auth.ac-auth--one { max-width: 520px; margin: 0 auto; width: 100%; grid-template-columns: minmax(0, 1fr); }

/* ---------- Addresses list: woo-address-book 3.0.2 markup (the plugin's own template) ----------
   .address_book > header(h3 + add button) + p.myaccount_address + .addresses > .wc-address-book-address
   header and .addresses dissolve (display: contents) so title · cards · add tile share one flow / grid,
   and the add tile moves to the end like the design's dashed tile. Shipping first, then billing. */
.ac-content--addresses > .ac-book-h { order: 1; }
.ac-content--addresses > .shipping_address_book,
.ac-content--addresses > .ac-book--shipping { order: 2; }
.ac-content--addresses > .billing_address_book,
.ac-content--addresses > .ac-book--billing { order: 3; }
.ac-content--addresses > .address_book_tools { order: 4; }
.ac-main .address_book { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ac-main .address_book > header,
.ac-main .address_book > .addresses { display: contents; }
.ac-main .address_book > header > h3 { order: 0; font-size: 17px; font-weight: 600; line-height: 1.35; margin: 6px 4px 0; }
.ac-main .address_book > .myaccount_address { display: none; order: 1; margin: 0 4px; font-size: 14px; color: var(--ac-ink-2); }
.ac-main .address_book > .myaccount_address:has(.ac-limit) { display: block; }
.ac-main .wc-address-book-address {
  order: 2; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 12px;
  background: var(--brand-color-white); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow);
}
.ac-main .wc-address-book-address address { font-style: normal; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ac-main .wc-address-book-address address::first-line { font-size: 17px; font-weight: 600; }   /* the nickname, else the name */
.ac-main .wc-address-book-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-top: auto; padding-top: 4px; }
.ac-main .wc-address-book-meta .button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; border-radius: 0;
  color: var(--brand-color-hunter); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ac-main .wc-address-book-meta .button::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ac-mask-edit) center / contain no-repeat; mask: var(--ac-mask-edit) center / contain no-repeat; }
.ac-main .wc-address-book-meta .wc-address-book-delete::before { -webkit-mask-image: var(--ac-mask-trash); mask-image: var(--ac-mask-trash); }
.ac-main .wc-address-book-meta .wc-address-book-make-default::before { -webkit-mask-image: var(--ac-mask-star); mask-image: var(--ac-mask-star); }
.ac-main .wc-address-book-default-text {
  order: -1; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 9px 2px 8px; margin-right: 2px;
  border-radius: var(--irb-radius-pill); background: var(--brand-color-mint); color: var(--brand-color-hunter); font-size: 12px; font-weight: 600;
}
.ac-main .wc-address-book-default-text::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ac-mask-star) center / contain no-repeat; mask: var(--ac-mask-star) center / contain no-repeat; }
.ac-main .wc-address-book-add-new-address { order: 3; display: flex; }
.ac-main .wc-address-book-add-new-address .button {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 12px 16px;
  border-radius: var(--ac-radius); border: 1.5px dashed rgba(var(--brand-color-hunter-rgb), .35); background: transparent;
  color: var(--brand-color-hunter); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
}
.ac-main .wc-address-book-add-new-address a.button::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ac-mask-plus) center / contain no-repeat; mask: var(--ac-mask-plus) center / contain no-repeat; }
.ac-main .wc-address-book-add-new-address a.button:hover { background: var(--brand-color-white); }
.ac-main .wc-address-book-add-new-address .disabled { color: var(--brand-color-gray); border-color: rgba(var(--brand-color-gray-rgb), .35); cursor: default; }
.ac-main .ac-addr-actions--always { display: flex; }
@media (min-width: 1024px) {
  .ac-main .address_book { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: stretch; }
  .ac-main .address_book > header > h3,
  .ac-main .address_book > .myaccount_address { grid-column: 1 / -1; }
  .ac-main .address_book > header > h3 { font-size: 19px; margin-bottom: -2px; }
  .ac-main .wc-address-book-address { padding: 20px 24px 14px; }
  .ac-main .wc-address-book-address address::first-line { font-size: 19px; }
  .ac-main .wc-address-book-add-new-address .button { height: 100%; min-height: 140px; }
}
.ac-main .address_book_tools .woocommerce-addresses { display: flex; flex-direction: column; gap: 14px; }
.ac-main .address_book_tools .woocommerce-address { padding: 20px; background: var(--brand-color-white); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); }

/* ---------- Saved cards: the Omise plugin's own panel (table + delete + add-card form) ---------- */
.ac-omise { display: flex; flex-direction: column; gap: 14px; }
.ac-omise > h3 { display: none; }                               /* the page's h2 "saved cards" already says it */
.ac-omise #omise_card_panel { display: flex; flex-direction: column; gap: 14px; }
.ac-omise #omise_card_panel table { display: block; width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.ac-omise #omise_card_panel tbody { display: flex; flex-direction: column; gap: 10px; }
.ac-omise #omise_card_panel th { display: none; }
.ac-omise #omise_card_panel tr:has(> th) { display: none; }
.ac-omise #omise_card_panel tr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num btn" "name btn" "date btn"; align-items: center; column-gap: 12px;
  padding: 14px 16px; border: 1px solid var(--ac-hair); border-radius: 16px;
}
.ac-omise #omise_card_panel td { display: block; padding: 0; border: 0; }
.ac-omise #omise_card_panel td:nth-child(1) { grid-area: name; font-size: 14px; color: var(--ac-ink-2); }
.ac-omise #omise_card_panel td:nth-child(2) { grid-area: num; font-size: 17px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ac-omise #omise_card_panel td:nth-child(3) { grid-area: date; font-size: 13px; color: var(--brand-color-gray); }
.ac-omise #omise_card_panel td:nth-child(4) { grid-area: btn; }
.ac-omise #omise_card_panel .delete_card {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--brand-color-hunter); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ac-omise #omise_card_panel .delete_card::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ac-mask-trash) center / contain no-repeat; mask: var(--ac-mask-trash) center / contain no-repeat; }
.ac-omise #omise_card_panel h4 { font-size: 15px; font-weight: 600; color: var(--ac-ink-2); letter-spacing: .02em; margin: 8px 0 0; }
.ac-omise #omise-card { min-height: 220px; }
.ac-omise #omise_add_new_card {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border-radius: var(--irb-radius-pill); border: 2px solid var(--brand-color-black); background: var(--brand-color-black); color: var(--brand-color-white);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
@media (min-width: 1200px) {
  .ac-content--form > .ac-cards { grid-column: 1; width: 100%; max-width: 680px; }
}

/* ---------- My devices: the warranty plugin's parts inside our device card ---------- */
.ac-device .swr-warranty-lines { list-style: none; margin: 2px 0 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--ac-ink-2); }
.ac-device-warranty--off .swr-warranty-lines { margin: 0; }
.ac-device .ac-device-warranty > div > .ac-hint { display: block; margin-bottom: 2px; }
.ac-device .swr-device-extension-buy { display: contents; }
.ac-device .swr-device-extension-offer { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ac-device .swr-buy-extension { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.ac-device .swr-buy-extension-price { font-size: 14px; font-weight: 600; }
.ac-device .swr-order-link { grid-column: 1 / -1; border-top: 1px solid var(--ac-hair); padding-top: 10px; }
.ac-device .swr-order-link > summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  color: var(--brand-color-hunter); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.ac-device .swr-order-link-note,
.ac-device .swr-order-link-empty { font-size: 14px; line-height: 1.5; color: var(--ac-ink-2); margin: 4px 0 8px; }
.ac-device .swr-order-link-form { display: flex; flex-direction: column; gap: 10px; }
.ac-device .swr-label { font-size: 14px; font-weight: 600; }
.ac-device .swr-select-wrap { position: relative; }
.ac-device .swr-select-wrap svg { position: absolute; right: 16px; top: 50%; width: 12px; height: 8px; transform: translateY(-50%); color: var(--brand-color-gray); pointer-events: none; }
.ac-device .swr-input {
  width: 100%; min-height: 48px; padding: 10px 44px 10px 14px; border-radius: 14px; appearance: none;
  border: 1.5px solid rgba(var(--brand-color-border-rgb), .55); background: var(--brand-color-white); font: inherit; font-size: 16px; color: var(--brand-color-black);
}
.ac-device .swr-order-link-form .btn { align-self: flex-start; }

/* sharisma-warranty "ยืนยันด้วย SMS" (theme override sharisma-warranty/parts/phone-claim.php) — offered to every
   account (the plugin must not reveal which numbers have registrations), so it starts folded in an .ac-notice */
.ac-phone-claim > summary { list-style: none; cursor: pointer; min-height: 44px; }
.ac-phone-claim > summary::-webkit-details-marker { display: none; }
.ac-phone-claim > summary > span { flex: 1; min-width: 0; }
.ac-phone-claim .ac-phone-claim-chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; }
.ac-phone-claim[open] .ac-phone-claim-chev { transform: rotate(180deg); }
.ac-phone-claim:not([open]) { gap: 0; }
/* details content sits in its own slot, so the .ac-notice flex gap does not reach it — the body is the flex column */
.ac-phone-claim-body { display: flex; flex-direction: column; gap: 12px; }
.ac-phone-claim-body .ac-p, .ac-phone-claim-body .ac-hint { margin: 0; }
.ac-phone-claim-form { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
/* the 6-digit code (owner 16.10.2026: one field, not six boxes — SMS autofill and paste keep working):
   narrow, big tabular digits, centred and spaced so it reads like the SMS; dots show how many to type */
.ac-phone-claim-form .ac-input-otp {
  max-width: 240px; min-height: 56px; text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: .38em; padding-left: calc(14px + .38em);
}
.ac-phone-claim-form .ac-input-otp::placeholder { color: rgba(var(--brand-color-border-rgb), .9); letter-spacing: .38em; font-weight: 400; }
.ac-phone-claim-result { padding: 10px 14px; border-radius: 12px; background: var(--ac-tint); font-weight: 600; }
.ac-phone-claim-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.ac-phone-claim-more form { margin: 0; }
.ac-phone-claim-more .ac-link { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ac-phone-claim .ac-phone-claim-chev { transition: none; } }

/* ---------- Dashboard: no open order → the robot card (or an empty state) takes the status slot ---------- */
@media (min-width: 1200px) {
  .ac-content--dash.ac-content--solo { grid-template-areas: "hero hero" "robot robot" "quick quick" "help help"; }
  .ac-content--dash:has(> .woocommerce-notices-wrapper:not(:empty)) { grid-template-areas: "notice notice" "hero hero" "status robot" "quick quick" "help help"; }
  .ac-content--dash.ac-content--solo:has(> .woocommerce-notices-wrapper:not(:empty)) { grid-template-areas: "notice notice" "hero hero" "robot robot" "quick quick" "help help"; }
  .ac-content--dash > .woocommerce-notices-wrapper { grid-area: notice; }
  .ac-content--solo .ac-group--robot .ac-empty { padding: 28px 24px; }
}

/* ---------- Order card: wider side cell so "view details" + the "..." button stay on one line ---------- */
@media (min-width: 1024px) { .ac-order { grid-template-columns: minmax(0, 1fr) 260px; } }

/* ---------- Order details: extra cards (shop notes · plugin output) keep the app order on phones ---------- */
.ac-content--vo > .ac-vo-notes { order: 3; }
.ac-content--vo > .ac-vo-help { order: 4; }
.ac-content--vo > .ac-vo-extra { order: 5; }
.ac-vo-items > .ac-vo-extra { padding: 0 20px 20px; }
.ac-vo-pay .ac-addr-text b { font-weight: 600; }
.ac-updates { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; font-size: 15px; line-height: 1.6; }
.ac-updates time { display: block; font-size: 13px; color: var(--ac-ink-2); }
.ac-updates p { margin: 0; }
.ac-thumb > .ac-ic { width: 28px; height: 28px; color: var(--brand-color-gray); }

/* WooCommerce blockUI overlay while the address book deletes / sets a default */
.ac-main .blockUI.blockOverlay { border-radius: var(--ac-radius); }

/* the order-details status card has no inner padding of its own (it sits in a padded card); the
   desktop .ac-order-head padding in [A] comes later in the file and used to indent it by 24px */
@media (min-width: 1024px) { .ac-order-head--bare { padding: 0 0 14px; } }

/* order card footer on phones: buttons keep one line; the whole button group wraps under the total when it does not fit */
.ac-order-actions { flex-wrap: wrap; justify-content: flex-end; }
.ac-order-actions .btn { white-space: nowrap; }
@media (min-width: 1024px) {
  .ac-order-actions { width: 100%; }
  .ac-order-actions .btn { flex: 1 0 auto; }
}

/* ---------- Sign-in / create-account gate (form-login.php · owner 03.10.2026, replaces the two .ac-auth cards) ----------
   One card: left = segmented switch + the chosen form, right = mint "what an account gives you" panel.
   From 900px both forms share one grid cell, so switching never changes the card height (no jump).
   Tabs are real links (?action=login|register); assets/js/account.js swaps them in place. */
.ac-gate { --ac-gate-ease: cubic-bezier(0.23, 1, 0.32, 1); display: grid; grid-template-columns: minmax(0, 1fr); background: var(--brand-color-white); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); overflow: hidden; }
.ac-gate-main { display: flex; flex-direction: column; gap: 24px; padding: 24px 20px 28px; min-width: 0; }

/* Segmented switch — the pill slides under the active tab (transform only, interruptible transition) */
.ac-seg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: rgba(var(--brand-color-hunter-rgb), .06); }
.ac-seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--brand-color-white); box-shadow: 0 1px 2px rgba(var(--brand-color-hunter-rgb), .08), 0 4px 12px -6px rgba(var(--brand-color-hunter-rgb), .25); transition: transform 280ms var(--ac-gate-ease); }
.ac-gate[data-tab="register"] .ac-seg-pill { transform: translateX(100%); }
.ac-seg-tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ac-ink-2); text-decoration: none; transition: color 200ms ease; -webkit-tap-highlight-color: transparent; }
.ac-seg-tab[aria-selected="true"] { color: var(--brand-color-black); }
@media (hover: hover) and (pointer: fine) { .ac-seg-tab[aria-selected="false"]:hover { color: var(--brand-color-black); } }
.ac-seg-tab:focus-visible { outline: 2px solid var(--brand-color-clover); outline-offset: 2px; }

/* Panels */
.ac-gate-panels { display: grid; }
.ac-gate-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ac-gate[data-tab="login"] [data-ac-panel="register"],
.ac-gate[data-tab="register"] [data-ac-panel="login"] { display: none; }
.ac-gate-head h2 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.ac-gate-head p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ac-ink-2); }

/* Form rhythm inside the gate */
.ac-gate .ac-check-row { align-items: center; }
.ac-gate .ac-check { align-items: center; }
.ac-gate .ac-check input { margin-top: 0; }
.ac-gate .ac-form-actions { padding-top: 4px; }
.ac-gate .btn:active { transform: scale(.97); }
.ac-gate .woocommerce-privacy-policy-text p { margin: 0; }

/* Third-party bits that would add empty flex gaps
   · Simple Cloudflare Turnstile: "always" mode prints a <br>; "interaction-only" leaves an empty box until a challenge is needed.
     The negative margin cancels the following gap when the box is empty; when the widget shows, its own 15px bottom margin replaces it.
   · WooCommerce order attribution: an empty custom element with hidden inputs (still submitted when not displayed). */
.ac-gate .ac-form > .cf-turnstile-br,
.ac-gate .ac-form > wc-order-attribution-inputs { display: none; }
.ac-gate .ac-form > .cf-turnstile { margin-bottom: -16px; min-width: 0; }

/* Aside — the reasons to have an account, out of the form so the form stays short */
.ac-gate-aside { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px 28px; background: linear-gradient(160deg, rgba(var(--brand-color-mint-rgb), .9) 0%, rgba(var(--brand-color-sand-rgb), 1) 100%); }
.ac-gate-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--brand-color-hunter); }
.ac-gate-aside h2 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--brand-color-hunter); text-wrap: balance; }
.ac-gate-why { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 4px 0 0; padding: 0; }
.ac-gate-why li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.45; color: var(--brand-color-black); }
.ac-gate-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-color-white); box-shadow: 0 1px 2px rgba(var(--brand-color-hunter-rgb), .06); flex-shrink: 0; }
.ac-gate-ic .ac-ic { width: 22px; height: 22px; }
.ac-gate-help { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--ac-ink-2); }
/* Member perks (owner 04.10.2026) — coupon-shaped cards above the list; shown only when the offer text is set in the options */
.ac-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 2px 0 4px; padding: 0; }
.ac-perk { --ac-perk-stub: 60px; position: relative; display: grid; grid-template-columns: var(--ac-perk-stub) minmax(0, 1fr); align-items: center; min-height: 68px;
  padding: 12px 16px 12px 0; border-radius: 14px; background: var(--brand-color-white); box-shadow: 0 1px 2px rgba(var(--brand-color-hunter-rgb), .08);
  -webkit-mask: radial-gradient(circle 7px at var(--ac-perk-stub) 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at var(--ac-perk-stub) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 7px at var(--ac-perk-stub) 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at var(--ac-perk-stub) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat; }
.ac-perk::before { content: ""; position: absolute; left: var(--ac-perk-stub); top: 11px; bottom: 11px; border-left: 1.5px dashed rgba(var(--brand-color-hunter-rgb), .22); }
.ac-perk-ic { display: flex; justify-content: center; }
.ac-perk-ic .ac-ic { width: 26px; height: 26px; }
.ac-perk-body { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; min-width: 0; }
.ac-perk-body b { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--brand-color-black); }
.ac-perk-body span { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--brand-color-hunter); }
/* With coupons the panel would outgrow the form column — tighten the list so the card stays balanced */
.ac-gate-aside--perks .ac-gate-why { gap: 10px; }
.ac-gate-aside--perks .ac-gate-why li { gap: 12px; font-size: 14.5px; }
.ac-gate-aside--perks .ac-gate-why .ac-gate-ic { width: 38px; height: 38px; }
.ac-gate-aside--perks .ac-gate-why .ac-gate-ic .ac-ic { width: 20px; height: 20px; }
/* Phone only: the perks panel sits under the form, so a pill under the heading points down to it */
.ac-gate-teaser { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; padding: 7px 10px 7px 10px; border-radius: 999px;
  background: rgba(var(--brand-color-mint-rgb), .6); color: var(--brand-color-hunter); font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.ac-gate-teaser .ac-ic { width: 20px; height: 20px; flex-shrink: 0; }
.ac-gate-teaser .ac-ic:last-child { width: 14px; height: 14px; }
.ac-gate-teaser:active { transform: scale(.98); }

@media (min-width: 900px) {
  .ac-gate { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .ac-gate--one { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .ac-gate-main { padding: 40px 48px 44px; gap: 28px; }
  .ac-gate-aside { padding: 44px 40px; gap: 18px; }
  .ac-gate-aside--perks { padding-block: 34px; gap: 14px; }
  .ac-gate-teaser { display: none; }
  /* Centre the message in the tall panel; the help line stays pinned to the bottom */
  .ac-gate-eyebrow { margin-top: auto; }
  .ac-gate-aside h2 { font-size: 24px; }
  /* Both forms share one cell: the card keeps the taller form's height, the hidden one fades out */
  .ac-gate-panel { grid-area: 1 / 1; transition: opacity 180ms ease-out, transform 240ms var(--ac-gate-ease), visibility 0s linear 0s; }
  .ac-gate[data-tab="login"] [data-ac-panel="register"],
  .ac-gate[data-tab="register"] [data-ac-panel="login"] { display: flex; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 0s linear 120ms; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-seg-pill, .ac-gate-panel { transition: none !important; }
  .ac-gate[data-tab] [data-ac-panel] { transform: none !important; }
}

/* ---------- Identifier-first sign-in (.af · iqa-auth/v1 of iqair-checkout-ux · owner 03.10.2026) ----------
   Hidden unless assets/js/auth.js finds window.IQA_AUTH; then .ac-gate--flow hides the tab card and shows .af.
   Steps share one grid cell; forward slides left, back slides right (transform + opacity only, interruptible). */
.ac-gate--flow .ac-seg,
.ac-gate--flow .ac-gate-panels { display: none !important; }
.af[hidden] { display: none !important; }
.af-steps { display: grid; }
.af-step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 20px; min-width: 0;
  transition: opacity 200ms ease-out, transform 260ms var(--ac-gate-ease), visibility 0s linear 0s; }
.af-step:not(.is-on) { visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(24px);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms; }
.af-steps[data-dir="back"] .af-step:not(.is-on) { transform: translateX(-24px); }

.af-line { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: 100%; border: 0; border-radius: 999px;
  background: var(--brand-color-line); color: var(--brand-color-white); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform 160ms ease-out, filter 160ms ease; }
.af-line[hidden] { display: none; }
.af-line svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) { .af-line:hover { filter: brightness(.94); } }
.af-line:active { transform: scale(.97); filter: brightness(.85); }
.af-line:focus-visible { outline: 2px solid var(--brand-color-hunter); outline-offset: 3px; }

/* "Last used" tag (auth.js · window.IQA_AUTH.lastMethod): a small pill — on the LINE button it sits on the top edge,
   next to the identifier label it follows the text. Text, not colour alone, carries the meaning. */
.af-last { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; background: rgba(var(--brand-color-mint-rgb), .7); color: var(--brand-color-hunter); vertical-align: 1px; }
.af-last[hidden] { display: none; }
.ac-label .af-last { margin-left: 6px; }
.af-line { position: relative; }
.af-line .af-last { position: absolute; top: -10px; right: 18px; background: var(--brand-color-white); color: var(--brand-color-hunter);
  box-shadow: 0 0 0 1px rgba(var(--brand-color-hunter-rgb), .14), 0 2px 6px rgba(var(--brand-color-black-rgb), .08); }
.af-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ac-ink-2); }
/* OTP reference from the SMS ("(Ref: AB12C)") under the code boxes — lets the customer match the code to the message */
.af-ref { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ac-ink-2); font-variant-numeric: tabular-nums; }
.af-ref[hidden] { display: none; }
.af-or[hidden] { display: none; }
.af-or::before, .af-or::after { content: ""; flex: 1; height: 1px; background: rgba(var(--brand-color-hunter-rgb), .12); }

.af-notice { padding: 12px 14px; border-radius: 14px; background: rgba(var(--brand-color-mint-rgb), .55); font-size: 14px; line-height: 1.5; color: var(--brand-color-black); }
.af-notice[hidden] { display: none; }
.af-notice.is-warn { background: rgba(var(--irb-color-error-rgb), .07); color: var(--irb-color-error); }
.af-err { font-size: 14px; line-height: 1.45; color: var(--irb-color-error); }
.af-err:empty { display: none; }
.af-shake { animation: af-shake 320ms cubic-bezier(.36, .07, .19, .97); }
@keyframes af-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.af-fine { font-size: 13px; line-height: 1.55; color: var(--ac-ink-2); }
.af-fine a { color: var(--brand-color-hunter); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.af-switch { font-size: 14px; color: var(--ac-ink-2); }
.af-back { align-self: flex-start; margin: -6px 0 -8px -8px; padding: 8px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand-color-hunter); cursor: pointer; border-radius: 10px; }
.af-back:focus-visible, .af-skip:focus-visible { outline: 2px solid var(--brand-color-clover); }
.af-skip { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ac-ink-2); cursor: pointer; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .af-skip:hover { color: var(--brand-color-black); } }
.af-turnstile:empty { display: none; }
.af .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* OTP: one real input (paste + SMS autofill via autocomplete=one-time-code) under six visual boxes */
.af-otp { position: relative; }
.af-otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; z-index: 1; }
.af-otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.af-otp-boxes span { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 14px; border: 1.5px solid rgba(var(--brand-color-hunter-rgb), .18); background: var(--brand-color-white);
  font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-color-black); transition: border-color 120ms ease, box-shadow 120ms ease; }
.af-otp input:focus + .af-otp-boxes span.is-cur { border-color: var(--brand-color-hunter); box-shadow: 0 0 0 3px rgba(var(--brand-color-clover-rgb), .25); }
.af-otp.is-bad .af-otp-boxes span { border-color: var(--irb-color-error); }
.af-resend { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ac-ink-2); }
.af-resend b { font-variant-numeric: tabular-nums; color: var(--brand-color-black); }

.af-choices { display: flex; flex-direction: column; gap: 10px; }
.af-choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid rgba(var(--brand-color-hunter-rgb), .12); border-radius: 16px; background: var(--brand-color-white);
  text-align: left; font: inherit; color: var(--brand-color-black); cursor: pointer; transition: border-color 150ms ease, transform 160ms ease-out; }
.af-choice .ac-gate-ic { background: var(--ac-tint); }
.af-choice b { display: block; font-size: 15px; font-weight: 600; }
.af-choice small { display: block; font-size: 13px; color: var(--ac-ink-2); margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .af-choice:hover { border-color: var(--brand-color-hunter); } }
.af-choice:active { transform: scale(.98); }

.af-center { text-align: center; }
.af [data-af-link-mode][hidden], .af [data-af-link-mail-note][hidden], .af-accounts[hidden], .af-account[hidden] { display: none !important; }
/* step 2b "พบบัญชีเดิมของคุณ": the account (masked e-mail) as a quiet row · several accounts = radio cards */
.af-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ac-tint); font-size: 15px; overflow-wrap: anywhere; }
.af-account b { font-weight: 600; font-variant-numeric: tabular-nums; }
.af-accounts { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.af-acct { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1.5px solid rgba(var(--brand-color-hunter-rgb), .12); border-radius: 16px;
  background: var(--brand-color-white); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; cursor: pointer; transition: border-color 150ms ease; }
.af-acct input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--brand-color-hunter); }
.af-acct:has(input:checked) { border-color: var(--brand-color-hunter); }
.af-acct:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(var(--brand-color-clover-rgb), .35); }
.af-done-ic { align-self: center; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ac-tint); margin-top: 8px; }
.af-done-ic .ac-ic { width: 30px; height: 30px; }
.af-spinner { align-self: center; width: 44px; height: 44px; margin-top: 8px; border-radius: 50%; border: 3px solid rgba(var(--brand-color-line-rgb), .2); border-top-color: var(--brand-color-line); animation: af-spin 700ms linear infinite; }
@keyframes af-spin { to { transform: rotate(360deg); } }

/* The real WooCommerce forms moved into the flow keep their fields; the username is filled by the flow */
.af [data-af-slot] .ac-form { gap: 16px; }
.af [data-af-slot="login"] .ac-field:has(#username) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .af-step, .af-step:not(.is-on) { transform: none !important; transition: opacity 120ms ease !important; }
  .af-shake { animation: none; }
  .af-spinner { animation-duration: 2s; }
}

/* ---------- Account details: "sign-in methods" card (form-edit-account.php · assets/js/auth-account.js · owner 03.10.2026) ----------
   Hidden until GET /me answers. Rows = phone (verify by OTP) · LINE (link) · password (set after an OTP). */
.ac-signin[hidden], .ac-signin-row[hidden], .ac-signin-panel[hidden], .ac-signin [hidden] { display: none !important; }
.ac-signin { display: flex; flex-direction: column; gap: 4px; }
.ac-signin .ac-h3 { margin-bottom: 4px; }
.ac-signin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ac-signin-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--ac-hair); }
.ac-signin-row:first-child { border-top: 0; padding-top: 6px; }
.ac-signin-row .ac-gate-ic { background: var(--ac-tint); }
.ac-signin-row .ac-gate-ic .ac-ic { width: 22px; height: 22px; }
.ac-signin-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-signin-body b { font-size: 15px; font-weight: 600; }
.ac-signin-body span { font-size: 14px; color: var(--ac-ink-2); }
.ac-signin-body span strong { color: var(--brand-color-hunter); font-weight: 600; }
.ac-signin-row > .ac-link { justify-self: end; min-height: 44px; white-space: nowrap; }
.ac-signin-panel { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding: 16px; border-radius: var(--ac-radius-sm); background: rgba(var(--brand-color-sand-rgb), .7);
  animation: ac-si-in 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.ac-signin-panel .ac-form { gap: 14px; }
.ac-signin-panel .btn { align-self: flex-start; }
.ac-signin-panel .af-otp { max-width: 360px; }
/* result of a LINE link round-trip (?iqa_line=) or a password set (?irb_si=pw) */
.ac-signin-note { margin: 0 0 6px; padding: 10px 14px; border-radius: var(--ac-radius-sm); font-size: 14px; line-height: 1.5;
  background: rgba(var(--brand-color-clover-rgb), .16); color: var(--brand-color-hunter); }
.ac-signin-note[data-tone="info"] { background: rgba(var(--brand-color-sand-rgb), .8); color: var(--ac-ink-2); }
.ac-signin-note[data-tone="error"] { background: rgba(var(--irb-color-error-rgb), .08); color: var(--irb-color-error); }
@keyframes ac-si-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 559px) { .ac-signin-panel .btn { align-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .ac-signin-panel { animation: none; } }
