/**
 * Acme Custom Order landing — matches Figma Custom Order page.
 * Scoped to .acme-custom-order; header/footer remain global theme.
 */

.acme-custom-order {
    --acme-ink: #0f2d52;
    --acme-muted: #5a6a7e;
    --acme-red: #9d1f2b;
    --acme-red-btn: #ad2733;
    --acme-blue: #1f99ce;
    --acme-cream: #f8f9fc;
    /* Match header: logo → cart (.acme-header__top-inner) */
    --acme-pad-x: var(--acme-header-pad-x, clamp(1.25rem, 10.8vw, 12.875rem));
    --acme-content: 93.3125rem; /* 1493px */
    width: 100%;
    background: #fff;
    color: var(--acme-ink);
    font-family: Inter, system-ui, sans-serif;
}

.acme-custom-order *,
.acme-custom-order *::before,
.acme-custom-order *::after {
    box-sizing: border-box;
}

.acme-co-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.304px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.acme-co-btn--primary {
    background: var(--acme-red);
    color: #fff;
    border: none;
}

.acme-co-btn--primary:hover {
    opacity: 0.92;
}

.acme-co-btn--ghost {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.acme-co-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.acme-co-btn--outline {
    background: transparent;
    color: var(--acme-muted);
    border: 2px solid var(--acme-ink);
}

.acme-co-btn--outline:hover {
    background: rgba(15, 45, 82, 0.04);
}

.acme-co-btn--card {
    width: 100%;
    background: var(--acme-red-btn);
    color: #fff;
    border: none;
}

.acme-co-btn--card:hover {
    opacity: 0.92;
}

.acme-co-btn--submit {
    width: min(100%, 27.25rem);
    min-height: 3.1rem;
    background: var(--acme-red);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.acme-co-eyebrow {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-align: center;
    color: var(--acme-blue);
}

.acme-co-eyebrow--ink {
    letter-spacing: 2.4px;
    color: var(--acme-ink);
}

.acme-co-heading {
    margin: 0;
    max-width: 60rem;
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--acme-ink);
}

.acme-co-rule {
    display: block;
    width: 5.1875rem;
    height: 0.3125rem;
    margin: 0 auto;
    background: var(--acme-blue);
    border-radius: 10px;
}

.acme-co-lead {
    margin: 0;
    max-width: 46.06rem;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.15px;
    text-align: center;
    color: var(--acme-muted);
}

.acme-co-lead--narrow {
    max-width: 36rem;
}

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

.acme-co-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 41.5rem;
    width: 100%;
    overflow: hidden;
}

.acme-co-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
}

.acme-co-hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 37.55%,
        rgba(0, 0, 0, 0.1) 62.68%
    );
}

.acme-co-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    width: min(100%, calc(var(--acme-pad-x) + 38.75rem));
    max-width: none;
    padding: 4rem 0 5rem var(--acme-pad-x);
}

.acme-co-hero__title {
    margin: 0;
    max-width: 38.75rem;
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.acme-co-hero__subtitle {
    margin: 0;
    max-width: 38.8rem;
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.3;
    letter-spacing: 0.158px;
    color: rgba(255, 255, 255, 0.85);
}

.acme-co-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.8rem;
}

/* ---- Capability intro ---- */

.acme-co-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 3rem var(--acme-pad-x);
    background: #fff;
}

/* ---- Capability cards ---- */

.acme-co-cards {
    padding: 0 var(--acme-pad-x) 6rem;
    background: #fff;
}

.acme-co-cards__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    width: min(100%, var(--acme-content));
    margin-inline: auto;
}

.acme-co-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 1rem;
    box-shadow: 0 2px 20px rgba(15, 45, 82, 0.06);
    overflow: hidden;
}

.acme-co-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 352 / 240;
    background: #f2f2f2;
    overflow: hidden;
}

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

.acme-co-card__title {
    margin: 0;
    padding: 1.05rem 1rem 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.1px;
    text-align: left;
    color: var(--acme-ink);
}

.acme-co-card__action {
    padding: 0.5rem 1rem 1rem;
    margin-top: auto;
}

/* ---- Process ---- */

.acme-co-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 6rem var(--acme-pad-x) 5.375rem;
    background: #fff;
}

.acme-co-process__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 4.25rem;
    width: min(100%, var(--acme-content));
    margin-top: 1.5rem;
}

.acme-co-process__track::before {
    content: "";
    position: absolute;
    top: 3.4rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(15, 45, 82, 0.2);
    z-index: 0;
}

.acme-co-process__step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.acme-co-process__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.875rem;
    height: 6.875rem;
    margin-bottom: 1.25rem;
    background: var(--acme-cream);
    border: 1.73px solid var(--acme-ink);
    border-radius: 50%;
}

.acme-co-process__icon svg {
    width: 3.75rem;
    height: 3.75rem;
}

.acme-co-process__num {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--acme-blue);
}

.acme-co-process__title {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.33;
    text-transform: capitalize;
    color: var(--acme-ink);
}

.acme-co-process__body {
    margin: 0;
    max-width: 14.375rem;
    font-size: 1rem;
    line-height: 1.375;
    text-transform: capitalize;
    color: var(--acme-muted);
}

/* ---- Advantage ---- */

.acme-co-advantage {
    padding: 7.9rem var(--acme-pad-x) 8.5rem;
    background: var(--acme-cream);
}

.acme-co-advantage__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    width: min(100%, var(--acme-content));
    margin-inline: auto;
}

.acme-co-advantage__inner > .acme-co-eyebrow,
.acme-co-advantage__inner > .acme-co-heading {
    margin: 0;
}

.acme-co-advantage__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.acme-co-advantage__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.175rem;
    padding: 2.125rem;
    background: #fff;
    border: 2px solid #f5f5f5;
    border-radius: 1rem;
    text-align: center;
}

.acme-co-advantage__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    background: var(--acme-cream);
    border-radius: 50%;
}

.acme-co-advantage__icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.acme-co-advantage__title {
    margin: 0;
    max-width: 14.875rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.33;
    text-transform: capitalize;
    color: var(--acme-ink);
}

.acme-co-advantage__body {
    margin: 0;
    max-width: 14.875rem;
    font-size: 1rem;
    line-height: 1.375;
    text-transform: capitalize;
    color: var(--acme-muted);
}

/* ---- Mid CTA ---- */

.acme-co-midcta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 7.5625rem var(--acme-pad-x);
    background: #fff;
}

.acme-co-midcta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

/* ---- Form ---- */

.acme-co-formsec {
    padding: 5.25rem var(--acme-pad-x) 6.875rem;
    background: var(--acme-cream);
}

.acme-co-formsec__panel {
    width: min(100%, var(--acme-content));
    margin-inline: auto;
    padding: 3.5rem clamp(1.5rem, 4vw, 3.75rem) 3.25rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 28px rgba(15, 45, 82, 0.07);
}

.acme-co-formsec__eyebrow {
    margin: 0 0 0.35rem;
    text-align: left;
}

.acme-co-formsec__title {
    margin: 0 0 0.65rem;
    font-weight: 700;
    font-size: clamp(1.55rem, 2.15vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--acme-ink);
}

.acme-co-formsec__subtitle {
    margin: 0 0 2.1rem;
    max-width: 46rem;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
    color: var(--acme-muted);
}

.acme-co-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.85rem;
    align-items: start;
}

.acme-co-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.acme-co-form__field--full {
    grid-column: 1 / -1;
}

.acme-co-form__field--half-right {
    grid-column: 2;
}

.acme-co-form__group {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    padding: 1rem;
    background: var(--acme-cream);
    border: 1px solid #e3e8ef;
    border-radius: 0.5rem;
}

.acme-co-form__group-title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acme-ink);
}

.acme-co-form__group-hint {
    color: var(--acme-blue);
}

.acme-co-form__inputgroup {
    display: flex;
    align-items: stretch;
}

.acme-co-form__prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border: 1px solid #d0d7e0;
    border-right: 0;
    border-radius: 0.375rem 0 0 0.375rem;
    background: var(--acme-cream);
    color: var(--acme-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.acme-co-form__inputgroup input {
    border-radius: 0 0.375rem 0.375rem 0;
}

.acme-co-form__field label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acme-ink);
}

.acme-co-form__field input,
.acme-co-form__field select,
.acme-co-form__field textarea {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.8rem 1rem;
    border: 1px solid #d0d7e0;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--acme-ink);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    appearance: none;
}

.acme-co-form__field select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1rem;
    cursor: pointer;
}

.acme-co-form__field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.acme-co-form__field input::placeholder,
.acme-co-form__field textarea::placeholder {
    color: #9aa6b5;
}

.acme-co-form__field input:focus,
.acme-co-form__field select:focus,
.acme-co-form__field textarea:focus {
    outline: 2px solid rgba(31, 153, 206, 0.35);
    border-color: var(--acme-blue);
}

.acme-co-form__comment-sync {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.acme-co-form__submit {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.6rem;
}

/* ---- Category chrome overrides ---- */

.catalog-category-view.category-custom-order .page-main,
.acme-category-page:has(.acme-custom-order) .page-main {
    padding-bottom: 0 !important;
}

.catalog-category-view.category-custom-order .acme-static-cms {
    padding: 0 !important;
    background: transparent;
}

.catalog-category-view.category-custom-order .page-title-wrapper,
.catalog-category-view.category-custom-order .page-main > .page-title-wrapper {
    display: none !important;
}

/* The category shell normally contributes 96px below the landing. Move that
 * space into the footer so its content and legal row match the design. */
.catalog-category-view.category-custom-order .acme-footer__main,
.acme-category-page:has(.acme-custom-order) .acme-footer__main {
    padding: 5rem 0 5.5rem;
}

.catalog-category-view.category-custom-order .acme-footer__bottom-inner,
.acme-category-page:has(.acme-custom-order) .acme-footer__bottom-inner {
    padding: 2.5rem 0 2.75rem;
}

/* ---- Responsive ---- */

/* Desktop — Figma 1092:2727 hero overlay; 1092:2762 four capability cards full width.
   Wins over stale audit CSS that added a white box or grid on the section wrapper. */
@media (min-width: 1024px) {
    .acme-co-hero__content {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: none !important;
    }

    .acme-co-cards {
        display: block !important;
        width: 100% !important;
    }

    .acme-co-cards__grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: min(100%, var(--acme-content)) !important;
        max-width: var(--acme-content) !important;
        margin-inline: auto !important;
    }
}

@media (max-width: 900px) {
    .acme-co-cards__grid,
    .acme-co-advantage__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acme-co-process__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 2rem;
    }

    .acme-co-process__track::before {
        display: none;
    }
}

/* Tablet: the two-column form is too narrow for label + input pairs once the
 * page gutters are still at their fluid maximum, so stack it early. */
@media (max-width: 900px) {
    .acme-co-formsec__panel {
        padding: 2.5rem clamp(1.25rem, 3.5vw, 2.5rem) 2.25rem;
    }

    .acme-co-form__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .acme-co-form__field--half-right,
    .acme-co-form__group {
        grid-column: 1;
    }

    .acme-co-btn--submit {
        width: 100%;
    }
}

/* Odd card counts leave a lone card on the second row of the tablet 2-up grids. */
@media (min-width: 721px) and (max-width: 900px) {
    .acme-co-cards__grid > .acme-co-card:last-child:nth-child(odd),
    .acme-co-advantage__grid > .acme-co-advantage__card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    /* Figma mobile Custom Order — banner image on top, white content card below */
    .acme-custom-order {
        --acme-pad-x: 1.25rem;
    }

    .acme-co-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        overflow: visible;
    }

    .acme-co-hero__bg {
        position: relative;
        inset: auto;
        z-index: 0;
        flex: 0 0 auto;
        width: 100%;
        height: 14.5rem;
        min-height: 14.5rem;
    }

    .acme-co-hero__gradient {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 14.5rem;
        bottom: auto;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.35) 100%
        );
    }

    .acme-co-hero__content {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        align-items: stretch;
        gap: 0.85rem;
        margin: 0;
        padding: 1.5rem var(--acme-pad-x) 2rem;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
    }

    .acme-co-hero__title {
        font-size: 2rem;
        line-height: 1.2;
        max-width: none;
        color: var(--acme-ink);
        text-shadow: none;
    }

    .acme-co-hero__subtitle {
        font-size: 1rem;
        line-height: 1.45;
        max-width: none;
        color: var(--acme-muted);
    }

    .acme-co-hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }

    .acme-co-intro {
        padding: 2.5rem var(--acme-pad-x) 1.5rem;
        gap: 0.85rem;
    }

    .acme-co-heading {
        font-size: 1.75rem;
        max-width: none;
    }

    .acme-co-lead {
        font-size: 0.9375rem;
        line-height: 1.6;
        max-width: none;
    }

    .acme-co-cards {
        padding: 0 var(--acme-pad-x) 3rem;
    }

    .acme-co-process,
    .acme-co-advantage,
    .acme-co-midcta,
    .acme-co-formsec {
        padding-block: 3rem;
    }

    .acme-co-midcta {
        padding-inline: var(--acme-pad-x);
        gap: 0.85rem;
    }

    .acme-co-cards__grid,
    .acme-co-advantage__grid,
    .acme-co-process__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .acme-co-process__track::before {
        display: none;
    }

    .acme-co-card__media {
        aspect-ratio: 4 / 3;
    }

    .acme-co-card__title {
        font-size: 0.9375rem;
        line-height: 1.2;
        padding: 0.65rem 0.5rem 0.25rem;
    }

    .acme-co-card__action {
        padding: 0.25rem 0.5rem 0.65rem;
    }

    .acme-co-card__action .acme-co-btn {
        min-height: 2.25rem;
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }

    .acme-co-process__step {
        padding: 0.75rem 0.5rem;
        background: var(--acme-cream);
        border-radius: 0.5rem;
    }

    .acme-co-process__icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 0.5rem;
    }

    .acme-co-process__icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .acme-co-process__title {
        font-size: 0.8125rem;
        line-height: 1.2;
    }

    .acme-co-process__body {
        font-size: 0.6875rem;
        line-height: 1.35;
    }

    .acme-co-advantage__card {
        padding: 0.85rem 0.5rem;
    }

    .acme-co-advantage__title {
        font-size: 0.8125rem;
        line-height: 1.2;
    }

    .acme-co-advantage__body {
        font-size: 0.6875rem;
        line-height: 1.35;
    }

    .acme-co-form__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .acme-co-form__field--half-right {
        grid-column: 1;
    }

    .acme-co-form__group {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .acme-co-hero__actions .acme-co-btn,
    .acme-co-midcta__actions .acme-co-btn,
    .acme-co-btn--submit {
        width: 100%;
        max-width: none;
    }

    .acme-co-midcta__actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .acme-co-formsec {
        padding-inline: var(--acme-pad-x);
    }

    .acme-co-formsec__panel {
        padding: 1.5rem 1.15rem 1.35rem;
        border-radius: 0.75rem;
    }

    .acme-co-formsec__title {
        font-size: 1.5rem;
    }

    .catalog-category-view.category-custom-order .acme-footer__main,
    .acme-category-page:has(.acme-custom-order) .acme-footer__main {
        padding-block: 2.5rem;
    }

    .catalog-category-view.category-custom-order .acme-footer__bottom-inner,
    .acme-category-page:has(.acme-custom-order) .acme-footer__bottom-inner {
        padding: 1.25rem 0 1.5rem;
    }
}

@media (max-width: 639px) {
    .acme-co-eyebrow {
        font-size: 0.8125rem;
        letter-spacing: 1.4px;
    }

    .acme-co-process__icon {
        width: 5.25rem;
        height: 5.25rem;
        margin-bottom: 0.85rem;
    }

    .acme-co-process__icon svg {
        width: 2.75rem;
        height: 2.75rem;
    }

    .acme-co-process__body,
    .acme-co-advantage__title,
    .acme-co-advantage__body {
        max-width: none;
    }

    .acme-co-advantage__card {
        padding: 1.5rem 1.25rem;
    }

    .acme-co-card__title {
        font-size: 1.25rem;
    }

    .acme-co-form__inputgroup {
        flex-wrap: nowrap;
    }

    .acme-co-form__prefix {
        flex: 0 0 auto;
    }
}

/* v21 — equal section spacing */
.acme-custom-order {
    --acme-co-section-pad: clamp(2.5rem, 5vw, 3.5rem);
}

.acme-custom-order .acme-co-intro,
.acme-custom-order .acme-co-cards,
.acme-custom-order .acme-co-process,
.acme-custom-order .acme-co-advantage,
.acme-custom-order .acme-co-midcta,
.acme-custom-order .acme-co-formsec {
    padding-block: var(--acme-co-section-pad) !important;
    margin-block: 0 !important;
}

@media (max-width: 1023px) {
    .acme-custom-order {
        --acme-co-section-pad: 2.25rem;
    }
}


/* ========== v24 — tighten whitespace between custom-order sections ========== */
.acme-custom-order {
    --acme-co-section-pad: clamp(1.25rem, 3vw, 2rem);
}
.acme-custom-order .acme-co-intro,
.acme-custom-order .acme-co-cards,
.acme-custom-order .acme-co-process,
.acme-custom-order .acme-co-advantage,
.acme-custom-order .acme-co-midcta,
.acme-custom-order .acme-co-formsec {
    padding-block: var(--acme-co-section-pad) !important;
    margin-block: 0 !important;
}
.acme-custom-order .acme-co-cards {
    padding-bottom: var(--acme-co-section-pad) !important;
}
.acme-custom-order .acme-co-hero__content {
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}
@media (max-width: 1023px) {
    .acme-custom-order {
        --acme-co-section-pad: 1.25rem;
    }
    .acme-custom-order .acme-co-intro {
        padding-top: 1.25rem !important;
        padding-bottom: 0.85rem !important;
    }
    .acme-custom-order .acme-co-hero__content {
        padding-bottom: 1.25rem !important;
    }
}


/* ========== v25 — custom-order Capability spacing + Advantage full-bleed ========== */
.acme-custom-order .acme-co-intro {
    padding-top: 1rem !important;
    padding-bottom: 0.75rem !important;
    margin-top: 0 !important;
}
.acme-custom-order .acme-co-hero + .acme-co-intro,
.acme-custom-order .acme-co-intro:first-of-type {
    padding-top: 0.75rem !important;
}
.acme-custom-order .acme-co-hero__content {
    padding-bottom: 1rem !important;
}
.acme-custom-order .acme-co-advantage {
    position: relative !important;
    isolation: isolate !important;
    background: #f8f9fc !important;
    background-color: #f8f9fc !important;
}
.acme-custom-order .acme-co-advantage::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    background: #f8f9fc !important;
    background-color: #f8f9fc !important;
    pointer-events: none !important;
}
@media (max-width: 1023px) {
    .acme-custom-order .acme-co-advantage {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-inline: 1rem !important;
        box-sizing: border-box !important;
        background: #f8f9fc !important;
    }
    .acme-custom-order .acme-co-intro {
        padding-top: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }
    .acme-custom-order .acme-co-cards,
    .acme-custom-order .acme-co-process,
    .acme-custom-order .acme-co-advantage,
    .acme-custom-order .acme-co-midcta,
    .acme-custom-order .acme-co-formsec {
        padding-block: 1.25rem !important;
    }
}


/* ========== v26 — Capability gap + Advantage full-bleed mobile ========== */
.acme-custom-order .acme-co-intro,
.acme-custom-order section.acme-co-intro {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.acme-custom-order .acme-co-hero,
.acme-custom-order .acme-co-hero__content {
    margin-bottom: 0 !important;
    padding-bottom: 0.75rem !important;
}
.acme-custom-order .acme-co-hero + .acme-co-intro,
.acme-custom-order .acme-co-intro:first-of-type {
    padding-top: 0.35rem !important;
}
@media (max-width: 1023px) {
    .acme-custom-order {
        overflow-x: clip !important;
    }
    .acme-custom-order .acme-co-advantage {
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-inline: 1rem !important;
        box-sizing: border-box !important;
        background: #f8f9fc !important;
        background-color: #f8f9fc !important;
    }
    .acme-custom-order .acme-co-advantage::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;
        background: #f8f9fc !important;
        z-index: -1 !important;
    }
    .acme-custom-order .acme-co-intro {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
}


/* ========== v27 — Capability spacing ==========
   The intro is a flex column: the eyebrow/heading distance is its row-gap,
   not margins, so the gap is what has to shrink. */
.acme-custom-order .acme-co-intro,
.acme-custom-order section.acme-co-intro {
    row-gap: 0.35rem !important;
    gap: 0.35rem !important;
}

.acme-custom-order .acme-co-intro > .acme-co-lead {
    margin-top: 0.5rem !important;
}

.acme-custom-order .acme-co-intro > .acme-co-rule {
    margin-block: 0.15rem !important;
}

/* Tablet/mobile: the hero reserves a fixed min-height and centres its content,
   which leaves ~200px of dead space above Our Capability. */
@media (max-width: 1023px) {
    .acme-custom-order .acme-co-hero,
    .acme-custom-order section.acme-co-hero {
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0.75rem !important;
    }

    .acme-custom-order .acme-co-hero__content {
        padding-top: clamp(1.5rem, 6vw, 3rem) !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .acme-custom-order .acme-co-hero__actions {
        margin-bottom: 0 !important;
        padding-top: 0.35rem !important;
    }

    .acme-custom-order .acme-co-intro,
    .acme-custom-order section.acme-co-intro {
        margin-top: 0 !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.35rem !important;
    }
}

/* Our Advantage keeps its grey band edge-to-edge on small screens */
@media (max-width: 1023px) {
    .acme-custom-order .acme-co-advantage,
    .acme-custom-order section.acme-co-advantage {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-inline: 1rem !important;
        background: #f8f9fc !important;
        box-sizing: border-box !important;
    }
}

/* Contact number — flag dialer (same as register/checkout) */
.acme-custom-order .acme-co-phone {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
    border: 1px solid #d7dee8;
    border-radius: 0.625rem;
    background: #fff;
}
.acme-custom-order .acme-co-phone:focus-within {
    border-color: #1a3d66;
    box-shadow: 0 0 0 3px rgba(15, 45, 82, 0.12);
}
.acme-custom-order .acme-co-phone .acme-phone-dial {
    border-right: 1px solid #d7dee8;
    border-radius: 0.625rem 0 0 0.625rem;
}
.acme-custom-order .acme-co-phone__input,
.acme-custom-order .acme-co-phone input[type="tel"] {
    border: 0 !important;
    border-radius: 0 0.625rem 0.625rem 0 !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
}

/* Capability: whitespace above “Our Capability”; eyebrow tight to heading */
.acme-custom-order .acme-co-hero + .acme-co-intro,
.acme-custom-order section.acme-co-intro {
    margin-top: 0 !important;
    padding-top: clamp(2.5rem, 5vw, 4rem) !important;
    padding-bottom: 0.75rem !important;
    gap: 0.45rem !important;
}
.acme-custom-order .acme-co-intro > .acme-co-eyebrow {
    margin: 0 0 0.15rem !important;
}
.acme-custom-order .acme-co-intro > .acme-co-heading {
    margin: 0 !important;
}
.acme-custom-order .acme-co-intro > .acme-co-rule {
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
}
.acme-custom-order .acme-co-intro > .acme-co-lead {
    margin-top: 0.35rem !important;
}
body.acme-category-page .page.messages,
html body.catalog-category-view .page.messages {
    position: fixed !important;
    top: calc(
        var(--acme-offer-bar-h, 2.25rem)
        + var(--acme-header-top-h, 4.5rem)
        + var(--acme-header-nav-h, 3rem)
        + 0.35rem
    ) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 200 !important;
    width: 100% !important;
    pointer-events: none !important;
}
body.acme-category-page .page.messages .message,
html body.catalog-category-view .page.messages .message {
    pointer-events: auto !important;
}
