.pdc-calculator {
    --pdc-border: rgba(15, 23, 42, 0.12);
    --pdc-soft: rgba(15, 23, 42, 0.055);
    --pdc-text: #111827;
    --pdc-muted: #5f6b7a;
    --pdc-accent: #1f6feb;
    --pdc-accent-soft: rgba(31, 111, 235, 0.10);
    --pdc-accent-soft-2: rgba(31, 111, 235, 0.18);
    color: var(--pdc-text);
    margin: 0 0 2rem;
}

.pdc-calculator * {
    box-sizing: border-box;
}

.pdc-head {
    max-width: 860px;
    margin-bottom: 1.25rem;
}

.pdc-head h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.2;
}

.pdc-head p,
.pdc-note p,
.pdc-summary-caption,
.pdc-summary-intro,
.pdc-brightness-note {
    color: var(--pdc-muted);
}

.pdc-head p,
.pdc-note p,
.pdc-brightness-note {
    margin: 0;
}

.pdc-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.pdc-controls,
.pdc-visual,
.pdc-info-tabs,

.pdc-video-box {
    border: 1px solid var(--pdc-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #eef4ff);
}

.pdc-video-placeholder {
    min-height: 310px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
}

.pdc-video-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pdc-accent);
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 12px 28px rgba(31, 111, 235, 0.22);
}

.pdc-video-placeholder strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.pdc-video-placeholder p {
    margin: 0;
    color: var(--pdc-muted);
    max-width: 680px;
}

.pdc-video-button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: var(--pdc-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.pdc-video-button:hover,
.pdc-video-button:focus-visible {
    filter: brightness(0.95);
}

.pdc-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111827;
}

.pdc-note {
    border: 1px solid var(--pdc-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.pdc-controls {
    padding: 1.1rem;
}

.pdc-mode,
.pdc-info-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: var(--pdc-soft);
}

.pdc-mode {
    margin-bottom: 1rem;
}

.pdc-mode-button,
.pdc-info-button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #fff;
    color: var(--pdc-accent);
    cursor: pointer;
    font-weight: 800;
    padding: 0.72rem 0.85rem;
    line-height: 1.15;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pdc-mode-button:hover,
.pdc-info-button:hover,
.pdc-mode-button:focus-visible,
.pdc-info-button:focus-visible {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.pdc-mode-button.is-active,
.pdc-info-button.is-active {
    background: var(--pdc-accent);
    color: #fff;
    border-color: var(--pdc-accent);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.pdc-field {
    margin: 0 0 1rem;
}

.pdc-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.pdc-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--pdc-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.pdc-input-wrap input {
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.7rem 0.85rem;
    font-size: 1.08rem;
    font-weight: 700;
}

.pdc-input-wrap input:focus {
    outline: 2px solid var(--pdc-accent-soft);
    outline-offset: -2px;
}

.pdc-input-wrap span {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    background: var(--pdc-soft);
    color: var(--pdc-muted);
    font-weight: 700;
}

.pdc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pdc-result-card {
    min-height: 84px;
    padding: 0.85rem;
    border-radius: 14px;
    background: var(--pdc-soft);
}

.pdc-result-card span {
    display: block;
    color: var(--pdc-muted);
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
}

.pdc-result-card strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
}

.pdc-result-card--brightness {
    grid-column: 1 / -1;
    border: 1px solid var(--pdc-border);
}

.pdc-result-card--brightness.is-green {
    background: #ecfdf5;
    border-color: rgba(22, 101, 52, 0.22);
}

.pdc-result-card--brightness.is-yellow {
    background: #fffbeb;
    border-color: rgba(146, 64, 14, 0.24);
}

.pdc-result-card--brightness.is-red {
    background: #fef2f2;
    border-color: rgba(153, 27, 27, 0.22);
}

.pdc-result-card--brightness small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    color: var(--pdc-muted);
    font-size: 0.82rem;
}

.pdc-result-card--brightness small em {
    font-style: normal;
    color: var(--pdc-muted);
}

.pdc-mini-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.45rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.pdc-mini-badge.is-green {
    background: #dcfce7;
    color: #166534;
}

.pdc-mini-badge.is-yellow {
    background: #fef3c7;
    color: #92400e;
}

.pdc-mini-badge.is-red {
    background: #fee2e2;
    color: #991b1b;
}

.pdc-hint {
    margin: 1rem 0 0;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 600;
}

.pdc-visual {
    min-height: 100%;
    padding: 1rem 0.95rem 1.1rem;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.pdc-visual svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 450px;
}

.pdc-room {
    fill: #f8fafc;
    stroke: rgba(15, 23, 42, 0.08);
}

.pdc-floor,
.pdc-screen line {
    stroke: rgba(15, 23, 42, 0.30);
    stroke-width: 3;
    stroke-linecap: round;
}

.pdc-screen rect {
    fill: #ffffff;
    stroke: #111827;
    stroke-width: 4;
}

.pdc-beam {
    transition: opacity 0.2s ease, points 0.2s ease;
    opacity: 0.95;
}

.pdc-projector {
    cursor: grab;
    outline: none;
    transition: transform 0.16s ease;
}

.pdc-projector.is-fixed {
    cursor: default;
}

.pdc-projector.is-dragging,
.pdc-projector.is-draggable:hover {
    filter: drop-shadow(0 12px 26px rgba(15, 23, 42, 0.18));
}

.pdc-projector:focus-visible .pdc-projector-body {
    stroke: var(--pdc-accent);
    stroke-width: 3;
}

.pdc-projector-body,
.pdc-projector-top,
.pdc-projector-foot {
    fill: #1f2937;
}

.pdc-projector-grille {
    fill: #111827;
}

.pdc-projector-lens-ring {
    fill: #dbe4f0;
    stroke: #1f2937;
    stroke-width: 4;
}

.pdc-projector-lens {
    fill: #111827;
}

.pdc-projector-highlight {
    fill: rgba(255, 255, 255, 0.9);
}

.pdc-distance-line,
.pdc-width-line,
.pdc-height-line {
    stroke: var(--pdc-accent);
    stroke-width: 3;
    stroke-linecap: round;
}

.pdc-visual marker path {
    fill: var(--pdc-accent);
}

.pdc-svg-label {
    fill: #111827;
    font-size: 18px;
    font-weight: 800;
}

.pdc-visual-controls {
    margin-top: 0.8rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--pdc-border);
}

.pdc-drag-status {
    font-size: 0.95rem;
    color: var(--pdc-muted);
    margin-bottom: 0.7rem;
}

.pdc-distance-slider {
    width: 100%;
}

.pdc-info-tabs {
    margin-top: 1.25rem;
    padding: 1rem;
}

.pdc-info-panel {
    display: none;
    margin-top: 1rem;
}

.pdc-info-panel.is-active {
    display: block;
}

.pdc-info-panel h3 {
    margin: 0 0 0.8rem;
    font-size: 1.15rem;
}

.pdc-table-wrap {
    overflow-x: auto;
}

.pdc-info-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pdc-info-panel th,
.pdc-info-panel td {
    text-align: left;
    padding: 1rem 0.95rem 1.1rem;
    border-bottom: 1px solid var(--pdc-border);
    white-space: nowrap;
    vertical-align: middle;
}

.pdc-info-panel th {
    color: var(--pdc-muted);
    font-size: 0.88rem;
    background: var(--pdc-soft);
}

.pdc-summary-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0.9rem 0;
}

.pdc-summary-card {
    padding: 0.85rem;
    border-radius: 14px;
    background: var(--pdc-soft);
}

.pdc-summary-card span {
    display: block;
    font-size: 0.86rem;
    color: var(--pdc-muted);
    margin-bottom: 0.35rem;
}

.pdc-summary-card strong {
    font-size: 1rem;
    line-height: 1.25;
}

.pdc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.62rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.pdc-badge.is-excellent {
    background: #dcfce7;
    color: #166534;
}

.pdc-badge.is-good {
    background: #e0f2fe;
    color: #075985;
}

.pdc-badge.is-ok {
    background: #fef3c7;
    color: #92400e;
}

.pdc-badge.is-bad {
    background: #fee2e2;
    color: #991b1b;
}

.pdc-brightness-note {
    margin-top: 0.85rem;
    font-size: 0.92rem;
}

.pdc-product-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.pdc-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pdc-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.pdc-product-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
}

.pdc-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pdc-product-card__body {
    padding: 1rem;
}

.pdc-product-card__body h4 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    line-height: 1.35;
}

.pdc-product-card__body h4 a {
    color: inherit;
    text-decoration: none;
}

.pdc-product-card__price {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.pdc-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    background: var(--pdc-accent);
    color: #fff;
    font-weight: 700;
}


.pdc-video-box {
    border: 1px solid var(--pdc-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #eef4ff);
}

.pdc-video-placeholder {
    min-height: 310px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
}

.pdc-video-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pdc-accent);
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 12px 28px rgba(31, 111, 235, 0.22);
}

.pdc-video-placeholder strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.pdc-video-placeholder p {
    margin: 0;
    color: var(--pdc-muted);
    max-width: 680px;
}

.pdc-video-button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: var(--pdc-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.pdc-video-button:hover,
.pdc-video-button:focus-visible {
    filter: brightness(0.95);
}

.pdc-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111827;
}

.pdc-note {
    margin-top: 1.25rem;
    padding: 1rem;
}

@media (max-width: 960px) {
    .pdc-grid {
        grid-template-columns: 1fr;
    }

    .pdc-summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pdc-video-placeholder {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        min-height: 260px;
    }

    .pdc-product-cards {
        grid-template-columns: 1fr;
    }

    .pdc-results {
        grid-template-columns: 1fr;
    }

    .pdc-mode-button,
    .pdc-info-button {
        width: 100%;
        justify-content: center;
    }

    .pdc-visual svg {
        min-height: 380px;
    }
}

.pdc-diagonal-slider {
    width: 100%;
    margin: 0.8rem 0 0.35rem;
}

.pdc-range-note {
    font-size: 0.86rem;
    color: var(--pdc-muted);
}

.pdc-badge.is-green {
    background: #dcfce7;
    color: #166534;
}

.pdc-badge.is-yellow {
    background: #fef3c7;
    color: #92400e;
}

.pdc-badge.is-red {
    background: #fee2e2;
    color: #991b1b;
}

.pdc-recommended-products-field .select2-container,
.pdc-recommended-products-field .wc-product-search {
    max-width: 640px;
}


@media (max-width: 900px) {
    .pdc-product-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pdc-print-actions {
    margin-top: 1rem;
}

.pdc-print-button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: var(--pdc-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
    padding: 0.75rem 1rem;
    width: 100%;
}

.pdc-print-button:hover,
.pdc-print-button:focus-visible {
    filter: brightness(0.95);
}

.pdc-print-report {
    display: none;
}

.pdc-print-page {
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.pdc-print-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #111827;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.pdc-print-header span,
.pdc-print-date,
.pdc-print-muted,
.pdc-print-footer {
    color: #5f6b7a;
}

.pdc-print-header h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0.2rem 0 0;
}

.pdc-print-section {
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    break-inside: avoid;
}

.pdc-print-section h2 {
    font-size: 17px;
    margin: 0 0 0.8rem;
}

.pdc-print-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.pdc-print-kpis div,
.pdc-print-brightness-summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem 0.95rem 1.1rem;
}

.pdc-print-kpis span,
.pdc-print-brightness-summary span {
    display: block;
    color: #5f6b7a;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.pdc-print-kpis strong,
.pdc-print-brightness-summary strong {
    display: block;
    font-size: 15px;
}

.pdc-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
}

.pdc-print-table th,
.pdc-print-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.55rem;
    text-align: left;
}

.pdc-print-badge {
    display: inline-block;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.28rem 0.55rem;
    background: #eef2f7;
}

.pdc-print-badge.is-green {
    background: #dcfce7;
    color: #166534;
}

.pdc-print-badge.is-yellow {
    background: #fef3c7;
    color: #92400e;
}

.pdc-print-badge.is-red {
    background: #fee2e2;
    color: #991b1b;
}

.pdc-print-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.pdc-print-product {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    break-inside: avoid;
}

.pdc-print-product-image {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
}

.pdc-print-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pdc-print-product-body {
    padding: 0.65rem;
}

.pdc-print-product-price {
    margin-top: 0.35rem;
    font-weight: 700;
}

.pdc-print-footer {
    font-size: 12px;
    margin-top: 0.8rem;
}

@media print {
    @page {
        margin: 14mm;
    }

    body.pdc-printing * {
        visibility: hidden !important;
    }

    body.pdc-printing .pdc-calculator.pdc-print-active .pdc-print-report,
    body.pdc-printing .pdc-calculator.pdc-print-active .pdc-print-report * {
        visibility: visible !important;
    }

    body.pdc-printing .pdc-calculator.pdc-print-active .pdc-print-report {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .pdc-print-products {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .pdc-print-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.pdc-bottom-offset-line,
.pdc-bottom-offset-label {
    display: none;
}

.pdc-calculator--ust .pdc-bottom-offset-line,
.pdc-calculator--ust .pdc-bottom-offset-label {
    display: block;
}

.pdc-bottom-offset-line {
    stroke: var(--pdc-accent);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.pdc-calculator--ust .pdc-bottom-offset-line {
    stroke-dasharray: 6 5;
}

.pdc-calculator--ust .pdc-projector {
    cursor: default;
}

.pdc-lowboard {
    fill: #c7c7c7;
    stroke: rgba(15, 23, 42, 0.16);
    stroke-width: 2;
    filter: drop-shadow(0 8px 10px rgba(15,23,42,0.08));
}

.pdc-calculator--ust .pdc-room {
    fill: #f5f7fa;
    height: 430px;
}

.pdc-calculator--ust .pdc-floor {
    display: none;
}

.pdc-calculator--ust .pdc-beam {
    opacity: 0.74;
}

.pdc-calculator--ust .pdc-distance-line {
    stroke-width: 3.4;
}

.pdc-calculator--ust .pdc-ceiling-line {
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1.4;
}

.pdc-screen-guide-line,
.pdc-calculator--ust .pdc-screen-guide-line,
.pdc-calculator--ust .pdc-rear-guide-line,
.pdc-calculator--ust .pdc-rear-guide-label,
.pdc-calculator--ust .pdc-ust-wall {
    display: none;
}

.pdc-front-only {
    display: block;
}

.pdc-ust-only {
    display: none;
}

.pdc-calculator--ust .pdc-front-only {
    display: none;
}

.pdc-calculator--ust .pdc-ust-only {
    display: block;
}

.pdc-ust-projector-shadow {
    fill: rgba(15, 23, 42, 0.12);
}

.pdc-ust-projector-body,
.pdc-calculator--ust .pdc-ust-projector-body {
    fill: #1a1d23;
    stroke: #0f172a;
    stroke-width: 1.5;
}

.pdc-ust-projector-top,
.pdc-calculator--ust .pdc-ust-projector-top {
    fill: #3a404a;
}

.pdc-ust-projector-front,
.pdc-calculator--ust .pdc-ust-projector-front {
    fill: #d7dbe1;
    stroke: rgba(15, 23, 42, 0.22);
    stroke-width: 0.8;
}

.pdc-ust-projector-grille,
.pdc-calculator--ust .pdc-ust-projector-grille {
    fill: #111827;
}

.pdc-ust-projector-window-left,
.pdc-ust-projector-window-right,
.pdc-calculator--ust .pdc-ust-projector-window-right {
    fill: #0f1116;
}

.pdc-ust-projector-bottom-strip,
.pdc-calculator--ust .pdc-ust-projector-bottom-strip {
    fill: #b8bec8;
}

.pdc-ust-projector-foot,
.pdc-calculator--ust .pdc-ust-projector-foot {
    fill: #0f172a;
}

.pdc-ust-screen-plane {
    fill: rgba(255,255,255,0.96);
    stroke: rgba(122, 168, 207, 0.92);
    stroke-width: 2.4;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.08));
}

.pdc-calculator--ust .pdc-screen rect {
    fill: #ffffff;
    stroke: #8fb6d9;
    stroke-width: 2.5;
    filter: drop-shadow(0 3px 8px rgba(15,23,42,0.08));
}

.pdc-calculator--ust .pdc-screen line:not(.pdc-ust-wall) {
    stroke: rgba(143, 182, 217, 0.95);
    stroke-width: 2.5;
}

.pdc-calculator--ust .pdc-lowboard {
    fill: #334155;
    opacity: 0.14;
}

.pdc-svg-note {
    fill: #475569;
    font-size: 12px;
    font-weight: 600;
}

.pdc-calculator--ust [data-pdc-svg="miniCaption"] {
    fill: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.pdc-calculator--ust [data-pdc-svg="distance"] {
    font-size: 19px;
}

.pdc-calculator--ust [data-pdc-svg="distanceCaption"] {
    font-size: 12px;
}

.pdc-calculator--ust [data-pdc-svg="ceiling"],
.pdc-calculator--ust [data-pdc-svg="ceilingCaption"] {
    fill: rgba(71, 85, 105, 0.92);
    font-size: 12px;
}

.pdc-calculator--ust .pdc-visual-controls {
    display: block;
    margin-top: 0.9rem;
}

.pdc-calculator--ust .pdc-distance-slider {
    display: none;
}

.pdc-calculator--ust .pdc-drag-status {
    border: 1px solid var(--pdc-border);
    border-radius: 14px;
    background: #f8fafc;
    padding: 0.9rem 1rem;
    color: #0f172a;
}

.pdc-video-list {
    display: grid;
    gap: 1rem;
}

.pdc-video-item h4 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.pdc-result-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--pdc-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

.pdc-result-card--lowboard {
    grid-column: span 2;
}

.pdc-summary-recommendation {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #0f172a;
}

.pdc-summary-recommendation strong {
    display: block;
    font-size: 1rem;
}

.pdc-field-lowboard {
    border-top: 1px solid var(--pdc-border);
    padding-top: 1rem;
}

.pdc-result-card--lowboard small {
    line-height: 1.35;
}

.pdc-drag-status strong,
.pdc-drag-status span,
.pdc-drag-status small {
    display: block;
}

.pdc-drag-status strong {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.35;
}

.pdc-drag-status span {
    margin-top: 0.45rem;
    color: #0f172a;
    font-weight: 800;
}

.pdc-drag-status small {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.35;
}

/* Lokal gecachte YouTube-Vorschaubilder: keine externe Anfrage vor dem Zwei-Klick-Start. */
.pdc-video-placeholder {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.pdc-video-placeholder.has-thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 9;
    color: #fff;
    background: #111827;
}

.pdc-video-thumbnail,
.pdc-video-overlay {
    position: absolute;
    inset: 0;
}

.pdc-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.pdc-video-overlay {
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.54) 54%, rgba(15, 23, 42, 0.2));
}

.pdc-video-placeholder.has-thumbnail p {
    color: rgba(255, 255, 255, 0.86);
}

.pdc-video-placeholder.has-thumbnail .pdc-video-button {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.pdc-video-copy {
    min-width: 0;
}


@media (max-width: 1180px) {
    .pdc-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pdc-mode-button.is-active *,
.pdc-info-button.is-active * {
    color: #fff;
}


/* Shortcode-Isolation: verhindert Theme-/Produkttext-Farben wie Bootstrap-Pink (#d63384) im frei platzierten Rechner. */
.pdc-calculator--shortcode,
.pdc-calculator--shortcode :where(h1, h2, h3, h4, h5, h6, p, span, strong, small, label, legend, li, td, th, summary, div) {
    color: var(--pdc-text) !important;
}

.pdc-calculator--shortcode :where(.pdc-head p, .pdc-note p, .pdc-summary-caption, .pdc-summary-intro, .pdc-brightness-note, .pdc-result-card span, .pdc-result-card small, .pdc-input-wrap span, .pdc-svg-note, .pdc-drag-status small) {
    color: var(--pdc-muted) !important;
}

.pdc-calculator--shortcode :where(.pdc-mode-button, .pdc-info-button) {
    color: var(--pdc-accent) !important;
}

.pdc-calculator--shortcode :where(.pdc-mode-button.is-active, .pdc-info-button.is-active, .pdc-mode-button.is-active *, .pdc-info-button.is-active *, .pdc-video-button, .pdc-video-icon) {
    color: #fff !important;
}

.pdc-calculator--shortcode :where(a) {
    color: var(--pdc-accent) !important;
}

.pdc-calculator--shortcode :where(input, button, select, textarea) {
    font-family: inherit;
}


/* Shortcode-Isolation Button-Fix: CTA-/Produktbuttons müssen lesbar bleiben. */
.pdc-calculator--shortcode :where(.pdc-product-card__button, .pdc-product-button, .pdc-print-button, .pdc-video-button, .pdc-button, .button, button) {
    color: #fff !important;
}

.pdc-calculator--shortcode :where(.pdc-product-card__button *, .pdc-product-button *, .pdc-print-button *, .pdc-video-button *, .pdc-button *, .button *, button *) {
    color: inherit !important;
}

.pdc-calculator--shortcode :where(.pdc-product-card__button[href], .pdc-product-button[href], .pdc-print-button[href], .pdc-video-button[href], .pdc-button[href], a.button) {
    color: #fff !important;
    text-decoration: none;
}

.pdc-calculator--shortcode :where(.pdc-mode-button, .pdc-info-button) {
    color: var(--pdc-accent) !important;
}

.pdc-calculator--shortcode :where(.pdc-mode-button.is-active, .pdc-info-button.is-active, .pdc-mode-button.is-active *, .pdc-info-button.is-active *) {
    color: #fff !important;
}


/* 2.7.24 Frontend-Polish: Videos, Leinwandempfehlungen und CTA-Buttons. */
.pdc-product-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.pdc-product-card {
    border-radius: 20px;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pdc-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 111, 235, 0.2);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.11);
}

.pdc-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pdc-product-card__button {
    width: 100%;
    margin-top: auto;
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6feb 0%, #2563eb 48%, #1d4ed8 100%);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.24);
    font-weight: 850;
    letter-spacing: 0.01em;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.pdc-product-card__button *,
.pdc-product-card__button:visited,
.pdc-product-card__button:hover,
.pdc-product-card__button:focus,
.pdc-product-card__button:focus-visible {
    color: #fff !important;
}

.pdc-product-card__button:hover,
.pdc-product-card__button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 16px 30px rgba(31, 111, 235, 0.32);
    text-decoration: none;
}

.pdc-video-placeholder.has-thumbnail {
    color: #fff !important;
}

.pdc-video-placeholder.has-thumbnail strong,
.pdc-video-placeholder.has-thumbnail p,
.pdc-video-placeholder.has-thumbnail span {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.pdc-video-placeholder.has-thumbnail p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.pdc-video-placeholder.has-thumbnail .pdc-video-icon {
    background: rgba(31, 111, 235, 0.92);
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.pdc-video-placeholder.has-thumbnail .pdc-video-button {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    color: #0f172a !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.pdc-video-placeholder.has-thumbnail .pdc-video-button:hover,
.pdc-video-placeholder.has-thumbnail .pdc-video-button:focus-visible {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

@media (max-width: 1180px) {
    .pdc-product-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pdc-product-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pdc-product-cards {
        grid-template-columns: 1fr;
    }
}


/* 2.7.25 Video-Overlay-Polish */
.pdc-video-placeholder {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 1rem 1.15rem;
}

.pdc-video-copy {
    min-width: 0;
}

.pdc-video-placeholder.has-thumbnail {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: end;
    align-items: start;
    gap: 0.8rem 1rem;
    padding: 1.4rem;
}

.pdc-video-placeholder.has-thumbnail .pdc-video-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 68px;
    height: 68px;
}

.pdc-video-placeholder.has-thumbnail .pdc-video-copy {
    grid-column: 2;
    grid-row: 1;
    max-width: 540px;
    align-self: end;
}

.pdc-video-placeholder.has-thumbnail .pdc-video-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    margin-top: 0.1rem;
    min-width: 164px;
    border-radius: 999px;
    padding-inline: 1.15rem;
}

.pdc-video-placeholder.has-thumbnail .pdc-video-copy strong {
    display: block;
    margin-bottom: 0.42rem;
}

@media (max-width: 767px) {
    .pdc-video-placeholder {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .pdc-video-placeholder.has-thumbnail {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        align-content: end;
        gap: 0.8rem;
    }

    .pdc-video-placeholder.has-thumbnail .pdc-video-icon,
    .pdc-video-placeholder.has-thumbnail .pdc-video-copy,
    .pdc-video-placeholder.has-thumbnail .pdc-video-button {
        grid-column: 1;
        grid-row: auto;
    }

    .pdc-video-placeholder.has-thumbnail .pdc-video-icon {
        width: 62px;
        height: 62px;
    }

    .pdc-video-placeholder.has-thumbnail .pdc-video-button {
        width: 100%;
        justify-self: stretch;
    }
}


/* 2.7.26 Preisformat Leinwandempfehlungen */
.pdc-product-card__price .pdc-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.pdc-product-card__price del,
.pdc-print-product-price del,
.product-price del {
    color: #94a3b8;
    font-weight: 650;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.pdc-product-card__price ins,
.pdc-print-product-price ins,
.product-price ins {
    color: #0f172a;
    font-weight: 850;
    text-decoration: none;
}

.pdc-product-card__price .pdc-price--sale ins {
    color: #dc2626;
}
