/**
 * FurniCore v1.2 Premium Experience
 * Visual enhancement layer. It intentionally preserves existing markup.
 */

:root {
    --fc-primary: #2563eb;
    --fc-primary-strong: #1d4ed8;
    --fc-primary-soft: #eff6ff;
    --fc-accent: #0f766e;
    --fc-success: #15803d;
    --fc-ink: #0f172a;
    --fc-text: #334155;
    --fc-muted: #64748b;
    --fc-line: #e2e8f0;
    --fc-line-strong: #cbd5e1;
    --fc-surface: #ffffff;
    --fc-surface-soft: #f8fafc;
    --fc-surface-tint: #f1f5f9;
    --fc-danger: #b91c1c;
    --fc-radius-sm: 10px;
    --fc-radius-md: 16px;
    --fc-radius-lg: 24px;
    --fc-radius-xl: 32px;
    --fc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
    --fc-shadow-md: 0 12px 30px rgba(15, 23, 42, .09);
    --fc-shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
    --fc-ease: cubic-bezier(.2, .8, .2, 1);
    --fc-container: 1100px;
}


/* ==========================================================
 * FurniCore theme integration
 *
 * Uses common WordPress/Astra accent variables when available,
 * while retaining FurniCore's own safe fallback.
 * ========================================================== */
.fc-calculator,
.fc-result {
    --fc-primary:
        var(
            --wp--preset--color--primary,
            var(
                --wp--preset--color--accent,
                var(
                    --ast-global-color-0,
                    var(--ast-global-color-1, #2563eb)
                )
            )
        );
    --fc-primary-strong:
        color-mix(in srgb, var(--fc-primary) 82%, #000);
    --fc-primary-soft:
        color-mix(in srgb, var(--fc-primary) 10%, #fff);
    --fc-primary-ring:
        color-mix(in srgb, var(--fc-primary) 24%, transparent);
    --fc-primary-shadow:
        color-mix(in srgb, var(--fc-primary) 22%, transparent);
}

.fc-calculator,
.fc-result {
    box-sizing: border-box;
    color: var(--fc-text);
    font-family: inherit;
}

.fc-calculator *,
.fc-result * {
    box-sizing: border-box;
}

.fc-calculator {
    position: relative;
    isolation: isolate;
    width: min(100%, var(--fc-container));
    margin-inline: auto;
    padding: clamp(20px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: var(--fc-radius-xl);
    background:
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, .12), transparent 28%),
        radial-gradient(circle at 8% 96%, rgba(15, 118, 110, .08), transparent 30%),
        var(--fc-surface);
    box-shadow: var(--fc-shadow-lg);
}

.fc-calculator::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 7px;
    background: linear-gradient(90deg, var(--fc-primary), #7c3aed, var(--fc-accent));
}

/* Hero compatibility selectors */
.fc-hero,
.fc-calculator-hero,
.fc-calculator__hero {
    position: relative;
    max-width: 780px;
    margin: 0 auto clamp(26px, 4vw, 44px);
    text-align: center;
}

.fc-hero h1,
.fc-hero h2,
.fc-calculator-hero h1,
.fc-calculator-hero h2,
.fc-calculator__hero h1,
.fc-calculator__hero h2,
.fc-calculator > h1,
.fc-calculator > h2 {
    margin: 0 0 12px;
    color: var(--fc-ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.fc-hero p,
.fc-calculator-hero p,
.fc-calculator__hero p,
.fc-calculator > p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--fc-muted);
    font-size: clamp(1rem, 1.5vw, 1.13rem);
    line-height: 1.75;
}

/* Progress */
.fc-progress,
.fc-progress-track {
    position: relative;
    height: 9px;
    margin: 22px 0 30px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.fc-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fc-primary), #7c3aed);
    box-shadow: 0 0 18px rgba(37, 99, 235, .28);
    transition: width .45s var(--fc-ease);
}

.fc-step-indicator,
.fc-step-label,
.fc-step-count {
    color: var(--fc-primary-strong);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fc-steps,
.fc-stepper {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0 0 22px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.fc-steps::-webkit-scrollbar,
.fc-stepper::-webkit-scrollbar { display: none; }

.fc-step {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--fc-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--fc-muted);
    font-size: .8rem;
    font-weight: 750;
    transition: all .25s var(--fc-ease);
}

.fc-step.active {
    border-color: transparent;
    background: var(--fc-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
    transform: translateY(-1px);
}

.fc-step.completed {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--fc-success);
}

/* Step panel */
.fc-wizard-step {
    display: none;
    animation: fcFadeUp .38s var(--fc-ease) both;
}

.fc-wizard-step.active { display: block; }

.fc-wizard-step > h2,
.fc-wizard-step > h3 {
    margin: 0 0 8px;
    color: var(--fc-ink);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: center;
}

.fc-wizard-step > p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: var(--fc-muted);
    line-height: 1.65;
    text-align: center;
}

/* Option grids and cards */
.fc-options,
.fc-option-grid,
.fc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    margin-block: 20px 30px;
}

.fc-option {
    position: relative;
    display: flex;
    min-height: 136px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-md);
    background: rgba(255, 255, 255, .92);
    color: var(--fc-text);
    cursor: pointer;
    box-shadow: var(--fc-shadow-sm);
    transition:
        transform .24s var(--fc-ease),
        border-color .24s ease,
        box-shadow .24s ease,
        background .24s ease;
}

.fc-option::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(140deg, var(--fc-primary-soft), transparent 58%);
    transition: opacity .24s ease;
}

.fc-option:hover {
    transform: translateY(-4px);
    border-color: var(--fc-primary);
    box-shadow: var(--fc-shadow-md);
}

.fc-option:hover::before { opacity: 1; }

.fc-option:focus-visible {
    outline: 3px solid var(--fc-primary-ring);
    outline-offset: 3px;
}

.fc-calculator .fc-option.active,
.fc-calculator .fc-option[aria-pressed="true"] {
    border-color: var(--fc-primary) !important;
    background-color: var(--fc-primary-soft) !important;
    background-image: none !important;
    color: var(--fc-text) !important;
    box-shadow: 0 0 0 3px var(--fc-primary-ring), var(--fc-shadow-md) !important;
    transform: translateY(-2px);
}

.fc-calculator .fc-option.active::after,
.fc-calculator .fc-option[aria-pressed="true"]::after {
    content: "✓";
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--fc-primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
    box-shadow: 0 5px 14px var(--fc-primary-shadow);
}

.fc-option h3,
.fc-option h4,
.fc-option-title {
    position: relative;
    margin: 0 0 7px;
    color: var(--fc-ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.fc-option p,
.fc-option-subtitle {
    position: relative;
    margin: 0;
    color: var(--fc-muted);
    font-size: .92rem;
    line-height: 1.55;
}

/* Navigation */
.fc-navigation,
.fc-wizard-actions,
.fc-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--fc-line);
}

.fc-next,
.fc-prev,
.fc-button,
.fc-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid var(--fc-line-strong);
    border-radius: 13px;
    background: var(--fc-surface);
    color: var(--fc-ink);
    font: inherit;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--fc-shadow-sm);
    transition: transform .2s var(--fc-ease), box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.fc-next,
.fc-action-primary {
    border-color: var(--fc-primary);
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-strong));
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.fc-next:hover:not(:disabled),
.fc-prev:hover,
.fc-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--fc-shadow-md);
}

.fc-next:disabled {
    border-color: var(--fc-line);
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.fc-btn-arrow { transition: transform .2s ease; }
.fc-next:hover:not(:disabled) .fc-btn-arrow { transform: translateX(3px); }
[dir="rtl"] .fc-next:hover:not(:disabled) .fc-btn-arrow { transform: translateX(-3px); }

/* Loading */
.fc-loading {
    width: min(100%, 760px);
    margin: 32px auto;
    padding: clamp(36px, 8vw, 76px) 24px;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-xl);
    background: var(--fc-surface);
    text-align: center;
    box-shadow: var(--fc-shadow-lg);
}

.fc-loader {
    width: 54px;
    height: 54px;
    margin: 0 auto 22px;
    border: 5px solid #dbeafe;
    border-top-color: var(--fc-primary);
    border-radius: 50%;
    animation: fcSpin .8s linear infinite;
}

/* Result dashboard */
.fc-result {
    width: min(100%, var(--fc-container));
    margin-inline: auto;
}

.fc-result-card {
    overflow: hidden;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-xl);
    background: var(--fc-surface);
    box-shadow: var(--fc-shadow-lg);
}

.fc-result-header {
    position: relative;
    padding: clamp(34px, 6vw, 64px) clamp(22px, 5vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(135deg, #172554, var(--fc-primary-strong) 62%, #2563eb);
    color: #fff;
    text-align: center;
}

.fc-result-badge {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.fc-result-price {
    margin: 18px 0 10px;
    color: #fff;
    font-size: clamp(2.3rem, 7vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.fc-result-range {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
}

.fc-result-range strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 1.05rem;
}

.fc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(20px, 4vw, 38px);
    background: var(--fc-surface-soft);
}

.fc-summary-card,
.fc-recommendation {
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-lg);
    background: var(--fc-surface);
    box-shadow: var(--fc-shadow-sm);
}

.fc-summary-card { padding: clamp(20px, 3vw, 30px); }

.fc-summary-card h3,
.fc-recommendation h3 {
    margin: 0 0 18px;
    color: var(--fc-ink);
    font-size: 1.12rem;
}

.fc-summary-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px dashed var(--fc-line);
}

.fc-summary-row:last-child { border-bottom: 0; }
.fc-summary-row span { color: var(--fc-muted); }
.fc-summary-row strong { color: var(--fc-ink); text-align: end; }

.fc-price-box {
    padding: 22px;
    border-radius: var(--fc-radius-md);
    background: linear-gradient(135deg, var(--fc-primary-soft), #eef2ff);
    text-align: center;
}

.fc-price-box small {
    display: block;
    margin-bottom: 7px;
    color: var(--fc-muted);
    font-weight: 700;
}

.fc-price-box strong {
    color: var(--fc-primary-strong);
    font-size: clamp(1.65rem, 4vw, 2.45rem);
}

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

.fc-price-breakdown > div {
    padding: 13px;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-muted);
    font-size: .84rem;
}

.fc-price-breakdown span {
    display: block;
    margin-top: 5px;
    color: var(--fc-ink);
    font-size: .97rem;
    font-weight: 800;
}

.fc-recommendation {
    position: relative;
    margin: 0 clamp(20px, 4vw, 38px) clamp(20px, 4vw, 38px);
    padding: clamp(22px, 4vw, 34px);
    border-inline-start: 5px solid var(--fc-accent);
    background: linear-gradient(135deg, #f0fdfa, #fff);
}

.fc-recommendation p {
    margin: 0 0 10px;
    color: var(--fc-text);
    line-height: 1.75;
}
.fc-recommendation p:last-child { margin-bottom: 0; }

.fc-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 clamp(20px, 4vw, 38px) clamp(24px, 4vw, 40px);
}

/* Animations */
.enter-right { animation: fcSlideIn .38s var(--fc-ease) both; }
.fc-shake { animation: fcShake .38s ease; }

@keyframes fcFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fcSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fcShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    75% { transform: translateX(7px); }
}
@keyframes fcSpin { to { transform: rotate(360deg); } }

/* RTL */
[dir="rtl"] .enter-right {
    animation-name: fcSlideInRtl;
}
@keyframes fcSlideInRtl {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile-first product polish */
@media (max-width: 767px) {
    .fc-calculator {
        padding: 24px 16px 18px;
        border-radius: 22px;
    }

    .fc-hero,
    .fc-calculator-hero,
    .fc-calculator__hero {
        margin-bottom: 24px;
    }

    .fc-options,
    .fc-option-grid,
    .fc-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fc-option {
        min-height: 106px;
        padding: 18px;
    }

    .fc-navigation,
    .fc-wizard-actions,
    .fc-buttons {
        position: sticky;
        z-index: 20;
        bottom: 0;
        margin-inline: -16px;
        margin-bottom: -18px;
        padding: 13px 16px max(13px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(203, 213, 225, .85);
        background: rgba(255,255,255,.94);
        box-shadow: 0 -10px 30px rgba(15,23,42,.08);
        backdrop-filter: blur(14px);
    }

    .fc-next,
    .fc-prev {
        min-height: 52px;
    }

    .fc-next { flex: 1; }

    .fc-result-grid { grid-template-columns: 1fr; }

    .fc-result-actions {
        flex-direction: column;
    }

    .fc-result-actions .fc-action {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .fc-step { min-width: 34px; min-height: 34px; padding: 7px 10px; }
    .fc-price-breakdown { grid-template-columns: 1fr; }
    .fc-result-header { padding-inline: 18px; }
}

/* Theme and accessibility compatibility */
@media (prefers-reduced-motion: reduce) {
    .fc-calculator *,
    .fc-result * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    .fc-calculator[data-fc-theme="auto"],
    .fc-result[data-fc-theme="auto"] {
        --fc-ink: #f8fafc;
        --fc-text: #cbd5e1;
        --fc-muted: #94a3b8;
        --fc-line: #334155;
        --fc-line-strong: #475569;
        --fc-surface: #0f172a;
        --fc-surface-soft: #111827;
        --fc-surface-tint: #1e293b;
    }
}

/* ==========================================================
 * FurniCore v1.2.1 — visual corrections
 * ========================================================== */

/* Keep dark/gradient calculator heroes legible. */
.fc-hero,
.fc-calculator-hero,
.fc-calculator__hero {
    color: #fff;
}

.fc-hero h1,
.fc-hero h2,
.fc-hero h3,
.fc-hero p,
.fc-hero strong,
.fc-hero span,
.fc-calculator-hero h1,
.fc-calculator-hero h2,
.fc-calculator-hero h3,
.fc-calculator-hero p,
.fc-calculator-hero strong,
.fc-calculator-hero span,
.fc-calculator__hero h1,
.fc-calculator__hero h2,
.fc-calculator__hero h3,
.fc-calculator__hero p,
.fc-calculator__hero strong,
.fc-calculator__hero span {
    color: inherit;
}

/* Progress behaves as a left-to-right strip and always begins at step 1. */
.fc-steps,
.fc-stepper {
    justify-content: flex-start;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 8px;
    overscroll-behavior-inline: contain;
}

.fc-step {
    scroll-snap-align: center;
}

/* Active step remains readable instead of becoming a solid blue capsule. */
.fc-step.active {
    border-color: var(--fc-primary);
    background: #eff6ff;
    color: #1e40af;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .14);
}

.fc-step.active *,
.fc-step.active .fc-step-label,
.fc-step.active .fc-step-title,
.fc-step.active .fc-step-name,
.fc-step.active .fc-step-status {
    color: #1e40af !important;
}

.fc-step.active .fc-step-number,
.fc-step.active > span:first-child {
    background: var(--fc-primary);
    color: #fff !important;
}

/* Existing card markup already renders its own selection icon. */
.fc-calculator .fc-option.active::after,
.fc-calculator .fc-option[aria-pressed="true"]::after {
    content: none !important;
    display: none !important;
}

/* Results use a premium light dashboard instead of a large blue slab. */
.fc-result-header {
    border-bottom: 1px solid var(--fc-line);
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .13), transparent 30%),
        radial-gradient(circle at 12% 92%, rgba(15, 118, 110, .08), transparent 32%),
        linear-gradient(145deg, #ffffff, #f8fafc);
    color: var(--fc-ink);
}

.fc-result-badge {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--fc-primary-strong);
    backdrop-filter: none;
}

.fc-result-price {
    color: var(--fc-ink);
}

.fc-result-range {
    color: var(--fc-muted);
}

.fc-result-range strong {
    color: var(--fc-text);
}

/* Recommendation is a calm editorial panel, not another dominant banner. */
.fc-recommendation {
    border: 1px solid #dbe7e5;
    border-inline-start: 4px solid var(--fc-accent);
    background: linear-gradient(135deg, #f8fffd, #ffffff);
    box-shadow: none;
}

@media (max-width: 767px) {
    .fc-steps,
    .fc-stepper {
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .fc-step {
        min-width: max-content;
    }
}

/* FurniCore v1.2.3 — live selection summary */
.fc-live-summary {
    margin: 0 0 clamp(22px, 3vw, 32px);
    padding: 16px;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-md);
    background: rgba(248, 250, 252, .88);
    box-shadow: var(--fc-shadow-sm);
}

.fc-live-summary__header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fc-live-summary__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--fc-primary-strong);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fc-live-summary__title {
    display: block;
    color: var(--fc-ink);
    font-size: .95rem;
    line-height: 1.35;
}

.fc-live-summary__count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: var(--fc-primary-soft);
    color: var(--fc-primary-strong);
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.fc-live-summary__items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.fc-live-summary__item {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-width: 150px;
    padding: 9px 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
    scroll-snap-align: start;
}

.fc-live-summary__check {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--fc-success);
    font-size: .78rem;
    font-weight: 900;
}

.fc-live-summary__text {
    min-width: 0;
}

.fc-live-summary__text small,
.fc-live-summary__text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-live-summary__text small {
    color: var(--fc-muted);
    font-size: .66rem;
    line-height: 1.25;
}

.fc-live-summary__text strong {
    margin-top: 2px;
    color: var(--fc-ink);
    font-size: .82rem;
    line-height: 1.25;
}

.fc-live-summary__empty {
    color: var(--fc-muted);
    font-size: .86rem;
}

@media (max-width: 640px) {
    .fc-live-summary {
        margin-inline: -2px;
        padding: 13px;
    }

    .fc-live-summary__header {
        align-items: flex-start;
    }

    .fc-live-summary__title {
        font-size: .86rem;
    }

    .fc-live-summary__count {
        padding: 5px 8px;
        font-size: .68rem;
    }

    .fc-live-summary__item {
        min-width: 138px;
    }
}

[dir="rtl"] .fc-live-summary__items {
    direction: rtl;
}

/* ==========================================================
 * FurniCore v1.2.4 — result dashboard polish
 * ========================================================== */

/* Keep result headings premium without overwhelming the page. */
.fc-result-header {
    padding-block: clamp(30px, 5vw, 52px);
}

.fc-result-price {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Consistent card sizing inside the two-column result dashboard. */
.fc-result-grid {
    align-items: stretch;
}

.fc-summary-card {
    min-width: 0;
    height: 100%;
}

/* Prevent currency labels and values from colliding or wrapping badly. */
.fc-price-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fc-price-breakdown > div {
    display: flex;
    min-width: 0;
    min-height: 88px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px 16px;
    line-height: 1.4;
}

.fc-price-breakdown > div > span {
    display: block;
    width: 100%;
    margin-top: 9px;
    color: var(--fc-ink);
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
    font-weight: 800;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.fc-price-box {
    min-width: 0;
}

.fc-price-box strong {
    display: block;
    max-width: 100%;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

/* Selection rows remain readable when labels or values are long. */
.fc-summary-row {
    min-width: 0;
}

.fc-summary-row > span,
.fc-summary-row > strong {
    min-width: 0;
}

.fc-summary-row > strong {
    overflow-wrap: anywhere;
}

/* Clearer action hierarchy at the bottom of results. */
.fc-result-actions {
    align-items: stretch;
}

.fc-result-actions .fc-action {
    min-height: 48px;
}

@media (max-width: 680px) {
    .fc-price-breakdown {
        grid-template-columns: 1fr;
    }

    .fc-price-breakdown > div {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .fc-price-breakdown > div > span {
        width: auto;
        margin-top: 0;
        margin-inline-start: auto;
        text-align: end;
    }
}

@media (max-width: 380px) {
    .fc-price-breakdown > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .fc-price-breakdown > div > span {
        width: 100%;
        margin-inline-start: 0;
        text-align: start;
    }
}

/* ==========================================================
 * FurniCore v1.2.5 — mobile UX, motion and accessibility polish
 * ========================================================== */

/* Larger, reliable interaction targets for touch and keyboard users. */
.fc-option,
.fc-next,
.fc-prev,
.fc-action,
.fc-restart {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.fc-next,
.fc-prev,
.fc-action,
.fc-restart {
    min-height: 48px;
}

/* Consistent visible focus across controls. */
.fc-next:focus-visible,
.fc-prev:focus-visible,
.fc-action:focus-visible,
.fc-restart:focus-visible,
.fc-step:focus-visible {
    outline: 3px solid var(--fc-primary-ring);
    outline-offset: 3px;
}

/* Active option feedback without creating a second tick icon. */
.fc-option.active,
.fc-option[aria-pressed="true"] {
    transform: translateY(-2px);
}

.fc-calculator .fc-option.active::after,
.fc-calculator .fc-option[aria-pressed="true"]::after {
    animation: fcSelectedPulse .34s var(--fc-ease) both;
}

/* Smooth, restrained step transitions. */
.fc-wizard-step.active {
    animation: fcStepEnter .34s var(--fc-ease) both;
}

.fc-progress-fill {
    will-change: width;
}

/* Give horizontal progress strips natural edge spacing. */
.fc-steps,
.fc-stepper {
    scroll-padding-inline: 14px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.fc-step {
    scroll-snap-align: center;
}

/* Keep live selections usable with long translated labels. */
.fc-live-summary__items {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

/* Improve readability for result and recommendation content. */
.fc-result-card,
.fc-summary-card,
.fc-recommendation {
    overflow-wrap: anywhere;
}

.fc-recommendation p:last-child {
    margin-bottom: 0;
}

/* Mobile app-like calculator flow without locking the page. */
@media (max-width: 760px) {
    .fc-calculator,
    .fc-result {
        width: 100%;
        border-radius: 22px;
    }

    .fc-calculator {
        padding: 22px 16px 20px;
    }

    .fc-hero,
    .fc-calculator-hero,
    .fc-calculator__hero {
        margin-bottom: 24px;
    }

    .fc-hero h1,
    .fc-hero h2,
    .fc-calculator-hero h1,
    .fc-calculator-hero h2,
    .fc-calculator__hero h1,
    .fc-calculator__hero h2,
    .fc-calculator > h1,
    .fc-calculator > h2 {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
        line-height: 1.12;
    }

    .fc-hero p,
    .fc-calculator-hero p,
    .fc-calculator__hero p,
    .fc-calculator > p {
        font-size: .96rem;
        line-height: 1.65;
    }

    .fc-progress,
    .fc-progress-track {
        height: 8px;
        margin: 17px 0 20px;
    }

    .fc-steps,
    .fc-stepper {
        justify-content: flex-start;
        margin-inline: -4px;
        padding-inline: 4px 18px;
        scroll-snap-type: x proximity;
    }

    .fc-step {
        min-width: max-content;
        min-height: 42px;
        padding: 8px 13px;
    }

    .fc-wizard-step > h2,
    .fc-wizard-step > h3 {
        font-size: clamp(1.3rem, 6vw, 1.7rem);
    }

    .fc-wizard-step > p {
        margin-bottom: 20px;
        font-size: .94rem;
    }

    .fc-options,
    .fc-option-grid,
    .fc-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        margin-block: 16px 22px;
    }

    .fc-option {
        min-height: 128px;
        padding: 16px 13px;
        border-radius: 14px;
    }

    /* Navigation stays reachable without covering calculator content. */
    .fc-navigation,
    .fc-actions,
    .fc-wizard-navigation {
        position: sticky;
        z-index: 20;
        bottom: 0;
        gap: 10px;
        margin-inline: -16px;
        padding: 12px 16px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(226, 232, 240, .92);
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 -10px 26px rgba(15, 23, 42, .08);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .fc-next,
    .fc-prev {
        min-height: 50px;
    }

    .fc-next {
        flex: 1 1 auto;
    }

    .fc-prev {
        flex: 0 1 auto;
    }

    .fc-result-actions {
        gap: 10px;
    }

    .fc-result-actions .fc-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .fc-options,
    .fc-option-grid,
    .fc-card-grid {
        grid-template-columns: 1fr;
    }

    .fc-option {
        min-height: 110px;
    }

    .fc-navigation,
    .fc-actions,
    .fc-wizard-navigation {
        display: grid;
        grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    }
}

/* RTL-aware navigation and scrolling. */
[dir="rtl"] .fc-steps,
[dir="rtl"] .fc-stepper,
[dir="rtl"] .fc-live-summary__items {
    direction: rtl;
}

[dir="rtl"] .fc-btn-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

/* Respect OS-level accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    .fc-calculator *,
    .fc-result * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .fc-option:hover,
    .fc-option.active,
    .fc-option[aria-pressed="true"],
    .fc-step.active {
        transform: none;
    }
}

@media (prefers-contrast: more) {
    .fc-calculator,
    .fc-result,
    .fc-option,
    .fc-step,
    .fc-summary-card,
    .fc-recommendation {
        border-color: #64748b;
    }

    .fc-option.active,
    .fc-option[aria-pressed="true"] {
        border-width: 2px;
        border-color: var(--fc-primary-strong);
    }
}

@keyframes fcStepEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fcSelectedPulse {
    0% { transform: scale(.82); }
    65% { transform: scale(1.08); }
    100% { transform: scale(1); }
}


/* LC1.1 global animation preference. */
.fc-animations-disabled .fc-calculator *,
.fc-animations-disabled .fc-calculator *::before,
.fc-animations-disabled .fc-calculator *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* LC1.6 language direction */
.fc-calculator[dir="rtl"] { direction: rtl; text-align: right; }
.fc-calculator[dir="rtl"] .fc-footer-left { order: 2; }
.fc-calculator[dir="rtl"] .fc-footer-right { order: 1; }
.fc-calculator[dir="rtl"] .fc-stepper { direction: rtl; }
.fc-calculator[dir="rtl"] .fc-result-actions,
.fc-calculator[dir="rtl"] .fc-summary-row { direction: rtl; }
