/* input(101,38): run-time error CSS1019: Unexpected token, found ' '
input(101,38): run-time error CSS1019: Unexpected token, found ' '
input(101,38): run-time error CSS1042: Expected function, found ' '
input(101,38): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(813,36): run-time error CSS1019: Unexpected token, found ' '
input(813,36): run-time error CSS1019: Unexpected token, found ' '
input(813,36): run-time error CSS1042: Expected function, found ' '
input(813,36): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' ' */
/* ==========================================================
   STOREFRONT STATUS PAGES
   404 (page + deleted product), error, payment result and the
   info pages. Uses the Shehrazad Modern tokens when the theme is
   loaded and falls back to the same values when it is not
   (the error page for a server exception uses the blank layout).
   Everything is scoped under .sp so it can't leak into the theme.
   ========================================================== */

.sp {
    --sp-brand: var(--sh-brand, #e2245f);
    --sp-brand-strong: var(--sh-brand-strong, #c3174c);
    --sp-brand-soft: var(--sh-brand-soft, #fde9f0);
    --sp-gold: var(--sh-gold, #b58a3c);
    --sp-ink: var(--sh-ink, #1b1a24);
    --sp-ink-2: var(--sh-ink-2, #44434f);
    --sp-muted: var(--sh-muted, #7d7c89);
    --sp-bg: var(--sh-bg, #f6f6f8);
    --sp-surface: var(--sh-surface, #ffffff);
    --sp-line: var(--sh-line, #ebebf0);
    --sp-line-soft: var(--sh-line-soft, #f3f3f6);
    --sp-ok: #1f8a4c;
    --sp-ok-soft: #e7f6ed;
    --sp-bad: #d93a3a;
    --sp-bad-soft: #fdeceb;
    --sp-radius: 16px;
    --sp-shadow: 0 10px 30px -12px rgba(29, 23, 38, .16), 0 2px 6px rgba(29, 23, 38, .04);
    --sp-font: var(--sh-font, "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif);

    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    font-family: var(--sp-font);
    color: var(--sp-ink);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sp *,
.sp *::before,
.sp *::after {
    box-sizing: border-box;
}

.sp a {
    text-decoration: none;
}

.sp h1,
.sp h2,
.sp h3 {
    font-family: var(--sp-font);
    color: var(--sp-ink);
    margin: 0;
    text-wrap: balance;
}

.sp p {
    margin: 0;
}

/* ---------- Hero card ---------- */
.sp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
    border-radius: 24px;
    background:
        radial-gradient(120% 140% at 100% 0%, var(--sp-brand-soft) 0%, rgba(253, 233, 240, 0) 55%),
        var(--sp-surface);
    border: 1px solid var(--sp-line);
    box-shadow: var(--sp-shadow);
}

.sp-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.sp-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sp-brand-soft);
    color: var(--sp-brand-strong);
    font-size: .82rem;
    font-weight: 600;
}

.sp-title {
    text-transform: none !important;
    letter-spacing: normal;
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
}

.sp-body {
    color: var(--sp-ink-2);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 52ch;
}

.sp-art {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.sp-art svg {
    width: min(100%, 320px);
    height: auto;
}

/* ---------- Search ---------- */
.sp-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 520px;
    margin-top: 4px;
    padding: 6px;
    border: 1px solid var(--sp-line);
    border-radius: 999px;
    background: var(--sp-surface);
    box-shadow: 0 1px 2px rgba(29, 23, 38, .05);
}

.sp-search:focus-within {
    border-color: var(--sp-brand);
    box-shadow: 0 0 0 4px rgba(226, 36, 95, .14);
}

.sp-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 14px;
    font: inherit;
    font-size: .95rem;
    color: var(--sp-ink);
}

.sp-search button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    background: var(--sp-brand);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.sp-search button:hover {
    background: var(--sp-brand-strong);
}

.sp-search svg {
    width: 16px;
    height: 16px;
}

/* ---------- Buttons ---------- */
.sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.sp-btn:focus-visible,
.sp-search button:focus-visible,
.sp-chip:focus-visible {
    outline: 3px solid rgba(226, 36, 95, .35);
    outline-offset: 2px;
}

.sp-btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.sp-btn-primary {
    background: var(--sp-brand);
    color: #fff !important;
}

.sp-btn-primary:hover {
    background: var(--sp-brand-strong);
}

.sp-btn-dark {
    background: var(--sp-ink);
    color: #fff !important;
}

.sp-btn-dark:hover {
    background: #000;
}

.sp-btn-ghost {
    background: var(--sp-surface);
    border-color: var(--sp-line);
    color: var(--sp-ink) !important;
}

.sp-btn-ghost:hover {
    border-color: var(--sp-ink-2);
}

[dir="rtl"] .sp-flip {
    transform: scaleX(-1);
}

/* ---------- Small print ---------- */
.sp-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 4px;
    font-size: .8rem;
    color: var(--sp-muted);
}

.sp-ref code {
    direction: ltr;
    unicode-bidi: isolate;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--sp-line-soft);
    color: var(--sp-ink-2);
    font-size: .75rem;
}

.sp-ref button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--sp-brand);
    font: inherit;
    cursor: pointer;
}

.sp-dev {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--sp-line-soft);
    font-size: .8rem;
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
}

/* ---------- Sections under the hero ---------- */
.sp-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-block[hidden] {
    display: none !important;
}

.sp-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.sp-block-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.sp-block-head a {
    color: var(--sp-brand) !important;
    font-size: .88rem;
    font-weight: 600;
}

.sp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--sp-line);
    background: var(--sp-surface);
    color: var(--sp-ink) !important;
    font-size: .88rem;
}

.sp-chip:hover {
    border-color: var(--sp-brand);
    color: var(--sp-brand) !important;
}

/* Category circles (markup from _shm-category-circles) */
.sp .shm-circles {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.sp .shm-circles li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    color: var(--sp-ink) !important;
    font-size: .82rem;
    font-weight: 500;
    text-align: center;
}

.sp .shm-circle-img {
    display: flex;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #fdeef3;
    transition: transform .25s, box-shadow .25s;
}

.sp .shm-circles li:nth-child(4n + 2) .shm-circle-img { background: #eaf1fb; }
.sp .shm-circles li:nth-child(4n + 3) .shm-circle-img { background: #fbf1e6; }
.sp .shm-circles li:nth-child(4n + 4) .shm-circle-img { background: #eef6f1; }

.sp .shm-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp .shm-circles li a:hover .shm-circle-img {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sp-brand);
}

/* Product cards (markup from _shm-product-cards) */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.sp .shm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    background: var(--sp-surface);
    transition: box-shadow .2s, border-color .2s;
}

.sp .shm-card:hover {
    border-color: transparent;
    box-shadow: var(--sp-shadow);
}

.sp .shm-card.is-skeleton {
    min-height: 250px;
    background: linear-gradient(100deg, var(--sp-line-soft) 40%, #fff 50%, var(--sp-line-soft) 60%) 0 0 / 200% 100%;
    animation: sp-shimmer 1.4s linear infinite;
}

@keyframes sp-shimmer {
    to { background-position: -200% 0; }
}

.sp .shm-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sp-line-soft);
}

.sp .shm-card-media > a:first-child,
.sp .shm-card-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.sp .shm-card-media img {
    object-fit: cover;
}

.sp .shm-card-off {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--sp-brand);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
}

.sp .shm-card-oos {
    position: absolute;
    inset-inline: 6px;
    bottom: 6px;
    padding: 3px;
    border-radius: 4px;
    background: rgba(27, 26, 36, .78);
    color: #fff;
    font-size: .68rem;
    text-align: center;
}

.sp .shm-card-fav {
    position: absolute !important;
    top: 6px;
    inset-inline-end: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--sp-ink-2) !important;
    box-shadow: 0 2px 6px rgba(27, 26, 36, .12);
}

.sp .shm-card-fav svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sp .shm-card-fav.p-fav {
    color: var(--sp-brand) !important;
}

.sp .shm-card-fav.p-fav svg {
    fill: currentColor;
}

.sp .shm-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 8px 2px 2px;
}

.sp .shm-card-name {
    display: block;
    overflow: hidden;
    color: var(--sp-ink) !important;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp .shm-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
}

.sp .shm-card-price b {
    font-size: .88rem;
    font-weight: 700;
}

.sp .shm-card-price del {
    font-size: .7rem;
    color: var(--sp-muted);
}

.sp .shm-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    color: var(--sp-muted);
}

.sp .shm-card-rating .fa-star {
    color: #f5a623;
}

.sp .shm-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.sp .shm-card-sold {
    overflow: hidden;
    font-size: .7rem;
    color: var(--sp-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp .shm-card-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--sp-line);
    border-radius: 8px;
    background: transparent;
    color: var(--sp-ink);
    cursor: pointer;
}

.sp .shm-card-cart:hover {
    background: var(--sp-brand);
    border-color: var(--sp-brand);
    color: #fff;
}

.sp .shm-card-cart svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Result pages (payment) ---------- */
.sp-result {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 32px;
    border-radius: 24px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    box-shadow: var(--sp-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.sp-result-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
}

.sp-result-icon svg {
    width: 38px;
    height: 38px;
}

.sp-result-icon.is-ok {
    background: var(--sp-ok-soft);
    color: var(--sp-ok);
}

.sp-result-icon.is-bad {
    background: var(--sp-bad-soft);
    color: var(--sp-bad);
}

.sp-result-icon.is-neutral {
    background: var(--sp-brand-soft);
    color: var(--sp-brand);
}

.sp-result .sp-body {
    margin: 0 auto;
}

.sp-result .sp-actions {
    justify-content: center;
}

.sp-facts {
    width: 100%;
    display: grid;
    gap: 0;
    margin-top: 6px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    overflow: hidden;
    text-align: start;
}

.sp-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: .92rem;
}

.sp-facts > div + div {
    border-top: 1px solid var(--sp-line);
}

.sp-facts dt {
    color: var(--sp-muted);
}

.sp-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: end;
    overflow-wrap: anywhere;
}

.sp-points {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sp-points li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sp-line-soft);
    color: var(--sp-ink-2);
    font-size: .82rem;
}

.sp-points svg {
    width: 14px;
    height: 14px;
    color: var(--sp-ok);
}

.sp-help {
    font-size: .85rem;
    color: var(--sp-muted);
}

.sp-help a {
    color: var(--sp-brand) !important;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .sp {
        padding: 18px 14px 48px;
        gap: 22px;
    }

    .sp-hero {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 18px;
        text-align: center;
    }

    .sp-art {
        order: -1;
    }

    .sp-art svg {
        width: min(42%, 140px);
    }

    .sp-eyebrow {
        align-self: center;
    }

    .sp-body {
        margin: 0 auto;
    }

    .sp-search {
        margin-inline: auto;
    }

    .sp-actions {
        justify-content: center;
    }

    .sp-ref {
        justify-content: center;
    }

    .sp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sp .shm-circles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sp .shm-circle-img {
        width: 60px;
        height: 60px;
    }

    .sp-result {
        padding: 28px 18px;
    }
}

@media (max-width: 380px) {
    .sp-btn {
        width: 100%;
    }

    .sp .shm-circles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp *,
    .sp *::before,
    .sp *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Search: no results ---------- */
.sp.sp-empty-wrap {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    padding: 12px 0 24px;
}

.sp-empty {
    max-width: 620px;
    box-shadow: none;
}

.sp-empty .sp-title {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
    overflow-wrap: anywhere;
}

/* ---------- Info pages (/page/...) ---------- */
.sp.sp-info {
    gap: 22px;
}

.sp-info-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 32px;
    border-radius: 20px;
    background:
        radial-gradient(90% 160% at 100% 0%, var(--sp-brand-soft) 0%, rgba(253, 233, 240, 0) 60%),
        var(--sp-surface);
    border: 1px solid var(--sp-line);
}

.sp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .82rem;
    color: var(--sp-muted);
}

.sp-crumbs a {
    color: var(--sp-muted) !important;
}

.sp-crumbs a:hover {
    color: var(--sp-brand) !important;
}

.sp-info-note {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sp-line-soft);
    color: var(--sp-ink-2);
    font-size: .82rem;
}

.sp-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sp-info-layout.has-toc {
    grid-template-columns: 260px minmax(0, 1fr);
}

.sp-toc {
    position: sticky;
    top: 96px;
    padding: 16px;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    background: var(--sp-surface);
    font-size: .85rem;
}

.sp-toc[hidden] {
    display: none !important;
}

.sp-toc summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.sp-toc summary::-webkit-details-marker {
    display: none;
}

.sp-toc ol {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 2px;
    max-height: 60vh;
    overflow: auto;
}

.sp-toc a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--sp-ink-2) !important;
    line-height: 1.5;
}

.sp-toc a:hover {
    background: var(--sp-brand-soft);
    color: var(--sp-brand-strong) !important;
}

.sp-toc li.is-sub a {
    padding-inline-start: 22px;
    font-size: .8rem;
    color: var(--sp-muted) !important;
}

/* CMS content: soft defaults with zero specificity, so the admin's own page CSS still wins. */
.sp-doc {
    min-width: 0;
    padding: 32px 36px;
    border: 1px solid var(--sp-line);
    border-radius: 20px;
    background: var(--sp-surface);
    color: var(--sp-ink-2);
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.sp-doc :where(h1, h2, h3, h4) {
    color: var(--sp-ink);
    line-height: 1.4;
    margin: 1.6em 0 .5em;
    scroll-margin-top: 110px;
}

.sp-doc :where(h1) { font-size: 1.6rem; }
.sp-doc :where(h2) { font-size: 1.3rem; }
.sp-doc :where(h3) { font-size: 1.1rem; }
.sp-doc :where(h4) { font-size: 1rem; }

.sp-doc > :where(:first-child),
.sp-doc > :where(:first-child) > :where(:first-child) {
    margin-top: 0;
}

.sp-doc :where(p) {
    margin: 0 0 1em;
}

.sp-doc :where(ul, ol) {
    margin: 0 0 1em;
    padding-inline-start: 1.4em;
}

.sp-doc :where(li) {
    margin-bottom: .35em;
}

.sp-doc :where(a) {
    color: var(--sp-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sp-doc :where(img) {
    max-width: 100%;
    height: auto;
}

.sp-doc :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.sp-doc .sp-dup-title {
    display: none;
}

/* ---------- Contact page ---------- */
.sp-info-lead {
    color: var(--sp-ink-2);
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: 60ch;
}

.sp-cf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.sp-cf-card {
    padding: 32px;
    border-radius: 20px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    box-shadow: var(--sp-shadow);
}

.sp-cf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sp-cf-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
}

.sp-cf-head p {
    margin-top: 4px;
    color: var(--sp-muted);
    font-size: .88rem;
}

.sp-cf-topics {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.sp-cf-topics legend,
.sp-cf-field label {
    display: block;
    margin-bottom: 8px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--sp-ink);
    float: none;
    width: auto;
    padding: 0;
}

.sp-cf-field label b {
    color: var(--sp-brand);
    font-weight: 700;
}

.sp-cf-opt {
    color: var(--sp-muted);
    font-weight: 400;
    font-size: .82rem;
}

.sp-cf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-cf-chip {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.sp-cf-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp-cf-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--sp-line);
    background: var(--sp-surface);
    color: var(--sp-ink-2);
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .15s, background .15s, color .15s;
}

.sp-cf-chip:hover span {
    border-color: var(--sp-brand);
}

.sp-cf-chip input:checked + span {
    border-color: var(--sp-brand);
    background: var(--sp-brand-soft);
    color: var(--sp-brand-strong);
    font-weight: 600;
}

.sp-cf-chip input:focus-visible + span {
    outline: 2px solid var(--sp-brand);
    outline-offset: 2px;
}

.sp-cf-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sp-cf-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp .sp-cf-field input,
.sp .sp-cf-field textarea {
    width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dcdce3;
    border-radius: 12px;
    background: #fbfbfc;
    color: var(--sp-ink);
    font: inherit;
    font-size: 1rem;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.sp .sp-cf-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.sp .sp-cf-field input[dir="ltr"] {
    text-align: start;
}

.sp .sp-cf-field input:focus,
.sp .sp-cf-field textarea:focus {
    outline: none;
    border-color: var(--sp-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(226, 36, 95, .12);
}

.sp-cf-err {
    display: none;
    margin-top: 6px;
    color: var(--sp-bad);
    font-size: .82rem;
}

.sp-cf-field.is-bad input,
.sp-cf-field.is-bad textarea {
    border-color: var(--sp-bad) !important;
    background: #fff;
}

.sp-cf-field.is-bad .sp-cf-err {
    display: block;
}

.sp-cf-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sp-cf-count {
    margin-top: 6px;
    margin-inline-start: auto;
    color: var(--sp-muted);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.sp-cf-fail {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sp-bad-soft);
    color: var(--sp-bad);
    font-size: .9rem;
}

.sp-cf-send {
    align-self: flex-start;
    min-width: 200px;
    gap: 10px;
}

.sp-cf-spin {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sp-spin .7s linear infinite;
}

.sp-cf-send.is-busy .sp-cf-spin {
    display: inline-block;
}

.sp-cf-send:disabled {
    opacity: .8;
    cursor: progress;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

.sp-cf-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    text-align: center;
    outline: none;
}

.sp-cf-done h2 {
    font-size: 1.35rem;
}

.sp-cf-done p {
    color: var(--sp-ink-2);
    max-width: 44ch;
    line-height: 1.8;
}

.sp-cf-done[hidden],
.sp-cf-form[hidden] {
    display: none;
}

.sp-cf-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: 20px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    position: sticky;
    top: 110px;
}

.sp-cf-side h2 {
    font-size: 1.02rem;
    font-weight: 700;
}

.sp-cf-help {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-cf-help a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--sp-line-soft);
    background: #fbfbfc;
    color: var(--sp-ink) !important;
    transition: border-color .15s, background .15s;
}

.sp-cf-help a:hover {
    border-color: var(--sp-brand);
    background: #fff;
}

.sp-cf-help-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sp-brand-soft);
    color: var(--sp-brand);
}

.sp-cf-help-icon svg {
    width: 20px;
    height: 20px;
}

.sp-cf-help-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    font-size: .8rem;
    color: var(--sp-muted);
}

.sp-cf-help-text b {
    color: var(--sp-ink);
    font-size: .94rem;
    font-weight: 600;
}

.sp-cf-help-arrow {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--sp-muted);
}

[dir="rtl"] .sp-cf-help-arrow {
    transform: scaleX(-1);
}

.sp-cf-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    color: var(--sp-muted);
    font-size: .85rem;
}

.sp-cf-note svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--sp-ok);
}

@media (max-width: 960px) {
    .sp-cf {
        grid-template-columns: minmax(0, 1fr);
    }

    .sp-cf-side {
        position: static;
    }
}

@media (max-width: 560px) {
    .sp-cf-card {
        padding: 22px 16px;
    }

    .sp-cf-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .sp-cf-send {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-cf-spin {
        animation-duration: 2s;
    }
}

@media (max-width: 860px) {
    .sp-info-head {
        padding: 22px 18px;
    }

    .sp-info-layout.has-toc {
        grid-template-columns: minmax(0, 1fr);
    }

    .sp-toc {
        position: static;
    }

    .sp-doc {
        padding: 22px 18px;
    }
}
