.ccm-estimator {
    --ccm-ink: var(--ink, #1b2b2b);
    --ccm-muted: var(--muted, #6f7d7c);
    --ccm-line: var(--line, #e0e8e7);
    --ccm-clay: var(--clay, #2f6b6f);
    --ccm-surface: var(--surface, #f7faf9);
    --ccm-display: var(--font-display, "Fraunces", Georgia, serif);
    border-top: 1px solid var(--ccm-line);
    margin: 8px 0 0;
    padding-top: 20px;
}

.ccm-estimator__eyebrow {
    color: var(--ccm-clay);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ccm-estimator__intro h2 {
    color: var(--ccm-ink);
    font-family: var(--ccm-display);
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 8px;
}

.ccm-estimator__intro p {
    color: var(--ccm-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 16px;
    max-width: 42em;
}

.ccm-picks {
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    margin: 0 0 20px;
    overflow: hidden;
}

.ccm-step--fabric-summary {
    border-bottom: 1px solid var(--ccm-line);
    padding: 14px 0 16px;
}

.ccm-step__static-summary {
    align-items: center;
    color: var(--ccm-ink);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.ccm-step__static-summary span {
    align-items: center;
    background: var(--ccm-clay);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: none;
    font-size: 14px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.ccm-choice--fabric-summary {
    align-items: flex-start;
}

.ccm-choice--fabric-summary .ccm-choice__body {
    display: grid;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.ccm-pick--summary {
    align-items: center;
    display: flex;
    gap: 14px;
}

.ccm-choice--fabric-summary .ccm-pick__actions {
    gap: 16px 20px;
    margin: 0;
}

.ccm-specs--summary {
    border-top: 1px solid var(--ccm-line);
    margin: 0;
    padding-top: 2px;
}

.ccm-specs--summary > div {
    border-color: var(--ccm-line);
}

.ccm-picks__head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: space-between;
    padding: 12px 14px;
}

.ccm-pick {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.ccm-pick img,
.ccm-pick__swatch {
    background: var(--ccm-surface);
    border-radius: 6px;
    height: 52px;
    object-fit: cover;
    width: 52px;
}

.ccm-pick__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ccm-pick__copy strong {
    color: var(--ccm-ink);
    font-size: 15px;
    line-height: 1.3;
}

.ccm-pick__copy small {
    color: var(--ccm-muted);
    font-size: 13px;
}

.ccm-pick__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.ccm-pick__actions a {
    color: var(--ccm-clay);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ccm-step--fabric.is-prefilled {
    display: none;
}

.ccm-proof {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.ccm-proof li {
    background: var(--ccm-surface);
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    color: var(--ccm-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    padding: 12px 14px;
}

.ccm-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.ccm-specs > div {
    border-top: 1px solid var(--ccm-line);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
}

.ccm-specs > div:nth-child(odd) {
    border-right: 1px solid var(--ccm-line);
}

.ccm-specs__label {
    color: var(--ccm-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ccm-specs__value {
    color: var(--ccm-ink);
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ccm-step__title {
    align-items: center;
    color: var(--ccm-ink);
    display: flex;
    font-size: 16px;
    font-weight: 700;
    gap: 12px;
    margin: 0 0 14px;
}

.ccm-step__title span {
    align-items: center;
    background: var(--ccm-ink);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: none;
    font-size: 13px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.ccm-choice-grid {
    display: grid;
    align-items: stretch;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.ccm-choice-grid--one {
    grid-template-columns: 1fr;
}

.ccm-choice {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ccm-line);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 20px 18px;
    position: relative;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ccm-choice:hover {
    border-color: var(--ccm-clay);
    box-shadow: 0 3px 12px rgba(15, 31, 46, 0.06);
}

.ccm-choice:has(input:focus-visible),
.ccm-segment label:has(input:focus-visible) {
    outline: 2px solid var(--ccm-clay);
    outline-offset: 3px;
}

.ccm-choice.is-static {
    cursor: default;
}

.ccm-choice input {
    opacity: 0;
    position: absolute;
}

.ccm-choice__tick {
    background: #fff;
    border: 1.5px solid var(--ccm-line);
    border-radius: 50%;
    box-sizing: border-box;
    flex: none;
    height: 20px;
    margin-top: 2px;
    position: relative;
    width: 20px;
}

.ccm-choice:has(input:checked),
.ccm-choice.is-checked {
    background: var(--ccm-surface);
    border-color: var(--ccm-clay);
    box-shadow: inset 0 0 0 1px var(--ccm-clay);
}

.ccm-choice:has(input:checked) .ccm-choice__tick,
.ccm-choice.is-checked .ccm-choice__tick {
    background: var(--ccm-clay);
    border-color: var(--ccm-clay);
}

.ccm-choice:has(input:checked) .ccm-choice__tick::after,
.ccm-choice.is-checked .ccm-choice__tick::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 8px;
    left: 6px;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 4px;
}

.ccm-choice__body {
    min-width: 0;
}

.ccm-choice__body strong {
    color: var(--ccm-ink);
    display: block;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.ccm-choice__body small,
.ccm-choice__body li {
    color: var(--ccm-muted);
    font-size: 13px;
    line-height: 1.45;
}

.ccm-choice__body ul {
    margin: 6px 0 0;
    padding-left: 16px;
}

.ccm-choice__body li + li {
    margin-top: 3px;
}

.ccm-choice__badge {
    background: var(--ccm-clay);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    padding: 3px 8px;
    text-transform: uppercase;
}

.ccm-choice__change {
    color: var(--ccm-clay);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ccm-field-range {
    color: var(--ccm-muted);
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    margin-top: 6px;
}

.ccm-field-error {
    color: #c0392b;
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    margin-top: 6px;
}

.ccm-confirm {
    align-items: flex-start;
    color: var(--ccm-ink);
    display: flex;
    font-size: 13px;
    gap: 10px;
    line-height: 1.45;
    margin: 14px 0 0;
}

.ccm-confirm input {
    margin-top: 3px;
}

@media (max-width: 640px) {
    .ccm-proof,
    .ccm-specs,
    .ccm-choice-grid {
        grid-template-columns: 1fr;
    }

    .ccm-specs > div:nth-child(odd) {
        border-right: none;
    }
}

.ccm-step {
    border-bottom: 1px solid var(--ccm-line);
    padding: 16px 0;
}

.ccm-accordion-step {
    padding: 14px 0;
}

.ccm-step summary {
    align-items: center;
    color: var(--ccm-ink);
    cursor: pointer;
    display: flex;
    flex-wrap: nowrap;
    font-size: 13px;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0.08em;
    list-style: none;
    padding-right: 40px;
    position: relative;
    text-transform: uppercase;
}

.ccm-step summary::-webkit-details-marker,
.ccm-step summary::marker {
    content: "";
    display: none;
}

.ccm-accordion-step summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b2b2b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
    border: 1px solid #c5d0cf;
    border-radius: 999px;
    content: "";
    flex: none;
    height: 28px;
    margin-left: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
}

.ccm-accordion-step[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.ccm-accordion-step.is-pending {
    opacity: 0.38;
}

.ccm-accordion-step.is-pending summary {
    pointer-events: none;
}

.ccm-step summary small {
    color: var(--ccm-muted);
    font-size: 13px;
    font-weight: 500;
}

.ccm-step__help {
    margin: 0 0 4px;
    overflow: visible;
    position: relative;
}

.ccm-step--headings {
    overflow: visible;
}

.ccm-step__help .curtain-headings-help-trigger {
    font-size: 12px;
    font-weight: 600;
}

.ccm-step__help .curtain-headings-compare-preview--inline {
    left: 0;
    right: auto;
}

.ccm-option-card.is-help-active {
    border-color: var(--ccm-clay);
    box-shadow: inset 0 0 0 1px var(--ccm-clay);
}

.ccm-step summary span {
    align-items: center;
    background: var(--ccm-ink);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: none;
    font-size: 13px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.ccm-step__summary-note {
    color: var(--ccm-muted);
    font-size: 14px;
    font-weight: 600;
}

.ccm-option-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.ccm-fabric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.ccm-fabric-card {
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 8px;
    padding: 10px;
}

.ccm-fabric-card:has(input:checked) {
    border-color: var(--ccm-clay);
    box-shadow: inset 0 0 0 1px var(--ccm-clay);
}

.ccm-fabric-card input {
    position: absolute;
    opacity: 0;
}

.ccm-fabric-card img,
.ccm-fabric-card__swatch {
    aspect-ratio: 4 / 3;
    background: repeating-linear-gradient(90deg, #d8cec1 0 18px, #f2eee8 18px 30px, #b8c5c7 30px 40px);
    border: 1px solid var(--ccm-line);
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.ccm-fabric-card strong,
.ccm-fabric-card small,
.ccm-fabric-card em {
    display: block;
}

.ccm-fabric-card small,
.ccm-fabric-card em {
    color: var(--ccm-muted);
    font-size: 13px;
}

.ccm-fabric-card em {
    font-style: normal;
    font-weight: 700;
}

/* Grouped fabric (pattern with colour swatches) */
.ccm-fabric-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ccm-swatch {
    border: 1px solid var(--ccm-line);
    border-radius: 4px;
    cursor: pointer;
    height: 30px;
    overflow: hidden;
    position: relative;
    width: 30px;
}

.ccm-swatch input {
    opacity: 0;
    position: absolute;
}

.ccm-swatch img {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ccm-swatch__dot {
    background: #cbd6d5;
    display: block;
    height: 100%;
    width: 100%;
}

.ccm-swatch:has(input:checked) {
    border-color: var(--ccm-clay);
    box-shadow: 0 0 0 2px var(--ccm-clay);
}

.ccm-empty-state {
    border: 1px dashed var(--ccm-line);
    border-radius: 8px;
    color: var(--ccm-muted);
    margin-top: 16px;
    padding: 16px;
}

.ccm-option-card {
    background: #fff;
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    cursor: pointer;
    display: block;
    padding: 14px 16px;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ccm-option-card.is-popular {
    padding-top: 28px;
}

.ccm-option-card__badge {
    background: var(--ccm-clay);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    left: 12px;
    padding: 4px 8px;
    position: absolute;
    text-transform: uppercase;
    top: 10px;
}

.ccm-segment label {
    background: #fff;
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    cursor: pointer;
    display: block;
    padding: 14px 16px;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ccm-option-card:hover,
.ccm-segment label:hover {
    border-color: #c5d2d0;
}

.ccm-option-card:has(input:checked),
.ccm-segment label:has(input:checked) {
    background: var(--ccm-surface);
    border-color: var(--ccm-clay);
    box-shadow: inset 0 0 0 1px var(--ccm-clay);
}

.ccm-option-card input,
.ccm-segment input {
    opacity: 0;
    position: absolute;
}

.ccm-option-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.ccm-option-card small,
.ccm-measurements small {
    color: var(--ccm-muted);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.ccm-segment {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.ccm-measurements {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.ccm-measurements label {
    color: var(--ccm-ink);
    font-size: 14px;
    font-weight: 700;
}

.ccm-measurements span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    min-height: 52px;
    padding: 10px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ccm-measurements span:focus-within {
    border-color: var(--ccm-clay);
    box-shadow: 0 0 0 3px rgba(47, 107, 111, 0.15);
}

.ccm-measurements span.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.ccm-measurements input {
    border: 0;
    box-shadow: none;
    font-size: 16px;
    min-width: 0;
    outline: none;
    padding: 0;
    width: 100%;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ccm-measurements input::-webkit-outer-spin-button,
.ccm-measurements input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ccm-pairs {
    grid-column: 1 / -1;
    max-width: 220px;
}

.ccm-help .ccm-measure-help-trigger {
    background: none;
    border: 0;
    color: var(--ccm-clay);
    cursor: pointer;
    display: inline;
    font: inherit;
    font-weight: 700;
    margin-left: 6px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ccm-measure-guide {
    margin-top: 12px;
}

.ccm-measure-guide[hidden] {
    display: none;
}

.ccm-measure-guide__card {
    background: var(--ccm-surface);
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    color: var(--ccm-ink);
    padding: 16px 18px;
}

.ccm-measure-guide__card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

.ccm-measure-guide__card p {
    color: var(--ccm-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.ccm-measure-guide__diagram {
    color: var(--ccm-clay);
    margin: 0 0 12px;
    max-width: 220px;
}

.ccm-measure-guide__card .ccm-measure-help-trigger {
    margin-top: 4px;
}

.ccm-step--addon {
    padding: 14px 0;
}

.ccm-step--addon summary {
    color: var(--ccm-ink);
    font-size: 15px;
    font-weight: 600;
}

.ccm-accordion-step.ccm-step--addon summary {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ccm-estimator .ccm-step select {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b2b2b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 12px;
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--ccm-ink);
    display: block;
    font: inherit;
    margin-top: 14px;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 42px 12px 14px;
    width: 100%;
}

.ccm-help {
    color: var(--ccm-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 10px 0 0;
}

.ccm-estimate-panel {
    background: #fff;
    margin-top: 8px;
    padding: 16px 0 max(8px, env(safe-area-inset-bottom));
}

.ccm-calculate {
    background: transparent;
    border: 1px solid var(--ccm-line);
    border-radius: var(--radius, 6px);
    color: var(--ccm-ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: 12px;
    padding: 12px 20px;
    text-transform: uppercase;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
    width: 100%;
}

.ccm-calculate:hover {
    background: var(--ccm-ink);
    border-color: var(--ccm-ink);
    color: #fff;
}

/* Once there's a real price, the manual trigger just duplicates Add to
   basket — hide it and let the price + CTA stand as the summary. */
.ccm-price[data-state="priced"] ~ .ccm-calculate,
.ccm-price[data-state="calculating"] ~ .ccm-calculate {
    display: none;
}

.ccm-estimate-panel__actions {
    margin-top: 16px;
}

.ccm-estimate-panel__actions .single_add_to_cart_button {
    margin-top: 0;
    width: 100%;
}

.ccm-price__amount {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 6px;
}

.ccm-price__trust {
    color: var(--ccm-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ccm-price:not([data-state="priced"]) .ccm-price__trust {
    display: none;
}

.ccm-price {
    background: var(--ccm-surface);
    border: 1px solid var(--ccm-line);
    border-left: 4px solid var(--ccm-clay);
    border-radius: 8px;
    display: block;
    padding: 20px 24px;
}

.ccm-price__label {
    color: #6f7d7c;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ccm-price__value {
    color: #1b2b2b;
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.ccm-price__note {
    color: #6f7d7c;
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

/* Pre-price states: smaller, muted value */
.ccm-price[data-state="empty"] .ccm-price__value,
.ccm-price[data-state="calculating"] .ccm-price__value {
    color: #6f7d7c;
    font-size: 19px;
    font-weight: 500;
}

.ccm-price[data-state="calculating"] .ccm-price__value {
    opacity: 0.7;
}

.ccm-live-product-preview {
    background: var(--ccm-surface);
    border: 1px solid var(--ccm-line);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.ccm-live-product-preview__img {
    aspect-ratio: 4 / 5;
    background: var(--ccm-surface);
    display: block;
    object-fit: cover;
    width: 100%;
}

.ccm-live-product-preview:not(.has-fabric) .ccm-live-product-preview__img {
    opacity: 0.4;
}

.ccm-live-product-preview__caption {
    color: var(--ccm-muted, #6f7d7c);
    font-size: 12px;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
}

@media (max-width: 640px) {
    .ccm-fabric-grid,
    .ccm-option-grid,
    .ccm-segment,
    .ccm-measurements {
        grid-template-columns: 1fr;
    }
}

/* Curtain/blind type gallery (step 1 of the ACE configurator) — the same
   heading-choice card used on the Choose Heading page, sized down to fit
   this narrower panel. */
.ccm-estimator .heading-choice-grid--compact {
    gap: 10px;
    margin-top: 4px;
}

.ccm-estimator .heading-choice-grid--compact .heading-choice__preview {
    padding: 10px 10px 6px;
}

.heading-choice__preview--photo {
    padding: 0;
}

.heading-choice__preview--photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ccm-estimator .heading-choice-grid--compact .heading-choice__footer {
    padding: 12px 14px 14px;
}

.ccm-estimator .heading-choice-grid--compact strong {
    font-size: 15px;
}

.ccm-estimator .heading-choice-grid--compact small {
    font-size: 12px;
}

.heading-choice-wrap.is-current .heading-choice {
    border-color: var(--ccm-clay);
    box-shadow: 0 0 0 2px rgba(47, 107, 111, 0.16);
}

/* Live ACE order status (order-received + My Account) */
.ccm-ace-status {
    background: #f7faf9;
    border: 1px solid #e0e8e7;
    border-left: 4px solid #2f6b6f;
    border-radius: 8px;
    margin: 30px 0;
    padding: 20px 24px;
}

.ccm-ace-status__eyebrow {
    color: #6f7d7c;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ccm-ace-status__state {
    color: #1b2b2b;
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-top: 7px;
}

.ccm-ace-status__meta {
    color: #6f7d7c;
    font-size: 13px;
    margin: 7px 0 0;
}

/* Accessories (finishing touches) */
.ccm-accessory-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 16px;
}

.ccm-accessory {
    align-items: center;
    border: 1px solid #e0e8e7;
    border-radius: 8px;
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 12px 14px;
}

.ccm-accessory img,
.ccm-accessory__swatch {
    background: #eef3f2;
    border-radius: 6px;
    display: block;
    height: 52px;
    object-fit: cover;
    width: 52px;
}

.ccm-accessory__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ccm-accessory strong {
    font-size: 14px;
    line-height: 1.3;
}

.ccm-accessory__price {
    color: #2f6b6f;
    font-size: 13px;
    font-weight: 600;
}

.ccm-accessory__qty {
    align-items: center;
    color: #6f7d7c;
    display: flex;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    white-space: nowrap;
}

.ccm-accessory__qty input {
    -moz-appearance: textfield;
    appearance: textfield;
    border: 1px solid #bfc5ce;
    border-radius: 6px;
    box-sizing: border-box;
    height: 36px;
    margin: 0;
    max-width: 56px;
    padding: 0 8px;
    text-align: center;
    width: 56px;
}

.ccm-accessory__qty input::-webkit-outer-spin-button,
.ccm-accessory__qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Lining choices and illustrated optional extras. */
.ccm-lining-options { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.ccm-lining-choice { align-items: center; min-height: 78px; box-sizing: border-box; }
.ccm-lining-choice__copy { display: flex; flex-direction: column; gap: 5px; }
.ccm-lining-choice__copy strong { font-size: 14px; line-height: 1.4; }
.ccm-lining-choice__copy small { color: var(--ccm-muted); font-size: 12px; }
.ccm-extras-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccm-extra { min-width: 0; overflow: hidden; border: 1px solid var(--ccm-line); border-radius: 12px; background: #fff; }
.ccm-extra.is-selected { border-color: var(--ccm-clay); box-shadow: inset 0 0 0 1px var(--ccm-clay); }
button.ccm-extra__select { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 12px 12px 16px; appearance: none; background: transparent; border: 0; color: var(--ccm-ink); font: inherit; text-align: center; cursor: pointer; }
.ccm-extra__select img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 8px; }
.ccm-extra__select strong { font-size: 14px; line-height: 1.35; }
.ccm-extra__price { color: var(--ccm-ink); font-size: 14px; font-weight: 600; }
.ccm-extra__price small { color: var(--ccm-muted); font-size: 11px; font-weight: 400; }
.ccm-extra__state { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--ccm-line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.ccm-extra.is-selected .ccm-extra__state { background: var(--ccm-ink); color: #fff; border-color: var(--ccm-ink); }
.ccm-extra .ccm-accessory__qty { justify-content: center; padding: 0 12px 16px; }
.ccm-extra__select:focus-visible { outline: 2px solid var(--ccm-clay); outline-offset: -4px; border-radius: 10px; }
@media (max-width: 480px) {
    .ccm-extras-grid { grid-template-columns: minmax(0, 1fr); }
    .ccm-extra__select img { max-height: 160px; }
    .ccm-lining-options { grid-template-columns: minmax(0, 1fr); }
}
/* A single Add/quantity control in the same place on each extra card. */
.ccm-extra__visual { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 12px 16px; color: var(--ccm-ink); text-align: center; }
.ccm-extra__visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 8px; }
.ccm-extra__visual strong { font-size: 14px; line-height: 1.35; }
.ccm-extra__controls { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px 16px; }
button.ccm-extra__add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; appearance: none; background: #fff; color: var(--ccm-ink); border: 1px solid var(--ccm-line); border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
button.ccm-extra__add:hover { border-color: var(--ccm-clay); background: var(--ccm-surface); }
.ccm-extra__stepper { display: inline-grid; grid-template-columns: 44px 30px 44px; align-items: center; min-height: 44px; border-radius: 999px; background: var(--ccm-ink); color: #fff; }
.ccm-extra__stepper button { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.ccm-extra__stepper button:hover { background: rgba(255, 255, 255, 0.14); }
.ccm-extra__stepper button:disabled { opacity: 0.4; cursor: default; }
.ccm-extra__stepper output { text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ccm-extra__stepper[hidden], .ccm-extra__add[hidden] { display: none; }
.ccm-extra__controls > input[type="hidden"] { display: none !important; }
.ccm-extra__add:focus-visible { outline: 2px solid var(--ccm-clay); outline-offset: 3px; }
.ccm-extra__stepper button:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
@media (max-width: 480px) { .ccm-extra__visual img { max-height: 160px; } }
/* Lining options stay visible, outside the collapsible configurator steps. */
.ccm-step--fixed { padding: 14px 0; }
.ccm-step__fixed-heading { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ccm-ink); font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.ccm-step__fixed-heading > span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ccm-ink); color: #fff; font-size: 13px; font-weight: 700; }
/* An optional room reference, kept outside the required configuration steps. */
.ccm-product-reference { margin: 0 0 24px; }
.ccm-product-reference label { display: block; margin: 0 0 8px; color: var(--ccm-ink); font-size: 13px; font-weight: 600; }
.ccm-product-reference label > span { color: var(--ccm-muted); font-size: 12px; font-weight: 400; }
.ccm-product-reference input[type="text"] { box-sizing: border-box; display: block; width: 100%; min-height: 46px; margin: 0; padding: 12px 14px; border: 1px solid var(--ccm-line); border-radius: 8px; background: #fff; color: var(--ccm-ink); font: inherit; font-size: 14px; }
.ccm-product-reference input:focus-visible { outline: 2px solid var(--ccm-clay); outline-offset: 2px; }
.ccm-product-reference p { margin: 12px 0 16px; color: var(--ccm-muted); font-size: 13px; line-height: 1.5; }