/* Skupni videz družine realistic (teme realistic_brez_sten, realistic_hdri_ray-tracing; razred body.theme-realistic).
   Samostojne teme realistic ni več (odstranjena 2026-11-13). */
:root {
    --md-bg: #ffffff;
    --md-muted-bg: #f3f3f3;
    --md-preview-bg: #d5d1c3;
    --md-line: #e5e5e5;
    --md-text: #161616;
    --md-muted: #6a6a6a;
    --md-accent: #e30613;
    --md-accent-hover: #c50510;
    --md-radius: 0.35rem;
    --md-footer-h: 7.5rem;
    --md-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --md-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-cpq-theme="realistic"],
body.theme-realistic {
    color-scheme: light;
    background: var(--md-bg);
}

body.theme-realistic {
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--md-text);
    font-family: var(--md-font);
    min-height: 100dvh;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

body.theme-realistic.layout-wide {
    max-width: none;
}

.md-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: var(--md-bg);
}

.md-topbar {
    flex-shrink: 0;
    z-index: 20;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--md-bg);
    border-bottom: 1px solid var(--md-line);
}

.md-topbar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem 0.8rem;
}

.md-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.md-topbar-aside {
    display: none;
    flex-shrink: 0;
}

.md-topbar-text {
    min-width: 0;
}

.md-kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--md-muted);
}

.md-title {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-stage[hidden] {
    display: none !important;
}

.md-showroom {
    position: relative;
    flex-shrink: 0;
    height: min(38dvh, 320px);
    min-height: 200px;
    background: var(--md-preview-bg);
}

body.theme-realistic .configurator-layout {
    display: contents;
}

body.theme-realistic .md-preview-panel {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: var(--md-preview-bg);
    box-shadow: none;
    border-radius: 0;
}

body.theme-realistic .md-preview-panel h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.theme-realistic #configurator-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: var(--md-preview-bg);
}

body.theme-realistic #configurator-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

body.theme-realistic #configurator-preview-mode {
    position: absolute;
    top: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    margin: 0;
    padding: 0.28rem 0.65rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--md-text);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.theme-realistic #configurator-preview-status {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.65rem;
    z-index: 8;
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--md-muted) !important;
    pointer-events: none;
}

body.theme-realistic #configurator-preview-status:empty {
    display: none;
}

body.theme-realistic .scene-animation-toolbar {
    left: 0.7rem;
    bottom: 0.7rem;
    gap: 0.35rem;
}

body.theme-realistic .scene-animation-btn {
    border: 1px solid #d4d4d4;
    background: #fff;
    color: var(--md-text);
    border-radius: 999px;
    min-height: 2rem;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 650;
}

body.theme-realistic .scene-animation-btn[aria-pressed="true"] {
    background: var(--md-text);
    border-color: var(--md-text);
    color: #fff;
}

body.theme-realistic .scene-animation-btn--pose {
    --pose-fill-bg: var(--md-text);
    --pose-fill-fg: #fff;
}

.md-config {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--md-bg);
}

.md-steps {
    display: flex;
    flex-shrink: 0;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid var(--md-line);
    scrollbar-width: none;
}

.md-steps:empty,
.md-steps[hidden] {
    display: none;
}

.md-steps::-webkit-scrollbar {
    display: none;
}

.md-step {
    flex: 0 0 auto;
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--md-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    padding: 0.85rem 0.95rem 0.75rem;
    white-space: nowrap;
    cursor: pointer;
}

.md-step-index {
    display: none;
}

.md-step[aria-current="step"] {
    color: var(--md-text);
    border-bottom-color: var(--md-accent);
}

.md-config-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.15rem 1.1rem 1.35rem;
    -webkit-overflow-scrolling: touch;
}

.md-step-heading {
    margin: 0 0 1.1rem;
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.md-step-heading[hidden] {
    display: none;
}

body.theme-realistic .md-form-panel.panel {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

body.theme-realistic .md-form-panel > h2,
body.theme-realistic .md-form-panel .configurator-price,
body.theme-realistic .md-form-panel .configurator-actions {
    display: none;
}

body.theme-realistic .md-form-hidden {
    display: none;
}

body.theme-realistic .md-step-hidden {
    display: none !important;
}

body.theme-realistic .md-root-fields-only > .form-section-children {
    display: none;
}

body.theme-realistic .form-section {
    margin-bottom: 1.35rem;
}

body.theme-realistic .form-section-title {
    color: var(--md-text);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}

body.theme-realistic .form-section.nested,
body.theme-realistic .form-section-group {
    margin-left: 0;
    padding: 0.9rem 0 0;
    border: none;
    border-top: 1px solid var(--md-line);
    background: transparent;
    border-radius: 0;
}

body.theme-realistic .form-section-children {
    margin: 0;
    padding: 0;
    border: none;
}

body.theme-realistic .field {
    position: relative;
    margin-bottom: 1.15rem;
}

body.theme-realistic .field label {
    display: block;
    color: var(--md-muted);
    font-size: 0.78rem;
    font-weight: 650;
    margin-bottom: 0.45rem;
}

body.theme-realistic .field input,
body.theme-realistic .field select,
body.theme-realistic .field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d8d8d8;
    border-radius: var(--md-radius);
    background: #fff;
    color: var(--md-text);
    font: inherit;
    font-size: 16px;
}

body.theme-realistic .field input:focus,
body.theme-realistic .field select:focus,
body.theme-realistic .field textarea:focus {
    outline: none;
    border-color: var(--md-text);
}

body.theme-realistic .integer-field-row input[type="number"] {
    width: auto;
}

body.theme-realistic .slider-field-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

body.theme-realistic .slider-field-row input[type="range"] {
    width: auto;
    min-height: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    accent-color: var(--md-accent);
}

body.theme-realistic .slider-field-row input[type="range"]:focus {
    outline: none;
    border: none;
}

body.theme-realistic .slider-field-row input.slider-value {
    flex: 0 0 5.75rem;
    width: 5.75rem;
    max-width: 5.75rem;
    min-height: 3rem;
    padding: 0.4rem 0.55rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--md-text);
}

body.theme-realistic .configurator-integer-ok {
    min-height: 3rem;
    border-radius: var(--md-radius);
    background: var(--md-text);
    border-color: var(--md-text);
    color: #fff;
}

body.theme-realistic .md-native-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    padding: 0;
    min-height: 0;
}

.md-choice-ui.is-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.md-choice-ui.is-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.md-choice {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #d8d8d8;
    border-radius: var(--md-radius);
    background: #fff;
    color: var(--md-text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

.md-choice-ui.is-pills .md-choice {
    min-width: 5.5rem;
    flex: 1 1 auto;
}

.md-choice[aria-pressed="true"] {
    border-color: var(--md-accent);
    box-shadow: inset 0 0 0 1px var(--md-accent);
}

.md-choice:disabled {
    opacity: 0.4;
    cursor: default;
}

.md-choice.has-icon,
body.theme-realistic .choice-swatch-item,
body.theme-realistic .choice-icon-item {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.45rem;
}

.md-choice-icon,
body.theme-realistic .choice-option-icon {
    display: block;
    width: 100%;
    height: 3.4rem;
    object-fit: cover;
    border-radius: calc(var(--md-radius) - 2px);
    background: var(--md-muted-bg);
}

body.theme-realistic .choice-swatch,
body.theme-realistic .choice-icon {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

body.theme-realistic .choice-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.theme-realistic .choice-swatch-item,
body.theme-realistic .choice-icon-item,
body.theme-realistic .choice-radio-item {
    margin: 0;
    min-width: 0;
    border: 1px solid #d8d8d8;
    border-radius: var(--md-radius);
    background: #fff;
    box-shadow: none;
}

body.theme-realistic .choice-radio-item {
    min-height: 3.1rem;
    padding: 0.7rem 0.75rem;
    justify-content: center;
}

body.theme-realistic .choice-swatch-item:has(input:checked),
body.theme-realistic .choice-icon-item:has(input:checked),
body.theme-realistic .choice-radio-item:has(input:checked),
body.theme-realistic .choice-swatch-item.is-selected,
body.theme-realistic .choice-icon-item.is-selected,
body.theme-realistic .choice-radio-item.is-selected {
    border-color: var(--md-accent);
    box-shadow: inset 0 0 0 1px var(--md-accent);
}

body.theme-realistic .choice-swatch-item input[type="radio"],
body.theme-realistic .choice-icon-item input[type="radio"],
body.theme-realistic .choice-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    border: 0;
}

body.theme-realistic .choice-option-label {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--md-text);
}

.md-summary-list {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
}

.md-summary-list dt,
.md-summary-list dd {
    margin: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--md-line);
    font-size: 0.92rem;
}

.md-summary-list dt {
    color: var(--md-muted);
    padding-right: 0.75rem;
}

.md-summary-list dd {
    text-align: right;
    font-weight: 650;
}

.md-summary-empty {
    color: var(--md-muted);
}

.md-footer {
    flex-shrink: 0;
    z-index: 20;
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: var(--md-bg);
    border-top: 1px solid var(--md-line);
}

.md-footer-price {
    margin-bottom: 0.7rem;
}

.md-footer-price-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.md-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.55rem;
}

.md-btn {
    appearance: none;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: var(--md-radius);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.md-btn-back {
    border: 1px solid #111;
    background: #fff;
    color: var(--md-text);
}

.md-btn-back:disabled {
    opacity: 0.35;
    cursor: default;
}

.md-btn-next,
.md-btn-submit {
    border: 1px solid var(--md-accent);
    background: var(--md-accent);
    color: #fff;
}

.md-btn-next:hover,
.md-btn-submit:hover,
.md-btn-back:not(:disabled):hover {
    filter: brightness(0.96);
}

.md-btn-next[hidden],
.md-btn-submit[hidden] {
    display: none;
}

.md-footer-actions:not(:has(.md-btn-next:not([hidden]))):not(:has(.md-btn-submit:not([hidden]))) {
    grid-template-columns: 1fr;
}

.md-footer .md-btn-submit:not([hidden]) {
    grid-column: 2;
}

.md-footer .configurator-reset {
    display: none;
    margin: 0.65rem 0 0;
}

.md-footer .configurator-reset.md-reset-visible {
    display: block;
}

.md-footer .configurator-reset-btn {
    width: 100%;
    min-height: 2.5rem;
    border: none;
    background: transparent;
    color: var(--md-muted);
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
}

.md-footer .configurator-save-quote-status {
    margin: 0.45rem 0 0;
    color: var(--md-muted);
}

.md-footer .configurator-save-quote-status.is-error {
    color: #b42318;
}

body.theme-realistic .md-form-panel > .configurator-inquiry {
    display: none;
}

body.theme-realistic .md-summary .configurator-inquiry {
    display: block;
    margin: 1.5rem 0 0;
    padding: 1.35rem 0 0;
    border-top: 1px solid var(--md-line);
}

body.theme-realistic .configurator-inquiry .form-section-title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--md-muted);
}

body.theme-realistic .configurator-inquiry-note {
    margin: 0 0 1rem;
    color: var(--md-muted);
}

body.theme-realistic .configurator-inquiry .field input {
    border-radius: var(--md-radius);
}

body.theme-realistic .md-summary .configurator-inquiry .configurator-save-quote-btn,
body.theme-realistic .md-summary .configurator-inquiry .configurator-save-quote-status {
    display: none;
}

body.theme-realistic .configurator-inquiry-thanks {
    padding: 0.95rem 1rem;
    border-radius: var(--md-radius);
    background: #f4f4f4;
    border: 1px solid var(--md-line);
    color: var(--md-text);
    font-size: 0.95rem;
}

body.theme-realistic .session-graph {
    display: none;
}

@media (min-width: 640px) {
    .md-choice-ui.is-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md-step-heading {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .md-app {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 32rem);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "topbar topbar"
            "showroom config";
    }

    .md-topbar {
        grid-area: topbar;
    }

    .md-topbar-inner {
        padding: 0.95rem 1.5rem;
    }

    .md-title {
        font-size: 1.2rem;
    }

    .md-topbar-aside {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-left: 1.25rem;
        border-left: 1px solid var(--md-line);
    }

    .md-topbar-price-label {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--md-muted);
    }

    .md-topbar-price-value {
        font-size: 1.35rem;
        font-weight: 750;
        letter-spacing: -0.03em;
        font-variant-numeric: tabular-nums;
    }

    .md-showroom {
        grid-area: showroom;
        height: auto;
        min-height: 0;
        border-right: 1px solid var(--md-line);
    }

    .md-config {
        grid-area: config;
        min-height: 0;
    }

    .md-config-body {
        padding: 1.35rem 1.5rem 1.1rem;
    }

    .md-footer {
        padding: 1rem 1.5rem 1.15rem;
    }

    .md-footer-price {
        display: none;
    }

    body.theme-realistic .field input,
    body.theme-realistic .field select {
        min-height: 2.6rem;
        font-size: 0.92rem;
        cursor: pointer;
    }

    body.theme-realistic .field input[type="number"] {
        cursor: text;
    }

    body.theme-realistic .configurator-integer-ok {
        min-height: 2.6rem;
    }

    .md-choice {
        min-height: 2.7rem;
        cursor: pointer;
    }

    .md-step-index {
        display: inline;
        margin-right: 0.35rem;
        color: var(--md-muted);
    }
}

@media (min-width: 1440px) {
    .md-app {
        grid-template-columns: minmax(0, 1fr) 34rem;
    }

    .md-choice-ui.is-tiles,
    body.theme-realistic .choice-swatch,
    body.theme-realistic .choice-icon {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.theme-realistic #configurator-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 52%, rgba(48, 42, 34, 0.22) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .md-step {
        scroll-margin: 0;
    }
}
