/* ==========================================================================
   My Account (theme 0.17.0, site redesign Phase 5)

   The account screens, signed in and signed out: design/My Account.dc.html from 769px,
   design/Mobile.dc.html M6 on the mobile twin. Plan 2026-11-08-my-account.md in the
   site-redesign folder under .plans/. inc/assets.php loads this sheet on the account pages
   only (is_account_page(): every endpoint and the signed-out screens), right after
   woocommerce.css, and every selector here is scoped to .woocommerce-account, WooCommerce's
   body class on those pages (css-lint CL-9). The markup is page.php's hero
   (template-parts/account/hero.php), the overrides in woocommerce/myaccount/ and the parts
   in template-parts/account/.

   0. Tokens
   1. Hero
   2. Layout: the sidebar and the content card
   3. The menu
   4. Shared controls: fields, pill buttons, icon buttons, status pills, the empty state
   5. The Log out dialog
   5b. The dashboard and the order row
   5c. The orders list and view-order, with Gang Sheet Maker's edit block
   5d. Addresses, the address form, account details, downloads and payment methods
   6. Signed out: the auth card, the show-password button and the strength meter
   7. Phones (the mobile twin)

   Horizontal edges come from .taf-container (--shell-gutter), capped at --content-max by
   base.css (.taf-main .taf-container), not from the mock's 56px frame padding. The mock's
   weight 800 is set at 700, the heaviest self-hosted Inter face, as on the homepage and
   the listing pages.
   ========================================================================== */


/* ── 0. Tokens ──
   Colours, radii and type come from base.css: the ink and greys (--color-text,
   --color-text-light, --color-border-light, --color-border-mid, --color-bg-muted), the
   brand (--color-cyan, --color-magenta, --color-yellow, --color-primary for fills,
   --color-link, --color-accent-text), the state tints for the status pills (--state-*),
   the radius scale (--radius-md 12, --radius-tile 16, --radius-lg 20, --radius-full) and
   the focus pair (--focus-ring, --focus-ring-inverse). The values below are the account
   screens' own, declared here rather than in base.css :root because nothing else reads
   them (the woocommerce.css .taf-archive precedent). */
.woocommerce-account {
    --acct-hero-from: #0a0a0a;                     /* The hero's gradient, as the homepage's and the Shop's */
    --acct-hero-to: #1a2a3a;
    --acct-ink-soft: rgba(255, 255, 255, 0.7);    /* The chip's email: 7.9:1 on #1a2a3a */
    --acct-ink-crumb: rgba(255, 255, 255, 0.6);   /* The breadcrumb: 6.1:1 on #1a2a3a */
    --acct-mark: rgba(255, 255, 255, 0.25);       /* Crop marks, decorative */
    --acct-chip-bg: rgba(255, 255, 255, 0.08);
    --acct-chip-line: rgba(255, 255, 255, 0.14);
    --acct-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* The sidebar and the content card */
    --acct-glow: 0 0 0 3px rgba(0, 174, 239, 0.25); /* A focused field's soft fill; the ring is the indicator */
    --acct-strip: linear-gradient(90deg, var(--color-cyan), var(--color-magenta), var(--color-yellow));
    --acct-scrim: rgba(10, 10, 10, 0.55);
}

/* Focus: the site ring, inverse on the dark hero (base.css explains the pair). */
.woocommerce-account .taf-main a:focus-visible,
.woocommerce-account .taf-main button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.woocommerce-account .taf-acct-hero a:focus-visible {
    outline-color: var(--focus-ring-inverse);
}


/* ── 1. Hero ──
   page.php prints it inside <main>, before the container, so it runs edge to edge; the
   content card below rises --page-hero-overlap into it (§2). The homepage's gradient and
   crop marks, as on the Shop, at the inner-page hero size (base.css --page-hero-*). */
.woocommerce-account .taf-main {
    padding: 0 0 96px;                  /* header.css's .taf-main padding: the hero meets the header */
}

.woocommerce-account .taf-acct-hero {
    position: relative;                 /* Containing block for the crop marks */
    overflow: hidden;
    padding: var(--page-hero-pad-top) 0 calc(var(--page-hero-pad-bottom) + var(--page-hero-overlap));
    background: linear-gradient(135deg, var(--acct-hero-from) 0%, var(--acct-hero-to) 100%);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-hero::before,
.woocommerce-account .taf-acct-hero::after {
    content: "";
    position: absolute;
    top: var(--page-hero-mark-inset);
    width: 16px;
    height: 16px;
    border-top: 1px solid var(--acct-mark);
    pointer-events: none;
}

.woocommerce-account .taf-acct-hero::before {
    left: var(--page-hero-mark-inset);
    border-left: 1px solid var(--acct-mark);
}

.woocommerce-account .taf-acct-hero::after {
    right: var(--page-hero-mark-inset);
    border-right: 1px solid var(--acct-mark);
}

/* The container's width and gutters, so the breadcrumb lines up with the card below. */
.woocommerce-account .taf-acct-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding: 0 var(--shell-gutter);
}

.woocommerce-account .taf-acct-hero__text {
    display: flex;
    flex-direction: column;
    gap: var(--page-hero-gap);
    min-width: 0;
}

.woocommerce-account .taf-acct-hero .taf-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--acct-ink-crumb);
}

.woocommerce-account .taf-acct-hero .taf-crumbs a {
    color: inherit;
    text-decoration: none;
}

.woocommerce-account .taf-acct-hero .taf-crumbs a:hover,
.woocommerce-account .taf-acct-hero .taf-crumbs [aria-current="page"] {
    color: var(--color-bg);
}

/* The inner-page hero title, as the Shop's: 32px at 769 up to 44px from 1500 (base.css). */
.woocommerce-account .taf-acct-hero__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--page-hero-title);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--color-bg);
}

/* Brand cyan on the dark ground only (base.css). */
.woocommerce-account .taf-acct-hero__title span {
    color: var(--color-cyan);
}

/* The signed-in chip: the initial, the display name and the email. Customer text, so it
   wraps rather than pushing the chip off the band. */
.woocommerce-account .taf-acct-hero__chip {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--acct-chip-line);
    border-radius: var(--radius-full);
    background: var(--acct-chip-bg);
}

.woocommerce-account .taf-acct-hero__avatar {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-cyan);
    color: var(--color-text);
    font-size: 17px;
    font-weight: var(--font-weight-bold);
}

.woocommerce-account .taf-acct-hero__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.woocommerce-account .taf-acct-hero__name,
.woocommerce-account .taf-acct-hero__hello {
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    overflow-wrap: anywhere;
}

/* "Hello, {first name}" is the phone greeting row's (§7). */
.woocommerce-account .taf-acct-hero__hello {
    display: none;
}

.woocommerce-account .taf-acct-hero__email {
    font-size: 13px;
    color: var(--acct-ink-soft);
    overflow-wrap: anywhere;
}


/* ── 2. Layout ──
   The container rises --page-hero-overlap into the hero, so the sidebar and the card (or,
   signed out, the sign-in forms) overlap it. .taf-page-content is released from its prose measure and
   its padding: the account screens are forms, lists and cards, not reading text. */
.woocommerce-account .taf-main > .taf-container {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--page-hero-overlap));
}

.woocommerce-account .taf-page-content {
    max-width: 100%;
    padding: 0;
}

/* woocommerce/myaccount/my-account.php: the sidebar beside the card. The card wraps under
   the sidebar where the two no longer fit side by side. */
.woocommerce-account .taf-acct {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.woocommerce-account .taf-acct__nav,
.woocommerce-account .taf-acct__card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: var(--acct-shadow);
}

.woocommerce-account .taf-acct__nav {
    flex: 0 1 240px;
    min-width: 220px;
    padding: 12px;
}

.woocommerce-account .taf-acct__card {
    position: relative;                 /* Containing block for the brand strip */
    flex: 1 1 420px;
    min-width: 0;
    overflow: hidden;
    padding: 32px;
}

.woocommerce-account .taf-acct__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--acct-strip);
}


/* ── 3. The menu ──
   woocommerce/myaccount/navigation.php: one row per item, its icon then its label, the
   current item filled with the ink, Log out under a divider and muted until hovered. */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14.5px;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    text-decoration: none;
    transition: background var(--ease-out-fast), color var(--ease-out-fast);
}

.woocommerce-account .woocommerce-MyAccount-navigation .taf-acct-nav__icon {
    flex: 0 0 auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: var(--color-bg-muted);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: var(--font-weight-semibold);
}

/* The short labels ("Payment", "Details") are the phone pill row's (§7). */
.woocommerce-account .woocommerce-MyAccount-navigation .taf-acct-nav__label--short {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout::before {
    content: "";
    display: block;
    height: 1px;
    margin: 8px 4px;
    background: var(--color-border-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--color-text-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: var(--state-error-bg);
    color: var(--state-error-text);
}


/* ── 4. Shared controls ──
   The design's controls, for every account screen.

   Fields: WooCommerce's own rows (woocommerce.css §10 draws them on every form), at the
   design's 50px, a 12px radius and a 16px text, so a phone never zooms into them. A
   focused field takes the ink border and a soft cyan fill; the site ring is the indicator.
   An invalid one keeps woocommerce.css's error border, in the error ink here. */
.woocommerce-account .woocommerce form .form-row label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
}

.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row select {
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    font-size: 16px;
}

.woocommerce-account .woocommerce form .form-row textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    font-size: 16px;
    line-height: 1.5;
}

.woocommerce-account .woocommerce form .form-row .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    font-size: 16px;
}

/* The address form's two dropdowns look alike: the country is the browser's own select and
   the state WooCommerce's select2 box (kept), so both take the box above and one chevron,
   the select without the system's arrow and select2 without its triangle. The chevron is
   product.css's, the muted ink. The select2 selectors name the form row, to outweigh
   woocommerce.css §10's .select2-selection rule, which otherwise kept its paler border. */
.woocommerce-account .woocommerce form .form-row select,
.woocommerce-account .woocommerce form .form-row .select2-container--default .select2-selection--single {
    padding-right: 44px;
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
    -webkit-appearance: none;
    appearance: none;
}

.woocommerce-account .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.woocommerce-account .woocommerce form .form-row input.input-text:focus,
.woocommerce-account .woocommerce form .form-row select:focus,
.woocommerce-account .woocommerce form .form-row textarea:focus {
    border-color: var(--color-text);
    box-shadow: var(--acct-glow);
}

.woocommerce-account .woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce-account .woocommerce form .form-row.woocommerce-invalid select,
.woocommerce-account .woocommerce form .form-row.woocommerce-invalid textarea {
    border-color: var(--state-error-text);
}

/* Pill buttons: the primary cyan fill with the ink (the brand-fill convention, see
   .taf-btn-primary), the outline, and the ink fill (the Log out dialog's "Log out").
   --sm is the cards' 44px size. */
.woocommerce-account .taf-acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ease-out-fast), color var(--ease-out-fast), border-color var(--ease-out-fast);
}

.woocommerce-account .taf-acct-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-btn--sm {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
}

.woocommerce-account .taf-acct-btn--outline {
    border: 1.5px solid var(--color-text);
    background: var(--color-bg);
    color: var(--color-text);
}

.woocommerce-account .taf-acct-btn--outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-btn--ink {
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-btn--ink:hover {
    background: var(--color-accent-text);
    color: var(--color-bg);
}

/* Icon buttons (an order row's View, Track and Invoice): a 38px square, its name in its
   aria-label. --off is the box shown while there is nothing to open, not a link. */
.woocommerce-account .taf-acct-iconbtn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--ease-out-fast), color var(--ease-out-fast), border-color var(--ease-out-fast);
}

.woocommerce-account a.taf-acct-iconbtn:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-iconbtn--off {
    border-style: dashed;
    background: var(--color-bg-muted);
    color: var(--color-text-light);
    cursor: not-allowed;
}

/* Status pills (template-parts/account/status-pill.php), by taf_account_status()'s key.
   The word always states the status and the dot is decoration, so no colour is the only
   signal. Processing and the statuses that wait on the customer or the store take the
   warning tint; Shipped the cyan tint; Failed the error tint; Completed, Cancelled,
   Refunded and any status a plugin adds the neutral grey. */
.woocommerce-account .taf-acct-pill {
    --pill-bg: var(--state-info-bg);
    --pill-ink: var(--state-info-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    background: var(--pill-bg);
    color: var(--pill-ink);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    white-space: nowrap;
}

.woocommerce-account .taf-acct-pill::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.woocommerce-account .taf-acct-pill--processing,
.woocommerce-account .taf-acct-pill--pending,
.woocommerce-account .taf-acct-pill--on-hold {
    --pill-bg: var(--state-warning-bg);
    --pill-ink: var(--state-warning-text);
}

.woocommerce-account .taf-acct-pill--shipped {
    --pill-bg: var(--state-success-bg);
    --pill-ink: var(--state-success-text);
}

.woocommerce-account .taf-acct-pill--failed {
    --pill-bg: var(--state-error-bg);
    --pill-ink: var(--state-error-text);
}

/* The empty state: a muted panel, a white icon tile, the title, a line and its button. */
.woocommerce-account .taf-acct-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 32px;
    border-radius: var(--radius-tile);
    background: var(--color-bg-muted);
}

.woocommerce-account .taf-acct-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-tile);
    background: var(--color-bg);
    color: var(--color-text);
}

.woocommerce-account .taf-acct-empty__title {
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
}

.woocommerce-account .taf-acct-empty__line {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
}


/* ── 5. The Log out dialog ──
   template-parts/account/logout-dialog.php, a native <dialog> that account.js opens with
   showModal(), so the browser centres it, keeps focus inside and closes it on Escape. The
   dialog is the box; its ::backdrop is the dimmed, blurred page. It appears with the
   design's pop unless the visitor prefers reduced motion. */
/* margin: auto is the browser's own centring for a modal dialog, which base.css's reset
   (* { margin: 0 }) would otherwise pin to the top left. The browser caps a modal dialog's
   height at the viewport's, and overflow: auto lets the box scroll inside that cap, so on
   a landscape phone or at 200% zoom its buttons stay reachable; the radius still clips the
   strip. */
.woocommerce-account .taf-acct-logout {
    width: min(440px, 100% - 48px);
    max-width: none;
    margin: auto;
    padding: 32px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    overflow: auto;
}

.woocommerce-account .taf-acct-logout[open] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.woocommerce-account .taf-acct-logout::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--acct-strip);
}

.woocommerce-account .taf-acct-logout::backdrop {
    background: var(--acct-scrim);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.woocommerce-account .taf-acct-logout__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-tile);
    background: var(--state-error-bg);
    color: var(--state-error-text);
}

.woocommerce-account .taf-acct-logout__title {
    margin: 0;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

.woocommerce-account .taf-acct-logout__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-logout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.woocommerce-account .taf-acct-logout__actions .taf-acct-btn {
    flex: 1 1 140px;
    min-height: 50px;
    padding: 0 20px;
    font-size: 14px;
    text-transform: none;
}

.woocommerce-account .taf-acct-logout__actions .taf-acct-btn--outline:hover {
    background: var(--color-bg-muted);
    color: var(--color-text);
}

.woocommerce-account .taf-acct-logout:focus-visible,
.woocommerce-account .taf-acct-logout a:focus-visible,
.woocommerce-account .taf-acct-logout button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

@keyframes taf-acct-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .woocommerce-account .taf-acct-logout[open] {
        animation: taf-acct-pop 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
}


/* ── 5b. The dashboard and the order row ──
   woocommerce/myaccount/dashboard.php and template-parts/account/order-row.php (the orders
   list reuses the row). Desktop layout; the phone block (§7) stacks them. */
.woocommerce-account .taf-acct-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.woocommerce-account .taf-acct-h2 {
    margin: 0;
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.woocommerce-account .taf-acct-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    text-wrap: pretty;
}

/* A text link: the link ink, with --caps the small uppercase "See all →". */
.woocommerce-account .taf-acct-link {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-link);
    text-decoration: none;
}

.woocommerce-account .taf-acct-link:hover {
    color: var(--color-accent-text);
    text-decoration: underline;
}

.woocommerce-account .taf-acct-link--caps {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.woocommerce-account .taf-acct-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

/* The latest-order card: ink ground, the 3px brand strip along its top. It keeps its own
   height beside a taller Ships-to card rather than stretching to it. */
.woocommerce-account .taf-acct-latest {
    position: relative;
    display: flex;
    flex: 2 1 340px;
    align-self: flex-start;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius-tile);
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-latest::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--acct-strip);
}

.woocommerce-account .taf-acct-latest__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.woocommerce-account .taf-acct-latest__text {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.woocommerce-account .taf-acct-latest__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-cyan);
}

.woocommerce-account .taf-acct-latest__title {
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--color-bg);
    overflow-wrap: anywhere;
}

.woocommerce-account .taf-acct-latest__note {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
}

.woocommerce-account .taf-acct-latest__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce-account .taf-acct-latest__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--ease-out-fast);
}

.woocommerce-account .taf-acct-latest__btn:hover {
    background: var(--color-cyan);
    color: var(--color-text);
}

/* The tracker: three equal columns, a 6px bar (the step's ::before) over the label. A
   done step is cyan, the current one yellow, a coming one a faint white; the label always
   names the step, so colour is not the only signal. */
.woocommerce-account .taf-acct-tracker {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .taf-acct-tracker__step {
    flex: 1 1 0;
    min-width: 0;
    font-size: 12.5px;
    font-weight: var(--font-weight-medium);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-tracker__step::before {
    content: "";
    display: block;
    height: 6px;
    margin-bottom: 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.woocommerce-account .taf-acct-tracker__step.is-done::before {
    background: var(--color-cyan);
}

.woocommerce-account .taf-acct-tracker__step.is-current {
    font-weight: var(--font-weight-bold);
}

.woocommerce-account .taf-acct-tracker__step.is-current::before {
    background: var(--color-yellow);
}

.woocommerce-account .taf-acct-tracker__step.is-todo {
    color: rgba(255, 255, 255, 0.55);
}

/* The Ships-to card. */
.woocommerce-account .taf-acct-shipsto {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-tile);
}

.woocommerce-account .taf-acct-shipsto__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.woocommerce-account .taf-acct-shipsto__label {
    margin: 0;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-shipsto__address,
.woocommerce-account .taf-acct-shipsto__none {
    margin: 0;
    font-size: 14.5px;
    font-style: normal;
    line-height: 1.65;
    color: var(--color-text-light);
    overflow-wrap: anywhere;
}

.woocommerce-account .taf-acct-shipsto__line {
    display: block;
}

.woocommerce-account .taf-acct-shipsto__line.is-name {
    color: var(--color-text);
}

/* The saved card, under a rule at the card's foot; the square is cyan with a card, grey
   without, and the line always says which. */
.woocommerce-account .taf-acct-shipsto__card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
    font-size: 13px;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-shipsto__card::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: var(--color-border-mid);
}

.woocommerce-account .taf-acct-shipsto__card.has-card::before {
    background: var(--color-cyan);
}

/* The two lists of order rows, Recent orders and the orders list. Each is a grid whose rows
   are subgrids (template-parts/account/order-row.php), so the pill, the total and the icon
   buttons stand in the same columns on every row, whatever each row holds: a column is as
   wide as its widest cell, the pill and the total keep to its right edge and the icons to
   its left, so a row without an invoice leaves that slot empty. Each list is also the query
   container for the narrow layout below. */
.woocommerce-account .taf-acct-recent,
.woocommerce-account .taf-acct-orders {
    container: taf-acct-orders / inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    column-gap: 20px;
}

/* Recent orders. */
.woocommerce-account .taf-acct-recent__head {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce-account .taf-acct-recent__label {
    margin: 0;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* One order row: the title over "#n · date", then the pill, the total and the icon buttons
   in the list's columns (__side takes no box of its own), and WooCommerce's Pay and Cancel
   on a line of their own under the title. */
.woocommerce-account .taf-acct-order {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    row-gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce-account .taf-acct-order__main {
    display: flex;
    grid-row: 1;
    grid-column: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.woocommerce-account .taf-acct-order__title {
    font-size: 14.5px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.woocommerce-account .taf-acct-order__sub {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-order__sub strong {
    color: var(--color-text);
}

.woocommerce-account .taf-acct-order__side {
    display: contents;
}

.woocommerce-account .taf-acct-order .taf-acct-pill {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
}

.woocommerce-account .taf-acct-order__total {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

/* A refunded total: WooCommerce strikes the old amount (<del>) and prints the new one in an
   <ins>, whose underline read as a link. */
.woocommerce-account .taf-acct-order__total ins {
    text-decoration: none;
}

.woocommerce-account .taf-acct-order__icons {
    display: flex;
    grid-row: 1;
    grid-column: 4;
    gap: 6px;
}

.woocommerce-account .taf-acct-order__actions {
    display: flex;
    grid-row: 2;
    grid-column: 1;
    flex-wrap: wrap;
    gap: 8px;
}

/* A list narrower than the four columns need (the card beside the sidebar from 769px, and
   phones): every row wraps the same way, the title on the first line, the pill and the
   total (on the right) on the second, the icon buttons on the third with Pay and Cancel
   at its right end, so they line up however wide the pill above is. */
@container taf-acct-orders (max-width: 640px) {
    .woocommerce-account .taf-acct-order {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
        padding: 14px 0;
    }

    .woocommerce-account .taf-acct-order__main {
        grid-column: 1 / -1;
    }

    .woocommerce-account .taf-acct-order .taf-acct-pill {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
    }

    .woocommerce-account .taf-acct-order__total {
        grid-row: 2;
        grid-column: 2;
    }

    .woocommerce-account .taf-acct-order__icons {
        grid-row: 3;
        grid-column: 1;
    }

    .woocommerce-account .taf-acct-order__actions {
        grid-row: 3;
        grid-column: 2;
        justify-content: flex-end;
    }
}


/* ── 5c. The orders list and view-order ──
   woocommerce/myaccount/orders.php (its rows are §5b's) and view-order.php: the head, the
   tracking card, "Order updates", then WooCommerce's order details and addresses, which
   order/order-details.php prints here and on the thank-you page alike. Those rules name the
   .woocommerce-view-order body class (WooCommerce's, on that endpoint), so the thank-you
   page keeps checkout.css's. Desktop layout; the phone block (§7) stacks them. */

/* The orders list under its rule, and Previous / Next as outline pills. */
.woocommerce-account .taf-acct-orders {
    border-top: 1px solid var(--color-border-light);
}

.woocommerce-account .taf-acct-pager {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}

/* Next alone still sits on the right. */
.woocommerce-account .taf-acct-pager .woocommerce-button--next {
    margin-left: auto;
}

/* WooCommerce's prompt above the orders list, "Confirm your email address to check for past
   orders and link them to your account." (its order-linking feature), in the notice
   construction (woocommerce.css §16): core prints its button before the sentence, so the
   sentence comes first, on the square's line, and the button after it, as the outline pill
   of a detour, its hit area 44px. Its markup, link and nonce are core's. The rule takes
   every info notice with a button on any account screen, by design: today this prompt is
   the only one (the theme's empty states replace core's notices). */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
    order: 1;
    background: var(--color-bg);
    color: var(--color-text);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-bg);
}

/* View-order's head: "← All orders", the H2 and its date, the pill and the invoice. */
.woocommerce-account .taf-acct-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-account .taf-acct-vo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.woocommerce-account .taf-acct-vo__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.woocommerce-account .taf-acct-vo__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.woocommerce-account .taf-acct-vo__side .taf-acct-pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

/* The tracking card: ink ground, the cyan truck tile, then each parcel's number in
   monospace with its "Track package →" pill (a number with no carrier URL stands alone).
   One parcel (--single): its number under the title, and the pill beside the two, centred
   on them; two or more: a list, each number with its pill. The pill's selector outweighs
   base.css's running-text underline (.taf-page-content li a:not(.button)). */
.woocommerce-account .taf-acct-track {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-tile);
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-track__icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-cyan);
    color: var(--color-text);
}

.woocommerce-account .taf-acct-track__body {
    flex: 1 1 auto;
    min-width: 0;
}

.woocommerce-account .taf-acct-track__title {
    margin: 0;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-track__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .taf-acct-track__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin: 0;
    padding: 4px 0;
}

.woocommerce-account .taf-acct-track__number {
    min-width: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--acct-ink-soft);
    overflow-wrap: anywhere;
}

.woocommerce-account .taf-acct-track .taf-acct-track__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--ease-out-fast);
}

.woocommerce-account .taf-acct-track--single {
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce-account .taf-acct-track--single .taf-acct-track__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-account .taf-acct-track--single .taf-acct-track__link {
    flex: 0 0 auto;
}

.woocommerce-account .taf-acct-track .taf-acct-track__link:hover {
    background: var(--color-cyan);
    color: var(--color-text);
}

/* The dark cards (the tracking card and the dashboard's latest-order card) take the inverse
   ring, which the site ring would match. */
.woocommerce-account .taf-acct-track a:focus-visible,
.woocommerce-account .taf-acct-latest a:focus-visible,
.woocommerce-account .taf-acct-latest button:focus-visible {
    outline-color: var(--focus-ring-inverse);
}

/* The small uppercase section titles: "Order updates", WooCommerce's "Order details" and
   the address titles, as the dashboard's "Recent orders". */
.woocommerce-account .taf-acct-section-title,
.woocommerce-account.woocommerce-view-order .woocommerce-order-details__title,
.woocommerce-account.woocommerce-view-order .woocommerce-column__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* "Order updates": WooCommerce's notes to the customer, one box each. */
.woocommerce-account .woocommerce-OrderUpdates {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-OrderUpdate {
    margin: 0 0 8px;
    padding: 14px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.woocommerce-account .woocommerce-OrderUpdate-meta {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--color-text-light);
}

.woocommerce-account .woocommerce-OrderUpdate-description p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* The order table: Product and Total over the item rows, each led by its 52px thumbnail
   (inc/woocommerce.php adds it on view-order), with "Qty {n}" under the name; then
   WooCommerce's totals rows as muted label and ink value (ruling A4: tax, fees, payment
   method and refunds included, so no row is singled out) and its Actions row as pills. */
.woocommerce-account.woocommerce-view-order .woocommerce-order-details {
    margin-top: 0;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details {
    margin-bottom: 0;
    border-radius: var(--radius-tile);
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details th,
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td {
    overflow-wrap: anywhere;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details thead th {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
    padding: 16px 20px;
    vertical-align: top;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .product-total {
    text-align: right;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody .product-total {
    font-weight: var(--font-weight-semibold);
    font-variant-numeric: tabular-nums;
}

/* The thumbnail sits in the cell's left padding; a cell's height acts as its minimum, so
   a one-line item still clears it. */
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name {
    position: relative;
    height: 84px;
    padding-left: 86px;
    line-height: 1.5;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__thumb {
    position: absolute;
    top: 16px;
    left: 20px;
    width: 52px;
    height: 52px;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__thumb img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__name {
    display: block;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__name a {
    color: var(--color-text);
    font-size: inherit;
    font-weight: inherit;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__name a:hover {
    color: var(--color-link);
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__qty {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
}

/* An item's meta (TAF FileDrop's "Print Files" and its links): the paragraph WooCommerce's
   wpautop() wraps a value in takes pages.css's running-text margin, and the list item its
   own, which left an empty band under the last line. */
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta li:last-child,
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta p {
    margin-bottom: 0;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th {
    background: transparent;
    color: var(--color-text-light);
    font-size: 14.5px;
    font-weight: var(--font-weight-normal);
    letter-spacing: 0;
    text-transform: none;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14.5px;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    text-align: right;
}

/* Tabular figures on the amounts only: on the labels, and on a refund's reason under its
   amount, they spread the digits and dashes of a product's name or the reason's words. */
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td .woocommerce-Price-amount {
    font-variant-numeric: tabular-nums;
}

/* A refunded amount: the old one struck (<del>), the new one in an <ins> with no underline,
   which read as a link; and the same in a refunded quantity. */
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details ins {
    text-decoration: none;
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr:first-child th,
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr:first-child td {
    border-top: 1px solid var(--color-border-light);
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none;
}

/* WooCommerce's Actions row (Pay, Cancel; TAF Invoices' "Invoice (PDF)" is the head's on
   this page, inc/woocommerce.php): outline pills with a 44px hit area. */
.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details a.order-actions-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 4px 0 4px 8px;
    padding: 0 16px;
    border: 1.5px solid var(--color-text);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--ease-out-fast), color var(--ease-out-fast);
}

.woocommerce-account.woocommerce-view-order .woocommerce-table--order-details a.order-actions-button:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* The addresses, in the Addresses screen's cards (§5d): a white card with a 3px strip (cyan
   billing, magenta shipping), its title inside over a rule, then the address, its first line
   (the name) in the ink and the rest muted. Two columns ending level; an order with no
   shipping address prints its billing title and address straight in the section, which is
   then the one card. */
.woocommerce-account.woocommerce-view-order .woocommerce-customer-details {
    margin-top: 28px;
}

.woocommerce-account.woocommerce-view-order .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.woocommerce-account.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column,
.woocommerce-account.woocommerce-view-order .woocommerce-customer-details:has(> address) {
    position: relative;                 /* Containing block for the strip */
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-tile);
    background: var(--color-bg);
}

.woocommerce-account.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column::before,
.woocommerce-account.woocommerce-view-order .woocommerce-customer-details:has(> address)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--color-cyan);
}

.woocommerce-account.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column--shipping-address::before {
    background: var(--color-magenta);
}

.woocommerce-account.woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--color-text-light);
    font-size: 14.5px;
    font-style: normal;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address::first-line {
    color: var(--color-text);
}

.woocommerce-account.woocommerce-view-order .woocommerce-customer-details address p {
    margin: 0;
    line-height: inherit;
}

/* Gang Sheet Maker's "Gang sheet edits" block (plan ruling A20). The plugin prints it on
   woocommerce_order_details_after_order_table, inside the order details, and ships no
   stylesheet; the theme draws its markup as the design's card and never rebuilds it: the
   3px magenta strip, the heading's magenta square, the textarea and the pill buttons. The
   class names are the plugin's. It shows on view-order only: the theme takes it off the
   thank-you page (inc/woocommerce.php). */
.woocommerce-account .gsm-edit-request {
    position: relative;
    margin-top: 24px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-tile);
    font-size: 15px;
}

.woocommerce-account .gsm-edit-request::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--color-magenta);
}

/* The hook fires inside section.woocommerce-order-details, so the selector names that
   section, outweighing any rule for the section's own headings. */
.woocommerce-account .woocommerce-order-details .gsm-edit-request h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.woocommerce-account .woocommerce-order-details .gsm-edit-request h2::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    background: var(--color-magenta);
}

.woocommerce-account .gsm-edit-request p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}

/* The plugin's message (role="status" aria-live="polite", errors and successes alike), in
   the card's type and the grey ink. Not display: none: a live region has to be rendered
   before it is written to, or screen readers announce the write unreliably (WCAG 4.1.3).
   Empty, it takes no space; once written, :empty stops matching and the margin returns. */
.woocommerce-account .gsm-edit-request .gsm-edit-msg {
    margin: 12px 0 0;
    color: var(--color-text-light);
}

.woocommerce-account .gsm-edit-request .gsm-edit-msg:empty {
    margin: 0;
}

.woocommerce-account .gsm-edit-request .gsm-edit-note {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color var(--ease-out-fast), box-shadow var(--ease-out-fast);
}

.woocommerce-account .gsm-edit-request .gsm-edit-note:focus {
    border-color: var(--color-text);
    box-shadow: var(--acct-glow);
}

.woocommerce-account .gsm-edit-request .gsm-edit-note:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* "Request an edit" and "Edit your order": the primary pill (ink per the brand-fill
   convention, see .taf-btn-primary), the accent fill on hover. */
.woocommerce-account .gsm-edit-request .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ease-out-fast), color var(--ease-out-fast);
}

.woocommerce-account .gsm-edit-request .button:hover {
    background: var(--color-accent-text);
    color: var(--color-bg);
}


/* ── 5d. Addresses, the address form, account details, downloads and payment methods ──
   woocommerce/myaccount/my-address.php, form-edit-address.php, form-edit-account.php,
   downloads.php, payment-methods.php and form-add-payment-method.php. Desktop layout; the
   phone block (§7) stacks them. */

/* A head with its action on the right: Payment methods' "+ Add payment method". */
.woocommerce-account .taf-acct-intro--split {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.woocommerce-account .taf-acct-intro__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.woocommerce-account .taf-acct-intro--split .taf-acct-btn {
    padding: 0 20px;
    font-size: 14px;
}

/* "Fields marked * are required.": the marker in the required ink, as on the labels. */
.woocommerce-account .taf-acct-lead .required {
    color: var(--color-accent-text);
}

/* The address cards, side by side: a 3px strip (cyan billing, magenta shipping), the title
   and Edit over a rule, then the address. WooCommerce's u-columns wrapper keeps its
   classes, and the cards wrap under each other where two no longer fit. */
.woocommerce-account .woocommerce-Addresses.u-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.woocommerce-account .woocommerce-Address.taf-acct-addr {
    position: relative;                 /* Containing block for the strip */
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-tile);
    background: var(--color-bg);
}

.woocommerce-account .taf-acct-addr::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--color-cyan);
}

.woocommerce-account .taf-acct-addr--shipping::before {
    background: var(--color-magenta);
}

.woocommerce-account .taf-acct-addr .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce-account .taf-acct-addr .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
}

/* Edit (Add while the address is unset): the 36px outline pill. */
.woocommerce-account .taf-acct-addr .taf-acct-edit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--color-text);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--ease-out-fast), color var(--ease-out-fast);
}

.woocommerce-account .taf-acct-addr .taf-acct-edit:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Customer text: it wraps inside the card, however long a word. */
.woocommerce-account .taf-acct-addr address {
    margin: 0;
    font-size: 14.5px;
    font-style: normal;
    line-height: 1.7;
    color: var(--color-text-light);
    overflow-wrap: anywhere;
}

/* A saved address's first line, the name, in the ink, as on the dashboard's Ships-to card
   and view-order's address cards; WooCommerce's line for an unset address stays muted. */
.woocommerce-account .taf-acct-addr address.taf-acct-addr__set::first-line {
    color: var(--color-text);
}

/* A card of fields: the address form's fields, and Account details' two cards, whose
   strips are cyan and magenta. In Account details each card is a fieldset under its
   legend, drawn as the card's title. */
.woocommerce-account .taf-acct-panel {
    position: relative;                 /* Containing block for the strip */
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-tile);
    background: var(--color-bg);
}

.woocommerce-account .taf-acct-panel + .taf-acct-panel {
    margin-top: 16px;
}

.woocommerce-account .taf-acct-panel--cyan::before,
.woocommerce-account .taf-acct-panel--magenta::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--color-cyan);
}

.woocommerce-account .taf-acct-panel--magenta::before {
    background: var(--color-magenta);
}

.woocommerce-account .taf-acct-panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.woocommerce-account .taf-acct-panel .taf-acct-panel__title {
    margin: 0 0 4px;
    padding: 0;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
}

.woocommerce-account .taf-acct-panel__line {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* The fields: one per row, first and last name side by side; on the address form, town,
   state and postcode three across, and the billing phone and email side by side. A field
   the country hides leaves its row to the others. WooCommerce's address script sorts the
   rows by priority, so the layout keys on the field ids, not on their order. */
.woocommerce-account .woocommerce-address-fields__field-wrapper.taf-acct-panel,
.woocommerce-account .taf-acct-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 16px;
}

.woocommerce-account .taf-acct-panel .form-row {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.woocommerce-account .taf-acct-panel .form-row-first,
.woocommerce-account .taf-acct-panel .form-row-last,
.woocommerce-account .taf-acct-panel #billing_phone_field,
.woocommerce-account .taf-acct-panel #billing_email_field {
    flex: 1 1 calc(50% - 8px);
    min-width: min(100%, 200px);
}

.woocommerce-account .taf-acct-panel #billing_city_field,
.woocommerce-account .taf-acct-panel #billing_state_field,
.woocommerce-account .taf-acct-panel #billing_postcode_field,
.woocommerce-account .taf-acct-panel #shipping_city_field,
.woocommerce-account .taf-acct-panel #shipping_state_field,
.woocommerce-account .taf-acct-panel #shipping_postcode_field {
    flex: 1 1 calc(33.333% - 11px);
    min-width: min(100%, 160px);
}

/* Help text under a field ("This will be how your name is displayed ..."). */
.woocommerce-account .taf-acct-help {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* "Same as billing address": hidden until account.js shows it, then a 44px outline pill.
   The [hidden] rule keeps the attribute in force over the display below. */
.woocommerce-account .taf-acct-copy {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 22px;
    padding: 0 16px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: border-color var(--ease-out-fast);
}

.woocommerce-account .taf-acct-copy[hidden] {
    display: none;
}

.woocommerce-account .taf-acct-copy:hover {
    border-color: var(--color-text);
}

/* A form's buttons: the pill, then Cancel or a note ("Changes apply to future orders."). */
.woocommerce-account .taf-acct-actions,
.woocommerce-account .woocommerce form .taf-acct-actions.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 22px 0 0;
}

.woocommerce-account .taf-acct-actions .taf-acct-btn--outline {
    padding: 0 22px;
}

.woocommerce-account .taf-acct-actions__note {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Downloads: core's table, its file link the small outline pill. */
.woocommerce-account .taf-acct-downloads .woocommerce-table--order-downloads {
    margin: 0;
}

.woocommerce-account .taf-acct-downloads .woocommerce-MyAccount-downloads-file {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--color-text);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
}

.woocommerce-account .taf-acct-downloads .woocommerce-MyAccount-downloads-file:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Saved cards (plan ruling A21): one row each, the default's border cyan. */
.woocommerce-account .taf-acct-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce-account .taf-acct-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 16px 18px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-tile);
    background: var(--color-bg);
}

.woocommerce-account .taf-acct-card.is-default {
    border-color: var(--color-cyan);
}

/* The brand chip; the row's name states the brand, so the chip is hidden from screen
   readers. */
.woocommerce-account .taf-acct-card__chip {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: var(--radius);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
}

.woocommerce-account .taf-acct-card__text {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.woocommerce-account .taf-acct-card__name {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.woocommerce-account .taf-acct-card__expires {
    font-size: 13px;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-card__default {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    background: var(--state-success-bg);
    color: var(--state-success-text);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
}

.woocommerce-account .taf-acct-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Make default, and any action a gateway adds: the 36px outline pill. */
.woocommerce-account .taf-acct-card__action {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: 12.5px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: border-color var(--ease-out-fast);
}

.woocommerce-account .taf-acct-card__action:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Delete: the 36px icon button, the error tint on hover. */
.woocommerce-account .taf-acct-card__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: background var(--ease-out-fast), color var(--ease-out-fast), border-color var(--ease-out-fast);
}

.woocommerce-account .taf-acct-card__delete:hover {
    border-color: var(--state-error-text);
    background: var(--state-error-bg);
    color: var(--state-error-text);
}

/* Add payment method: WooCommerce's gateway list (woocommerce.css §12) as the design's form
   card, at its 16px radius. Inside the payment box the fields are WooPayments' own. */
.woocommerce-account #add_payment_method #payment ul.payment_methods {
    margin: 0;
    border-radius: var(--radius-tile);
}

/* Inside that card, WooCommerce's scaffolding around WooPayments' fields draws no frame of
   its own: the payment box loses its grey ground and padding, and WooPayments' fieldset the
   browser's groove border, so the fields run the card's width (Stripe's iframe itself is
   never styled). With one gateway there is nothing to choose: its radio is hidden from view
   (kept in the form, checked) and its label reads as the card's heading. */
.woocommerce-account #add_payment_method #payment ul.payment_methods > li {
    position: relative;                 /* Keeps the hidden radio inside its row */
}

.woocommerce-account #add_payment_method #payment .payment_box {
    margin: 12px 0 0;
    padding: 0;
    border-radius: 0;
    background: none;
}

.woocommerce-account #add_payment_method fieldset.wc-payment-form {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.woocommerce-account #add_payment_method #payment ul.payment_methods > li:only-child > input.input-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.woocommerce-account #add_payment_method #payment ul.payment_methods > li:only-child > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    cursor: default;
}

.woocommerce-account .taf-acct-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-secure svg {
    flex: 0 0 auto;
}

/* #place_order as the account pill, over §12's full-width checkout button. */
.woocommerce-account #add_payment_method #place_order {
    display: inline-flex;
    width: auto;
    min-height: 52px;
    margin: 0;
    padding: 0 28px;
    letter-spacing: normal;
}

.woocommerce-account #add_payment_method #place_order:hover {
    background: var(--color-text);
    color: var(--color-bg);
}


/* ── 6. Signed out ──
   The auth card (design §5.1): woocommerce/myaccount/form-login.php (sign in and create
   account), form-lost-password.php, lost-password-confirmation.php and
   form-reset-password.php, each .taf-acct-auth: the brand panel
   (template-parts/account/auth-panel.php) beside the forms. Then two controls WooCommerce's
   scripts add to every account form, Account details included: the show-password button
   (ruling A22) and the strength meter (ruling A10). The forms' fields take §4's rules at
   the design's 52px; woocommerce.css §14's login card (which checkout's "Returning
   customer?" form keeps) is undone inside the card. */
.woocommerce-account .taf-acct-auth {
    display: flex;
    flex-wrap: wrap;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* The brand panel: the ink ground with the 4px strip, the logo in white, the copy for the
   view and the three points, over the rotated colour tiles. */
.woocommerce-account .taf-acct-auth__brand {
    position: relative;                 /* Containing block for the strip and the tiles */
    display: flex;
    flex: 1 1 360px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
    overflow: hidden;
    padding: 44px;
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-auth__brand::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--acct-strip);
}

.woocommerce-account .taf-acct-auth__tiles {
    position: absolute;
    right: -60px;
    bottom: -70px;
    display: grid;
    grid-template-columns: repeat(2, 110px);
    gap: 10px;
    opacity: 0.9;
    transform: rotate(-12deg);
    pointer-events: none;
}

.woocommerce-account .taf-acct-auth__tiles span {
    height: 110px;
    border-radius: var(--radius-lg);
    background: var(--color-cyan);
}

.woocommerce-account .taf-acct-auth__tiles span:nth-child(2) {
    background: var(--color-magenta);
}

.woocommerce-account .taf-acct-auth__tiles span:nth-child(3) {
    background: var(--color-yellow);
}

.woocommerce-account .taf-acct-auth__tiles span:nth-child(4) {
    background: #333333;                /* The design's fourth tile, decorative */
}

.woocommerce-account .taf-acct-auth__logo {
    position: relative;
    align-self: flex-start;
    width: auto;
    height: 38px;
    opacity: 0.92;
    filter: brightness(0) invert(1);
}

.woocommerce-account .taf-acct-auth__copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 340px;
}

.woocommerce-account .taf-acct-auth__pitch {
    margin: 0;
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-auth__pitch-line {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);   /* 11.5:1 on the ink */
}

.woocommerce-account .taf-acct-auth__points {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 260px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
}

.woocommerce-account .taf-acct-auth__points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-account .taf-acct-auth__points li::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
}

.woocommerce-account .taf-acct-auth__points li:nth-child(2)::before {
    background: var(--color-magenta);
}

.woocommerce-account .taf-acct-auth__points li:nth-child(3)::before {
    background: var(--color-yellow);
}

/* The forms' side. WooCommerce prints an empty notices wrapper when there is nothing to
   say, which would add a gap. */
.woocommerce-account .taf-acct-auth__main {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding: 44px;
}

.woocommerce-account .taf-acct-auth__main > .woocommerce-notices-wrapper:empty {
    display: none;
}

/* The column's gap spaces the notices (woocommerce.css gives each box a bottom margin). */
.woocommerce-account .taf-acct-auth .woocommerce-message,
.woocommerce-account .taf-acct-auth .woocommerce-info,
.woocommerce-account .taf-acct-auth .woocommerce-error {
    margin: 0;
}

.woocommerce-account .taf-acct-auth .woocommerce-notices-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce-account .taf-acct-auth .taf-acct-intro {
    margin-bottom: 0;
}

/* "← Back to sign in": its 44px box, without the gap of a text line above the heading. */
.woocommerce-account .taf-acct-auth .taf-acct-back {
    align-self: flex-start;
    margin: -10px 0;
}

/* The toggle shows only once account.js runs; until then both panes show, one under the
   other, the second over a rule. */
.woocommerce-account .taf-acct-auth__toggle {
    display: none;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-full);
    background: var(--color-bg-muted);
}

.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth__toggle {
    display: flex;
}

.woocommerce-account .taf-acct-auth__switch {
    flex: 1;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.woocommerce-account .taf-acct-auth__switch[aria-pressed="true"] {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.woocommerce-account .taf-acct-auth__panes {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.woocommerce-account .taf-acct-auth__pane {
    position: relative;                 /* Containing block for #taf-register without account.js */
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* #taf-register, the target of a link to Create account (inc/woocommerce.php prints it at
   the top of the register form), stands at the top of its pane without account.js, so such a
   link shows the pane's heading, not its first field (with it, see below). */
.woocommerce-account .taf-acct-auth #taf-register {
    position: absolute;
    top: 0;
    left: 0;
}

.woocommerce-account .taf-acct-auth__pane + .taf-acct-auth__pane {
    padding-top: 32px;
    border-top: 1px solid var(--color-border-light);
}

/* With account.js the anchor stands at the top of the forms' column instead (the pane no
   longer holds it), so a link to Create account brings the toggle into view under the
   sticky header (header.css's :target margin), not the pane's heading with the toggle
   hidden above it. */
.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth__main {
    position: relative;
}

.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth__pane {
    position: static;
}

/* With account.js: the card's data-taf-auth-view picks the pane and the brand panel's copy. */
.woocommerce-account .taf-acct-auth__copy--register {
    display: none;
}

.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth[data-taf-auth-view="register"] .taf-acct-auth__copy--register {
    display: flex;
}

.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth[data-taf-auth-view="register"] .taf-acct-auth__copy--login,
.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth[data-taf-auth-view="login"] [data-taf-auth-pane="register"],
.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth[data-taf-auth-view="register"] [data-taf-auth-pane="login"] {
    display: none;
}

.woocommerce-account:where(.taf-acct-ready *) .taf-acct-auth__pane + .taf-acct-auth__pane {
    padding-top: 0;
    border-top: 0;
}

/* The forms: woocommerce.css §14's card undone, the rows 18px apart. */
.woocommerce-account .taf-acct-auth form.login,
.woocommerce-account .taf-acct-auth form.register,
.woocommerce-account .taf-acct-auth form.lost_reset_password {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.woocommerce-account .taf-acct-auth form p.form-row {
    width: 100%;
    margin: 0;
    padding: 0;
}

.woocommerce-account .taf-acct-auth form .clear {
    display: none;
}

.woocommerce-account .taf-acct-auth form .form-row input.input-text {
    min-height: 52px;
}

/* "Lost your password?" on the password label's line: a link standing alone, so no
   underline (base.css underlines links in running text). Its hit area is 44px tall, the
   negative margins keeping the line as tall as the label. The two share a baseline, so
   the hit area's box does not shift the link's text off the label's. */
.woocommerce-account .taf-acct-auth__label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.woocommerce-account .taf-acct-auth .form-row .taf-acct-auth__label-row label {
    margin-bottom: 0;
}

.woocommerce-account .taf-acct-auth .taf-acct-auth__lost {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -10px 0;
    text-decoration: none;
}

.woocommerce-account .taf-acct-auth .taf-acct-auth__lost:hover {
    text-decoration: underline;
}

/* "Remember me": the label is the checkbox's hit area, 44px tall; the negative top margin
   and the shorter bottom one keep the rows where a 24px line put them. */
.woocommerce-account .taf-acct-auth form .form-row label.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: -10px 0 8px;
    font-size: 14px;
    font-weight: var(--font-weight-normal);
}

.woocommerce-account .taf-acct-auth .woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-text);
}

/* WooCommerce's order attribution element (hidden inputs) takes no place in the column. */
.woocommerce-account .taf-acct-auth wc-order-attribution-inputs {
    display: contents;
}

/* Register's note and WooCommerce's privacy text, one muted box while nothing visible
   prints between them (on production Turnstile does, and they are two boxes). */
.woocommerce-account .taf-acct-auth__note,
.woocommerce-account .taf-acct-auth .woocommerce-privacy-policy-text {
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--color-bg-muted);
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-light);
}

.woocommerce-account .taf-acct-auth__note:has(+ .woocommerce-privacy-policy-text),
.woocommerce-account .taf-acct-auth__note:has(+ wc-order-attribution-inputs + .woocommerce-privacy-policy-text) {
    padding-bottom: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.woocommerce-account .taf-acct-auth__note + .woocommerce-privacy-policy-text,
.woocommerce-account .taf-acct-auth__note + wc-order-attribution-inputs + .woocommerce-privacy-policy-text {
    margin-top: -18px;                  /* The form's gap */
    padding-top: 8px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.woocommerce-account .taf-acct-auth .woocommerce-privacy-policy-text p {
    margin: 0;
}

.woocommerce-account .taf-acct-auth .woocommerce-privacy-policy-text a {
    font-weight: var(--font-weight-semibold);
    color: var(--color-link);
}

/* The submit buttons: Log in, Register, Reset password and Save, the 54px pill. While
   WooCommerce's meter holds Save for a weak password, it is dimmed. */
.woocommerce-account .taf-acct-auth form .button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
}

.woocommerce-account .taf-acct-auth form .button[type="submit"]:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.woocommerce-account .taf-acct-auth form .button[type="submit"]:disabled {
    background: var(--color-primary);
    color: var(--color-text);
    opacity: 0.5;
    cursor: not-allowed;
}

/* WooCommerce's show-password button (woocommerce.js wraps each password field in
   .password-input and appends it, with its own state and accessible name): the design's
   in-field "Show" / "Hide" pill, read from core's .display-password, inside a 44px hit
   area. The field leaves room for it. */
.woocommerce-account .woocommerce .password-input {
    position: relative;
    display: block;
}

.woocommerce-account .woocommerce form .form-row .password-input input.input-text {
    padding-right: 76px;
}

.woocommerce-account .woocommerce .show-password-input {
    position: absolute;
    top: 50%;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 4px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    cursor: pointer;
    transform: translateY(-50%);
}

.woocommerce-account .woocommerce .show-password-input::before {
    content: "Show";
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--color-bg-muted);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background var(--ease-out-fast);
}

.woocommerce-account .woocommerce .show-password-input.display-password::before {
    content: "Hide";
}

.woocommerce-account .woocommerce .show-password-input:hover::before {
    background: var(--color-border-light);
}

/* WooCommerce's strength meter (wc-password-strength-meter) as the design's four bars,
   filled by WooCommerce's own class, never re-scored: short one bar, bad two, good three
   and strong four, in the error, warning and link inks. Its words are WooCommerce's. */
.woocommerce-account .woocommerce-password-strength {
    --meter-ink: var(--state-error-text);
    --meter-1: var(--color-border-light);
    --meter-2: var(--color-border-light);
    --meter-3: var(--color-border-light);
    --meter-4: var(--color-border-light);
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.5;
    color: var(--meter-ink);
}

.woocommerce-account .woocommerce-password-strength::before {
    content: "";
    display: block;
    height: 5px;
    margin-bottom: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        var(--meter-1) 0 calc(25% - 3px), transparent 0 calc(25% + 1px),
        var(--meter-2) 0 calc(50% - 2px), transparent 0 calc(50% + 2px),
        var(--meter-3) 0 calc(75% - 1px), transparent 0 calc(75% + 3px),
        var(--meter-4) 0);
}

/* No bars before WooCommerce has scored the password (its first score can come back empty
   while the scorer loads), so an empty meter never reads as zero strength. */
.woocommerce-account .woocommerce-password-strength:not(.short):not(.bad):not(.good):not(.strong)::before {
    display: none;
}

.woocommerce-account .woocommerce-password-strength.short {
    --meter-1: var(--meter-ink);
}

.woocommerce-account .woocommerce-password-strength.bad {
    --meter-ink: var(--state-warning-text);
    --meter-1: var(--meter-ink);
    --meter-2: var(--meter-ink);
}

.woocommerce-account .woocommerce-password-strength.good {
    --meter-ink: var(--color-link);
    --meter-1: var(--meter-ink);
    --meter-2: var(--meter-ink);
    --meter-3: var(--meter-ink);
}

.woocommerce-account .woocommerce-password-strength.strong {
    --meter-ink: var(--color-link);
    --meter-1: var(--meter-ink);
    --meter-2: var(--meter-ink);
    --meter-3: var(--meter-ink);
    --meter-4: var(--meter-ink);
}

.woocommerce-account .woocommerce-password-hint {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* ── 7. Phones ──
   design/Mobile.dc.html M6, with every block the frame leaves out (plan ruling A12): the
   hero becomes the greeting row, the menu a row of 44px pills that scrolls sideways, and
   every desktop block stays, stacked, at the frame's 16px gutters. The frame's condensed
   order rows and 36px boxes are a sketch: the rows keep the desktop's title, date, pill
   and total, wrapped by §5b's narrow layout (a container query, by the list's width), and
   every control is 44px. Keep this query
   byte-identical to its nine other copies (css-lint.mjs CL-3): responsive.css's
   mobile-overlay and utility-row blocks, pages.css's card-overlap block, product.css's,
   cart.css's, policy.css's, checkout.css's and content.css's phone blocks and
   MOBILE_QUERY in assets/js/main.js. */
@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {

    /* The page: the frame's 16px gutters for the hero and the content alike, and no
       overlap, so the pill row sits right under the hero. */
    .woocommerce-account .taf-main {
        padding-bottom: 48px;
    }

    .woocommerce-account .taf-acct-hero__inner,
    .woocommerce-account .taf-main > .taf-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .woocommerce-account .taf-main > .taf-container {
        margin-top: 0;
    }

    /* The hero: no breadcrumb and no crop marks. Signed out it holds the H1 alone. */
    .woocommerce-account .taf-acct-hero {
        padding: 24px 0 28px;
    }

    .woocommerce-account .taf-acct-hero::before,
    .woocommerce-account .taf-acct-hero::after,
    .woocommerce-account .taf-acct-hero .taf-crumbs {
        display: none;
    }

    .woocommerce-account .taf-acct-hero__title {
        font-size: 2rem;
    }

    /* Signed in, the greeting row: the 44px initial beside "Hello, {first name}" and the
       email, the chip's frame dropped. The H1 stays in the page for screen readers,
       clipped to nothing on screen (A14: every account screen's H1 is "My Account"). */
    .woocommerce-account.logged-in .taf-acct-hero {
        padding: 20px 0;
    }

    .woocommerce-account.logged-in .taf-acct-hero__text {
        display: contents;
    }

    .woocommerce-account.logged-in .taf-acct-hero__title {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .woocommerce-account .taf-acct-hero__chip {
        gap: 12px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .woocommerce-account .taf-acct-hero__name {
        display: none;
    }

    .woocommerce-account .taf-acct-hero__hello {
        display: block;
    }

    .woocommerce-account .taf-acct-hero__email {
        font-size: 12.5px;
    }

    /* One column: the pill row edge to edge under the hero, then the content, which
       drops the card's frame and sits in the gutters. In a column the flex bases would
       be heights, so they are reset. */
    .woocommerce-account .taf-acct {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 20px;
    }

    .woocommerce-account .taf-acct__nav,
    .woocommerce-account .taf-acct__card {
        flex: none;
        min-width: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .woocommerce-account .taf-acct__nav {
        margin: 0 -16px;
        padding: 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .woocommerce-account .taf-acct__card {
        overflow: visible;
        padding: 0;
    }

    .woocommerce-account .taf-acct__card::before {
        display: none;
    }

    /* The pill row: one line that scrolls sideways (account.js keeps the current pill in
       view), every item in it, Log out last; text only, with the short labels. The
       scrollbar is hidden, as in the frame; the fades below show there is more. */
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding: 12px 16px;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }

    /* While the row can scroll further, a fade at that edge (account.js sets is-more-end
       and is-more-start on the nav, which does not scroll, so the fades stay put). */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: relative;             /* Containing block for the fades */
    }

    .woocommerce-account .woocommerce-MyAccount-navigation::before,
    .woocommerce-account .woocommerce-MyAccount-navigation::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 1;
        width: 40px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--ease-out-fast);
    }

    .woocommerce-account .woocommerce-MyAccount-navigation::before {
        left: 0;
        background: linear-gradient(to right, var(--color-bg), rgba(255, 255, 255, 0));
    }

    .woocommerce-account .woocommerce-MyAccount-navigation::after {
        right: 0;
        background: linear-gradient(to left, var(--color-bg), rgba(255, 255, 255, 0));
    }

    .woocommerce-account .woocommerce-MyAccount-navigation.is-more-start::before,
    .woocommerce-account .woocommerce-MyAccount-navigation.is-more-end::after {
        opacity: 1;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--color-border-mid);
        border-radius: var(--radius-full);
        font-size: 13px;
        font-weight: var(--font-weight-semibold);
        white-space: nowrap;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
        border-color: var(--color-text);
    }

    .woocommerce-account .woocommerce-MyAccount-navigation .taf-acct-nav__icon,
    .woocommerce-account .woocommerce-MyAccount-navigation .taf-acct-nav__label--long,
    .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout::before {
        display: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation .taf-acct-nav__label--short {
        display: inline;
    }

    /* Headings and the shared controls at phone size. Every control is 44px: the order
       rows' icon buttons, the address cards' Edit, the saved cards' Make default and
       Delete, and Downloads' file link. */
    .woocommerce-account .taf-acct-h2 {
        font-size: 24px;
    }

    .woocommerce-account .taf-acct-intro {
        margin-bottom: 20px;
    }

    /* The dashboard's "Hello, {first name}" is the greeting row's on phones; the H2 stays
       for screen readers. */
    .woocommerce-account .taf-acct-hello {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* The email prompt's pill on Orders, on its own line (responsive.css), 44px tall. */
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
        height: 44px;
    }

    .woocommerce-account .taf-acct-iconbtn,
    .woocommerce-account .taf-acct-card__delete {
        width: 44px;
        height: 44px;
    }

    .woocommerce-account .taf-acct-addr .taf-acct-edit,
    .woocommerce-account .taf-acct-card__action,
    .woocommerce-account .taf-acct-downloads .woocommerce-MyAccount-downloads-file {
        min-height: 44px;
    }

    .woocommerce-account .taf-acct-empty {
        padding: 24px;
    }

    /* The dashboard: the latest-order card over Ships to, each the full width. The two
       text links in the card heads ("Edit" or "Add address", and "See all →") take a
       44px hit area; the negative margins keep each head as tall as its title. */
    .woocommerce-account .taf-acct-cards {
        gap: 12px;
    }

    .woocommerce-account .taf-acct-cards > * {
        flex: 1 1 100%;
    }

    .woocommerce-account .taf-acct-latest,
    .woocommerce-account .taf-acct-shipsto {
        padding: 18px;
    }

    .woocommerce-account .taf-acct-shipsto__head .taf-acct-link,
    .woocommerce-account .taf-acct-recent__head .taf-acct-link {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 44px;
        min-height: 44px;
        margin: -12px 0;
    }

    /* View-order: the head's pill and invoice under the H2, the tracking card and the
       order table at the narrower padding, the addresses one under the other. */
    .woocommerce-account .taf-acct-vo {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .woocommerce-account .taf-acct-track {
        gap: 12px;
        padding: 16px;
    }

    /* One parcel: where its pill wraps under the number, it lines up with the text. */
    .woocommerce-account .taf-acct-track--single .taf-acct-track__link {
        margin-left: 52px;
    }

    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details thead th,
    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot th,
    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tfoot td {
        padding-right: 14px;
        padding-left: 14px;
    }

    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details tbody td {
        padding: 14px;
    }

    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details td.product-name {
        padding-left: 78px;
    }

    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__thumb {
        top: 14px;
        left: 14px;
    }

    /* An item's product link: a 44px hit area, its margins keeping the lines in place. */
    .woocommerce-account.woocommerce-view-order .woocommerce-table--order-details .taf-acct-item__name a {
        display: inline-block;
        margin: -11px 0;
        padding: 11px 0;
    }

    .woocommerce-account.woocommerce-view-order .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }

    .woocommerce-account.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column,
    .woocommerce-account.woocommerce-view-order .woocommerce-customer-details:has(> address) {
        padding: 18px;
    }

    .woocommerce-account .gsm-edit-request {
        padding: 20px 18px;
    }

    /* Addresses, the address form, Account details and the saved cards: one card a row,
       at the narrower padding. The fields already fall one to a row by their own minimum
       widths (§5d). */
    .woocommerce-account .woocommerce-Address.taf-acct-addr {
        flex-basis: 100%;
        padding: 18px;
    }

    .woocommerce-account .taf-acct-panel {
        padding: 18px;
    }

    .woocommerce-account .taf-acct-card {
        padding: 14px 16px;
    }

    /* Add payment method: the card's row at 16px, so WooPayments' fields run its width. */
    .woocommerce-account #add_payment_method #payment ul.payment_methods > li {
        padding: 16px;
    }

    /* Signed out: the auth card edge to edge under the hero, its brand panel above the
       forms, cut down to the logo and the title (no line, points or tiles), so the toggle
       starts within the first 320px of a phone and, with an error above it, the username
       field still shows without scrolling. Cloudflare Turnstile's widget (on production) is
       at least 300px wide and the card clips what overflows it, so the card runs to the
       screen's edges and its side padding narrows from 20px to 10px between 350px and
       340px wide: at 320 the forms are exactly 300px. */
    .woocommerce-account:not(.logged-in) .taf-acct-hero {
        padding: 20px 0;
    }

    .woocommerce-account .taf-acct-auth {
        margin: 0 -16px;
        border-width: 0 0 1px;
        border-radius: 0;
        box-shadow: none;
    }

    .woocommerce-account .taf-acct-auth__brand {
        gap: 12px;
        padding: 20px clamp(10px, 100vw - 330px, 20px);
    }

    .woocommerce-account .taf-acct-auth__tiles,
    .woocommerce-account .taf-acct-auth__pitch-line,
    .woocommerce-account .taf-acct-auth__points {
        display: none;
    }

    .woocommerce-account .taf-acct-auth__logo {
        height: 28px;
    }

    .woocommerce-account .taf-acct-auth__pitch {
        font-size: 24px;
    }

    .woocommerce-account .taf-acct-auth__main {
        gap: 20px;
        padding: 20px clamp(10px, 100vw - 330px, 20px) 28px;
    }

    /* The Log out dialog at the frame's gutters. */
    .woocommerce-account .taf-acct-logout {
        width: min(440px, 100% - 32px);
        padding: 24px;
    }

    .woocommerce-account .taf-acct-logout__title {
        font-size: 22px;
    }
}
