/*
 * Storefront pages — product details, cart, checkout and order confirmation,
 * plus the home page trust strip and product spotlight. Everything uses the
 * theme tokens from themes.css, so all themes keep their colours and corners.
 * Prefix: sfx-
 */

:root {
    --sfx-radius: var(--theme-radius-lg, 14px);
    --sfx-radius-sm: var(--theme-radius-md, 10px);
    --sfx-border: var(--theme-color-border, #e5e7eb);
    --sfx-surface: var(--theme-color-surface, #f6f7f9);
    --sfx-card: var(--theme-color-surface-raised, #ffffff);
    --sfx-text: var(--theme-color-text, #111827);
    --sfx-muted: var(--theme-color-text-muted, #6b7280);
    --sfx-primary: var(--theme-color-primary, #0077c0);
    --sfx-primary-soft: var(--theme-color-primary-soft, #e8f3fb);
    --sfx-success: var(--theme-color-success, #1a7f4b);
    --sfx-danger: var(--theme-color-danger, #d72c0d);
    --sfx-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.sfx-page {
    padding-top: 1.25rem;
    padding-bottom: 4rem;
}

.sfx-card {
    padding: clamp(16px, 2.2vw, 24px);
    border: 1px solid var(--sfx-border);
    border-radius: var(--sfx-radius);
    background: var(--sfx-card);
}

.sfx-h1 {
    margin: 0;
    font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
}

.sfx-h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.sfx-muted {
    color: var(--sfx-muted);
}

/* ---------------- Checkout progress ---------------- */

.sfx-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--sfx-muted);
}

.sfx-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sfx-steps li + li::before {
    content: "";
    width: clamp(18px, 6vw, 56px);
    height: 2px;
    border-radius: 2px;
    background: var(--sfx-border);
}

.sfx-steps .sfx-step-dot {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--sfx-border);
    border-radius: 50%;
    background: var(--sfx-card);
    font-weight: 700;
    font-size: 0.8rem;
}

.sfx-steps .is-done,
.sfx-steps .is-current {
    color: var(--sfx-text);
    font-weight: 600;
}

.sfx-steps .is-done + li::before,
.sfx-steps .is-current::before {
    background: var(--sfx-primary);
}

.sfx-steps .is-done .sfx-step-dot {
    border-color: var(--sfx-primary);
    background: var(--sfx-primary);
    color: #fff;
}

.sfx-steps .is-current .sfx-step-dot {
    border-color: var(--sfx-primary);
    color: var(--sfx-primary);
}

/* ---------------- Trust items ---------------- */

.sfx-trust {
    display: grid;
    grid-template-columns: repeat(var(--sfx-trust-cols, 3), minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfx-trust li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-surface);
    font-size: 0.82rem;
    line-height: 1.35;
}

.sfx-trust i {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sfx-card);
    color: var(--sfx-primary);
    font-size: 1.05rem;
}

.sfx-trust strong {
    display: block;
    font-size: 0.85rem;
}

.sfx-trust small {
    color: var(--sfx-muted);
}

/* ---------------- Product details ---------------- */

.sfx-pdp {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: start;
}

.sfx-gallery {
    position: sticky;
    top: 90px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
}

.sfx-gallery.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.sfx-gallery .sf-gallery-main {
    order: 2;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    border-radius: var(--sfx-radius);
    background: var(--sfx-surface);
}

.sfx-gallery .sf-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 200ms ease;
    cursor: zoom-in;
}

.sfx-gallery .sf-gallery-thumbs {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sfx-gallery .thumbnail-btn {
    flex: none;
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-surface);
    cursor: pointer;
}

.sfx-gallery .thumbnail-btn.active {
    border-color: var(--sfx-primary);
}

.sfx-gallery .thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfx-info {
    display: grid;
    gap: 1.1rem;
}

.sfx-brand {
    color: var(--sfx-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.sfx-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.sfx-price {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
    font-weight: 800;
    color: var(--sfx-primary);
    line-height: 1;
}

.sfx-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sfx-pill.is-ok {
    background: rgba(26, 127, 75, 0.1);
    color: var(--sfx-success);
}

.sfx-pill.is-bad {
    background: rgba(215, 44, 13, 0.1);
    color: var(--sfx-danger);
}

.sfx-pill.is-soft {
    background: var(--sfx-surface);
    color: var(--sfx-text);
}

.sfx-cod-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0;
    color: var(--sfx-muted);
    font-size: 0.875rem;
}

.sfx-cod-line i {
    color: var(--sfx-success);
}

.sfx-divider {
    height: 1px;
    margin: 0.25rem 0;
    border: 0;
    background: var(--sfx-border);
}

/* Variant chips (radio buttons that drive #variant-select) */
.sfx-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.sfx-label span {
    color: var(--sfx-muted);
    font-weight: 500;
}

.sfx-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sfx-variant input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sfx-variant span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.4rem 0.95rem;
    border: 1.5px solid var(--sfx-border);
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-card);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.sfx-variant span small {
    color: var(--sfx-muted);
    font-weight: 500;
}

.sfx-variant input:checked + span {
    border-color: var(--sfx-primary);
    box-shadow: 0 0 0 3px var(--sfx-primary-soft);
}

.sfx-variant input:focus-visible + span {
    outline: 2px solid var(--sfx-primary);
    outline-offset: 2px;
}

.sfx-variant input:disabled + span {
    opacity: 0.45;
    text-decoration: line-through;
    cursor: not-allowed;
}

.sfx-variants.is-invalid .sfx-variant span {
    border-color: var(--sfx-danger);
}

/* Quantity + buttons */
.sfx-buy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
}

.sfx-buy .btn-lg {
    min-height: 52px;
    border-radius: var(--theme-button-radius, var(--sfx-radius-sm));
    font-weight: 700;
}

.sfx-buy .sfx-buy-now {
    grid-column: 1 / -1;
}

.sfx-qty {
    display: inline-flex;
    align-items: center;
    height: 52px;
    border: 1.5px solid var(--sfx-border);
    border-radius: var(--theme-button-radius, var(--sfx-radius-sm));
    background: var(--sfx-card);
}

.sfx-qty button {
    width: 42px;
    height: 100%;
    border: 0;
    background: none;
    color: var(--sfx-text);
    font-size: 1.1rem;
    cursor: pointer;
}

.sfx-qty input {
    width: 44px;
    height: 100%;
    border: 0;
    background: none;
    text-align: center;
    font-weight: 700;
    -moz-appearance: textfield;
}

.sfx-qty input::-webkit-outer-spin-button,
.sfx-qty input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* COD order card */
.sfx-order {
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 90px;
}

.sfx-order-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--sfx-primary);
    color: var(--theme-color-text-inverse, #fff);
}

.sfx-order-head i {
    font-size: 1.4rem;
}

.sfx-order-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.sfx-order-head p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.sfx-order-body {
    padding: 1.25rem;
}

.sfx-order-body .form-control,
.sfx-order-body .form-select {
    min-height: 46px;
    border-radius: var(--theme-form-radius, var(--sfx-radius-sm));
}

.sfx-order-body .btn-lg {
    min-height: 52px;
    font-weight: 700;
}

.sfx-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.75rem;
}

/* Description / delivery / returns */
.sfx-details {
    margin-top: clamp(28px, 5vw, 56px);
}

.sfx-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--sfx-border);
}

.sfx-tab {
    flex: none;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--sfx-muted);
    font-weight: 600;
    cursor: pointer;
}

.sfx-tab[aria-selected="true"] {
    border-bottom-color: var(--sfx-primary);
    color: var(--sfx-text);
}

.sfx-panel-text {
    max-width: 820px;
    line-height: 1.85;
}

.sfx-panel-text ul {
    padding-inline-start: 1.2rem;
}

.sfx-related {
    margin-top: clamp(32px, 5vw, 64px);
}

/* ---------------- Cart ---------------- */

.sfx-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.sfx-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfx-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sfx-border);
    transition: opacity 150ms ease;
}

.sfx-line:first-child {
    padding-top: 0;
}

.sfx-line:last-child {
    border-bottom: 0;
}

.sfx-line.is-updating {
    opacity: 0.5;
    pointer-events: none;
}

.sfx-line-img {
    display: block;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-surface);
}

.sfx-line-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfx-line-name {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.sfx-line-name a {
    color: inherit;
    text-decoration: none;
}

.sfx-line-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    color: var(--sfx-muted);
    font-size: 0.82rem;
}

.sfx-line-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.7rem;
}

.sfx-line-controls .sfx-qty {
    height: 40px;
}

.sfx-line-controls .sfx-qty button {
    width: 34px;
}

.sfx-line-controls .sfx-qty input {
    width: 36px;
}

.sfx-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sfx-muted);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sfx-link-btn:hover {
    color: var(--sfx-danger);
}

.sfx-line-total {
    font-weight: 800;
    white-space: nowrap;
}

/* Summary */
.sfx-summary {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 1rem;
}

.sfx-rows {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.sfx-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.sfx-rows dt {
    font-weight: 500;
    color: var(--sfx-muted);
}

.sfx-rows dd {
    margin: 0;
    font-weight: 700;
}

.sfx-rows .sfx-total {
    padding-top: 0.75rem;
    border-top: 1px dashed var(--sfx-border);
}

.sfx-rows .sfx-total dt,
.sfx-rows .sfx-total dd {
    color: var(--sfx-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.sfx-cta {
    min-height: 54px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--theme-button-radius, var(--sfx-radius-sm));
}

.sfx-note {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-surface);
    font-size: 0.85rem;
}

.sfx-note i {
    color: var(--sfx-success);
    font-size: 1.1rem;
}

.sfx-empty {
    max-width: 460px;
    margin: 2rem auto;
    text-align: center;
}

.sfx-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--sfx-surface);
    color: var(--sfx-muted);
    font-size: 2.4rem;
}

/* ---------------- Checkout ---------------- */

.sfx-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 28px;
    align-items: start;
}

.sfx-section + .sfx-section {
    margin-top: 1rem;
}

.sfx-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.sfx-section-title .sfx-num {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sfx-primary);
    color: #fff;
    font-size: 0.8rem;
}

.sfx-checkout .form-control,
.sfx-checkout .form-select {
    min-height: 48px;
    border-radius: var(--theme-form-radius, var(--sfx-radius-sm));
}

.sfx-checkout textarea.form-control {
    min-height: 0;
}

.sfx-checkout .form-label,
.sfx-checkout label.control-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Shipping options rendered by checkout JS */
#shipping-methods-container [role="radiogroup"] {
    display: grid;
    gap: 0.5rem;
}

#shipping-methods-container .shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--sfx-border);
    border-radius: var(--sfx-radius-sm);
    cursor: pointer;
}

#shipping-methods-container .shipping-option:has(input:checked) {
    border-color: var(--sfx-primary);
    background: var(--sfx-primary-soft);
}

.sfx-pay-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--sfx-primary);
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-primary-soft);
}

.sfx-pay-option i {
    color: var(--sfx-success);
    font-size: 1.4rem;
}

.sfx-pay-option small {
    display: block;
    color: var(--sfx-muted);
}

.sfx-mini-lines {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfx-mini-lines li {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.sfx-mini-img {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid var(--sfx-border);
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-surface);
}

.sfx-mini-img img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.sfx-mini-img b {
    position: absolute;
    top: -8px;
    inset-inline-end: -8px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--sfx-muted);
    color: #fff;
    font-size: 0.72rem;
}

.sfx-mini-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Mobile summary toggle */
.sfx-summary-toggle {
    display: none;
}

/* ---------------- Order confirmation ---------------- */

.sfx-done {
    max-width: 820px;
    margin: 0 auto;
}

.sfx-done-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sfx-done-check {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(26, 127, 75, 0.12);
    color: var(--sfx-success);
    font-size: 2.6rem;
    animation: sfx-pop 500ms ease-out both;
}

@keyframes sfx-pop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.sfx-done-number {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--sfx-surface);
    font-weight: 700;
}

.sfx-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfx-timeline li {
    position: relative;
    padding: 1rem;
    border-radius: var(--sfx-radius-sm);
    background: var(--sfx-surface);
    font-size: 0.85rem;
}

.sfx-timeline li.is-current {
    background: var(--sfx-primary-soft);
    box-shadow: inset 0 0 0 1.5px var(--sfx-primary);
}

.sfx-timeline i {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--sfx-primary);
    font-size: 1.4rem;
}

.sfx-timeline strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
}

.sfx-done-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sfx-kv {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.9rem;
}

.sfx-kv dt {
    color: var(--sfx-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.sfx-kv dd {
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.sfx-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.sfx-actions .btn {
    min-height: 48px;
    padding-inline: 1.4rem;
    border-radius: var(--theme-button-radius, var(--sfx-radius-sm));
    font-weight: 700;
}

/* ---------------- Home: trust strip + spotlight ---------------- */

.sfx-home-trust {
    --sfx-trust-cols: 4;
}

.sfx-home-trust .sfx-trust li {
    background: var(--sfx-card);
    border: 1px solid var(--sfx-border);
}

.sfx-spot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(16px, 4vw, 48px);
    align-items: center;
    padding: clamp(16px, 3vw, 36px);
    border-radius: var(--sfx-radius);
    background: var(--sfx-surface);
}

.sfx-spot-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--sfx-radius);
    background: var(--sfx-card);
}

.sfx-spot-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 400ms ease;
}

.sfx-spot-img:hover img {
    transform: scale(1.04);
}

.sfx-spot-body {
    display: grid;
    gap: 0.9rem;
    justify-items: start;
}

.sfx-spot-body .sfx-h1 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
}

.sfx-spot-body p {
    margin: 0;
    color: var(--sfx-muted);
}

.sfx-spot-body .btn {
    min-height: 50px;
    padding-inline: 1.6rem;
    border-radius: var(--theme-button-radius, var(--sfx-radius-sm));
    font-weight: 700;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 991.98px) {
    .sfx-pdp,
    .sfx-cart,
    .sfx-checkout,
    .sfx-spot {
        grid-template-columns: minmax(0, 1fr);
    }

    .sfx-gallery {
        position: static;
        grid-template-columns: minmax(0, 1fr);
    }

    .sfx-gallery .sf-gallery-thumbs {
        order: 3;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sfx-gallery .thumbnail-btn {
        width: 64px;
        height: 64px;
    }

    .sfx-summary {
        position: static;
    }

    /* Checkout: the summary follows the form, collapsed behind a toggle
       showing the total, so "Place order" comes after the fields */
    .sfx-summary-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        border: 0;
        background: none;
        color: var(--sfx-primary);
        font-weight: 700;
    }

    .sfx-summary-toggle strong {
        color: var(--sfx-text);
        font-size: 1.1rem;
    }

    .sfx-checkout .sfx-summary.is-collapsed .sfx-summary-body {
        display: none;
    }

    .sfx-home-trust {
        --sfx-trust-cols: 2;
    }
}

@media (max-width: 575.98px) {
    .sfx-trust {
        --sfx-trust-cols: 1;
    }

    .sfx-home-trust {
        --sfx-trust-cols: 2;
    }

    .sfx-home-trust .sfx-trust li {
        flex-direction: column;
        text-align: center;
    }

    .sfx-fields,
    .sfx-done-grid,
    .sfx-timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .sfx-line {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .sfx-line-img {
        width: 76px;
        height: 76px;
    }

    .sfx-line-total {
        grid-column: 2;
    }

    .sfx-steps .sfx-step-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfx-done-check {
        animation: none;
    }

    .sfx-spot-img img,
    .sfx-gallery .sf-gallery-main img {
        transition: none;
    }
}

/* Field hints (checkout) */
.sfx-page .form-text,
.sfx-page .hint-block {
    margin-top: 0.35rem;
    color: var(--sfx-muted);
    font-size: 0.8rem;
}

.sfx-done-hero .sfx-h1 {
    margin-bottom: 0.5rem;
}
