/* Elite Lab Dental - Furniture configurator studio UI
   This file is loaded after frontend.css and owns the public studio layout. */

.eld-fc-wp-wrap {
    --studio-ink: #102033;
    --studio-muted: #587086;
    --studio-line: #d6e7ee;
    --studio-soft-line: #e8f1f5;
    --studio-surface: #ffffff;
    --studio-soft: #f5fbfc;
    --studio-cyan: #0f8b98;
    --studio-cyan-dark: #075c68;
    --studio-blue: #2563eb;
    --studio-green: #0b7a4f;
    --studio-shadow: 0 18px 48px rgba(15, 23, 42, .10);
    --studio-soft-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.eld-shell-v11 {
    max-width: 1180px;
}

.eld-furniture-studio {
    display: grid !important;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    align-items: stretch !important;
    margin: 22px 0 0;
    padding: 14px;
    border: 1px solid #c9e1e8;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(15, 139, 152, .11), transparent 34%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, .09), transparent 36%),
        #ffffff;
    box-shadow: var(--studio-shadow);
}

.eld-studio-panel,
.eld-studio-canvas,
.eld-studio-mini-card,
.eld-studio-action-dock {
    border: 1px solid var(--studio-line);
    background: var(--studio-surface);
    box-shadow: var(--studio-soft-shadow);
}

.eld-studio-panel {
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.eld-studio-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 139, 152, .96), rgba(9, 39, 58, .98)),
        #0b3045;
}

.eld-studio-panel__head h2,
.eld-studio-canvas__head h2 {
    margin: 0;
    letter-spacing: 0;
}

.eld-studio-panel__head h2 {
    margin-top: 6px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
}

.eld-studio-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: currentColor;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
}

.eld-studio-panel__head .eld-tool-button {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    box-shadow: none;
}

.eld-studio-panel__head .eld-tool-button:hover,
.eld-studio-panel__head .eld-tool-button:focus-visible {
    background: #ffffff;
    color: var(--studio-cyan-dark);
}

.eld-studio-card {
    position: relative;
    margin: 12px;
    padding: 18px 16px 16px 58px;
    border: 1px solid var(--studio-line);
    border-radius: 18px;
    background: #ffffff;
}

.eld-studio-card + .eld-studio-card {
    margin-top: 0;
}

.eld-studio-card--finish,
.eld-studio-card--options {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.eld-studio-step {
    position: absolute;
    top: 17px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e6f8f8;
    color: var(--studio-cyan-dark);
    font-size: 11px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px #c2eaed;
}

.eld-studio-card .eld-label {
    margin: 0 0 8px !important;
    color: #173047 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-transform: uppercase;
}

.eld-studio-card .eld-select,
.eld-studio-card .eld-input {
    min-height: 46px;
    border: 1px solid #cfdfe7;
    border-radius: 12px;
    background: #ffffff;
    color: var(--studio-ink);
    font-weight: 800;
}

.eld-studio-card .eld-select:hover,
.eld-studio-card .eld-input:hover {
    border-color: #9bcbd4;
}

.eld-studio-card .eld-select:focus,
.eld-studio-card .eld-input:focus {
    border-color: var(--studio-cyan);
    box-shadow: 0 0 0 4px rgba(15, 139, 152, .14);
}

.eld-studio-card .eld-slider-block {
    display: grid;
    gap: 14px;
    margin: 0;
}

.eld-studio-card .eld-slider-row {
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px dashed #d7e5ec;
    border-radius: 0;
    background: transparent;
}

.eld-studio-card .eld-slider-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.eld-studio-card .eld-slider-head {
    margin-bottom: 8px;
}

.eld-studio-card .eld-slider-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    align-items: center;
}

.eld-studio-card .eld-range {
    width: 100%;
    height: 30px;
    accent-color: var(--studio-cyan);
}

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

.eld-studio-metrics .eld-info-row {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #d8e8ef;
    border-radius: 14px;
    background: #f7fbfc;
}

.eld-studio-metrics .eld-info-label {
    color: #435a70;
    font-size: 11px;
    font-weight: 950;
}

.eld-studio-metrics .eld-info-value {
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--studio-ink);
    background: transparent;
    font-size: 18px;
    text-align: left;
}

.eld-studio-card .eld-color-grid.compact {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-height: 220px !important;
    margin-top: 8px;
    padding: 10px;
    overflow: auto;
    border: 1px solid #d8e8ef;
    border-radius: 14px;
    background: #f7fbfc;
}

.eld-studio-card .eld-color-dot {
    width: 42px !important;
    height: 42px !important;
    justify-self: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.eld-studio-card .eld-color-dot:hover {
    transform: translateY(-1px);
}

.eld-studio-card .eld-color-dot.active {
    border-color: var(--studio-cyan);
    box-shadow: 0 0 0 4px rgba(15, 139, 152, .18), 0 8px 18px rgba(15, 23, 42, .15);
}

.eld-studio-option-grid {
    display: grid;
    gap: 14px;
}

.eld-studio-card .eld-plug-label-wrap {
    margin: 0;
}

.eld-studio-card .eld-plug-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin-top: 8px;
    border: 0;
    background: transparent;
}

.eld-studio-card .eld-plug-card {
    min-height: 54px;
    border: 1px solid #d5e5ec;
    border-radius: 12px;
    background: #ffffff;
}

.eld-studio-card .eld-plug-card:hover {
    border-color: #95ccd4;
    background: #f3fbfc;
}

.eld-studio-card .eld-plug-card.active {
    border-color: var(--studio-cyan);
    background: var(--studio-cyan);
    box-shadow: none;
}

.eld-studio-card .eld-plug-card.active strong,
.eld-studio-card .eld-plug-card.active span {
    color: #ffffff;
}

.eld-studio-panel .eld-config-note {
    margin: auto 0 0 !important;
    padding: 14px 20px 18px;
    border: 0;
    border-top: 1px solid #d8e8ef;
    border-radius: 0;
    background: #eef8fa;
}

.eld-studio-workspace {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.eld-studio-canvas {
    overflow: hidden;
    border-radius: 24px;
}

.eld-studio-canvas__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #d8e8ef;
    background: linear-gradient(180deg, #ffffff 0%, #f7fcfd 100%);
}

.eld-studio-canvas__head .eld-studio-kicker {
    margin-bottom: 8px;
    background: #e6f8f8;
    color: var(--studio-cyan-dark);
}

.eld-studio-canvas__head h2 {
    color: var(--studio-ink);
    font-size: 24px;
    line-height: 1.15;
}

.eld-studio-canvas__head .eld-note {
    max-width: 680px;
    margin: 8px 0 0;
}

.eld-studio-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 620px;
    padding: 18px;
    background:
        linear-gradient(90deg, rgba(15, 139, 152, .035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 139, 152, .035) 1px, transparent 1px),
        linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
    background-size: 32px 32px, 32px 32px, auto;
}

.eld-studio-stage .eld-svg {
    width: 100%;
    min-width: 0;
    max-height: 620px;
    background: transparent;
}

.eld-studio-bottom {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(300px, 1fr);
    gap: 16px;
}

.eld-studio-mini-card {
    min-width: 0;
    border-radius: 20px;
    padding: 16px;
}

.eld-studio-mini-card .eld-card-title-row h2 {
    font-size: 17px;
}

.eld-studio-mini-card .eld-preview-stage {
    border-color: #d8e8ef;
    border-radius: 16px;
    background: #f8fcfd;
}

.eld-studio-mini-card .eld-base-preview-img {
    max-height: 260px;
    border: 0;
    background: transparent;
}

.eld-studio-action-dock {
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(280px, 520px);
    justify-content: end;
    gap: 12px;
    position: static;
    bottom: auto;
    z-index: auto;
    align-self: end;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.eld-studio-action-dock .eld-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    border-radius: 14px;
    text-align: center;
}

.eld-studio-action-dock .eld-button-main,
.eld-studio-action-dock .eld-button-sub {
    width: 100%;
}

@media (max-width: 1180px) {
    .eld-furniture-studio {
        grid-template-columns: 1fr;
    }

    .eld-studio-panel,
    .eld-studio-action-dock {
        grid-row: auto;
        grid-column: 1;
    }

    .eld-studio-panel {
        min-height: 0;
    }

    .eld-studio-bottom,
    .eld-studio-action-dock {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}

@media (max-width: 760px) {
    .eld-furniture-studio {
        padding: 10px;
        border-radius: 20px;
    }

    .eld-studio-panel__head,
    .eld-studio-canvas__head {
        display: grid;
    }

    .eld-studio-canvas__head {
        padding: 16px;
    }

    .eld-studio-stage {
        min-height: 0;
        padding: 10px;
    }

    .eld-studio-card {
        margin: 10px;
        padding: 15px;
    }

    .eld-studio-step {
        position: static;
        margin-bottom: 10px;
    }

    .eld-studio-card .eld-slider-control,
    .eld-studio-metrics {
        grid-template-columns: 1fr;
    }

    .eld-studio-card .eld-color-grid.compact {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    }
}

/* V11.8 - dark mode owns the furniture configurator studio. */
html[data-eld-theme="dark"] .eld-fc-wp-wrap {
    --studio-ink: #edf7fb;
    --studio-muted: #9fb8c8;
    --studio-line: rgba(127, 221, 232, .24);
    --studio-soft-line: rgba(127, 221, 232, .16);
    --studio-surface: #102a38;
    --studio-soft: #0b1f2a;
    --studio-cyan: #39d7e8;
    --studio-cyan-dark: #78f0f4;
    --studio-blue: #60a5fa;
    --studio-green: #38d59f;
    --studio-shadow: 0 22px 58px rgba(0, 0, 0, .34);
    --studio-soft-shadow: 0 16px 34px rgba(0, 0, 0, .22);
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-fc-wp-wrap,
html[data-eld-theme="dark"] .eld-shell-v11 {
    background: transparent;
}

html[data-eld-theme="dark"] .eld-furniture-hero,
html[data-eld-theme="dark"] .eld-summary-card,
html[data-eld-theme="dark"] .eld-product-description-card,
html[data-eld-theme="dark"] .eld-benefits-card {
    border-color: var(--studio-line);
    background:
        radial-gradient(circle at top right, rgba(57, 215, 232, .10), transparent 32%),
        linear-gradient(135deg, #102b39 0%, #0a1e28 100%);
    box-shadow: var(--studio-shadow);
}

html[data-eld-theme="dark"] .eld-furniture-hero__media {
    border-color: var(--studio-line);
    background: linear-gradient(180deg, rgba(16, 42, 56, .96), rgba(8, 28, 38, .96));
}

html[data-eld-theme="dark"] .eld-furniture-hero__media img,
html[data-eld-theme="dark"] .eld-preview-stage,
html[data-eld-theme="dark"] .eld-studio-mini-card .eld-preview-stage {
    border-color: var(--studio-line);
    background: #f4fbfd;
}

html[data-eld-theme="dark"] .eld-furniture-crumbs,
html[data-eld-theme="dark"] .eld-furniture-hero__chips span,
html[data-eld-theme="dark"] .eld-studio-kicker,
html[data-eld-theme="dark"] .eld-furniture-hero .eld-custom-badge,
html[data-eld-theme="dark"] .eld-product-description-card .eld-custom-badge {
    border-color: var(--studio-line);
    background: rgba(57, 215, 232, .12);
    color: #bffaff;
}

html[data-eld-theme="dark"] .eld-furniture-crumbs a {
    background: rgba(57, 215, 232, .16);
    color: #dcfdff;
}

html[data-eld-theme="dark"] .eld-furniture-crumbs strong,
html[data-eld-theme="dark"] .eld-furniture-hero h1,
html[data-eld-theme="dark"] .eld-product-description-card h2,
html[data-eld-theme="dark"] .eld-included-box strong,
html[data-eld-theme="dark"] .eld-benefit-item strong,
html[data-eld-theme="dark"] .eld-summary-value,
html[data-eld-theme="dark"] .eld-studio-canvas__head h2,
html[data-eld-theme="dark"] .eld-studio-mini-card .eld-card-title-row h2 {
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-furniture-hero .eld-page-subtitle,
html[data-eld-theme="dark"] .eld-summary-note,
html[data-eld-theme="dark"] .eld-summary-label,
html[data-eld-theme="dark"] .eld-studio-canvas__head .eld-note,
html[data-eld-theme="dark"] .eld-studio-panel .eld-config-note,
html[data-eld-theme="dark"] .eld-product-description-card p,
html[data-eld-theme="dark"] .eld-product-description-card li,
html[data-eld-theme="dark"] .eld-benefit-item span {
    color: var(--studio-muted);
}

html[data-eld-theme="dark"] .eld-summary-grid,
html[data-eld-theme="dark"] .eld-summary-item,
html[data-eld-theme="dark"] .eld-summary-item.total,
html[data-eld-theme="dark"] .eld-furniture-studio,
html[data-eld-theme="dark"] .eld-studio-panel,
html[data-eld-theme="dark"] .eld-studio-canvas,
html[data-eld-theme="dark"] .eld-studio-mini-card,
html[data-eld-theme="dark"] .eld-studio-card,
html[data-eld-theme="dark"] .eld-studio-card--finish,
html[data-eld-theme="dark"] .eld-studio-card--options,
html[data-eld-theme="dark"] .eld-studio-action-dock,
html[data-eld-theme="dark"] .eld-included-box {
    border-color: var(--studio-line);
    background: linear-gradient(180deg, #102a38 0%, #0b2230 100%);
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-benefits-grid {
    gap: 14px;
}

html[data-eld-theme="dark"] .eld-benefit-item {
    border: 1px solid var(--studio-soft-line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(57, 215, 232, .08) 0%, rgba(7, 28, 40, .82) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

html[data-eld-theme="dark"] .eld-furniture-studio {
    background:
        radial-gradient(circle at top left, rgba(57, 215, 232, .11), transparent 36%),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, .10), transparent 36%),
        #071b24;
}

html[data-eld-theme="dark"] .eld-studio-panel__head {
    background:
        linear-gradient(135deg, rgba(24, 120, 137, .96), rgba(7, 28, 40, .98)),
        #071c28;
}

html[data-eld-theme="dark"] .eld-studio-card .eld-label,
html[data-eld-theme="dark"] .eld-studio-metrics .eld-info-label,
html[data-eld-theme="dark"] .eld-plug-card strong,
html[data-eld-theme="dark"] .eld-plug-card span {
    color: var(--studio-ink) !important;
}

html[data-eld-theme="dark"] .eld-studio-step {
    background: rgba(57, 215, 232, .16);
    color: #d7fdff;
    box-shadow: inset 0 0 0 1px rgba(127, 221, 232, .28);
}

html[data-eld-theme="dark"] .eld-studio-card .eld-select,
html[data-eld-theme="dark"] .eld-studio-card .eld-input,
html[data-eld-theme="dark"] .eld-zoom-config-panel .eld-select,
html[data-eld-theme="dark"] .eld-zoom-config-panel .eld-input {
    border-color: var(--studio-line);
    background: #071c28;
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-studio-card .eld-select:focus,
html[data-eld-theme="dark"] .eld-studio-card .eld-input:focus {
    border-color: rgba(57, 215, 232, .68);
    box-shadow: 0 0 0 4px rgba(57, 215, 232, .14);
}

html[data-eld-theme="dark"] .eld-studio-card .eld-slider-row,
html[data-eld-theme="dark"] .eld-studio-panel .eld-config-note,
html[data-eld-theme="dark"] .eld-studio-canvas__head {
    border-color: var(--studio-soft-line);
}

html[data-eld-theme="dark"] .eld-studio-card .eld-color-grid.compact,
html[data-eld-theme="dark"] .eld-studio-metrics .eld-info-row,
html[data-eld-theme="dark"] .eld-studio-card .eld-plug-card,
html[data-eld-theme="dark"] .eld-studio-panel .eld-config-note {
    border-color: var(--studio-line);
    background: #071c28;
}

html[data-eld-theme="dark"] .eld-studio-card .eld-plug-card:hover,
html[data-eld-theme="dark"] .eld-tool-button:hover,
html[data-eld-theme="dark"] .eld-tool-button:focus-visible,
html[data-eld-theme="dark"] .eld-link-button:hover,
html[data-eld-theme="dark"] .eld-link-button:focus-visible {
    border-color: rgba(57, 215, 232, .66);
    background: rgba(57, 215, 232, .12);
    color: #e8feff;
}

html[data-eld-theme="dark"] .eld-studio-card .eld-plug-card.active {
    border-color: rgba(57, 215, 232, .72);
    background: linear-gradient(180deg, #1598a6 0%, #0d6f7b 100%);
}

html[data-eld-theme="dark"] .eld-studio-card .eld-plug-card.active strong,
html[data-eld-theme="dark"] .eld-studio-card .eld-plug-card.active span {
    color: #ffffff !important;
}

html[data-eld-theme="dark"] .eld-studio-card .eld-color-dot {
    border-color: rgba(255, 255, 255, .74);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .30);
}

html[data-eld-theme="dark"] .eld-studio-card .eld-color-dot.active {
    border-color: #7df6ff;
    box-shadow: 0 0 0 4px rgba(57, 215, 232, .22), 0 10px 22px rgba(0, 0, 0, .32);
}

html[data-eld-theme="dark"] .eld-studio-canvas__head {
    background: linear-gradient(180deg, #102a38 0%, #0b2230 100%);
}

html[data-eld-theme="dark"] .eld-studio-canvas__head .eld-studio-kicker {
    background: rgba(57, 215, 232, .14);
    color: #c9fbff;
}

html[data-eld-theme="dark"] .eld-studio-stage {
    background:
        linear-gradient(90deg, rgba(57, 215, 232, .045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(57, 215, 232, .045) 1px, transparent 1px),
        linear-gradient(180deg, #0b202c 0%, #081a24 100%);
    background-size: 32px 32px, 32px 32px, auto;
}

html[data-eld-theme="dark"] .eld-studio-stage .eld-svg,
html[data-eld-theme="dark"] .eld-zoom-inline-schema {
    background: #f8fbfd;
    border-radius: 18px;
}

html[data-eld-theme="dark"] .eld-tool-button,
html[data-eld-theme="dark"] .eld-link-button {
    border-color: var(--studio-line);
    background: rgba(57, 215, 232, .10);
    color: #c9fbff;
}

html[data-eld-theme="dark"] .eld-recent-grid.compact .eld-recent-item,
html[data-eld-theme="dark"] .eld-recent-empty {
    border-color: var(--studio-line);
    background: #071c28;
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-recent-grid.compact .eld-recent-item.active {
    border-color: #7df6ff;
    background: rgba(57, 215, 232, .12);
}

html[data-eld-theme="dark"] .eld-recent-grid.compact .eld-recent-item span,
html[data-eld-theme="dark"] .eld-status {
    color: var(--studio-muted);
}

html[data-eld-theme="dark"] .eld-status.good {
    color: var(--studio-green);
}

html[data-eld-theme="dark"] .eld-button.eld-button-ai {
    border: 1px solid rgba(127, 221, 232, .28);
    background: linear-gradient(135deg, #0f8b98 0%, #2563eb 100%);
    color: #ffffff;
}

html[data-eld-theme="dark"] .eld-zoom-dialog,
html[data-eld-theme="dark"] .eld-zoom-config-panel,
html[data-eld-theme="dark"] .eld-ai-generation-popup__card {
    border-color: var(--studio-line);
    background: linear-gradient(180deg, #102a38 0%, #071c28 100%);
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-zoom-backdrop {
    background: rgba(1, 10, 16, .72);
}

html[data-eld-theme="dark"] .eld-zoom-image-wrap {
    border-color: var(--studio-line);
    background: #f8fbfd;
}

html[data-eld-theme="dark"] .eld-zoom-config-panel h3,
html[data-eld-theme="dark"] .eld-ai-generation-popup__title {
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-zoom-help,
html[data-eld-theme="dark"] .eld-ai-generation-popup__text {
    color: var(--studio-muted);
}

html[data-eld-theme="dark"] .eld-zoom-control {
    border-color: var(--studio-line);
    background: #071c28;
}

html[data-eld-theme="dark"] .eld-zoom-color,
html[data-eld-theme="dark"] .eld-zoom-price-only {
    border-color: var(--studio-line);
    background: #0b2230;
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-zoom-price-only span,
html[data-eld-theme="dark"] .eld-zoom-price-only strong {
    color: var(--studio-ink);
}

html[data-eld-theme="dark"] .eld-zoom-close {
    background: #102a38;
    border-color: var(--studio-line);
}
