/*
 * Storefront components shared by many screens. Milestone 1 holds the product card (KuteShop's
 * product-item-opt-13) and the rating stars. The card has no "new" or "sale" sticker: the shop records
 * neither. The buttons, fields, shelves, tabs, block
 * titles, sidebar blocks, breadcrumb, pagination, tables and alerts join it as their screens convert.
 */

/* ---------------------------------------------------------------- product card */

.sf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    color: var(--sf-ink);
    font-family: var(--sf-font);
    line-height: var(--sf-leading);
    transition: border-color var(--sf-transition), box-shadow var(--sf-transition);
}

.sf-card:hover,
.sf-card:focus-within {
    border-color: var(--sf-control-border);
    box-shadow: var(--sf-shadow-panel);
}

.sf-card a {
    color: inherit;
    text-decoration: none;
}

.sf-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--sf-surface-alt);
}

.sf-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sf-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.875rem 1rem 1rem;
    text-align: start;
}

.sf-card-category {
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-smallest);
}

.sf-card-name {
    color: var(--sf-ink);
    font-size: var(--sf-text-body);
    font-weight: 700;
    line-height: 1.5;
}

.sf-card a:hover,
.sf-card-name:hover {
    color: var(--sf-accent-ink);
}

.sf-card-note {
    margin: 0;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-smallest);
}

.sf-card-rating {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

.sf-card-price {
    margin-block-start: auto;
    padding-block-start: 0.375rem;
    color: var(--sf-ink);
    font-size: var(--sf-text-block-title);
    font-weight: 700;
}

.sf-card-credit {
    margin: 0;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-smallest);
}

.sf-card-credit-label {
    color: var(--sf-ink-muted);
}

/* ---------------------------------------------------------------- rating */

.sf-rating-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

.sf-rating-stars-track,
.sf-rating-stars-fill {
    display: inline-flex;
    gap: 0.0625rem;
}

.sf-rating-stars-fill {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    overflow: hidden;
}

.sf-rating-star {
    flex: none;
    fill: var(--sf-star-track);
}

.sf-rating-star-filled {
    fill: var(--sf-accent);
}

.sf-rating-value {
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-smallest);
}

/* ---------------------------------------------------------------- product grid */

/* KuteShop's 30px gutter, on Bootstrap's own row and columns. */
.sf-product-grid {
    --bs-gutter-x: 1.875rem;
    --bs-gutter-y: 1.875rem;
}

/* ---------------------------------------------------------------- buttons */

/* KuteShop's square buttons. The accent fill carries dark text (departure 1); the outline button's edge
   is the control border, findable on white (departure 4). */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--sf-height-control);
    padding: 0.5rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--sf-radius);
    font-size: var(--sf-text-body);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: color var(--sf-transition), background-color var(--sf-transition), border-color var(--sf-transition);
}

.sf-shell a.sf-btn-accent,
.sf-btn-accent {
    border-color: var(--sf-accent);
    background: var(--sf-accent);
    color: var(--sf-on-accent);
}

.sf-shell a.sf-btn-accent:hover,
.sf-btn-accent:hover {
    border-color: var(--sf-accent-hover);
    background: var(--sf-accent-hover);
    color: var(--sf-on-accent);
}

.sf-shell a.sf-btn-outline,
.sf-btn-outline {
    border-color: var(--sf-control-border);
    background: var(--sf-surface);
    color: var(--sf-ink);
}

.sf-shell a.sf-btn-outline:hover,
.sf-btn-outline:hover {
    border-color: var(--sf-bar);
    background: var(--sf-bar);
    color: var(--sf-on-bar);
}

/* ---------------------------------------------------------------- page bands and shelf heads */

/* A converted page body: the space under the header and above the footer. */
.sf-page {
    padding-block: 1.875rem 3.75rem;
}

.sf-band {
    margin-block-start: 2.5rem;
}

/* KuteShop's shelf title bar: a grey bar, the title in bold with an accent rule under it, and the
   shelf's own link at the far end. */
.sf-shelf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-block-end: 1.25rem;
    background: var(--sf-surface-alt);
}

.sf-shelf-title {
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-block-end: 2px solid var(--sf-accent);
    font-size: var(--sf-text-block-title);
    font-weight: 700;
    line-height: 1.6;
}

.sf-shell a.sf-shelf-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-shell a.sf-shelf-more:hover {
    color: var(--sf-accent-ink);
}

.sf-band-lead {
    margin-block: -0.5rem 1.25rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

/* ---------------------------------------------------------------- tiles */

/* KuteShop's category tiles: a framed box, the name in the accent ink, a grey line under it. */
.sf-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1.875rem;
}

.sf-tile-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
    gap: 1rem;
}

.sf-shell a.sf-tile {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
    color: var(--sf-ink-secondary);
    transition: border-color var(--sf-transition);
}

.sf-shell a.sf-tile:hover {
    border-color: var(--sf-accent);
    color: var(--sf-ink-secondary);
}

.sf-tile-name {
    color: var(--sf-accent-ink);
    font-size: var(--sf-text-block-title);
    font-weight: 700;
}

.sf-tile-text {
    font-size: var(--sf-text-small);
}

.sf-tile-figure {
    align-items: center;
    text-align: center;
}

.sf-tile-figure .sf-tile-name {
    font-size: var(--sf-text-page-heading);
}

/* ---------------------------------------------------------------- hero */

/* KuteShop's hero frame, drawn in type: the shop has no artwork of its own for it yet. */
.sf-hero {
    display: flex;
    align-items: center;
    min-height: 22rem;
    padding: 2.5rem 1.875rem;
    border-inline-start: 4px solid var(--sf-accent);
    background: var(--sf-surface-alt);
}

.sf-hero-body {
    max-width: 38rem;
}

.sf-hero-headline {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.45;
}

.sf-hero-description {
    margin: 0 0 1.75rem;
    color: var(--sf-ink-secondary);
}

.sf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* At desktop width the category list hangs open at the start of the first row (shell.css), so the hero
   leaves that column to it. */
@media (min-width: 992px) {
    .sf-home-lead {
        padding-inline-start: calc(var(--sf-sidebar-width) + 1.875rem);
    }
}

/* ---------------------------------------------------------------- blog post card */

/* KuteShop's recent-post card: the picture, the date in an accent tag over its corner, the title. */
.sf-article-grid {
    --bs-gutter-x: 1.875rem;
    --bs-gutter-y: 1.875rem;
}

.sf-post {
    height: 100%;
}

.sf-post-media {
    position: relative;
    margin-block-end: 0.875rem;
}

.sf-post-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--sf-surface-alt);
}

/* The picture's link is an empty layer over it, so the picture itself stays outside the part hidden from
   assistive technology and its alternative text is still read. */
.sf-post-media-link {
    position: absolute;
    inset: 0;
}

.sf-post-date {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    padding: 0.25rem 0.75rem;
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    font-size: var(--sf-text-smallest);
    font-weight: 700;
}

.sf-shell a.sf-post-title {
    display: block;
    color: var(--sf-ink);
}

.sf-post-title h4 {
    margin: 0 0 0.5rem;
    font-size: var(--sf-text-body);
    font-weight: 700;
    line-height: 1.6;
}

.sf-post-summary {
    margin: 0;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

/* ---------------------------------------------------------------- buttons, more kinds */

/* The checkout pages' small dark-grey button, used for a secondary submit such as the sort form's. */
.sf-shell a.sf-btn-dark,
.sf-btn-dark {
    border-color: var(--sf-bar);
    background: var(--sf-bar);
    color: var(--sf-on-bar);
}

.sf-shell a.sf-btn-dark:hover,
.sf-btn-dark:hover {
    border-color: var(--sf-ink-secondary);
    background: var(--sf-ink-secondary);
    color: var(--sf-on-bar);
}

.sf-shell a.sf-btn-outline.sf-btn-compact,
.sf-btn-compact {
    min-height: 2.25rem;
    padding: 0.25rem 1rem;
    font-size: var(--sf-text-small);
}

/* A quiet action beside a button: a link that reads as one, underlined so it is never only colour. */
.sf-shell a.sf-link-quiet,
.sf-link-quiet {
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------- fields */

/* Thin-bordered square fields, as the template draws them; the border is the control border so the
   edge of a field can be found (departure 4). */
.sf-input,
.sf-select {
    min-height: 2.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--sf-control-border);
    border-radius: var(--sf-radius);
    background-color: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
    font-size: var(--sf-text-small);
}

.sf-select {
    cursor: pointer;
}

.sf-input::placeholder {
    color: var(--sf-ink-muted);
    opacity: 1;
}

.sf-input-number {
    inline-size: 100%;
    max-inline-size: 11.25rem;
}

/* A native box or round button, drawn in the accent ink so its tick is legible on it. */
.sf-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.sf-check-input {
    flex: none;
    inline-size: 1.125rem;
    block-size: 1.125rem;
    margin: 0;
    accent-color: var(--sf-accent-ink);
}

/* ---------------------------------------------------------------- breadcrumb and page head */

/* KuteShop's breadcrumb: small grey steps, the store's own page darker, a separator between steps. */
.sf-breadcrumb {
    padding-block: 0 1.25rem;
    font-size: var(--sf-text-small);
}

.sf-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-breadcrumb-list li + li::before {
    content: "/";
    content: "/" / "";
    padding-inline: 0.5rem;
    color: var(--sf-ink-muted);
}

.sf-breadcrumb-link,
.sf-breadcrumb-current {
    color: var(--sf-ink-secondary);
}

.sf-shell a.sf-breadcrumb-home {
    color: var(--sf-ink);
    font-weight: 700;
}

/* The page title over a hairline, with a short accent rule under its own width. */
.sf-page-head {
    margin-block-end: 1.5rem;
    border-block-end: 1px solid var(--sf-line);
}

.sf-page-title {
    display: inline-block;
    margin: 0 0 -1px;
    padding-block-end: 0.75rem;
    border-block-end: 2px solid var(--sf-accent);
    font-size: var(--sf-text-page-heading);
    font-weight: 700;
    line-height: 1.5;
}

.sf-page-kind {
    margin: 0 0 0.25rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-page-intro {
    max-inline-size: 48rem;
    margin: 0;
    padding-block: 0.5rem 1rem;
    color: var(--sf-ink-secondary);
}

/* ---------------------------------------------------------------- catalogue listing */

/* The 270px sidebar at the reading start beside the listing from 992px; the listing is first in the
   document, so below that the filters follow the products. Grid columns follow the direction. */
.sf-catalog-layout {
    display: grid;
    gap: 1.875rem;
}

@media (min-width: 992px) {
    .sf-catalog-layout {
        grid-template-columns: var(--sf-sidebar-width) minmax(0, 1fr);
    }

    .sf-catalog-sidebar {
        grid-row: 1;
        grid-column: 1;
    }

    .sf-catalog-main {
        grid-row: 1;
        grid-column: 2;
    }
}

.sf-catalog-main {
    min-inline-size: 0;
}

.sf-catalog-filter-jump {
    margin-block: 0 1rem;
}

/* The grey toolbar band: the count at the reading start, sorting and page size at the end. */
.sf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-block-end: 1.25rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
}

.sf-toolbar-count {
    font-size: var(--sf-text-small);
    font-weight: 700;
}

.sf-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.sf-toolbar-field {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sf-toolbar-label {
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

/* What the reader chose, each choice a link that removes it. */
.sf-chips-block {
    margin-block-end: 1.25rem;
}

.sf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-shell a.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--sf-control-border);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font-size: var(--sf-text-small);
}

.sf-shell a.sf-chip:hover {
    border-color: var(--sf-bar);
    background: var(--sf-bar);
    color: var(--sf-on-bar);
}

.sf-chip .sf-icon {
    inline-size: 0.875rem;
    block-size: 0.875rem;
}

/* ---------------------------------------------------------------- sidebar blocks */

/* KuteShop's sidebar block: a framed box, the block title in bold over a hairline with the accent
   rule under it, then the block's content. */
.sf-side-block {
    margin-block-end: 1.875rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
}

.sf-side-title {
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-block-end: 2px solid var(--sf-accent);
    font-size: var(--sf-text-block-title);
    font-weight: 700;
    line-height: 1.6;
}

.sf-side-body {
    padding: 1rem 1.25rem 1.25rem;
}

.sf-side-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-side-links li + li {
    border-block-start: 1px solid var(--sf-line);
}

.sf-shell .sf-side-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-block: 0.5rem;
    color: var(--sf-ink-secondary);
}

.sf-shell .sf-side-links a:hover {
    color: var(--sf-accent-ink);
}

.sf-side-links .sf-icon {
    inline-size: 0.875rem;
    block-size: 0.875rem;
}

/* One filter group: a legend or label in bold, its options one per line. */
.sf-filter-group {
    min-inline-size: 0;
    margin: 0 0 1.25rem;
    padding: 0 0 1.25rem;
    border: 0;
    border-block-end: 1px solid var(--sf-line);
}

.sf-filter-heading {
    display: block;
    inline-size: auto;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: var(--sf-text-body);
    font-weight: 700;
    line-height: 1.6;
}

.sf-filter-group .sf-select {
    inline-size: 100%;
}

.sf-check-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* ---------------------------------------------------------------- pagination */

/* Bootstrap's pagination in KuteShop's square cells: hairline frames, the current page filled with the
   accent and dark figures on it. */
.sf-pagination {
    margin-block-start: 1.875rem;
}

.sf-pagination .pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: var(--sf-text-small);
    --bs-pagination-color: var(--sf-ink);
    --bs-pagination-bg: var(--sf-surface);
    --bs-pagination-border-color: var(--sf-control-border);
    --bs-pagination-border-radius: 0;
    --bs-pagination-hover-color: var(--sf-ink);
    --bs-pagination-hover-bg: var(--sf-surface-alt);
    --bs-pagination-hover-border-color: var(--sf-bar);
    --bs-pagination-focus-color: var(--sf-ink);
    --bs-pagination-focus-bg: var(--sf-surface-alt);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: var(--sf-on-accent);
    --bs-pagination-active-bg: var(--sf-accent);
    --bs-pagination-active-border-color: var(--sf-accent-edge);
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
}

.sf-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 2.5rem;
    min-block-size: 2.5rem;
    margin: 0;
    border-radius: 0;
    font-weight: 700;
}

.sf-pagination .page-link .sf-icon {
    inline-size: 1rem;
    block-size: 1rem;
}

/* ---------------------------------------------------------------- empty state */

.sf-empty {
    padding: 3rem 1.5rem;
    border: 1px solid var(--sf-line);
    text-align: center;
}

.sf-empty-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.sf-empty-text {
    margin: 0 0 1.25rem;
    color: var(--sf-ink-secondary);
}

.sf-empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* ---------------------------------------------------------------- credit shelves */

.sf-credit-grid {
    --bs-gutter-x: 1.875rem;
    --bs-gutter-y: 1.875rem;
}

.sf-shell a.sf-credit-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-block-size: 7rem;
    padding: 1.5rem 0.75rem;
    border: 1px solid var(--sf-line);
    text-align: center;
}

.sf-shell a.sf-credit-tile:hover {
    border-color: var(--sf-accent-edge);
}

.sf-credit-figure {
    color: var(--sf-accent-ink);
    font-size: var(--sf-text-page-heading);
    font-weight: 700;
}

/* ---------------------------------------------------------------- data sheet */

/* KuteShop's data-sheet table: hairline cells, the fact names in a grey column. On a phone each row
   stacks its name over its value instead of scrolling sideways. */
.sf-table-wrap {
    overflow-x: auto;
}

.sf-spec-table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: var(--sf-text-small);
}

.sf-spec-table th,
.sf-spec-table td {
    padding: 0.625rem 1rem;
    border: 1px solid var(--sf-line);
    text-align: start;
    vertical-align: top;
}

.sf-spec-table th {
    inline-size: 35%;
    background: var(--sf-surface-alt);
    font-weight: 700;
}

.sf-spec-table td {
    color: var(--sf-ink-secondary);
}

@media (max-width: 575.98px) {
    .sf-spec-table th,
    .sf-spec-table td {
        display: block;
        inline-size: auto;
    }

    .sf-spec-table td {
        border-block-start: 0;
    }
}

/* A value written in Latin characters inside a right-to-left page, such as a book number. */
.sf-latin {
    font-family: var(--sf-font-latin);
    unicode-bidi: isolate;
}

/* ---------------------------------------------------------------- shared text pieces */

/* A link inside running text or a list of facts: the accent ink and an underline, so it is never told
   apart by colour alone. */
.sf-shell a.sf-text-link,
.sf-shell .sf-term-links a,
.sf-shell .sf-prose a,
.sf-text-link {
    color: var(--sf-accent-ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.sf-shell a.sf-text-link:hover,
.sf-shell .sf-term-links a:hover,
.sf-shell .sf-prose a:hover {
    color: var(--sf-ink);
}

/* A short state written on a framed chip, such as whether a product can be bought. */
.sf-tag {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border: 1px solid var(--sf-control-border);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font-size: var(--sf-text-small);
    font-weight: 700;
}

/* What a form did. The outcome is said in words; the edge at the reading start only repeats it. */
.sf-notice {
    margin: 0 0 1rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--sf-line);
    border-inline-start: 3px solid var(--sf-ink-secondary);
    background: var(--sf-surface-alt);
    color: var(--sf-ink);
    font-size: var(--sf-text-small);
}

.sf-notice-done {
    border-inline-start-color: var(--sf-positive);
}

.sf-notice-refused {
    border-inline-start-color: var(--sf-danger);
}

.sf-field-label {
    display: block;
    margin-block-end: 0.25rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
    font-weight: 700;
}

/* A round icon button, as the template draws its carousel arrows. */
.sf-round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    padding: 0;
    border: 1px solid var(--sf-control-border);
    border-radius: var(--sf-radius-round);
    background: var(--sf-surface);
    color: var(--sf-ink);
    cursor: pointer;
}

.sf-round-btn:hover {
    border-color: var(--sf-bar);
    background: var(--sf-bar);
    color: var(--sf-on-bar);
}

.sf-section-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}

.sf-section-subtitle {
    margin: 1.25rem 0 0.75rem;
    font-size: var(--sf-text-block-title);
    font-weight: 700;
    line-height: 1.5;
}

/* Prose stored as plain text keeps its author's line breaks, and a long unbroken run breaks rather than
   widening the page. */
.sf-editorial-body {
    margin: 0 0 1rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- product page */

/* KuteShop's product page: the gallery at the reading start, the summary beside it. */
.sf-product-layout {
    display: grid;
    gap: 1.875rem;
    margin-block-end: 2.5rem;
}

@media (min-width: 768px) {
    .sf-product-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }
}

.sf-gallery-figure {
    margin: 0;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
}

/* The frame clips the picture, so the picture can be shown at its own pixel size inside it. It is the
   positioned holder the store script measures the picture's untransformed place against. */
.sf-gallery-lead {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.sf-gallery-lead img,
.sf-gallery-thumb img,
.sf-article-figure img {
    display: block;
    inline-size: 100%;
    block-size: auto;
}

.sf-gallery-lead img {
    transition: transform var(--sf-transition);
}

/* KuteShop's inner zoom (elevateZoom, zoomType "inner", crosshair): while a mouse or a pen is over the
   picture, the picture fills the frame at its own pixel size and follows the pointer. The store script sets
   the enlargement and the origin; without it the picture stays as it is and is a link to itself. */
.sf-gallery-inspecting {
    cursor: crosshair;
}

.sf-gallery-inspecting img {
    transform: scale(var(--sf-gallery-zoom, 2));
}

.sf-gallery-caption {
    padding: 0.5rem 0.75rem;
    border-block-start: 1px solid var(--sf-line);
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

/* Every picture beyond the first is a thumbnail beneath the lead one rather than behind a slider rail:
   a rail that needs script to reach the second picture hides it from anybody the script did not run for. */
.sf-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.sf-gallery-thumb {
    display: block;
    inline-size: 4.5rem;
    border: 1px solid var(--sf-line);
}

.sf-gallery-thumb[aria-current="true"] {
    border-color: var(--sf-accent-edge);
    box-shadow: inset 0 0 0 1px var(--sf-accent-edge);
}

/* The enlarged view is a native modal dialog, which brings the backdrop, the focus trap and Escape. */
.sf-gallery-dialog {
    inline-size: min(92vw, 62.5rem);
    max-block-size: 92vh;
    padding: 0.75rem;
    border: 0;
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
}

.sf-gallery-dialog::backdrop {
    background-color: rgb(0 0 0 / 75%);
}

/* Positioned, so it is the holder the store script measures the picture's untransformed place against. */
.sf-gallery-stage {
    position: relative;
    display: flex;
    justify-content: center;
    max-block-size: calc(92vh - 5rem);
    overflow: hidden;
}

.sf-gallery-stage img {
    max-inline-size: 100%;
    max-block-size: calc(92vh - 5rem);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform var(--sf-transition);
}

/* Zoomed to the picture's own pixel size, or twice the shown size where that is larger; a finger drags it,
   so the page must not take the gesture for a scroll. */
.sf-gallery-zoomed .sf-gallery-stage img {
    transform: scale(var(--sf-gallery-zoom, 2));
    cursor: zoom-out;
    touch-action: none;
}

.sf-gallery-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: 0.75rem;
}

.sf-product-name {
    margin: 0 0 0.5rem;
    font-size: var(--sf-text-page-heading);
    font-weight: 700;
    line-height: 1.5;
}

.sf-product-line {
    margin: 0 0 0.375rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-product-availability {
    color: var(--sf-ink);
    font-weight: 700;
}

/* The strip beside the name is a link down to the reviews, and reads as text rather than as a button. */
.sf-product-rating {
    margin: 0 0 0.5rem;
}

.sf-product-rating a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sf-product-rating-count {
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.sf-product-price-box {
    margin-block: 0.75rem;
    padding-block: 0.75rem;
    border-block: 1px solid var(--sf-line);
}

.sf-product-price {
    margin: 0;
    color: var(--sf-accent-ink);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.sf-product-credit {
    margin-block: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
}

.sf-product-subhead {
    margin: 0 0 0.5rem;
    font-size: var(--sf-text-block-title);
    font-weight: 700;
    line-height: 1.5;
}

.sf-product-credit-figure {
    margin: 0;
    font-weight: 700;
}

.sf-product-note {
    margin: 0.5rem 0 0;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-product-facts {
    margin-block: 1rem;
    font-size: var(--sf-text-small);
}

.sf-product-fact {
    margin: 0 0 0.375rem;
    color: var(--sf-ink-secondary);
}

.sf-product-fact-name {
    margin-inline-end: 0.25rem;
    color: var(--sf-ink);
    font-weight: 700;
}

.sf-buy {
    margin-block: 1.25rem;
}

.sf-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.sf-buy-label {
    font-size: var(--sf-text-small);
    font-weight: 700;
}

.sf-quantity {
    inline-size: 4.5rem;
    min-height: var(--sf-height-control);
    text-align: center;
}

.sf-buy-submit {
    padding-inline: 2rem;
}

.sf-product-wishlist {
    margin-block-start: 1.25rem;
}

.sf-product-wishlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.sf-product-section {
    margin-block-end: 1.875rem;
}

/* ---------------------------------------------------------------- tabs */

/* KuteShop's tab strip: grey tabs, the chosen one white with the accent rule over it. Without the
   module the tabs are links to sections that all stand on the page. */
.sf-tabs {
    margin-block-end: 2.5rem;
}

/* A section reached by an in-page link stops below the menu row that sticks to the top of the window:
   the tabs, the page body the skip link names, and the filter panel the catalogue's jump link names. */
.sf-tabs,
.sf-tab-panel,
.sf-page,
.sf-catalog-sidebar {
    scroll-margin-block-start: 4.5rem;
}

.sf-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 0 1.5rem;
    padding: 0;
    border-block-end: 1px solid var(--sf-line);
    list-style: none;
}

.sf-tab-list li {
    margin-block-end: -1px;
}

.sf-shell a.sf-tab,
.sf-tab {
    display: block;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
    color: var(--sf-ink);
    font-weight: 700;
}

.sf-shell a.sf-tab:hover {
    color: var(--sf-accent-ink);
}

.sf-shell a.sf-tab[aria-selected="true"] {
    border-block-end-color: var(--sf-surface);
    background: var(--sf-surface);
    box-shadow: inset 0 2px 0 var(--sf-accent-edge);
}

/* Once the strip names the section on show, its own heading stays in the outline but is not drawn twice. */
html[data-store-enhanced] .sf-tabs[data-store-tabs-ready] .sf-tab-heading {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- reviews */

/* The average and the distribution it was worked out from, side by side above the reviews. */
.sf-review-summary {
    display: grid;
    gap: 0.75rem 1.875rem;
    align-items: start;
    margin-block-end: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
}

@media (min-width: 768px) {
    .sf-review-summary {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    }
}

.sf-review-score {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sf-review-count {
    margin: 0;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-review-empty {
    margin: 0 0 1rem;
    color: var(--sf-ink-secondary);
}

.sf-review-distribution {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-review-distribution-row {
    display: grid;
    grid-template-columns: 5.5em minmax(3.75rem, 1fr) 3em;
    gap: 0.625rem;
    align-items: center;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-review-distribution-row + .sf-review-distribution-row {
    margin-block-start: 0.375rem;
}

.sf-review-distribution-track {
    display: block;
    block-size: 0.625rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
    overflow: hidden;
}

.sf-review-distribution-bar {
    display: block;
    block-size: 100%;
    background: var(--sf-accent);
}

.sf-review-distribution-count {
    text-align: end;
}

/* Sorting is a row of links; the order in force is a plain word rather than a link to this same page. */
.sf-review-toolbar,
.sf-review-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    font-size: var(--sf-text-small);
}

.sf-review-toolbar {
    margin-block-end: 1rem;
}

.sf-review-pagination {
    margin-block-start: 1.25rem;
}

.sf-review-sort-current {
    font-weight: 700;
}

.sf-review-page-position {
    color: var(--sf-ink-secondary);
}

.sf-review-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-review {
    padding-block: 1.25rem;
    border-block-start: 1px solid var(--sf-line);
}

.sf-review:first-child {
    padding-block-start: 0;
    border-block-start: 0;
}

.sf-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.625rem;
    margin-block-end: 0.5rem;
}

/* A display name is whatever the writer chose, so it may break rather than widen the page. */
.sf-review-author {
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* A verified purchase is marked by a word on a framed chip, never by a tint alone. */
.sf-review-verified {
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--sf-positive);
    color: var(--sf-positive);
    font-size: var(--sf-text-smallest);
    font-weight: 700;
}

.sf-review-date {
    margin-inline-start: auto;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-smallest);
}

.sf-review-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.sf-review-body {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Objecting to a review is folded away: a page of reviews is for reading. */
.sf-review-report {
    margin-block-start: 0.625rem;
}

.sf-review-report-toggle {
    inline-size: fit-content;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

/* Each label sits over its field; the note gets the room, the reason a short column, the button the end. */
.sf-review-report form {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 0 0.75rem;
    align-items: end;
    margin-block-start: 0.625rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
}

.sf-review-report form button {
    grid-row: 2;
}

.sf-review-invitation {
    margin-block-start: 1.25rem;
}

@media (max-width: 767.98px) {
    /* Stacked, the date has no room at the far end of the line, so it follows the rest. */
    .sf-review-date {
        flex-basis: 100%;
        margin-inline-start: 0;
    }

    .sf-review-report form {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 0.25rem;
    }

    .sf-review-report form button {
        grid-row: auto;
        justify-self: start;
        margin-block-start: 0.5rem;
    }
}

/* ---------------------------------------------------------------- line lists (wishlist, later the cart) */

/* KuteShop's bordered table of lines, drawn as rows that reflow: a grey head row over bordered rows on a
   wide screen, each row's cells stacked on a narrow one, never a table that scrolls sideways. */
.sf-lines {
    border: 1px solid var(--sf-line);
}

.sf-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
}

.sf-lines-body .sf-line + .sf-line {
    border-block-start: 1px solid var(--sf-line);
}

.sf-line-head {
    display: none;
    border-block-end: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
    font-size: var(--sf-text-small);
    font-weight: 700;
}

.sf-line-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-inline-size: 0;
}

.sf-line-media {
    flex: none;
    inline-size: 4.5rem;
}

.sf-line-media img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    border: 1px solid var(--sf-line);
}

.sf-line-info {
    min-inline-size: 0;
}

.sf-shell a.sf-line-name {
    color: var(--sf-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sf-shell a.sf-line-name:hover {
    color: var(--sf-accent-ink);
    text-decoration: underline;
}

.sf-line-note {
    margin: 0.25rem 0 0;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-small);
}

.sf-line-unavailable {
    color: var(--sf-ink-secondary);
    font-weight: 700;
}

@media (min-width: 992px) {
    .sf-lines-wishlist .sf-line {
        grid-template-columns: minmax(0, 1fr) 9rem 9rem 10rem 8rem;
    }

    .sf-line-head {
        display: grid;
    }
}

/* ---------------------------------------------------------------- blog */

.sf-article-title {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.sf-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0 0 1rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-article-summary {
    margin: 0 0 1.25rem;
    color: var(--sf-ink-secondary);
    font-size: 1.0625rem;
}

.sf-article-figure {
    margin: 0 0 1.5rem;
}

.sf-figure-caption {
    padding-block-start: 0.5rem;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-small);
}

.sf-prose h2 {
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.sf-prose h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
}

.sf-prose p {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}

.sf-article-aside {
    margin-block-start: 2.5rem;
    padding-block-start: 1.5rem;
    border-block-start: 1px solid var(--sf-line);
}

.sf-article-list {
    margin: 0;
    padding-inline-start: 1.25rem;
    font-size: var(--sf-text-small);
}

.sf-article-list li + li {
    margin-block-start: 0.375rem;
}

.sf-article-list-note {
    color: var(--sf-ink-secondary);
}

/* ---------------------------------------------------------------- contest help (opened from the app) */

/* Read on a phone first (owner, 2026-11-27): no text under 16px, every link at least 44px tall, nothing wider than
   the screen. */
.sf-help {
    font-size: 1rem;
    line-height: 1.8;
}

.sf-help .sf-article-title {
    font-size: 1.5rem;
}

.sf-help .sf-prose h2 {
    font-size: 1.1875rem;
}

.sf-help-meta {
    margin: 0 0 1rem;
    color: var(--sf-ink-secondary);
    font-size: 1rem;
}

.sf-help-topics {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--sf-line);
}

.sf-help-topics li {
    border-block-end: 1px solid var(--sf-line);
}

.sf-shell a.sf-help-topic-link,
.sf-help-topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding-block: 0.75rem;
    padding-inline: 0.25rem;
    color: var(--sf-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
}

.sf-shell a.sf-help-topic-link:hover,
.sf-help-topic-link:hover {
    color: var(--sf-accent-ink);
}

.sf-help-figure img {
    max-inline-size: 100%;
}

.sf-help-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block-start: 2rem;
}

.sf-help-nav .sf-btn {
    min-height: 2.75rem;
    font-size: 1rem;
}

/* ---------------------------------------------------------------- shared pieces of the order pages */

/* KuteShop's checkout box: a hairline frame round a block of the page, its title on a grey band. */
.sf-box {
    margin-block-end: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
}

.sf-box-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: -1.25rem -1.25rem 1.25rem;
    padding: 0.75rem 1.25rem;
    border-block-end: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
    font-size: var(--sf-text-block-title);
    font-weight: 700;
    line-height: 1.5;
}

/* A box that is the whole page, such as the payment hand-off, carries the page heading itself. */
.sf-box-heading {
    margin: 0 0 1rem;
    font-size: var(--sf-text-page-heading);
    font-weight: 700;
    line-height: 1.5;
}

.sf-box-text {
    margin: 0 0 1rem;
    color: var(--sf-ink-secondary);
}

/* The checkout's numbered sections. The number is drawn by the stylesheet in the reader's own digits
   and is not announced: the heading's words already say what the section is. */
.sf-checkout {
    counter-reset: sf-step;
}

.sf-step-title::before {
    counter-increment: sf-step;
    content: counter(sf-step);
    content: counter(sf-step) / "";
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    border-radius: var(--sf-radius-round);
    background: var(--sf-bar);
    color: var(--sf-on-bar);
    font-size: var(--sf-text-small);
}

.sf-step-title:lang(fa)::before {
    content: counter(sf-step, persian);
    content: counter(sf-step, persian) / "";
}

/* A short sentence, a field row, a hint and a row of actions. */
.sf-notice-attention {
    border-inline-start-color: var(--sf-accent-edge);
}

.sf-notice-text {
    margin: 0 0 0.25rem;
}

.sf-notice > strong + span,
.sf-notice > span + .sf-text-link {
    margin-inline-start: 0.5rem;
}

.sf-merge-notice {
    padding-block-start: 1.25rem;
}

.sf-merge-notice .sf-notice {
    margin: 0;
}

.sf-gap-before {
    margin-inline-start: 0.25em;
}

.sf-field-row {
    display: flex;
    gap: 0.75rem;
}

.sf-field-row .sf-input {
    flex: 1 1 auto;
    min-inline-size: 0;
}

.sf-field-row .sf-btn {
    flex: none;
    white-space: nowrap;
}

.sf-field-hint {
    margin: 0.375rem 0 0;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-small);
}

.sf-form-field {
    margin-block-end: 1rem;
}

.sf-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-block-start: 1.25rem;
}

.sf-input-block {
    display: block;
    inline-size: 100%;
}

textarea.sf-input {
    min-block-size: 6rem;
    resize: vertical;
}

/* A mobile number or a postal code is typed in Latin digits and reads from the start of its own line. */
.sf-input-latin {
    direction: ltr;
    text-align: start;
    unicode-bidi: plaintext;
}

.sf-btn-block {
    display: flex;
    inline-size: 100%;
}

/* ---------------------------------------------------------------- order summary */

.sf-summary-rows {
    margin-block: 1rem;
}

.sf-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    padding-block: 0.5rem;
    color: var(--sf-ink-secondary);
}

.sf-summary-row > :last-child {
    color: var(--sf-ink);
    text-align: end;
}

.sf-summary-row-strong {
    border-block-end: 1px solid var(--sf-line);
    font-weight: 700;
}

.sf-summary-row-small {
    padding-block: 0.25rem;
    font-size: var(--sf-text-small);
}

/* The figure the customer pays: on the grey of the template's totals rows, larger than the others. */
.sf-summary-total {
    margin-block: 0.5rem 1rem;
    padding: 0.75rem;
    background: var(--sf-surface-alt);
    color: var(--sf-ink);
    font-size: 1.0625rem;
    font-weight: 700;
}

/* Money a customer does not pay. The row's own words say so; the colour only repeats them. */
.sf-summary-row > .sf-summary-saving,
.sf-summary-saving {
    color: var(--sf-positive);
    font-weight: 700;
}

.sf-summary-row > .sf-summary-pending,
.sf-summary-pending {
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-summary-seller {
    font-size: var(--sf-text-small);
}

.sf-summary-note {
    margin: 0.5rem 0 1rem;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-small);
}

.sf-summary .sf-notice {
    margin-block: 0.5rem 1rem;
}

.sf-summary-back {
    display: inline-block;
    margin-block-start: 1rem;
}

.sf-summary-coupon {
    padding-block: 0.5rem;
    border-block-end: 1px solid var(--sf-line);
}

.sf-summary-coupon-line {
    margin: 0 0 0.25rem;
    color: var(--sf-ink-secondary);
}

.sf-summary-coupon .sf-summary-note {
    margin: 0;
}

/* The checkout's own list of what is being bought: nothing on it can be changed. */
.sf-summary-lines {
    margin-block-end: 0.5rem;
}

.sf-summary-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    padding-block: 0.875rem;
    border-block-end: 1px solid var(--sf-line);
}

.sf-summary-line:first-child {
    padding-block-start: 0;
}

.sf-summary-line-total {
    text-align: end;
}

/* ---------------------------------------------------------------- cart */

.sf-cart-layout,
.sf-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1.875rem;
    align-items: start;
}

.sf-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-block: 1.25rem 1.5rem;
}

.sf-cart-coupon-current {
    margin: 0 0 0.5rem;
    color: var(--sf-ink-secondary);
}

.sf-cart-coupon-code {
    margin-inline-start: 0.25em;
    color: var(--sf-ink);
    font-family: var(--sf-font-latin);
    font-weight: 700;
}

.sf-cart-coupon-clear {
    margin-block-end: 1rem;
}

/* The cart's own cells: a name that is not a link, a figure, the line's issue and the cell names. */
.sf-line-name {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sf-line-figure {
    color: var(--sf-ink);
    font-weight: 700;
}

.sf-line-media-small {
    inline-size: 3.5rem;
}

.sf-line-media-small img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    border: 1px solid var(--sf-line);
}

/* A line that cannot be bought is marked by a bar at the reading start as well as by its own sentence,
   so the state is never carried by colour alone. */
.sf-line-blocked {
    border-inline-start: 3px solid var(--sf-danger);
}

.sf-line-issue {
    margin: 0.25rem 0 0;
    color: var(--sf-danger);
    font-size: var(--sf-text-small);
    font-weight: 700;
}

.sf-lines-cart .sf-line-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.625rem;
}

.sf-lines-cart .sf-line-total {
    flex-direction: column;
    align-items: flex-start;
}

/* Stacked, these names are the only thing saying which figure is which. */
.sf-line-label {
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-small);
}

.sf-qty-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sf-qty-input {
    inline-size: 4.5rem;
    text-align: center;
}

@media (min-width: 992px) {
    .sf-lines-cart .sf-line {
        grid-template-columns: minmax(0, 1fr) 8rem 11rem 9rem 7rem;
    }

    /* The head row names the columns, so inside the cell the name is for assistive technology only.
       This is not Bootstrap's visually-hidden, which is declared important and could not be undone
       below this width. */
    .sf-line-label {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
}

@media (min-width: 1200px) {
    .sf-cart-layout {
        grid-template-columns: minmax(0, 1fr) 18.75rem;
    }
}

/* ---------------------------------------------------------------- checkout */

@media (min-width: 992px) {
    .sf-checkout-layout {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

/* One saved address. The chosen one is marked by a bar at the reading start as well as by its control
   being checked, so a reader who cannot see the round button still knows where the order is going. */
.sf-address {
    margin-block-end: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--sf-line);
}

.sf-address:has(input:checked) {
    border-inline-start: 3px solid var(--sf-bar);
    background: var(--sf-surface-alt);
}

.sf-address-choice {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-block-end: 0.375rem;
    cursor: pointer;
}

.sf-address-name {
    font-weight: 700;
}

.sf-address-line {
    margin: 0;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-address-default {
    margin-block-start: 0.5rem;
    margin-inline-end: 0.75rem;
}

.sf-address-edit {
    display: inline-block;
    margin-block-start: 0.5rem;
    font-size: var(--sf-text-small);
}

.sf-address-add {
    margin-block-start: 0.5rem;
}

.sf-checkout-address-form {
    margin-block-start: 0.5rem;
}

/* ---------------------------------------------------------------- confirmation and payment */

.sf-confirmation-box,
.sf-payment-box {
    max-inline-size: 48rem;
    margin-inline: auto;
}

.sf-confirmation-title {
    margin: 0 0 0.75rem;
    padding-inline-start: 0.875rem;
    border-inline-start: 4px solid var(--sf-ink-secondary);
    font-size: var(--sf-text-page-heading);
    font-weight: 700;
    line-height: 1.5;
}

.sf-confirmation-title-done {
    border-inline-start-color: var(--sf-positive);
}

.sf-confirmation-title-refused {
    border-inline-start-color: var(--sf-danger);
}

.sf-confirmation-number {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.sf-confirmation-state {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.75rem;
    margin: 0 0 0.25rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-confirmation .sf-summary-rows {
    padding-block-start: 0.5rem;
    border-block-start: 1px solid var(--sf-line);
}

/* The simulator's two facts: a name and its value on one row. */
.sf-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.5rem 1.5rem;
    margin: 0 0 1rem;
}

.sf-facts dt {
    color: var(--sf-ink-secondary);
    font-weight: 400;
}

.sf-facts dd {
    margin: 0;
    font-weight: 700;
    /* A payment reference is one unbroken Latin word; it wraps inside its own column rather than
       running over the term beside it at phone width. */
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- quick charge */

.sf-quick-charge-form,
.sf-quick-charge-summary {
    max-inline-size: 36rem;
}

.sf-quick-charge-result {
    margin-block-start: 0.5rem;
}

.sf-quick-charge-lines {
    --bs-gutter-x: 1.875rem;
}

.sf-quick-charge-line {
    block-size: calc(100% - 1.5rem);
}

.sf-shell a.sf-quick-charge-line-link {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-block-end: 0.75rem;
    color: var(--sf-ink);
}

.sf-shell a.sf-quick-charge-line-link:hover .sf-line-name {
    color: var(--sf-accent-ink);
    text-decoration: underline;
}

.sf-quick-charge-line-link img {
    flex: none;
    border: 1px solid var(--sf-line);
}

.sf-quick-charge-line-price {
    margin: 0 0 0.25rem;
    color: var(--sf-accent-ink);
    font-weight: 700;
}

.sf-quick-charge-buy {
    margin-block-start: 0.5rem;
}

/* ---------------------------------------------------------------- account pages: text pieces */

/* The template never drew a customer's account. Its pages are built here from the parts the look does
   define: the page head, the framed box, the sidebar block, the bordered table and the totals rows. */
.sf-page-head + .sf-page-intro {
    margin-block-start: -0.75rem;
    padding-block-start: 0;
}

.sf-text {
    margin: 0 0 0.75rem;
    color: var(--sf-ink-secondary);
}

/* A short line beside a fact: when it happened, what state it is in, what a figure means. */
.sf-meta {
    margin: 0 0 0.5rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-strong {
    color: var(--sf-ink);
    font-weight: 700;
}

p.sf-strong {
    margin: 0 0 0.5rem;
}

.sf-value {
    color: var(--sf-ink-secondary);
}

.sf-item-title {
    margin: 0 0 0.375rem;
    font-weight: 700;
}

.sf-fact {
    margin-block-end: 1rem;
}

.sf-fact .sf-meta {
    margin: 0.25rem 0 0;
}

.sf-list {
    margin: 0 0 0.75rem;
    padding-inline-start: 1.25rem;
    color: var(--sf-ink-secondary);
}

.sf-list li + li {
    margin-block-start: 0.25rem;
}

.sf-notice > p {
    margin: 0 0 0.5rem;
}

.sf-notice ul {
    margin: 0;
    padding-inline-start: 1.25rem;
}

/* A state that colours its own words. The words always say the state; the colour only repeats it. */
.sf-state-positive {
    color: var(--sf-positive);
    font-weight: 700;
}

.sf-state-danger {
    color: var(--sf-danger);
    font-weight: 700;
}

.sf-state-neutral {
    color: var(--sf-ink-secondary);
    font-weight: 700;
}

/* A box's last row of facts or actions, under a hairline. */
.sf-box-foot {
    margin-block-start: 1.25rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--sf-line);
}

.sf-box > :last-child,
.sf-box-foot > :last-child {
    margin-block-end: 0;
}

/* A group of fields or choices: its legend in bold, as the filter groups draw theirs. */
.sf-fieldset {
    min-inline-size: 0;
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.sf-legend {
    inline-size: 100%;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: var(--sf-text-block-title);
    font-weight: 700;
    line-height: 1.5;
}

.sf-choice-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------------------------------------------------------- account layout */

/* The account's own pages sit beside a sidebar block of their links at the reading start from 992px,
   as the listing sits beside its filters; below that the links come first, then the page. */
.sf-account-layout {
    display: grid;
    gap: 1.875rem;
}

@media (min-width: 992px) {
    .sf-account-layout {
        grid-template-columns: var(--sf-sidebar-width) minmax(0, 1fr);
        align-items: start;
    }
}

.sf-account-links {
    padding: 0.25rem 1.25rem;
}

.sf-shell .sf-account-links a {
    padding-block: 0.625rem;
}

/* Below the sidebar width the twelve entries would push the page a whole screen down, so they are laid
   out two or more to a row, each over its own hairline. */
@media (max-width: 991.98px) {
    .sf-account-links {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
        column-gap: 1.25rem;
    }

    .sf-account-links li + li {
        border-block-start: 0;
    }

    .sf-account-links li {
        border-block-end: 1px solid var(--sf-line);
    }

    .sf-shell .sf-account-links a.active {
        margin-inline-start: 0;
        padding-inline-start: 0.5rem;
    }
}

/* The page being read is marked by weight, the ink and a bar at the reading start — never by colour
   alone; the navigation link also tells assistive technology it is the current page. */
.sf-shell .sf-account-links a.active {
    margin-inline-start: -1.25rem;
    padding-inline-start: calc(1.25rem - 3px);
    border-inline-start: 3px solid var(--sf-accent-edge);
    color: var(--sf-ink);
    font-weight: 700;
}

.sf-account-signout {
    margin: 0;
}

.sf-account-signout-button {
    display: flex;
    inline-size: 100%;
    padding: 0.625rem 0;
    border: 0;
    background: none;
    color: var(--sf-ink-secondary);
    font: inherit;
    text-align: start;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.sf-account-signout-button:hover {
    color: var(--sf-danger);
}

.sf-account-main {
    min-inline-size: 0;
}

.sf-account-section {
    margin-block-end: 1.5rem;
}

/* A support ticket's conversation: support's messages carry an accent edge at the reading start, so who wrote what
   is seen as well as read in the line above each message. */
.sf-ticket-message[data-staff="true"] {
    border-inline-start: 4px solid var(--sf-accent-edge);
    background: var(--sf-surface-alt);
}

.sf-ticket-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sf-ticket-mark {
    display: block;
}

.sf-ticket-pictures {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-ticket-pictures img {
    display: block;
    inline-size: auto;
    max-inline-size: 10rem;
    block-size: auto;
    max-block-size: 10rem;
    border: 1px solid var(--sf-line);
}

/* The conversation, drawn like a messenger (owner, 2026-12-01): the box keeps within the screen below the stuck menu
   row, the reply box stays at its foot, and only the messages scroll. They are laid out from the foot (column-reverse
   round one list), so the page opens at the newest with no script, and a scroll that reaches either end stops there
   instead of carrying the page with it. While the reader writes on a phone, ticket-chat.js narrows the box to what the
   on-screen keyboard leaves. */
.sf-ticket-chat {
    display: flex;
    flex-direction: column;
    min-block-size: 18rem;
    max-block-size: calc(var(--ticket-chat-viewport-height, 100dvh) - var(--sf-height-bar) - 2rem);
    margin-block-end: 1.5rem;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
}

.sf-ticket-chat-messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-block-size: 0;
}

.sf-ticket-chat-title {
    flex: none;
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-block-end: 1px solid var(--sf-line);
    background: var(--sf-surface-alt);
    font-size: var(--sf-text-block-title);
}

.sf-ticket-chat-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column-reverse;
    min-block-size: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
}

/* The customer's own messages at the reading end, support's at the start, as a messenger sets them. */
.sf-ticket-chat-list {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 0.75rem;
}

.sf-ticket-chat-list .sf-ticket-message {
    align-self: flex-end;
    max-inline-size: min(40rem, 88%);
    margin-block-end: 0;
    padding: 0.75rem 1rem;
}

.sf-ticket-chat-list .sf-ticket-message[data-staff="true"] {
    align-self: flex-start;
}

.sf-ticket-chat-list .sf-ticket-message > :last-child {
    margin-block-end: 0;
}

.sf-ticket-composer {
    flex: none;
    padding: 0.75rem 1rem;
    border-block-start: 1px solid var(--sf-line);
    background: var(--sf-surface);
}

.sf-ticket-composer > :last-child {
    margin-block-end: 0;
}

/* The text and the pictures in one column, the send button beside both at the reading end. */
.sf-ticket-composer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
}

.sf-ticket-composer-text,
.sf-ticket-composer-pictures {
    grid-column: 1;
}

.sf-ticket-composer-pictures {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sf-ticket-composer-pictures .sf-field-label {
    margin: 0;
}

.sf-ticket-composer-pictures .sf-input {
    flex: 1 1 12rem;
    min-inline-size: 0;
}

.sf-ticket-composer-send {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.sf-ticket-composer textarea {
    min-block-size: 3.5rem;
    max-block-size: 12rem;
    resize: vertical;
}

.sf-ticket-composer-hints {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    margin-block-start: 0.25rem;
}

.sf-ticket-composer-hints .sf-meta {
    margin-block: 0;
}

/* One order in the history: its number, dates and state at the reading start, its figures beside. */
.sf-account-order .row {
    --bs-gutter-y: 1rem;
}

.sf-account-order p > span + span {
    margin-inline-start: 0.5rem;
}

.sf-account-order .sf-text-link {
    font-weight: 700;
}

.sf-account-order .sf-summary-row {
    padding-block: 0.25rem;
}

.sf-account-order .sf-btn {
    margin-block-start: 0.75rem;
}

/* Previous and next pages of a history list. */
.sf-account nav:has(> .sf-btn) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block-start: 1.25rem;
}

/* ---------------------------------------------------------------- data tables */

/* KuteShop's bordered table: a grey head row over hairline cells. On a phone each row becomes a framed
   block and each cell is drawn under its column's name, read from the cell's own title, rather than
   the table scrolling sideways. */
.sf-data-table {
    inline-size: 100%;
    margin-block-end: 1rem;
    border-collapse: collapse;
    font-size: var(--sf-text-small);
}

.sf-table-caption {
    caption-side: top;
    padding: 0 0 0.5rem;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
    text-align: start;
}

.sf-data-table th,
.sf-data-table td {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--sf-line);
    text-align: start;
    vertical-align: top;
}

.sf-data-table thead th {
    background: var(--sf-surface-alt);
    color: var(--sf-ink);
    font-weight: 700;
}

.sf-data-table td {
    color: var(--sf-ink-secondary);
}

@media (max-width: 767.98px) {
    .sf-data-table thead {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .sf-data-table,
    .sf-data-table caption,
    .sf-data-table tbody,
    .sf-data-table tr,
    .sf-data-table td {
        display: block;
    }

    .sf-data-table tr {
        margin-block-end: 1rem;
        border: 1px solid var(--sf-line);
    }

    .sf-data-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
        gap: 0.75rem;
        border: 0;
        border-block-end: 1px solid var(--sf-line);
    }

    .sf-data-table tr > td:last-child {
        border-block-end: 0;
    }

    .sf-data-table td[data-title]::before {
        content: attr(data-title);
        color: var(--sf-ink);
        font-weight: 700;
    }
}

/* ---------------------------------------------------------------- order detail */

.sf-order-state {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-block-end: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sf-line);
    border-inline-start: 3px solid var(--sf-accent-edge);
    background: var(--sf-surface-alt);
}

.sf-order-group .sf-meta .d-block + .d-block {
    margin-block-start: 0.125rem;
}

/* One bought line: its picture, its name and facts, and its total at the reading end. */
.sf-order-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding-block: 1rem;
    border-block-start: 1px solid var(--sf-line);
}

.sf-order-line-main {
    flex: 1 1 18rem;
    min-inline-size: 0;
}

.sf-order-line-product {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sf-order-line-media img {
    display: block;
    border: 1px solid var(--sf-line);
    object-fit: cover;
}

.sf-order-line-info {
    min-inline-size: 0;
}

.sf-order-line-info > .sf-text-link {
    display: inline-block;
    margin-block-end: 0.375rem;
    font-weight: 700;
}

.sf-order-line-info .sf-meta {
    margin-block-end: 0.25rem;
}

.sf-order-line-total {
    flex: 0 0 auto;
    min-inline-size: 9rem;
    text-align: end;
}

.sf-order-line-label {
    display: block;
    color: var(--sf-ink-secondary);
    font-size: var(--sf-text-small);
}

.sf-order-line-total .sf-meta {
    margin: 0.25rem 0 0;
}

@media (max-width: 575.98px) {
    .sf-order-line-total {
        flex-basis: 100%;
        padding-inline-start: calc(72px + 1rem);
        text-align: start;
    }
}

/* A coupon code beside the campaign it came from; whitespace beside a code block is not rendered, so
   the gap is drawn here. */
.sf-order-promotion-code {
    margin-inline-start: 0.5rem;
}

.sf-order-promotion-code bdi {
    font-weight: 700;
}

.sf-order-payment form .sf-btn,
.sf-order-paid .sf-btn,
.sf-order-summary .sf-btn {
    margin-block-start: 0.75rem;
}

/* ---------------------------------------------------------------- reviews a customer wrote */

.sf-review-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-review-rows .sf-meta > * + * {
    margin-inline-start: 0.75rem;
}

.sf-review-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sf-review-row-actions form {
    margin: 0;
}

/* ---------------------------------------------------------------- invoice */

.sf-invoice-head {
    margin-block-end: 1.25rem;
}

.sf-invoice-head .sf-text {
    margin-block-end: 0.25rem;
}

.sf-invoice .row {
    --bs-gutter-y: 1rem;
    margin-block-end: 1rem;
}

.sf-invoice-summary .sf-summary-row {
    padding-block: 0.375rem;
}

/* A printed invoice is the page body alone: no header, menu, drawer or footer, no button, and the
   frame's hairlines dark enough to survive the printer. */
/* ---------------------------------------------------------------- identity and system pages */

/* KuteShop's authentication page: framed boxes under the page head. Signing in and registering set two
   side by side from 768px, the form at the reading start; every other identity screen is one box of a
   readable width. */
.sf-identity-layout {
    display: grid;
    gap: 1.5rem;
    max-inline-size: 36rem;
}

.sf-identity-layout-pair {
    max-inline-size: none;
}

@media (min-width: 768px) {
    .sf-identity-layout-pair {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
    }
}

.sf-identity-box {
    margin: 0;
}

/* Sign in with Google (docs/architecture/google-sign-in.md): the template has no social button, so it is the look's
   outline button, the full width of the form, under a rule that reads "or". Google's G mark keeps its own colours. */
.sf-identity-google {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block-start: 1.25rem;
}

.sf-identity-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: var(--sf-ink-muted);
    font-size: var(--sf-text-small);
}

.sf-identity-or::before,
.sf-identity-or::after {
    content: "";
    flex: 1 1 auto;
    border-block-start: 1px solid var(--sf-line);
}

/* Google's light theme for its button (branding guidelines for Sign in with Google): white, a grey edge and dark text
   that stay so on hover, with only a faint wash, so the button keeps reading as Google's. */
.sf-btn-google,
.sf-btn-google:hover {
    inline-size: 100%;
    gap: 0.625rem;
    padding-inline: 0.75rem;
    border-color: var(--sf-google-edge);
    background: var(--sf-surface);
    color: var(--sf-google-ink);
}

.sf-btn-google:hover {
    background: var(--sf-surface-alt);
}

.sf-btn-google-mark {
    flex: 0 0 auto;
    inline-size: 20px;
    block-size: 20px;
}

/* The holder's linked sign-in methods on the security page: what is linked, and the one action beside it. */
.sf-linked-sign-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

/* The sign-up's place step stands above the form, closed off from it by a hairline. */
.sf-register-place {
    margin-block-end: 1.25rem;
    padding-block-end: 0.25rem;
    border-block-end: 1px solid var(--sf-line);
}

/* The typed referrer sits under the referrer choices, a field's space below them. */
.sf-register-referrer {
    margin-block-start: 0.75rem;
}

.sf-identity-other {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.sf-identity-prompt {
    margin: 0;
    font-size: var(--sf-text-block-title);
    font-weight: 700;
}

/* An invited visitor's way to the contest app, under the way back to the sign-in, set off by a rule. */
.sf-register-app {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    inline-size: 100%;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--sf-line);
}

.sf-register-app .sf-field-hint {
    margin: 0;
}

/* The choice to stay signed in at the reading start, the two ways to recover an account at the end. */
.sf-identity-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    font-size: var(--sf-text-small);
}

.sf-identity-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-identity-links li + li {
    margin-block-start: 0.25rem;
}

.sf-identity-foot .sf-meta + .sf-meta {
    margin-block-start: 0.25rem;
}

.sf-identity-foot .sf-meta > span + .sf-text-link {
    margin-inline-start: 0.25rem;
}

/* A secret the page shows once (an authenticator key, recovery codes): a dashed amber frame on the alt
   surface so it reads as something to keep, in large Latin type, with the buttons that copy, save or
   print it under a hairline. The buttons are hidden until store-theme.js can carry them out. */
.sf-secret {
    margin-block: 0 1rem;
    padding: 1rem;
    border: 2px dashed var(--sf-accent-edge);
    background: var(--sf-surface-alt);
}

.sf-secret-value {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sf-secret code {
    color: var(--sf-ink);
    font-size: inherit;
}

.sf-secret-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.0625rem;
    font-weight: 700;
}

.sf-secret-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-block-start: 1rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--sf-line);
}

.sf-secret-actions[hidden] {
    display: none;
}

.sf-secret-status {
    color: var(--sf-positive);
    font-size: var(--sf-text-small);
    font-weight: 700;
}

/* The error and not-found pages: the empty-state frame, its request number in Latin digits. */
.sf-system-page .sf-empty-title {
    font-size: var(--sf-text-page-heading);
}

.sf-system-page .sf-meta {
    margin: 0;
}

.sf-system-page code {
    color: var(--sf-ink);
    overflow-wrap: anywhere;
}

@media print {
    .sf-topbar,
    .sf-header,
    .sf-drawer,
    .sf-drawer-overlay,
    .sf-footer,
    .sf-skip-link,
    .sf-no-print {
        display: none;
    }

    .sf-page {
        padding-block: 0;
    }

    .sf-invoice .sf-box,
    .sf-invoice .sf-data-table th,
    .sf-invoice .sf-data-table td {
        border-color: var(--sf-control-border);
    }

    .sf-secret {
        border-color: var(--sf-ink);
        background: none;
    }
}

/* A warning that must be read before a choice is made: a tinted amber ground, a strong edge at the reading start, dark
   text and the warning triangle. Hidden until its choice is ticked; the stylesheet shows it without the store script, and
   the page draws it shown when the form comes back ticked. */
.sf-warning-panel {
    display: none;
    gap: 0.75rem;
    align-items: flex-start;
    margin-block: 0.75rem 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--sf-warning-edge);
    border-inline-start-width: 4px;
    background: var(--sf-warning-surface);
    color: var(--sf-warning-ink);
}

.sf-agent-choice:has(.sf-check-input:checked) .sf-warning-panel,
.sf-warning-panel.sf-warning-shown {
    display: flex;
}

.sf-agent-choice:has(.sf-check-input:not(:checked)) .sf-warning-panel.sf-warning-shown {
    display: none;
}

.sf-warning-panel-icon {
    display: inline-flex;
    flex: none;
}

.sf-warning-panel-icon .sf-icon {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    fill: none;
    stroke: var(--sf-warning-edge);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf-warning-panel-title {
    margin: 0 0 0.25rem;
    font-size: var(--sf-text-body);
    font-weight: 700;
}

.sf-warning-panel-text {
    margin: 0;
    font-size: var(--sf-text-small);
}

/* An agent applicant never has a referrer: ticking «I am an agent» hides the referrer fields. */
form:has(.sf-agent-choice .sf-check-input:checked) .sf-register-referrer-set {
    display: none;
}

/* Notifications: the customer's own list (owner, 2026-11-30). An unread one carries a tag and an accent edge on its
   start side; each row is the text and, while unread, the form that marks it read. */
.sf-notification-toolbar {
    gap: 12px;
    flex-wrap: wrap;
    margin-block-end: 16px;
}

.sf-notification-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid var(--sf-line);
}

.sf-notification {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-block-end: 1px solid var(--sf-line);
    border-inline-start: 3px solid transparent;
}

.sf-notification:last-child {
    border-block-end: 0;
}

.sf-notification-unread {
    border-inline-start-color: var(--sf-accent);
}

.sf-notification-text {
    flex: 1 1 16rem;
    min-inline-size: 0;
}

.sf-notification-title {
    margin: 0 0 4px;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sf-notification-body {
    margin: 0 0 4px;
}

.sf-notification-time {
    margin: 0;
    color: var(--sf-ink-muted);
    font-size: 0.875rem;
}

.sf-push-offer {
    margin-block: 16px;
}
