/* ==========================================================================
   Custom order (Widgets.CustomOrder) - storefront pages
   --------------------------------------------------------------------------
   Mobile first. The accent is the theme's own primary (--ryan-primary, set by
   _Root.Head from the admin colour), unless the plugin settings pick another,
   which the views pass in as --co-accent / --co-accent-rgb.

   Type floor, on purpose: body 15px, anything typed into 16px (iOS zooms into
   smaller inputs), helper text 13px, nothing smaller.

   The recurring motif is the stitch: the progress thread, the inner outline of
   a chosen card, the upload box and the tracking code are all dashed "seams".
   ========================================================================== */

.co {
    --co-accent: var(--ryan-primary, #007ad0);
    --co-accent-rgb: var(--ryan-primary-rgb, 0, 122, 208);
    --co-ink: #1F2226;
    --co-text: #33373B;
    --co-muted: #5F6469;
    --co-placeholder: #767B80;
    --co-line: #E4E1DD;
    --co-line-strong: #CFCBC6;
    --co-surface: #FFFFFF;
    --co-subtle: #F7F5F2;
    --co-subtle-2: #EFEBE5;
    --co-danger: #C2312C;
    --co-danger-rgb: 194, 49, 44;
    --co-danger-bg: #FDF1F0;
    --co-radius: 16px;
    --co-radius-sm: 12px;
    --co-shadow: 0 1px 2px rgba(31, 34, 38, 0.04), 0 10px 28px rgba(31, 34, 38, 0.07);
    --co-safe-bottom: 0px;
    position: relative;
    margin: 8px 0 40px;
    color: var(--co-text);
    font-family: yekanbakh, tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    text-align: right;
}

.co *,
.co *::before,
.co *::after {
    box-sizing: border-box;
}

.co h1, .co h2, .co h3, .co p, .co dl, .co dd, .co figure, .co fieldset, .co legend {
    margin: 0;
    padding: 0;
}

.co ul, .co ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.co fieldset {
    border: 0;
    min-width: 0;
}

.co button {
    font-family: inherit;
}

.co svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.co a {
    color: inherit;
}

.co [hidden] {
    display: none !important;
}

/* The native control stays in the DOM for keyboard, screen readers and submit; its styled face follows it. */
.co-type input,
.co-chip input,
.co-material input,
.co-color input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* clipped in place, not pushed off-screen: in an RTL page an element at left:-9999px widens the page to the left */
.co-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.co-only-desktop {
    display: none;
}

.co-link {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--co-accent);
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Breadcrumb: the category page's (body.page-category rules in the theme),
   restated for this page because the theme scopes them by page class.
   -------------------------------------------------------------------------- */

@media only screen and (min-width: 960px) {
    /* the category page's breadcrumb sits right under the header, without its 32px margin */
    body.page-custom-order #vp-header {
        margin-bottom: 0;
    }

    body.page-custom-order .navCategory {
        margin: 0 0 0 24px;
        padding-top: 16px;
    }

    body.page-custom-order .navCategory .vp-breadcrumb {
        padding-right: 0;
    }
}

@media only screen and (max-width: 959px) {
    /* a white strip edge to edge, like the category page; .size is 98% wide here */
    html body.page-custom-order .navCategory {
        margin: 0 calc((100% - 100vw) / 2);
        padding: 0;
        background: #fff;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    body.page-custom-order .navCategory .vp-breadcrumb {
        display: block;
        margin: 0;
        padding: 0;
    }

    body.page-custom-order .navCategory .vp-breadcrumb.after-clear::after,
    body.page-custom-order .navCategory .vp-breadcrumb ul li::before,
    body.page-custom-order .navCategory .vp-breadcrumb ul li .mx-3 {
        display: none;
    }

    body.page-custom-order .navCategory .vp-breadcrumb ul {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 24px 16px 13px 8px;
        list-style: none;
    }

    body.page-custom-order .navCategory .vp-breadcrumb ul li {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        position: relative;
        margin: 0;
        padding: 0;
        line-height: 20px;
        white-space: nowrap;
    }

    body.page-custom-order .navCategory .vp-breadcrumb ul li > a {
        display: inline-block;
        margin: 0;
        padding: 0 0 2px;
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
        color: #5f6368;
        text-decoration: none;
        border-bottom: 1px solid #dadce0;
    }

    body.page-custom-order .navCategory .vp-breadcrumb ul li > a > span:not(.mx-3) {
        display: inline;
        margin: 0;
        padding: 0;
        font: inherit;
        color: inherit;
        border: 0;
    }

    body.page-custom-order .navCategory .vp-breadcrumb ul li:not(:last-child)::after {
        content: "";
        flex: 0 0 auto;
        width: 5px;
        height: 5px;
        margin: 0 9px;
        position: relative;
        top: -1px;
        border-top: 1.4px solid #b6bac1;
        border-left: 1.4px solid #b6bac1;
        transform: rotate(-45deg);
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.co-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 12px 0 20px;
}

/* grid items default to min-width:auto, which lets the no-wrap promise row widen the page */
.co-hero__text {
    min-width: 0;
}

.co-hero__eyebrow {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px !important;
    color: var(--co-accent);
    font-size: 14px;
    font-weight: 700;
}

.co-hero__eyebrow::before {
    content: "";
    width: 28px;
    border-top: 2px dashed currentColor;
}

.co .co-hero__title {
    display: block;
    color: var(--co-ink);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.45;
    text-wrap: balance;
}

.co-hero__lead {
    max-width: 58ch;
    margin-top: 10px !important;
    color: var(--co-muted);
    font-size: 15px;
    line-height: 1.9;
}

.co-hero__promises {
    display: flex;
    gap: 8px;
    margin: 16px 0 0 !important;
    padding: 0 0 4px !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.co-hero__promises::-webkit-scrollbar {
    display: none;
}

.co-hero__promises li {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 14px;
    border-radius: 999px;
    background: var(--co-subtle);
    color: var(--co-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.co-hero__promises svg {
    width: 18px;
    height: 18px;
    color: var(--co-accent);
}

.co-hero__visual {
    display: none;
}

/* Fabric still life, used when no hero photo is configured */
.co-swatches {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
}

.co-swatch {
    position: absolute;
    display: block;
    width: 46%;
    height: 78%;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(31, 34, 38, 0.14);
}

.co-swatch::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    border-radius: 9px;
}

.co-swatch--1 {
    top: 6%;
    right: 6%;
    transform: rotate(4deg);
}

.co-swatch--1::after {
    border-color: rgba(90, 70, 40, 0.28);
}

.co-swatch--2 {
    top: 14%;
    right: 30%;
    transform: rotate(-5deg);
}

.co-swatch--3 {
    top: 20%;
    right: 52%;
    transform: rotate(7deg);
}

.co-swatch--3::after {
    border-color: rgba(90, 70, 40, 0.3);
}

.co-tape {
    position: absolute;
    right: 2%;
    bottom: 6%;
    left: 4%;
    height: 30px;
    border-radius: 4px;
    background: #EAD9AE;
    box-shadow: 0 8px 18px rgba(31, 34, 38, 0.12);
    transform: rotate(-3deg);
    overflow: hidden;
}

.co-tape span {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(70, 55, 25, 0.55) 0 1px, transparent 1px 40px) 0 0 / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, rgba(70, 55, 25, 0.45) 0 1px, transparent 1px 8px) 0 0 / 100% 7px no-repeat;
}

.co-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 340px;
    border-radius: 20px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Fabric textures (material cards and the hero still life)
   -------------------------------------------------------------------------- */

.co-tex {
    background-color: #EDE7DC;
}

.co-tex--linen {
    background-color: #E7DECF;
    background-image:
        repeating-linear-gradient(0deg, rgba(60, 45, 20, 0.05) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(60, 45, 20, 0.045) 0 1px, transparent 1px 4px);
}

.co-tex--velvet {
    background-color: #6F3E49;
    background-image:
        radial-gradient(120% 90% at 28% 18%, rgba(255, 255, 255, 0.26), transparent 55%),
        linear-gradient(160deg, #7C4652, #4B2830);
}

.co-tex--satin {
    background-color: #E6DFE9;
    background-image: linear-gradient(115deg, #E4DDE8 0%, #FFFFFF 22%, #D6CEDC 42%, #F5F1F7 62%, #CCC3D3 100%);
}

.co-tex--jute {
    background-color: #C8A776;
    background-image:
        repeating-linear-gradient(0deg, rgba(80, 55, 20, 0.2) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(90deg, rgba(80, 55, 20, 0.16) 0 2px, transparent 2px 6px);
}

.co-tex--jacquard {
    background-color: #D7CDB3;
    background-image:
        repeating-linear-gradient(45deg, rgba(120, 95, 50, 0.24) 0 2px, transparent 2px 12px),
        repeating-linear-gradient(-45deg, rgba(120, 95, 50, 0.24) 0 2px, transparent 2px 12px);
}

.co-tex--cotton {
    background-color: #F3EFE8;
    background-image: radial-gradient(rgba(60, 45, 20, 0.08) 1px, transparent 1.3px);
    background-size: 6px 6px;
}

.co-tex--wicker {
    background-color: #D5B889;
    background-image:
        linear-gradient(90deg, rgba(90, 60, 20, 0.2) 50%, transparent 50%),
        linear-gradient(rgba(90, 60, 20, 0.12) 50%, transparent 50%);
    background-size: 10px 10px;
}

/* --------------------------------------------------------------------------
   Wizard frame
   -------------------------------------------------------------------------- */

.co-wizard {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.co-wizard__main {
    min-width: 0;
    /* room for the fixed step bar on phones */
    padding-bottom: 96px;
}

.co-aside {
    display: none;
}

/* --------------------------------------------------------------------------
   Stepper
   -------------------------------------------------------------------------- */

.co-stepper {
    position: relative;
    margin-bottom: 24px;
}

.co-stepper__count {
    margin-bottom: 10px !important;
    color: var(--co-muted);
    font-size: 14px;
}

.co-stepper__count b {
    color: var(--co-ink);
    font-weight: 700;
}

.co-stepper__list {
    display: none !important;
}

/* The thread: a dashed seam, sewn solid up to the current step. */
.co-thread {
    position: relative;
    height: 3px;
    border-radius: 3px;
    background: repeating-linear-gradient(to left, var(--co-line-strong) 0 7px, transparent 7px 12px);
}

.co-thread span {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    border-radius: 3px;
    background: var(--co-accent);
    transition: width 0.45s ease;
}

.co-draft {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    margin-bottom: 20px !important;
    padding: 10px 14px;
    border-radius: var(--co-radius-sm);
    background: var(--co-subtle);
    color: var(--co-text);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.co-step {
    animation: co-step-in 0.28s ease both;
}

@keyframes co-step-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.co-step__head {
    margin-bottom: 20px;
}

.co-step__title {
    color: var(--co-ink);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    outline: none;
}

.co-step__lead {
    margin-top: 6px !important;
    color: var(--co-muted);
    font-size: 15px;
    line-height: 1.8;
}

.co-block {
    margin-top: 28px;
}

.co-grid-2 {
    display: grid;
    gap: 18px;
}

/* --------------------------------------------------------------------------
   Product type cards
   -------------------------------------------------------------------------- */

.co-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.co-types > .co-field__error {
    grid-column: 1 / -1;
}

.co-type {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.co-type__face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    min-height: 150px;
    padding: 20px 10px 16px;
    border: 1.5px solid var(--co-line);
    border-radius: var(--co-radius);
    background: var(--co-surface);
    text-align: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.co-type:hover .co-type__face {
    border-color: var(--co-line-strong);
    box-shadow: var(--co-shadow);
}

.co-type__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--co-subtle);
    color: var(--co-ink);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.co-type__media svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.co-type__media img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.co-type__name {
    color: var(--co-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
}

.co-type__desc {
    color: var(--co-muted);
    font-size: 13px;
    line-height: 1.65;
}

.co-type__check {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 50%;
    background: var(--co-surface);
    color: #FFFFFF;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.co-type__check svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.6;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.co-type input:checked + .co-type__face {
    border-color: var(--co-accent);
    background: rgba(var(--co-accent-rgb), 0.045);
}

/* the chosen card is "sewn": a dashed seam just inside its edge */
.co-type input:checked + .co-type__face::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px dashed rgba(var(--co-accent-rgb), 0.42);
    border-radius: 11px;
    pointer-events: none;
}

.co-type input:checked + .co-type__face .co-type__media {
    background: rgba(var(--co-accent-rgb), 0.12);
    color: var(--co-accent);
}

.co-type input:checked + .co-type__face .co-type__check {
    border-color: var(--co-accent);
    background: var(--co-accent);
}

.co-type input:checked + .co-type__face .co-type__check svg {
    opacity: 1;
    transform: none;
}

.co-type input:focus-visible + .co-type__face,
.co-chip input:focus-visible + .co-chip__face,
.co-material input:focus-visible + .co-material__face {
    outline: 2px solid var(--co-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Groups (one per chosen product type) and fields
   -------------------------------------------------------------------------- */

.co-group {
    margin: 0 0 16px !important;
    padding: 18px 16px 20px !important;
    border: 1px solid var(--co-line) !important;
    border-radius: 18px;
    background: var(--co-surface);
}

.co-group__head {
    display: flex !important;
    float: right;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px !important;
    color: var(--co-ink);
    font-size: 17px;
    font-weight: 800;
}

.co-group__head + * {
    clear: both;
}

.co-group__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--co-accent-rgb), 0.1);
    color: var(--co-accent);
}

.co-group__icon svg {
    width: 22px;
    height: 22px;
}

.co-group__fields {
    display: grid;
    gap: 22px;
}

.co-group__empty {
    color: var(--co-muted);
    font-size: 14.5px;
}

.co-field {
    position: relative;
    min-width: 0;
}

.co-field__label {
    display: block;
    margin: 0 0 8px;
    color: var(--co-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.co-field__optional {
    color: var(--co-muted);
    font-size: 13px;
    font-weight: 500;
}

.co-field__help {
    margin: -2px 0 10px !important;
    color: var(--co-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.co-field__error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px !important;
    color: var(--co-danger);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.co-field__error::before {
    content: "!";
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--co-danger);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.co-input {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 52px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: var(--co-radius-sm);
    background: var(--co-surface);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-input:focus-within {
    border-color: var(--co-accent);
    box-shadow: 0 0 0 4px rgba(var(--co-accent-rgb), 0.14);
}

.co .co-input input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--co-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.co .co-input input[dir="ltr"] {
    text-align: left;
}

.co .co-input input::placeholder,
.co .co-textarea::placeholder {
    color: var(--co-placeholder);
    opacity: 1;
}

.co-input__unit {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid var(--co-line);
    background: var(--co-subtle);
    color: var(--co-muted);
    font-size: 14px;
    white-space: nowrap;
}

.co-input--short {
    max-width: 280px;
}

.co-field.is-invalid .co-input,
.co-field.is-invalid .co-textarea {
    border-color: var(--co-danger);
    box-shadow: 0 0 0 4px rgba(var(--co-danger-rgb), 0.1);
}

.co-field.is-invalid .co-chip__face,
.co-field.is-invalid .co-type__face {
    border-color: rgba(var(--co-danger-rgb), 0.55);
}

.co .co-textarea {
    display: block;
    width: 100%;
    min-height: 124px;
    margin: 0;
    padding: 12px 14px 30px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: var(--co-radius-sm);
    outline: 0;
    background: var(--co-surface);
    box-shadow: none;
    color: var(--co-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co .co-textarea:focus {
    border-color: var(--co-accent);
    box-shadow: 0 0 0 4px rgba(var(--co-accent-rgb), 0.14);
}

.co-textarea-wrap {
    position: relative;
}

.co-counter {
    position: absolute;
    bottom: 8px;
    left: 14px;
    color: var(--co-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

/* dimensions: the axes side by side, even on a phone */
.co-dims {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.co-dims__axis {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.co-dims__name {
    display: block;
    margin-bottom: 6px;
    color: var(--co-muted);
    font-size: 14px;
    font-weight: 600;
}

.co-dims__times {
    padding-bottom: 13px;
    color: var(--co-muted);
    font-size: 18px;
}

.co-dims .co-input__unit {
    padding: 0 10px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Chips (single and multiple choice)
   -------------------------------------------------------------------------- */

.co-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.co-chip {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.co-chip__face {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 999px;
    background: var(--co-surface);
    color: var(--co-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.co-chip:hover .co-chip__face {
    border-color: var(--co-muted);
}

.co-chip__face svg {
    width: 18px;
    height: 18px;
}

.co-chip__tick {
    width: 0 !important;
    stroke-width: 2.6 !important;
    color: var(--co-accent);
    transition: width 0.15s ease;
}

.co-chip input:checked + .co-chip__face {
    border-color: var(--co-accent);
    background: rgba(var(--co-accent-rgb), 0.08);
    box-shadow: inset 0 0 0 1px var(--co-accent);
    color: var(--co-ink);
}

.co-chip input:checked + .co-chip__face .co-chip__tick {
    width: 16px !important;
}

.co-chips--icons .co-chip input:checked + .co-chip__face svg {
    color: var(--co-accent);
}

/* --------------------------------------------------------------------------
   Materials
   -------------------------------------------------------------------------- */

.co-materials {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 2px 0 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.co-materials::-webkit-scrollbar {
    display: none;
}

.co-material {
    position: relative;
    flex: 0 0 136px;
    margin: 0;
    scroll-snap-align: start;
    cursor: pointer;
}

.co-material__face {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1.5px solid var(--co-line);
    border-radius: 14px;
    background: var(--co-surface);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-material__swatch {
    position: relative;
    display: block;
    height: 80px;
}

.co-material__swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.co-material__name {
    padding: 10px 12px 0;
    color: var(--co-ink);
    font-size: 15px;
    font-weight: 700;
}

.co-material__desc {
    padding: 2px 12px 12px;
    color: var(--co-muted);
    font-size: 13px;
    line-height: 1.6;
}

.co-material input:checked + .co-material__face {
    border-color: var(--co-accent);
    box-shadow: 0 0 0 3px rgba(var(--co-accent-rgb), 0.14);
}

.co-material input:checked + .co-material__face .co-material__swatch::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(255, 255, 255, 0.85);
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Colours
   -------------------------------------------------------------------------- */

.co-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 6px;
}

.co-color {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 64px;
    margin: 0;
    cursor: pointer;
}

.co-color__dot {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--co-dot);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.co-color__dot.is-light {
    box-shadow: inset 0 0 0 1px rgba(31, 34, 38, 0.16);
}

.co-color__dot--wheel {
    background: conic-gradient(#E4572E, #F3A712, #A8C686, #29A19C, #3E6DB5, #9B5DE5, #E4572E);
}

.co-color__name {
    color: var(--co-text);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.co-color:hover .co-color__dot {
    transform: scale(1.06);
}

.co-color input:checked + .co-color__dot {
    box-shadow: 0 0 0 3px var(--co-surface), 0 0 0 5px var(--co-accent);
}

.co-color input:checked ~ .co-color__name {
    color: var(--co-ink);
    font-weight: 700;
}

.co-color input:focus-visible + .co-color__dot {
    outline: 2px solid var(--co-accent);
    outline-offset: 6px;
}

.co-custom-color {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--co-radius-sm);
    background: var(--co-subtle);
}

.co-custom-color__pick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--co-ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.co .co-custom-color input[type="color"] {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--co-surface);
    border-radius: 50%;
    background: none;
    box-shadow: 0 0 0 1px var(--co-line-strong);
    cursor: pointer;
}

.co-custom-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.co-custom-color input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 50%;
}

.co-custom-color__value {
    color: var(--co-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Photos
   -------------------------------------------------------------------------- */

.co-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 28px 16px;
    border: 2px dashed var(--co-line-strong);
    border-radius: 18px;
    background: var(--co-subtle);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.co-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.co-drop:hover,
.co-drop.is-over {
    border-color: var(--co-accent);
    background: rgba(var(--co-accent-rgb), 0.05);
}

.co-drop:focus-within {
    outline: 2px solid var(--co-accent);
    outline-offset: 3px;
}

.co-drop__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--co-surface);
    box-shadow: var(--co-shadow);
    color: var(--co-accent);
}

.co-drop__icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.co-drop__title {
    color: var(--co-ink);
    font-size: 16px;
    font-weight: 700;
}

.co-drop__hint {
    color: var(--co-muted);
    font-size: 13.5px;
}

.co-previews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.co-previews:empty {
    display: none;
}

.co-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: var(--co-subtle);
    overflow: hidden;
}

.co-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.co-preview__remove {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(24, 26, 29, 0.66);
    color: #FFFFFF;
    cursor: pointer;
}

.co-preview__remove::before {
    content: "";
    position: absolute;
    inset: -5px;
}

.co-preview__remove svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.co-preview.is-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
}

.co-previews__count {
    margin-top: 10px !important;
    color: var(--co-muted);
    font-size: 14px;
}

.co-step[data-co-step="3"] > .co-field + .co-field {
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Contact + review
   -------------------------------------------------------------------------- */

.co-step[data-co-step="4"] > .co-field {
    margin-top: 26px;
}

.co-review {
    margin-top: 30px;
    padding: 18px 16px;
    border-radius: 18px;
    background: var(--co-subtle);
}

.co-review__title {
    margin-bottom: 8px !important;
    color: var(--co-ink);
    font-size: 17px;
    font-weight: 800;
}

.co-review__section {
    padding: 14px 0;
    border-top: 1px dashed var(--co-line-strong);
}

.co-review__section:first-child {
    border-top: 0;
    padding-top: 4px;
}

.co-review__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.co-review__name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--co-ink);
    font-size: 15.5px;
    font-weight: 700;
}

.co-review__name .co-group__icon {
    width: 32px;
    height: 32px;
}

.co-review__name .co-group__icon svg {
    width: 19px;
    height: 19px;
}

.co-review__edit {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--co-accent);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}

.co-review__edit:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.co-review__list,
.co-summary__list {
    display: grid;
    gap: 4px;
}

.co-review__list div,
.co-summary__list div {
    display: flex;
    gap: 8px;
    font-size: 14.5px;
    line-height: 1.7;
}

.co-review__list dt,
.co-summary__list dt {
    flex: 0 0 auto;
    color: var(--co-muted);
}

.co-review__list dt::after,
.co-summary__list dt::after {
    content: ":";
}

.co-review__list dd,
.co-summary__list dd {
    min-width: 0;
    color: var(--co-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.co-review__muted {
    color: var(--co-muted);
    font-size: 14.5px;
}

.co-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--co-dot);
    box-shadow: inset 0 0 0 1px rgba(31, 34, 38, 0.18);
    vertical-align: -2px;
}

.co-form-error {
    margin-top: 20px !important;
    padding: 12px 14px;
    border-radius: var(--co-radius-sm);
    background: var(--co-danger-bg);
    color: var(--co-danger);
    font-size: 15px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.co-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.co-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.co-btn:active {
    transform: translateY(1px);
}

.co-btn:focus-visible {
    outline: 2px solid var(--co-accent);
    outline-offset: 3px;
}

.co .co-btn--primary,
.co .co-btn--primary:hover,
.co .co-btn--primary:focus {
    background: var(--co-accent);
    color: #FFFFFF;
}

.co-btn--primary {
    box-shadow: 0 6px 16px rgba(var(--co-accent-rgb), 0.24);
}

.co-btn--primary:hover {
    filter: brightness(0.94);
}

.co .co-btn--ghost {
    background: transparent;
    color: var(--co-ink);
}

.co .co-btn--ghost:hover {
    background: var(--co-subtle);
    color: var(--co-ink);
}

.co .co-btn--outline {
    border: 1.5px solid var(--co-line-strong);
    background: var(--co-surface);
    color: var(--co-ink);
}

.co .co-btn--outline:hover {
    border-color: var(--co-muted);
    color: var(--co-ink);
}

.co-btn--sm {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
}

.co-btn[disabled] {
    cursor: default;
    opacity: 0.7;
}

.co-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: co-spin 0.8s linear infinite;
}

.co-btn.is-busy .co-btn__spinner {
    display: inline-block;
}

@keyframes co-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------------------------------
   Step navigation: a fixed bar on phones, the foot of the form on desktop
   -------------------------------------------------------------------------- */

.co-nav {
    position: fixed;
    right: 0;
    bottom: var(--co-safe-bottom);
    left: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--co-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 20px rgba(31, 34, 38, 0.06);
}

@supports (backdrop-filter: blur(8px)) {
    .co-nav {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
    }
}

.co-nav__inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-nav [data-co-next],
.co-nav [data-co-submit] {
    flex: 1 1 auto;
}

.co-nav__note {
    margin-top: 6px !important;
    color: var(--co-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Cards (aside, success, tracking)
   -------------------------------------------------------------------------- */

.co-card {
    padding: 20px 18px;
    border: 1px solid var(--co-line);
    border-radius: 20px;
    background: var(--co-surface);
}

.co-card__title {
    margin-bottom: 14px !important;
    color: var(--co-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.co-summary__empty {
    color: var(--co-muted);
    font-size: 14.5px;
}

.co-summary__type {
    padding: 12px 0;
    border-top: 1px dashed var(--co-line-strong);
}

.co-summary__type:first-child {
    padding-top: 0;
    border-top: 0;
}

.co-summary__type .co-review__name {
    margin-bottom: 4px;
    font-size: 15px;
}

.co-summary__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--co-line-strong);
}

.co-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--co-subtle);
    color: var(--co-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.co-tag .co-dot {
    margin: 0;
}

.co-process__list {
    counter-reset: co-process;
}

.co-process__list li {
    position: relative;
    padding: 0 38px 16px 0;
    color: var(--co-muted);
    font-size: 14px;
    line-height: 1.75;
    counter-increment: co-process;
}

.co-process__list li::before {
    content: counter(co-process, persian);
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(var(--co-accent-rgb), 0.1);
    color: var(--co-accent);
    font-size: 13.5px;
    font-weight: 800;
}

.co-process__list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 12px;
    bottom: 2px;
    border-right: 2px dashed var(--co-line-strong);
}

.co-process__list b {
    display: block;
    color: var(--co-ink);
    font-size: 15px;
    font-weight: 700;
}

.co-process__promise {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px !important;
    padding: 10px 12px;
    border-radius: var(--co-radius-sm);
    background: var(--co-subtle);
    color: var(--co-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.co-process__promise svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--co-accent);
}

.co-help__text {
    margin-bottom: 12px !important;
    color: var(--co-text);
    font-size: 14.5px;
}

.co-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.co-faq {
    margin-top: 44px;
}

.co-faq__title {
    margin-bottom: 8px !important;
    color: var(--co-ink);
    font-size: 20px;
    font-weight: 800;
}

.co-faq__item {
    border-bottom: 1px solid var(--co-line);
}

.co-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 0;
    color: var(--co-ink);
    font-size: 15.5px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.co-faq__item summary::-webkit-details-marker {
    display: none;
}

.co-faq__item summary svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--co-muted);
    transition: transform 0.2s ease;
}

.co-faq__item[open] summary svg {
    transform: rotate(180deg);
}

.co-faq__item p {
    padding: 0 0 16px;
    color: var(--co-muted);
    font-size: 15px;
    line-height: 1.9;
}

.co-track-link {
    margin-top: 28px !important;
    color: var(--co-muted);
    font-size: 15px;
    text-align: center;
}

.co-track-link a {
    color: var(--co-accent);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Success page
   -------------------------------------------------------------------------- */

.co-done__hero {
    padding: 28px 0 32px;
    text-align: center;
}

.co-done__badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    color: var(--co-accent);
}

.co-done__badge svg {
    width: 100%;
    height: 100%;
    stroke-width: 3;
}

.co-done__ring {
    stroke-dasharray: 5 5;
    animation: co-ring 1.2s ease both;
}

.co-done__tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: co-tick 0.5s 0.35s ease forwards;
}

@keyframes co-ring {
    from {
        opacity: 0;
        transform: rotate(-90deg);
        transform-origin: center;
    }
    to {
        opacity: 1;
        transform: none;
        transform-origin: center;
    }
}

@keyframes co-tick {
    to {
        stroke-dashoffset: 0;
    }
}

.co-done__title {
    color: var(--co-ink);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.5;
}

.co-done__lead {
    max-width: 54ch;
    margin: 10px auto 0 !important;
    color: var(--co-muted);
    font-size: 15.5px;
    line-height: 1.9;
}

.co-code {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 22px;
    padding: 12px 14px 12px 12px;
    border: 2px dashed rgba(var(--co-accent-rgb), 0.55);
    border-radius: 16px;
    background: rgba(var(--co-accent-rgb), 0.05);
}

.co-code__label {
    color: var(--co-muted);
    font-size: 14px;
}

/* a code the shopper may retype: Latin digits, matching what the SMS and the admin show */
.co-code__value,
.co-status__code {
    font-family: yekanbakhen, tahoma, sans-serif;
}

.co-code__value {
    color: var(--co-ink);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.co-code__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--co-line-strong);
    border-radius: 10px;
    background: var(--co-surface);
    color: var(--co-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.co-code__copy svg {
    width: 18px;
    height: 18px;
}

.co-code__hint {
    max-width: 48ch;
    margin: 12px auto 0 !important;
    color: var(--co-muted);
    font-size: 14px;
}

.co-done__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.co-done__grid {
    display: grid;
    gap: 16px;
}

.co-next__list li {
    position: relative;
    padding: 0 32px 18px 0;
}

.co-next__list li::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 3px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--co-line-strong);
    border-radius: 50%;
    background: var(--co-surface);
}

.co-next__list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    right: 10px;
    bottom: 2px;
    border-right: 2px dashed var(--co-line-strong);
}

.co-next__list li.is-done::before {
    border-color: var(--co-accent);
    background: var(--co-accent);
}

.co-next__list li.is-done::after {
    border-right-style: solid;
    border-right-color: var(--co-accent);
}

.co-next__list li.is-current::before {
    border-color: var(--co-accent);
    box-shadow: 0 0 0 5px rgba(var(--co-accent-rgb), 0.16);
}

.co-next__list li.is-cancelled::before {
    border-color: var(--co-danger);
    background: var(--co-danger);
}

.co-next__list b {
    display: block;
    color: var(--co-ink);
    font-size: 15.5px;
    font-weight: 700;
}

.co-next__list li.is-upcoming b {
    color: var(--co-muted);
}

.co-next__list span {
    display: block;
    color: var(--co-muted);
    font-size: 14px;
    line-height: 1.7;
}

.co-next .co-help__actions {
    margin-top: 6px;
}

.co-receipt__meta,
.co-receipt__list {
    display: grid;
}

.co-receipt__meta div,
.co-receipt__list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--co-line);
    font-size: 14.5px;
}

.co-receipt__meta dt,
.co-receipt__list dt {
    flex: 0 0 auto;
    color: var(--co-muted);
}

.co-receipt__meta dd,
.co-receipt__list dd {
    color: var(--co-ink);
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
}

.co-receipt__list div.is-block {
    flex-direction: column;
    gap: 4px;
}

.co-receipt__list div.is-block dd {
    font-weight: 500;
    line-height: 1.9;
    text-align: right;
    white-space: pre-line;
}

.co-receipt__type {
    margin-top: 18px;
}

.co-receipt__type-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px !important;
    color: var(--co-ink);
    font-size: 16px;
    font-weight: 800;
}

.co-receipt__type-name .co-group__icon {
    width: 32px;
    height: 32px;
}

.co-receipt__type-name .co-group__icon svg {
    width: 19px;
    height: 19px;
}

/* --------------------------------------------------------------------------
   Tracking page
   -------------------------------------------------------------------------- */

.co-track__head {
    padding: 16px 0 20px;
}

.co-track__title {
    color: var(--co-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
}

.co-track__lead {
    margin-top: 6px !important;
    color: var(--co-muted);
    font-size: 15px;
}

.co-track__form {
    display: grid;
    gap: 16px;
    align-items: end;
}

.co-track .co-form-error {
    margin-top: 16px !important;
}

.co-status {
    margin-top: 20px;
}

.co-status__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.co-status__code {
    color: var(--co-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.co-status__title {
    color: var(--co-ink);
    font-size: 21px;
    font-weight: 800;
}

.co-status .co-next__list {
    margin-top: 20px;
}

.co-status__help {
    margin-top: 6px !important;
    color: var(--co-muted);
    font-size: 14.5px;
}

.co-status__help a {
    color: var(--co-accent);
    font-weight: 700;
}

.co-pill {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(var(--co-accent-rgb), 0.1);
    color: var(--co-ink);
    font-size: 14px;
    font-weight: 700;
}

.co-pill--muted {
    background: var(--co-danger-bg);
    color: var(--co-danger);
}

/* --------------------------------------------------------------------------
   Call-to-action banner (widget)
   -------------------------------------------------------------------------- */

.co-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--co-line);
    border-radius: 20px;
    background:
        linear-gradient(120deg, rgba(var(--co-accent-rgb), 0.08), rgba(var(--co-accent-rgb), 0.02) 60%),
        var(--co-surface);
}

.co-cta__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--co-surface);
    box-shadow: var(--co-shadow);
    color: var(--co-accent);
}

.co-cta__icon svg {
    width: 28px;
    height: 28px;
}

.co-cta__text {
    flex: 1 1 200px;
    min-width: 0;
}

.co-cta__title {
    color: var(--co-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.co-cta__lead {
    color: var(--co-muted);
    font-size: 14.5px;
    line-height: 1.8;
}

.co-cta__btn {
    flex: 1 1 100%;
}

/* --------------------------------------------------------------------------
   Wider screens
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
    .co-types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .co-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .co-previews {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .co-track__form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    }

    .co-cta__btn {
        flex: 0 0 auto;
    }
}

@media (min-width: 1024px) {
    .co {
        margin: 16px 0 56px;
    }

    .co-only-desktop {
        display: inline;
    }

    .co-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: center;
        gap: 48px;
        padding: 24px 0 36px;
    }

    .co .co-hero__title {
        font-size: 36px;
        line-height: 1.4;
    }

    .co-hero__lead {
        font-size: 16.5px;
    }

    .co-hero__promises {
        flex-wrap: wrap;
        margin: 22px 0 0 !important;
        padding: 0 !important;
        overflow: visible;
    }

    .co-hero__visual {
        display: block;
        height: 300px;
    }

    .co-wizard {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
    }

    .co-wizard__main {
        padding: 32px 36px 28px;
        border: 1px solid var(--co-line);
        border-radius: 24px;
        background: var(--co-surface);
        box-shadow: 0 1px 2px rgba(31, 34, 38, 0.03);
    }

    .co-aside {
        position: sticky;
        top: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* the stepper spells the steps out; the thread runs through the dots */
    .co-stepper {
        margin-bottom: 32px;
    }

    .co-stepper__count {
        display: none;
    }

    .co-stepper__list {
        position: relative;
        z-index: 1;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .co-stepper .co-thread {
        position: absolute;
        top: 21px;
        right: 12.5%;
        left: 12.5%;
    }

    .co-stepper__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .co-stepper__btn[disabled] {
        cursor: default;
    }

    .co-stepper__dot {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1.5px solid var(--co-line-strong);
        border-radius: 50%;
        background: var(--co-surface);
        color: var(--co-muted);
        font-size: 16px;
        font-weight: 800;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    }

    .co-stepper__check {
        position: absolute;
        width: 20px;
        height: 20px;
        stroke-width: 2.6 !important;
        opacity: 0;
    }

    .co-stepper__label {
        color: var(--co-muted);
        font-size: 15px;
        font-weight: 600;
    }

    .co-stepper__item.is-current .co-stepper__dot {
        border-color: var(--co-accent);
        background: var(--co-accent);
        box-shadow: 0 0 0 6px rgba(var(--co-accent-rgb), 0.14);
        color: #FFFFFF;
    }

    .co-stepper__item.is-current .co-stepper__label {
        color: var(--co-ink);
        font-weight: 800;
    }

    .co-stepper__item.is-done .co-stepper__dot {
        border-color: var(--co-accent);
        background: #FFFFFF;
        color: var(--co-accent);
    }

    .co-stepper__item.is-done .co-stepper__num {
        opacity: 0;
    }

    .co-stepper__item.is-done .co-stepper__check {
        opacity: 1;
    }

    .co-stepper__item.is-done .co-stepper__label {
        color: var(--co-ink);
    }

    .co-stepper__item.is-done .co-stepper__btn:hover .co-stepper__dot {
        box-shadow: 0 0 0 5px rgba(var(--co-accent-rgb), 0.1);
    }

    .co-step__title {
        font-size: 24px;
    }

    .co-types {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .co-group {
        padding: 22px 22px 24px !important;
    }

    .co-materials {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        margin: 0;
        padding: 2px 0 0;
        overflow: visible;
    }

    .co-review {
        padding: 22px 22px;
    }

    /* on desktop the navigation is the foot of the form, sewn on with a dashed seam */
    .co-wizard__main {
        padding-bottom: 28px;
    }

    .co-nav {
        position: static;
        margin-top: 32px;
        padding: 22px 0 0;
        border-top: 1.5px dashed var(--co-line-strong);
        background: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .co-nav__inner {
        justify-content: space-between;
    }

    .co-nav [data-co-next],
    .co-nav [data-co-submit] {
        flex: 0 0 auto;
        min-width: 200px;
        margin-right: auto;
    }

    .co-nav__note {
        text-align: left;
    }

    .co-faq {
        max-width: 780px;
    }

    .co-done__hero {
        padding: 40px 0 44px;
    }

    .co-done__title {
        font-size: 32px;
    }

    .co-done__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 20px;
    }

    .co-card {
        padding: 22px 24px;
    }

    .co-track {
        max-width: 860px;
        margin-right: auto;
        margin-left: auto;
    }

    .co-track__title {
        font-size: 28px;
    }

    .co-cta {
        padding: 22px 26px;
    }
}

/* --------------------------------------------------------------------------
   Consultation band ("ask us before you buy"), above the footer
   --------------------------------------------------------------------------
   Full width in the theme's content_after slot: a white band with a soft glow
   of the accent on the inline-end side, a centred title and one row of mobile
   field + button.
   -------------------------------------------------------------------------- */

.co.co-consult {
    position: relative;
    margin: 32px 0 0;
    padding: 56px 16px;
    background:
        radial-gradient(ellipse 34% 90% at 30% 62%, rgba(var(--co-accent-rgb), 0.24), rgba(var(--co-accent-rgb), 0.08) 45%, transparent 75%),
        #FFFFFF;
    overflow: hidden;
    text-align: center;
}

.co-consult__inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.co .co-consult__title {
    color: #14161A;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
    text-wrap: balance;
}

.co-consult__form {
    margin-top: 24px;
}

.co-consult__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.co-consult__field {
    display: block;
    flex: 1 1 auto;
    margin: 0;
}

.co-consult__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.co .co-consult__field input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #E3E5E9;
    border-radius: 12px;
    outline: 0;
    background: #F7F8FA;
    box-shadow: none;
    color: var(--co-ink);
    font-family: inherit;
    font-size: 16px;
    text-align: right;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.co .co-consult__field input::placeholder {
    color: #8C929B;
    opacity: 1;
}

.co .co-consult__field input:focus {
    border-color: var(--co-accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(var(--co-accent-rgb), 0.14);
}

.co-consult__form.is-invalid .co-consult__field input {
    border-color: var(--co-danger);
    box-shadow: 0 0 0 4px rgba(var(--co-danger-rgb), 0.1);
}

.co .co-consult__btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 48px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--co-accent);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.co .co-consult__btn:hover {
    filter: brightness(0.93);
}

.co .co-consult__btn:active {
    transform: translateY(1px);
}

.co .co-consult__btn:focus-visible {
    outline: 2px solid var(--co-accent);
    outline-offset: 3px;
}

.co .co-consult__btn[disabled] {
    cursor: default;
    opacity: 0.8;
}

.co-consult__btn.is-busy .co-btn__spinner {
    display: inline-block;
}

.co-consult__error {
    margin-top: 10px !important;
    color: var(--co-danger);
    font-size: 14px;
    font-weight: 600;
}

.co-consult__done {
    margin-top: 22px;
    animation: co-step-in 0.35s ease both;
}

.co-consult__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border: 2px dashed rgba(var(--co-accent-rgb), 0.55);
    border-radius: 50%;
    background: rgba(var(--co-accent-rgb), 0.08);
    color: var(--co-accent);
}

.co-consult__check svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.6;
}

.co-consult__done-title {
    color: var(--co-ink);
    font-size: 18px;
    font-weight: 800;
}

.co-consult__done-text {
    max-width: 56ch;
    margin: 4px auto 0 !important;
    color: var(--co-muted);
    font-size: 15px;
    line-height: 1.8;
}

@media (min-width: 560px) {
    .co-consult__row {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .co-consult__field {
        flex: 0 1 390px;
    }
}

@media (min-width: 1024px) {
    .co.co-consult {
        margin-top: 48px;
        padding: 84px 16px;
    }

    .co .co-consult__title {
        font-size: 32px;
        line-height: 1.5;
    }

    .co-consult__form {
        margin-top: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .co *,
    .co *::before,
    .co *::after {
        animation: none !important;
        transition: none !important;
    }

    .co-done__tick {
        stroke-dashoffset: 0;
    }
}
