.spcfg-configurator-shell {
    --spcfg-ink: #121826;
    --spcfg-muted: #667085;
    --spcfg-line: #dfe3ea;
    --spcfg-soft: #f5f7fa;
    --spcfg-accent: #1f5eff;
    --spcfg-accent-dark: #1548c8;
    --spcfg-success: #16803c;
    box-sizing: border-box;
    margin: 0 auto;
    color: var(--spcfg-ink);
}
.spcfg-configurator-shell *, .spcfg-configurator-shell *::before, .spcfg-configurator-shell *::after { box-sizing: border-box; }
.spcfg-error-state, .spcfg-success { padding: 42px 28px; border: 1px solid var(--spcfg-line); border-radius: 16px; background: #fff; text-align: center; }
.spcfg-loading { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 72px; padding: 20px 0; color: var(--spcfg-muted); background: transparent; font-size: 14px; font-weight: 600; letter-spacing: .03em; text-align: center; }
.spcfg-loading-spinner { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spcfg-loading-spin .7s linear infinite; }
@keyframes spcfg-loading-spin { to { transform: rotate(360deg); } }

@keyframes spcfg-preview-image-enter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* The actual configurator (after a model is picked) lives inside one light, glass-like panel. */
.spcfg-configuration-panel {
    --spcfg-ink: #fff;
    --spcfg-muted: rgba(255, 255, 255, .74);
    --spcfg-line: rgba(255, 255, 255, .24);
    --spcfg-soft: rgba(255, 255, 255, .08);
    --spcfg-accent: #fff;
    --spcfg-accent-dark: #e8f0f6;
    --spcfg-success: #b9e1c8;
    padding: 42px;
    color: var(--spcfg-ink);
    border: 1px solid #8AA4BA42;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, #212527 0%, #212527 54%, #0F0F0F 100%);
}
.spcfg-progress { display: flex; gap: 10px; margin: 0 0 34px; padding: 0; list-style: none; overflow-x: auto; }
.spcfg-progress li { display: flex; min-width: max-content; align-items: center; gap: 8px; color: rgba(255, 255, 255, .50); font-size: 16px; }
.spcfg-progress li::after { width: 34px; height: 1px; margin-left: 4px; content: ''; background: rgba(255, 255, 255, .24); }
.spcfg-progress li:last-child::after { display: none; }
.spcfg-progress span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; font-size: 12px; font-weight: 700; background: transparent; }
.spcfg-progress em { font-style: normal; }
.spcfg-progress .is-current { color: #fff; font-weight: 700; }
.spcfg-progress .is-current span { color: #263746; border-color: #fff; background: #fff; }
.spcfg-progress .is-complete { color: rgba(255, 255, 255, .84); }
.spcfg-progress .is-complete span { color: #263746; border-color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .82); }

/* Desktop layout: roughly two thirds for the choices, one third for the portrait render. */
.spcfg-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 48px; align-items: stretch; }
.spcfg-stage { display: flex; min-width: 0; flex-direction: column; padding: 0; }
.spcfg-step-heading { max-width: 690px; margin-bottom: 28px; }
.spcfg-overline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, .88);
    border: 1px solid #8AA4BA42;
    border-radius: 999px;
    background: rgba(138, 164, 186, .08);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: none;
}
.spcfg-overline-label { color: rgba(255, 255, 255, .60); }
.spcfg-overline-value { color: #fff; }
.spcfg-step-heading h2, .spcfg-success h2, .spcfg-error-state h2 { margin: 0 0 10px; font-size: clamp(26px, 2.35vw, 32px); line-height: 1.12; letter-spacing: -.03em; }
.spcfg-step-description { margin: 0; color: var(--spcfg-muted); line-height: 1.6; }

/* Preview has no artificial image box: it is simply the supplied render. */
.spcfg-preview { position: sticky; top: 28px; min-width: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.spcfg-preview-figure { display: flex; width: 100%; justify-content: flex-end; margin: 0; }
.spcfg-preview-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: 620px; margin: 0; border-radius: 16px; object-fit: contain; }
.spcfg-preview-figure.is-image-changing img { animation: spcfg-preview-image-enter .48s cubic-bezier(.22, .85, .32, 1) both; }
.spcfg-preview-placeholder { display: flex; min-height: 280px; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, .62); }
.spcfg-preview-placeholder span { font-size: 66px; line-height: 1; }
.spcfg-preview-placeholder p { margin: 12px 0 0; font-weight: 700; }

.spcfg-options { display: grid; gap: 12px; }
/* All text choices occupy one consistent list width. The text itself may wrap inside
   that width, so long technical labels never spill out of their pill. */
.spcfg-options-cards {
    display: flex;
    width: min(100%, 460px);
    max-width: 460px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.spcfg-options-swatches { display: flex; flex-wrap: wrap; gap: 20px; }

/* Non-colour choices are deliberately compact, calm, and vertically stacked. */
.spcfg-option-card {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Equal left/right safe areas keep the label visually centred. The selected
       checkmark lives in the left safe area, never on top of the text. */
    padding: 11px 54px;
    color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.spcfg-option-card:hover { color: #fff; border-color: rgba(255, 255, 255, .68); background: rgba(255, 255, 255, .10); }
.spcfg-option-card.is-selected {
    color: #243442;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.spcfg-option-card.is-selected::before {
    position: absolute;
    top: 50%;
    left: 16px;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    content: '✓';
    color: #fff;
    border-radius: 50%;
    background: #314656;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}
.spcfg-option-card.is-disabled { opacity: .38; cursor: not-allowed; }
.spcfg-option-card span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.spcfg-option-card small { color: inherit; opacity: .72; line-height: 1.35; }
.spcfg-option-card img { display: none; }

/* A colour choice is the actual coloured button: no wrapper, pill, border or card. */
.spcfg-option-swatch {
    display: block !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    flex: 0 0 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;
    background: var(--spcfg-swatch-gradient, var(--spcfg-swatch-color)) !important;
    background-color: var(--spcfg-swatch-color) !important;
    box-shadow: none !important;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
    transition: transform .18s ease, opacity .18s ease;
}
.spcfg-option-swatch:hover { border: 0 !important; background: var(--spcfg-swatch-gradient, var(--spcfg-swatch-color)) !important; opacity: .90; }
.spcfg-option-swatch.is-selected {
    border: 0 !important;
    background: var(--spcfg-swatch-gradient, var(--spcfg-swatch-color)) !important;
    box-shadow: none !important;
    outline: 3px solid #fff !important;
    outline-offset: 4px !important;
    opacity: 1;
    transform: scale(1.09);
}
.spcfg-option-swatch:focus-visible { outline: 2px solid #fff !important; outline-offset: 5px !important; }
.spcfg-option-swatch.is-disabled { opacity: .28; cursor: not-allowed; }
.spcfg-swatch-color { display: none !important; }
.spcfg-selected-option-label { margin: 16px 0 0; color: rgba(255, 255, 255, .94); font-size: 18px; font-weight: 400; line-height: 1.4; }
.spcfg-screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* On variable steps the actions are direct children of the stretched left column, so they stay at its bottom. */
.spcfg-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; }
.spcfg-stage > .spcfg-actions { margin-top: auto; padding-top: 34px; }
.spcfg-actions .spcfg-button-primary:only-child { margin-left: auto; }
.spcfg-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease, transform .18s ease; }
.spcfg-button-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.spcfg-button:disabled { opacity: .42; cursor: not-allowed; }
.spcfg-button-primary { color: #243442 !important; border-color: #fff !important; background: #fff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.spcfg-button-primary:not(:disabled):hover { color: #17232d !important; border-color: #e7f0f5 !important; background: #e7f0f5 !important; }
.spcfg-button-secondary { color: rgba(255, 255, 255, .86); border-color: rgba(255, 255, 255, .32); background: transparent; }
.spcfg-button-secondary:hover { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }

/* Model selection: individual cards without an enclosing frame. */
.spcfg-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 901px) { .spcfg-model-grid { gap: 24px; } }
.spcfg-model-card { display: block; min-width: 0; padding: 20px; color: #fff; border-radius: 20px; background: #8AA4BA42; box-shadow: 0 14px 28px rgba(0, 0, 0, .18); cursor: pointer; text-decoration: none; transition: background .2s ease; }
.spcfg-model-card:hover, .spcfg-model-card:focus { color: #fff; background: #8AA4BA87; outline: 0; text-decoration: none; }
.spcfg-model-card:focus-visible { outline: 2px solid #bed1df; outline-offset: 3px; }
.spcfg-model-heading { margin: 0 0 13px; }
.spcfg-model-heading .elementor-heading-title, .spcfg-model-heading .elementor-heading-title a { margin: 0; color: #fff; font-size: 24px; font-weight: 400; letter-spacing: .015em; line-height: 1.08; text-decoration: none; }
.spcfg-model-heading .prod-colored-title { color: #a8c5db; font-weight: 300; text-transform: uppercase; }
.spcfg-model-image { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; border-radius: 16px; }
.spcfg-model-no-image { display: flex; min-height: 220px; align-items: center; justify-content: center; color: #a8c5db; font-size: 52px; }

.spcfg-summary { margin-bottom: 24px; overflow: hidden; border: 1px solid var(--spcfg-line); border-radius: 12px; }
.spcfg-summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 17px; border-bottom: 1px solid var(--spcfg-line); }
.spcfg-summary-row:last-child { border-bottom: 0; }
.spcfg-summary-row span { color: var(--spcfg-muted); }
.spcfg-summary-row strong { text-align: right; }
/* Quote form: mirrors the site's dark, rounded form controls. */
.spcfg-quote-form-box {
    width: 100%;
    margin-top: 16px;
    padding: 40px;
    border-radius: 16px;
    background-color: #8AA4BA1A;
}
.spcfg-quote-form { width: 100%; margin: 0; }
.spcfg-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.spcfg-form-field { display: block; min-width: 0; }
.spcfg-form-grid input:not([type=checkbox]),
.spcfg-form-grid textarea {
    width: 100%;
    color: rgba(255, 255, 255, .96);
    border: 1px solid rgba(138, 164, 186, .78);
    border-radius: 999px;
    background: #212527;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.spcfg-form-grid input:not([type=checkbox]) {
    min-height: 40px;
    padding: 9px 16px;
}
.spcfg-form-grid textarea {
    min-height: 102px;
    padding: 14px 16px;
    border-radius: 22px;
    line-height: 1.45;
    resize: vertical;
}
.spcfg-form-grid input:not([type=checkbox])::placeholder,
.spcfg-form-grid textarea::placeholder { color: rgba(255, 255, 255, .94); opacity: 1; }
.spcfg-form-grid input:not([type=checkbox]):focus,
.spcfg-form-grid textarea:focus {
    border-color: #dcecf6;
    outline: 0;
    background: #252b2e;
    box-shadow: 0 0 0 3px rgba(138, 164, 186, .16);
}
.spcfg-form-grid input:-webkit-autofill,
.spcfg-form-grid input:-webkit-autofill:hover,
.spcfg-form-grid input:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255, 255, 255, .96);
    -webkit-box-shadow: 0 0 0 1000px #212527 inset;
    transition: background-color 9999s ease-out 0s;
}
.spcfg-form-full { grid-column: 1 / -1; }
.spcfg-form-grid .spcfg-consent {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .94);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}
.spcfg-consent input[type=checkbox] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(138, 164, 186, .82);
    border-radius: 50%;
    background: #212527;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.spcfg-consent input[type=checkbox]:checked {
    border-color: #dcecf6;
    background-color: #8aa4ba;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M3 8.3l3 3 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}
.spcfg-consent input[type=checkbox]:focus-visible { outline: 3px solid rgba(138, 164, 186, .22); outline-offset: 2px; }
.spcfg-consent a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .58); text-underline-offset: 2px; }
.spcfg-consent a:hover { color: #fff; text-decoration-color: #fff; }
.spcfg-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spcfg-form-message { min-height: 20px; margin-top: 13px; color: #d8f1e1; font-size: 14px; font-weight: 650; }
.spcfg-form-message.is-error { color: #ffd9d4; }
.spcfg-success { max-width: 640px; margin: 0 auto; }
.spcfg-success-mark { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; border-radius: 50%; background: var(--spcfg-success); font-size: 28px; font-weight: 800; }
.spcfg-success p { color: var(--spcfg-muted); line-height: 1.6; }
.spcfg-reference { padding: 12px; border-radius: 8px; background: var(--spcfg-soft); }
.spcfg-error-state p { color: var(--spcfg-muted); }
.spcfg-admin-warning { padding: 12px; color: #7a271a; border: 1px solid #fecdca; border-radius: 8px; background: #fffbfa; }


/* Desktop: progress / choices / preview are three distinct columns. */
@media (min-width: 901px) {
    .spcfg-configuration-panel {
        display: grid;
        grid-template-columns: minmax(150px, 170px) minmax(0, 2fr) minmax(240px, 1fr);
        column-gap: 80px;
        align-items: stretch;
    }
    .spcfg-configuration-panel > .spcfg-progress {
        position: sticky;
        top: 28px;
        grid-column: 1;
        align-self: start;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        overflow: visible;
    }
    .spcfg-configuration-panel > .spcfg-progress li {
        position: relative;
        min-width: 0;
        min-height: 28px;
        margin: 0 0 23px;
        font-size: 16px;
        line-height: 1.25;
    }
    .spcfg-configuration-panel > .spcfg-progress li:last-child { margin-bottom: 0; }
    .spcfg-configuration-panel > .spcfg-progress li::after {
        position: absolute;
        top: 29px;
        left: 12px;
        display: block;
        width: 1px;
        height: 20px;
        margin: 0;
        content: '';
        background: rgba(255, 255, 255, .24);
    }
    .spcfg-configuration-panel > .spcfg-progress li:last-child::after { display: none; }
    .spcfg-configuration-panel > .spcfg-layout {
        grid-column: 2 / 4;
        min-width: 0;
        gap: 80px;
        margin: 0;
    }
    /* Keep the live render visible while the visitor scrolls through long
       option lists or the final quote form, just like the step navigation. */
    .spcfg-configuration-panel .spcfg-preview {
        position: sticky;
        top: 28px;
        align-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spcfg-preview-figure.is-image-changing img { animation: none; }
}

@media (max-width: 900px) {
    .spcfg-configuration-panel { padding: 28px; }
    .spcfg-quote-form-box { padding: 28px; }
    .spcfg-layout { grid-template-columns: 1fr; gap: 28px; }
    .spcfg-preview { position: static; grid-row: 1; }
    .spcfg-preview-figure { justify-content: center; }
    .spcfg-preview-figure img { max-height: 520px; }
    .spcfg-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spcfg-model-heading .elementor-heading-title { font-size: 22px; }
}
@media (max-width: 580px) {
    .spcfg-configuration-panel { padding: 22px 18px; border-radius: 16px; }
    .spcfg-quote-form-box { padding: 24px 18px; }

    /* Long technical option names must remain inside their equal-width pills.
       The text can use two or more centred lines, while the left/right safe
       areas continue to reserve space for the selected-state checkmark. */
    .spcfg-option-card {
        min-height: 56px;
        padding: 12px 52px;
    }
    .spcfg-option-card span {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        text-wrap: balance;
        line-height: 1.34 !important;
    }
    .spcfg-option-card.is-selected::before {
        left: 14px;
    }

    /* Mobile actions: keep the primary action first and prevent any horizontal overflow. */
    .spcfg-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .spcfg-actions .spcfg-button {
        width: 100%;
    }
    .spcfg-actions .spcfg-button-primary {
        order: -1;
        margin-left: 0;
    }
    .spcfg-actions .spcfg-button-primary:only-child {
        margin-left: 0;
    }

    .spcfg-progress { margin-bottom: 22px; }
    .spcfg-progress em { display: none; }
    .spcfg-progress li::after { width: 18px; }
    .spcfg-options-cards { max-width: 100%; }
    .spcfg-model-grid, .spcfg-form-grid { grid-template-columns: 1fr; }
    .spcfg-options-swatches { gap: 16px; }
    .spcfg-option-swatch { width: 56px !important; min-width: 56px !important; max-width: 56px !important; height: 56px !important; min-height: 56px !important; max-height: 56px !important; flex-basis: 56px !important; }
    .spcfg-model-card { padding: 16px; border-radius: 16px; }
    .spcfg-model-heading .elementor-heading-title { font-size: 20px; }
    .spcfg-summary-row { flex-direction: column; gap: 4px; }
    .spcfg-summary-row strong { text-align: left; }
}
