/* My Account — orders and document upload. @ticket 71632 */

/* Design System v4 tokens. */
:where(.hbe-account-page, .hbe-account-shell, .hbe-account) {
    --hbe-purple: #635ea7;
    --hbe-purple-600: #574fa5;
    --hbe-purple-100: #ebe9f5;
    --hbe-purple-50: #f5f4fa;
    --hbe-purple-25: #f9f9fc;
    --hbe-green: #15c39a;
    --hbe-green-100: #d6f6ec;
    --hbe-grey-200: #e5e7eb;

    --hbe-account-ink: #111827;
    --hbe-account-ink-soft: #374151;
    --hbe-account-ink-mute: #6b7280;
    --hbe-account-card: #fff;

    /* Child radius = parent minus padding. */
    --hbe-account-radius: 16px;

    --hbe-shadow-flat: 0 1px 2px rgb(99 93 167 / 5%);
    --hbe-shadow-raised: 0 2px 4px rgb(99 93 167 / 10%), var(--hbe-shadow-flat);

    --hbe-space-glyph: 4px;
    --hbe-space-label: 8px;
    --hbe-space-row: 12px;
    --hbe-space-card-pad: 20px;
    --hbe-account-gap: 24px;
    --hbe-space-panel-pad: 32px;
    --hbe-space-block: 48px;

    --hbe-ease: cubic-bezier(0.2, 0, 0, 1);
    --dur-control: 150ms;
    --dur-overlay: 220ms;

    --hbe-account-waiting: #574fa5;
    --hbe-account-action: #8a5300;
    --hbe-account-good: #0a6553;
    --hbe-account-ended: #6b7280;
    --hbe-account-blocked: #b0223a;

    /* Four intents, all light. */
    --hbe-tint-waiting: #f5f4fa;
    --hbe-tint-good: #eefbf7;
    --hbe-tint-action: #fdf4e3;
    --hbe-tint-blocked: #fdf1f2;

    --hbe-measure: 64rem;
}

/* Tab cross-fade. No-ops without support; no fallback needed. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}

/* Nav holds still, panel changes. */
.hbe-account-nav {
    view-transition-name: hbe-account-nav;
}

/* One per document; the name stays unique. */
.hbe-dash__greeting,
.hbe-account__title {
    view-transition-name: hbe-account-heading;
}

@media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
        animation: hbe-vt-out 150ms cubic-bezier(0.4, 0, 1, 1) both;
    }

    ::view-transition-new(root) {
        animation: hbe-vt-in 220ms cubic-bezier(0.2, 0, 0, 1) both;
    }

    /* Crossfade reads as a double underline. */
    ::view-transition-old(hbe-account-nav) {
        animation: hbe-vt-out 120ms cubic-bezier(0.4, 0, 1, 1) both;
    }

    ::view-transition-new(hbe-account-nav) {
        animation: none;
    }

    @keyframes hbe-vt-out {
        to {
            opacity: 0;
        }
    }

    @keyframes hbe-vt-in {
        from {
            opacity: 0;
            translate: 0 4px;
        }
    }
}

/* Divi loads after us. */
.hbe-account-page,
.hbe-account-page h1,
.hbe-account-page h2,
.hbe-account-page h3,
.hbe-account-page p,
.hbe-account-page a,
.hbe-account-page button,
.hbe-account-page summary,
.hbe-account-shell button,
.hbe-account-shell,
.hbe-account-shell h1,
.hbe-account-shell h2,
.hbe-account-shell h3,
.hbe-account-shell p,
.hbe-account-shell a {
    font-family:
        Lato,
        system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif !important;
}

/* These templates set their own margins. */
.hbe-account p,
.hbe-account-shell p {
    padding-bottom: 0;
}

.hbe-account :is(h1, h2, h3, h4, h5, h6),
.hbe-account-shell :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    line-height: 1.25;
    padding: 0;
}

/* Divi's outline, and it loads last. */
.hbe-account-page :focus-visible {
    outline: 2px solid #635ea7 !important;
    outline-offset: 2px;
}

/* 44px targets on touch only. */
@media (pointer: coarse) {
    .hbe-account-nav__link,
    .hbe-account__older summary,
    .hbe-dash__answer summary,
    .hbe-account__link-button {
        min-block-size: 44px;
    }
}

.hbe-visually-hidden {
    block-size: 1px;
    clip-path: inset(50%);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

.hbe-account-shell ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.hbe-account-shell li {
    list-style: none !important;
}

.hbe-account-shell li::marker {
    content: none;
}

/* Nav on top, not down the side. */
.hbe-account-shell {
    display: flex;
    flex-direction: column;
    gap: var(--hbe-space-panel-pad);
    margin-inline: auto;
    max-inline-size: var(--hbe-measure);
    margin-block-start: 170px;
}

/* Undo woocommerce-layout.css float + percentage width. */
.woocommerce-account .hbe-account-shell .hbe-account-nav,
.woocommerce-account .hbe-account-shell .hbe-account-shell__content {
    float: none;
    inline-size: auto;
    width: auto;
}

.hbe-account-nav {
    border-block-end: 1px solid var(--hbe-grey-200, #e5e7eb);
}

.hbe-account-nav__list {
    display: flex;
    gap: var(--hbe-account-gap);
    overflow-x: auto;
    scrollbar-width: none;
}

.hbe-account-nav__list::-webkit-scrollbar {
    display: none;
}

/* Six tabs don't fit a phone. */
@media (width < 30rem) {
    .hbe-account-nav__list {
        flex-wrap: wrap;
        overflow-x: visible;
        row-gap: 0;
    }
}

/* No icon furniture — the labels carry it. */
.hbe-account-nav__link::before {
    content: none !important;
}

.hbe-account-nav__link {
    color: var(--hbe-account-ink-mute);
    display: block;
    font-size: 0.9375rem;
    padding: 0.75rem 0.25rem;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dur-control) var(--hbe-ease);
}

/* Underline grows from the centre. */
.hbe-account-nav__link::after {
    background: var(--hbe-purple);
    block-size: 2px;
    border-radius: 2px;
    content: '' !important;
    inset-block-end: -1px;
    inset-inline: 0;
    position: absolute;
    scale: 0 1;
}

.hbe-account-nav__link:hover,
.hbe-account-nav__link:focus-visible {
    color: var(--hbe-account-ink);
}

.hbe-account-nav__link:hover::after {
    scale: 0.4 1;
}

.hbe-account-nav__item.is-active .hbe-account-nav__link,
.hbe-account-nav__link[aria-current='page'] {
    color: var(--hbe-purple);
    font-weight: 600;
}

.hbe-account-nav__item.is-active .hbe-account-nav__link::after,
.hbe-account-nav__link[aria-current='page']::after {
    scale: 1 1;
}

/* Logout is an action, never current. */
.hbe-account-nav__item--customer-logout {
    margin-inline-start: auto;
}

.hbe-account-nav__item--customer-logout .hbe-account-nav__link {
    color: var(--hbe-account-ink-mute);
    font-size: 0.875rem;
}

.hbe-account-nav__item--customer-logout .hbe-account-nav__link::after {
    content: none !important;
}

/* An auto margin strands it when wrapped. */
@media (width < 30rem) {
    .hbe-account-nav__item--customer-logout {
        margin-inline-start: 0;
    }
}

/* A link that runs script rather than navigating. */
.hbe-account__link-button {
    background: none;
    border: 0;
    color: var(--hbe-purple);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.hbe-account__link-button:hover,
.hbe-account__link-button:focus-visible {
    color: var(--hbe-purple-600);
}

/* The page itself, not a Divi layout. */

/* Divi's #main-content outranks us. */
#main-content.hbe-account-page {
    background: var(--hbe-purple-25) !important;
    padding-block: clamp(2.5rem, 6vw, 4rem);
}

.hbe-account-page #content-area {
    padding-block: 0;
}

/* 44px tap target; the link itself is 17px. */
.hbe-account-page .woocommerce-LostPassword a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.hbe-account-page__article {
    background: none;
    border: 0;
    padding: 0;
}

.hbe-account {
    /* name / type. Reversed, every @container rule dies. */
    container: hbe-account / inline-size;
    color: var(--hbe-account-ink);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    max-inline-size: var(--hbe-measure);
    /* Room under the last button. */
    padding-block-end: var(--hbe-space-block);
}

/* Neucha once per screen, on the title only. */
.hbe-account .hbe-dash__greeting,
.hbe-account .hbe-account__title {
    font-family: Neucha, handwriting, cursive !important;
    font-weight: 400;
    letter-spacing: normal;
    text-wrap: balance;
}

/* Neucha's floor is 1.75rem. */
.hbe-account__title {
    font-size: clamp(1.75rem, 4cqi, 2.1rem);
    margin-block-end: var(--hbe-space-block);
}

.hbe-account__lede,
.hbe-account__group-lede {
    color: var(--hbe-account-ink-soft);
    line-height: 1.65;
    max-inline-size: 38rem;
}

/* Between ledes only: `.hbe-account-shell p` drops Divi's padding-bottom and
   puts nothing back, so stacked paragraphs ran together. Adjacent sibling
   keeps a lede paired with the meta line under it. */
.hbe-account__lede + .hbe-account__lede {
    margin-block-start: var(--hbe-account-gap);
}

/* Same purple as every other account link. */
.hbe-account__lede a {
    color: var(--hbe-purple);
    font-weight: 600;
}

.hbe-account__group {
    margin-block-end: var(--hbe-space-block);
}

.hbe-account__group-title {
    color: var(--hbe-account-ink-mute);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 0 0 var(--hbe-space-glyph);
    text-transform: uppercase;
}

.hbe-account__group--needs-you .hbe-account__group-title {
    color: var(--hbe-account-action);
}

.hbe-account__group-lede {
    font-size: 0.9375rem;
    margin: 0 0 var(--hbe-account-gap);
}

.hbe-account__orders {
    display: flex;
    flex-direction: column;
    gap: var(--hbe-account-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hbe-order {
    background: var(--hbe-order-tint, var(--hbe-account-card));
    border-radius: var(--hbe-account-radius);
    box-shadow: var(--hbe-shadow-flat);
    padding: var(--hbe-space-card-pad);
}

/* Needs her. */
.hbe-order--action {
    --hbe-order-tint: var(--hbe-tint-action);
}

/* Status leads the card. */
.hbe-order__status {
    align-items: center;
    color: var(--hbe-order-tone);
    display: flex;
    font-size: 0.7rem;
    font-weight: 700;
    gap: var(--hbe-space-glyph);
    letter-spacing: 0.06em;
    margin: 0 0 var(--hbe-space-label);
    text-transform: uppercase;
}

.hbe-icon {
    block-size: 1em;
    flex: none;
    inline-size: 1em;
}

.hbe-order__status .hbe-icon {
    block-size: 1.3em;
    inline-size: 1.3em;
}

.hbe-order--waiting {
    --hbe-order-tone: var(--hbe-account-waiting);
}
.hbe-order--action {
    --hbe-order-tone: var(--hbe-account-action);
}
.hbe-order--good {
    --hbe-order-tone: var(--hbe-account-good);
}
.hbe-order--ended {
    --hbe-order-tone: var(--hbe-account-ended);
}

.hbe-order__product {
    align-items: center;
    display: flex;
    font-size: clamp(1.125rem, 3cqi, 1.3125rem);
    font-weight: 600;
    gap: var(--hbe-space-row);
    line-height: 1.3;
    margin: 0;
}

/* Radius 12: card 16 minus 4. */
.hbe-order__thumb {
    background: var(--hbe-purple-50);
    block-size: 3.5rem;
    border-radius: 12px;
    flex: none;
    inline-size: 3.5rem;
    object-fit: contain;
}

/* On a card the heading is the first item, so match .hbe-items__image and
   the names share a left edge. Same gap on both. */
.hbe-order__product .hbe-order__thumb {
    block-size: 3rem;
    inline-size: 3rem;
}

.hbe-order__meta {
    color: var(--hbe-account-ink-soft);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.hbe-order__number {
    font-variant-numeric: tabular-nums;
}

.hbe-order__message {
    color: var(--hbe-account-ink-soft);
    line-height: 1.65;
    margin: var(--hbe-space-row) 0 0;
    /* ~65 characters, same as .hbe-dash__detail. */
    max-inline-size: 34rem;
}

.hbe-order__tracking,
.hbe-order__detail {
    margin: var(--hbe-space-row) 0 0;
}

.hbe-order__tracking a,
.hbe-order__detail a {
    color: var(--hbe-purple);
    font-weight: 600;
    text-decoration: none;
}

.hbe-order__detail a {
    font-size: 0.875rem;
    font-weight: 400;
}

.hbe-order__tracking a:hover,
.hbe-order__tracking a:focus-visible,
.hbe-order__detail a:hover,
.hbe-order__detail a:focus-visible {
    text-decoration: underline;
}

.hbe-order__tracking-number {
    color: var(--hbe-account-ink-soft);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    margin-inline-start: 0.5rem;
}

.hbe-order__cta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hbe-space-label) var(--hbe-space-row);
    margin: 1.25rem 0 0;
}

/* Flat purple pill; green means covered. */
.hbe-order__button {
    align-items: center;
    background: var(--hbe-purple);
    border-radius: 50px;
    color: #fff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-block-size: 48px;
    min-inline-size: 7rem;
    padding: 0.7rem 2rem;
    text-decoration: none;
}

.hbe-order__button:hover,
.hbe-order__button:focus-visible {
    background: var(--hbe-purple-600);
    color: #fff;
}

.hbe-order__note {
    color: var(--hbe-account-ink-soft);
    font-size: 0.875rem;
}

/* Older orders, a page at a time. Columns, not flex: the count stays centred
   with one link, two, or none. */
.hbe-account__pagination {
    align-items: baseline;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr auto 1fr;
    margin-block-start: var(--hbe-account-gap);
}

.hbe-account__page-link {
    color: var(--hbe-purple);
    font-weight: 600;
}

.hbe-account__page-link--older {
    grid-column: 1;
    justify-self: start;
}

.hbe-account__page-count {
    color: var(--hbe-account-ink-soft);
    font-size: 0.875rem;
    grid-column: 2;
}

.hbe-account__page-link--newer {
    grid-column: 3;
    justify-self: end;
}

.hbe-account__help {
    color: var(--hbe-account-ink-soft);
    margin-block-start: var(--hbe-account-gap);
}

.hbe-account__help a {
    color: var(--hbe-purple);
    font-weight: 600;
}

.hbe-order__waiting,
.hbe-dash__waiting {
    color: var(--hbe-account-ink-soft);
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.hbe-order__waiting strong,
.hbe-dash__waiting strong {
    color: var(--hbe-account-ink);
    font-weight: 600;
}

.hbe-order__due {
    color: var(--hbe-account-action);
    font-size: 0.875rem;
    font-weight: 600;
    margin: var(--hbe-space-glyph) 0 0;
}

/* Dashboard */

.hbe-dash__hello {
    margin-block-end: var(--hbe-account-gap);
}

/* Small on purpose; the status leads. */
.hbe-account .hbe-dash__greeting {
    font-size: clamp(1.5rem, 4cqi, 2rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
}

.hbe-dash__due-line {
    color: var(--hbe-account-ink-soft);
    font-size: 0.9375rem;
    margin: 0.5rem 0 0;
}

.hbe-dash__product {
    color: var(--hbe-account-ink-soft);
    margin: var(--hbe-space-glyph) 0 0;
}

/* Journey */

.hbe-journey__caption {
    color: var(--hbe-account-ink-soft);
    font-size: 0.8125rem;
    margin: 1.25rem 0 0;
}

.hbe-journey {
    display: grid;
    gap: 0.5rem;
    /* Plain 1fr overflows the card at 320px. */
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.hbe-journey__caption + .hbe-journey {
    margin-block-start: 0.5rem;
}

.hbe-journey__step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.hbe-journey__dot {
    background: var(--hbe-grey-200);
    block-size: 4px;
    border-radius: 4px;
    display: block;
    inline-size: 100%;
    position: relative;
}

/* Separate fill scales over the track. */
.hbe-journey__dot::after {
    background: var(--hbe-journey-fill, transparent);
    border-radius: inherit;
    content: '';
    inset: 0;
    position: absolute;
    transform-origin: left center;
}

/* Done green, current purple, rest grey. */
.hbe-journey__step--done {
    --hbe-journey-fill: var(--hbe-green);
}

.hbe-journey__step--current {
    --hbe-journey-fill: var(--hbe-purple);
}

.hbe-journey__label {
    color: var(--hbe-account-ink-mute);
    font-size: clamp(0.6875rem, 2.2cqi, 0.75rem);
    letter-spacing: 0.02em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hbe-journey__step--current .hbe-journey__label {
    color: var(--hbe-account-ink);
    font-weight: 600;
}

/* Panels */

/* Part of the order above. */
.hbe-order__contacts {
    border-block-start: 1px solid var(--hbe-grey-200);
    display: grid;
    gap: var(--hbe-space-card-pad) var(--hbe-space-block);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    margin-block-start: var(--hbe-space-panel-pad);
    padding-block-start: var(--hbe-space-card-pad);
}

/* Past the heading reset above. */
.hbe-account .hbe-panel__title {
    align-items: center;
    color: var(--hbe-account-ink-mute);
    display: flex;
    font-size: 0.7rem;
    font-weight: 600;
    gap: var(--hbe-space-glyph);
    letter-spacing: 0.06em;
    margin: 0 0 var(--hbe-space-row);
    text-transform: uppercase;
}

.hbe-panel__title .hbe-icon {
    block-size: 1.3em;
    color: var(--hbe-purple);
    inline-size: 1.3em;
}

.hbe-panel__name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.hbe-panel__role {
    color: var(--hbe-account-ink-soft);
    font-size: 0.875rem;
    margin: var(--hbe-space-glyph) 0 0;
}

/* One-handed tap target: 44px minimum. */
.hbe-panel__call,
.hbe-dash__call {
    align-items: center;
    color: var(--hbe-purple);
    display: inline-flex;
    font-size: 1.0625rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    gap: 0.5rem;
    min-block-size: 44px;
    padding-block: 0.5rem;
    text-decoration: none;
}

.hbe-panel__call {
    margin-block-start: 0.5rem;
}

.hbe-panel__call:hover,
.hbe-panel__call:focus-visible,
.hbe-dash__call:hover,
.hbe-dash__call:focus-visible {
    text-decoration: underline;
}

.hbe-panel__hint {
    color: var(--hbe-account-ink-soft);
    font-size: 0.8125rem;
    margin: var(--hbe-space-glyph) 0 0;
}

.hbe-panel__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 2rem;
    margin: var(--hbe-space-row) 0 0;
}

.hbe-panel__facts dt {
    color: var(--hbe-account-ink-soft);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hbe-panel__facts dd {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    margin: 0;
}

/* What's actually in the order */

/* Tag qualifier is load-bearing: `.hbe-account-shell ul` resets margin and
   padding and outranks a bare class. Card padding, not row — a row gap here
   reads as another list item. Inline stays 0, it's a ul. */
ul.hbe-items {
    display: flex;
    flex-direction: column;
    gap: var(--hbe-space-row);
    margin: var(--hbe-space-card-pad) 0 0;
    padding: var(--hbe-space-label) 0;
}

.hbe-items__item {
    align-items: center;
    color: var(--hbe-account-ink-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    gap: var(--hbe-space-row);
}

/* Placeholder keeps rows aligned. */
.hbe-items__image {
    background: var(--hbe-purple-50);
    block-size: 3rem;
    border-radius: 12px;
    flex: none;
    inline-size: 3rem;
    object-fit: contain;
}

.hbe-items__name {
    flex: 1 1 12rem;
}

.hbe-items__detail {
    background: var(--hbe-purple-50);
    border-radius: 4px;
    color: var(--hbe-account-ink-mute);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    padding: 0.1rem 0.5rem;
}

/* Disclosures: older orders, password change */

.hbe-account__older,
.hbe-account__disclosure {
    margin-block-start: var(--hbe-account-gap);
}

.hbe-account__older summary,
.hbe-account__disclosure summary {
    color: var(--hbe-purple);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
    padding: 0.75rem 0;
}

.hbe-account__older summary::-webkit-details-marker,
.hbe-account__disclosure summary::-webkit-details-marker {
    display: none;
}

.hbe-account__older[open] summary,
.hbe-account__disclosure[open] summary {
    color: var(--hbe-account-ink-soft);
}

.hbe-account__hint {
    color: var(--hbe-account-ink-soft);
    font-size: 0.875rem;
    margin-block-end: var(--hbe-account-gap);
}

.hbe-account__older .hbe-account__orders {
    margin-block-start: var(--hbe-account-gap);
}

/* One order, at full size. */
.hbe-dash__lead {
    background: linear-gradient(180deg, var(--hbe-dash-wash, #fff), #fff 60%)
        var(--hbe-account-card);
    border-radius: var(--hbe-account-radius);
    box-shadow: var(--hbe-shadow-flat);
    margin-block-end: var(--hbe-account-gap);
    padding: var(--hbe-space-panel-pad);
}

/* One wash per screen. */
.hbe-dash__lead--wash.hbe-order--good {
    --hbe-dash-wash: var(--hbe-tint-good);
}

.hbe-dash__lead--wash.hbe-order--waiting {
    --hbe-dash-wash: var(--hbe-tint-waiting);
}

.hbe-dash__lead--wash.hbe-order--action {
    --hbe-dash-wash: var(--hbe-tint-action);
}

/* Last block before the answers. */
.hbe-dash__lead:last-of-type {
    margin-block-end: var(--hbe-space-block);
}

.hbe-dash__eyebrow {
    color: var(--hbe-order-tone, var(--hbe-account-waiting));
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 var(--hbe-space-label);
    text-transform: uppercase;
}

.hbe-dash__headline {
    align-items: center;
    display: flex;
    font-size: clamp(1.375rem, 4cqi, 1.75rem);
    font-weight: 700;
    gap: var(--hbe-space-row);
    line-height: 1.3;
    margin: 0;
}

.hbe-dash__headline .hbe-icon {
    color: var(--hbe-order-tone, var(--hbe-account-waiting));
}

.hbe-dash__detail {
    color: var(--hbe-account-ink-soft);
    line-height: 1.65;
    margin: 0.75rem 0 0;
    max-inline-size: 34rem;
}

.hbe-dash__cta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 1.5rem 0 0;
}

/* Resupply and the review ask side by side; stacks when there's no room. */
.hbe-dash__offers {
    display: grid;
    gap: var(--hbe-space-block) var(--hbe-space-panel-pad);
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-block-end: var(--hbe-space-block);
}

.hbe-dash__resupply-lede {
    color: var(--hbe-account-ink-soft);
    margin: 0;
}

.hbe-dash__more {
    margin: 1.25rem 0 0;
}

.hbe-dash__more--all {
    margin-block-end: var(--hbe-space-block);
}

.hbe-dash__more a {
    color: var(--hbe-purple);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.hbe-dash__more a:hover,
.hbe-dash__more a:focus-visible {
    text-decoration: underline;
}

/* heading-l, not a label token blown up. */
.hbe-dash__answers-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 var(--hbe-space-row);
}

.hbe-dash__answer {
    border-block-end: 1px solid var(--hbe-grey-200, #e5e7eb);
    padding: 0.25rem 0;
}

.hbe-dash__answer summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    padding: 0.875rem 2rem 0.875rem 0;
    position: relative;
}

.hbe-dash__answer summary::-webkit-details-marker {
    display: none;
}

/* A rotating chevron, drawn rather than iconographed. */
.hbe-dash__answer summary::after {
    border-inline-end: 2px solid var(--hbe-account-ink-soft);
    border-block-end: 2px solid var(--hbe-account-ink-soft);
    block-size: 0.5rem;
    content: '';
    inline-size: 0.5rem;
    inset-block-start: 1.15rem;
    inset-inline-end: 0.25rem;
    position: absolute;
    rotate: 45deg;
}

.hbe-dash__answer[open] summary::after {
    rotate: -135deg;
}

.hbe-dash__answer p {
    color: var(--hbe-account-ink-soft);
    line-height: 1.7;
    margin: 0 0 var(--hbe-space-row);
    max-inline-size: 38rem;
}

.hbe-dash__answer a {
    color: var(--hbe-purple);
    font-weight: 600;
}

/* Upload. Scoped by id to outrank GF. */

#hbe-upload .gform_wrapper,
#hbe-upload .gform_confirmation_wrapper {
    background: var(--hbe-account-card);
    border-radius: var(--hbe-account-radius);
    box-shadow: var(--hbe-shadow-flat);
    padding: var(--hbe-space-card-pad);
}

#hbe-upload .gform_fields {
    display: grid;
    gap: 1.25rem;
}

#hbe-upload .gfield_label {
    display: block;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: normal;
    margin-block-end: 0.5rem;
}

/* GF ships this red; reads as an error. */
#hbe-upload .gfield_required_text {
    color: var(--hbe-account-ink-soft);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 400;
}

#hbe-upload .ginput_container input[type='text'],
#hbe-upload .ginput_container input[type='email'],
#hbe-upload .ginput_container input[type='tel'] {
    background: #fff;
    border: 1px solid var(--hbe-grey-200);
    border-radius: 8px;
    box-shadow: none;
    font: inherit;
    inline-size: 100%;
    min-block-size: 48px;
    padding: 0.75rem !important;
}

#hbe-upload .ginput_container input:focus {
    border-color: var(--hbe-purple);
    box-shadow: none;
}

#hbe-upload .ginput_container_fileupload input[type='file'] {
    background: var(--hbe-purple-50);
    border: 1px dashed var(--hbe-grey-200);
    border-radius: 8px;
    font: inherit;
    inline-size: 100%;
    padding: var(--hbe-space-card-pad) !important;
}

/* A step toward the action, not the action. */
/* Separate rules: one bad pseudo-element kills the list. */
#hbe-upload .gform_button_select_files {
    background: transparent;
    border: 1px solid var(--hbe-purple);
    border-radius: 999px;
    color: var(--hbe-purple) !important;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
}

#hbe-upload input[type='file']::file-selector-button {
    background: transparent;
    border: 1px solid var(--hbe-purple);
    border-radius: 999px;
    color: var(--hbe-purple);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-inline-end: var(--hbe-space-row);
    padding: 0.5rem 1.25rem;
}

#hbe-upload .gform_button_select_files:hover,
#hbe-upload .gform_button_select_files:focus-visible {
    background: var(--hbe-purple-50);
}

#hbe-upload input[type='file']::file-selector-button:hover {
    background: var(--hbe-purple-50);
}

#hbe-upload .gform_drop_area {
    background: var(--hbe-purple-50);
    border: 1px dashed var(--hbe-grey-200);
    border-radius: 8px;
    padding: var(--hbe-space-card-pad);
    text-align: center;
}

/* There is nothing to drag on a phone. */
@media (pointer: coarse) {
    #hbe-upload .gform_drop_instructions {
        display: none;
    }
}

#hbe-upload .gform_fileupload_rules {
    color: var(--hbe-account-ink-soft);
    display: block;
    font-size: 0.8125rem;
    margin-block-start: 0.5rem;
}

#hbe-upload .ginput_preview_list {
    margin-block-start: 0.75rem;
}

#hbe-upload .ginput_preview {
    align-items: center;
    display: flex;
    font-size: 0.875rem;
    gap: 0.5rem;
    padding: var(--hbe-space-glyph) 0;
}

#hbe-upload .gfield_validation_message,
#hbe-upload .validation_message {
    background: none;
    border: 0;
    color: var(--hbe-account-blocked);
    font-size: 0.8125rem;
    margin-block-start: var(--hbe-space-glyph);
    padding: 0;
}

#hbe-upload .gform_validation_errors {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

#hbe-upload .gform_submission_error {
    color: var(--hbe-account-blocked);
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
    text-transform: none;
}

#hbe-upload .gform_footer {
    margin: var(--hbe-space-panel-pad) 0 0 !important;
    padding: 0;
}

/* global.css paints every .gform_button. */
#hbe-upload .gform_button {
    background: var(--hbe-purple);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.875rem 2rem;
    width: auto !important;
}

#hbe-upload .gform_button:hover,
#hbe-upload .gform_button:focus-visible {
    background: var(--hbe-purple-600);
}

#hbe-upload .gform_button::after {
    content: none;
}

/* GF's AJAX swap replaces the form. */
#hbe-upload:has(.gform_confirmation_wrapper) .hbe-account__lede {
    display: none;
}

.hbe-upload-done .hbe-icon {
    block-size: 2rem;
    color: var(--hbe-account-good);
    inline-size: 2rem;
}

/* Confirm beat, once per flow. */
@media (prefers-reduced-motion: no-preference) {
    .hbe-upload-done .hbe-icon {
        animation: hbe-confirm 320ms var(--hbe-ease) backwards;
    }

    @keyframes hbe-confirm {
        from {
            opacity: 0;
            scale: 0.8;
        }
    }
}

.hbe-upload-done__lead {
    font-size: clamp(1.375rem, 4cqi, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0.75rem 0 0;
}

.hbe-upload-done__detail {
    color: var(--hbe-account-ink-soft);
    line-height: 1.65;
    margin: 0.75rem 0 0;
    max-inline-size: 34rem;
}

@container hbe-account (inline-size < 30rem) {
    .hbe-order__cta {
        align-items: stretch;
        flex-direction: column;
    }

    .hbe-order__button {
        text-align: center;
    }

    /* The caption already names the step. */
    .hbe-journey__label {
        display: none;
    }
}

/* Nothing animates on load. */
@media (prefers-reduced-motion: no-preference) {
    /* Lift — "is this one of the choices?" */
    .hbe-order {
        transition: box-shadow var(--dur-control) var(--hbe-ease);
    }

    /* Only the links are tap targets. */
    @media (hover: hover) {
        .hbe-order:has(a:hover),
        .hbe-order:focus-within {
            box-shadow: var(--hbe-shadow-raised);
        }
    }

    /* Give on press, not release. */
    .hbe-order__button {
        transition:
            background-color var(--dur-control) var(--hbe-ease),
            scale var(--dur-control) var(--hbe-ease);
    }

    .hbe-order__button:active {
        scale: 0.96;
    }

    /* Reveal — "where did this come from?" */
    .hbe-dash__answer[open] p {
        animation: hbe-reveal var(--dur-overlay) var(--hbe-ease) backwards;
    }

    @keyframes hbe-reveal {
        from {
            opacity: 0;
            translate: 0 4px;
        }
    }

    .hbe-dash__answer summary::after {
        transition: rotate var(--dur-control) var(--hbe-ease);
    }

    .hbe-account-nav__link::after {
        transition: scale var(--dur-overlay) var(--hbe-ease);
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.hbe-account-page, .hbe-account-shell, .hbe-account) {
        --dur-control: 1ms;
        --dur-overlay: 100ms;
    }
}

/* One order on its own screen. */

.hbe-order-detail__title {
    align-items: center;
    display: flex;
    gap: var(--hbe-space-card-pad);
    margin-block-end: 0.25rem;
}

.hbe-order-detail__meta {
    margin: 0 0 var(--hbe-account-gap);
}

/* Which order is this document for. */

/* Tag qualifier for the same reason as ul.hbe-items. */
ul.hbe-order-pick {
    display: flex;
    flex-direction: column;
    gap: var(--hbe-space-row);
    margin: var(--hbe-account-gap) 0 0;
    padding: 0;
}

/* Same card as in the list. */
.hbe-order-pick__option {
    background: var(--hbe-account-card);
    border-radius: var(--hbe-account-radius);
    box-shadow: var(--hbe-shadow-flat);
    color: var(--hbe-account-ink);
    display: block;
    padding: var(--hbe-space-card-pad);
    text-decoration: none;
}

.hbe-order-pick__option:hover,
.hbe-order-pick__option:focus-visible {
    box-shadow: var(--hbe-shadow-raised);
    color: var(--hbe-account-ink);
}

.hbe-order-pick__name {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.hbe-order-pick__meta {
    color: var(--hbe-account-ink-mute);
    display: block;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    margin-block-start: var(--hbe-space-glyph);
}

/* Names which order this is. */
.hbe-order-pick__flag {
    color: var(--hbe-account-action);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-block-start: var(--hbe-space-label);
    text-transform: uppercase;
}

.hbe-order-pick__change {
    margin: 0 0 var(--hbe-account-gap);
}

.hbe-order-pick__change a {
    color: var(--hbe-purple);
    font-size: 0.9375rem;
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .hbe-order-pick__option {
        transition: box-shadow var(--dur-control) var(--hbe-ease);
    }
}
