/* ==========================================================================
   WC Local Lighting Simulator — Frontend Styles  v1.1.0
   Compatible with: Storefront, Astra, Flatsome, Elementor (standard WC reset)
   ========================================================================== */

/* ── Accessibility utility ───────────────────────────────────────────────── */
.wcls-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Outer wrapper ───────────────────────────────────────────────────────── */
.wcls-wrap {
    margin: 28px 0 36px;
    font-family: inherit;
    color: inherit;
}

/* ── Two-column grid (3:2) ───────────────────────────────────────────────── */
.wcls-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 22px;
    align-items: start;
}

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

/* ==========================================================================
   Canvas Panel
   ========================================================================== */
.wcls-canvas-panel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1117;
    box-shadow: 0 6px 28px rgba( 0, 0, 0, 0.40 );
}

.wcls-canvas-panel canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Telemetry overlay (desktop: absolute; mobile: static below canvas) ── */
.wcls-telemetry {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba( 8, 8, 20, 0.82 );
    backdrop-filter: blur( 8px );
    -webkit-backdrop-filter: blur( 8px );
    color: #e2f0ff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11.5px;
    line-height: 2;
    border: 1px solid rgba( 255, 255, 255, 0.10 );
    pointer-events: none;
}

.wcls-telem-value {
    color: #60c2f8;
    font-weight: 700;
    min-width: 70px;
    display: inline-block;
    text-align: right;
}

/* On mobile, pull telemetry out of absolute position and show below canvas */
@media ( max-width: 480px ) {
    .wcls-canvas-panel {
        overflow: visible;   /* allow telemetry to flow below */
    }
    .wcls-telemetry {
        position: static;
        border-radius: 0 0 10px 10px;
        border-top: 1px solid rgba( 255, 255, 255, 0.08 );
        font-size: 11px;
        line-height: 1.8;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Config Panel
   ========================================================================== */
.wcls-config-panel {
    background: #f8f9fc;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    padding: 20px 18px;
}

/* ── Header row ─────────────────────────────────────────────────────────── */
.wcls-config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wcls-panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1c2434;
    letter-spacing: -0.01em;
}

.wcls-reset-btn {
    background: none;
    border: 1px solid #c5cee0;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11.5px;
    color: #4a6080;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    line-height: 1.5;
    white-space: nowrap;
}

.wcls-reset-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff4ff;
}

.wcls-reset-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.wcls-divider {
    border: none;
    border-top: 1px solid #e2e6ee;
    margin: 12px 0 16px;
}

/* ── Field groups ────────────────────────────────────────────────────────── */
.wcls-field-group {
    margin-bottom: 16px;
}

/* Use gap on parent instead of margin hacks for :last-of-type */
.wcls-config-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wcls-config-header,
.wcls-divider {
    flex-shrink: 0;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */
.wcls-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wcls-unit-badge {
    display: inline-block;
    background: #1e3a5f;
    color: #93c5fd;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wcls-required-star {
    color: #e53e3e;
    font-size: 14px;
    line-height: 1;
}

/* ── Range Sliders ───────────────────────────────────────────────────────── */
.wcls-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fill-track uses --wcls-fill custom property set by JS on every input event */
.wcls-slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
        to right,
        #2563eb var( --wcls-fill, 20% ),
        #dde3f0 var( --wcls-fill, 20% )
    );
    transition: background 0.05s;
}

.wcls-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 1px 5px rgba( 0, 0, 0, 0.28 );
    cursor: pointer;
    transition: transform 0.14s, box-shadow 0.14s;
}

.wcls-slider-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale( 1.22 );
    box-shadow: 0 2px 10px rgba( 37, 99, 235, 0.50 );
}

.wcls-slider-row input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 1px 5px rgba( 0, 0, 0, 0.28 );
    cursor: pointer;
}

.wcls-slider-row input[type="range"]::-moz-range-track {
    height: 5px;
    border-radius: 3px;
    background: #dde3f0;
}

/* Focus-visible for keyboard users */
.wcls-slider-row input[type="range"]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 3px;
}

.wcls-range-output {
    flex-shrink: 0;
    min-width: 62px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a5f;
    font-variant-numeric: tabular-nums;
    background: #e0eaff;
    border-radius: 4px;
    padding: 2px 7px;
    line-height: 1.6;
}

/* ── Number companion inputs (sit alongside range sliders) ──────────────── */
.wcls-num-input {
    flex-shrink: 0;
    width: 58px;
    padding: 4px 6px;
    border: 1px solid #d1d9e6;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #1c2434;
    text-align: center;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    /* remove browser spin arrows */
    -moz-appearance: textfield;
    appearance: textfield;
}
.wcls-num-input::-webkit-inner-spin-button,
.wcls-num-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wcls-num-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba( 37, 99, 235, 0.18 );
}

/* ── Beam classification badge (below beam-angle slider) ─────────────────── */
.wcls-beam-class {
    display: inline-block;
    margin: 5px 0 0;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.wcls-bc--spot   { background: #fee2e2; color: #991b1b; }
.wcls-bc--narrow { background: #fef3c7; color: #92400e; }
.wcls-bc--medium { background: #dbeafe; color: #1e40af; }
.wcls-bc--wide   { background: #d1fae5; color: #065f46; }
.wcls-bc--xwide  { background: #ede9fe; color: #5b21b6; }
.wcls-bc--panel  { background: #e0f2fe; color: #075985; }

/* ── CCT preset buttons row ──────────────────────────────────────────────── */
.wcls-cct-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.wcls-cct-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}

.wcls-cct-preset span {
    font-size: 9.5px;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 1px;
}

.wcls-cct-preset:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.wcls-cct-preset--active {
    border-color: #2563eb;
    background: #eff4ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba( 37, 99, 235, 0.20 );
}

.wcls-cct-preset--active span {
    color: #3b82f6;
}

.wcls-cct-preset:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ── Kelvin gradient track (decorative, under CCT slider) ────────────────── */
.wcls-kelvin-track {
    height: 5px;
    border-radius: 3px;
    margin-top: 6px;
    background: linear-gradient(
        to right,
        #ff7000 0%,
        #ffb347 15%,
        #ffe0a0 35%,
        #fff5e0 55%,
        #e8f0ff 75%,
        #c8deff 100%
    );
    opacity: 0.65;
}

/* ── Select Dropdowns ────────────────────────────────────────────────────── */
.wcls-select {
    width: 100%;
    padding: 9px 34px 9px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232563eb' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    appearance: none;
    font-size: 13px;
    color: #1c2434;
    cursor: pointer;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.wcls-select:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.20 );
}

/* ── Wattage Pill Radio Buttons ──────────────────────────────────────────── */
.wcls-watt-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcls-watt-pill {
    display: block;
    cursor: pointer;
}

.wcls-watt-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wcls-watt-pill__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border: 2px solid #d1d9e6;
    border-radius: 7px;
    background: #fff;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    min-width: 58px;
    text-align: center;
    user-select: none;
}

.wcls-watt-pill:hover .wcls-watt-pill__body {
    border-color: #93c5fd;
    background: #eff6ff;
}

.wcls-watt-pill input[type="radio"]:checked + .wcls-watt-pill__body {
    border-color: #2563eb;
    background: #eff4ff;
    box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.18 );
}

.wcls-watt-pill input[type="radio"]:focus-visible + .wcls-watt-pill__body {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.wcls-watt-pill__watt {
    font-size: 13px;
    font-weight: 700;
    color: #1c2434;
    line-height: 1.2;
}

.wcls-watt-pill__price {
    font-size: 10px;
    color: #2563eb;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1;
}

.wcls-watt-pill__price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* ── Validation error ────────────────────────────────────────────────────── */
.wcls-error-msg {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wcls-error-msg::before {
    content: '⚠';
    font-size: 13px;
}

/* ── Colour Picker ───────────────────────────────────────────────────────── */
.wcls-color-picker {
    width: 100%;
    height: 44px;
    padding: 2px 4px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.wcls-color-picker:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.20 );
    outline: none;
}

/* ── CCT / RGB groups — fade-in animation ────────────────────────────────── */
.wcls-cct-group[style*="display: block"],
.wcls-cct-group:not([style*="display: none"]),
.wcls-rgb-group[style*="display: block"],
.wcls-rgb-group:not([style*="display: none"]) {
    animation: wclsFadeIn 0.20s ease both;
}

@keyframes wclsFadeIn {
    from { opacity: 0; transform: translateY( -4px ); }
    to   { opacity: 1; transform: translateY( 0 ); }
}

/* ── Live price preview (inside the cart form, above button) ─────────────── */
.wcls-price-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    padding: 10px 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wcls-price-preview__label {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.wcls-price-preview__value {
    font-size: 18px;
    font-weight: 800;
    color: #1e3a5f;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Accessibility overrides
   ========================================================================== */

/* Respect user preference to reduce motion */
@media ( prefers-reduced-motion: reduce ) {
    .wcls-cct-group,
    .wcls-rgb-group {
        animation: none !important;
    }
    .wcls-slider-row input[type="range"]::-webkit-slider-thumb,
    .wcls-reset-btn {
        transition: none !important;
    }
}

/* High contrast mode support */
@media ( forced-colors: active ) {
    .wcls-watt-pill__body,
    .wcls-config-panel,
    .wcls-select,
    .wcls-price-preview {
        border: 2px solid ButtonText;
    }
    .wcls-watt-pill input[type="radio"]:checked + .wcls-watt-pill__body {
        border-color: Highlight;
    }
}

/* ==========================================================================
   Section heading (used above fixture-position group)
   ========================================================================== */
.wcls-section-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6b7280;
    margin: 4px 0 10px;
    padding-top: 4px;
}

/* ==========================================================================
   Room photo upload bar (below canvas)
   ========================================================================== */
.wcls-room-upload-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-wrap: wrap;
}

.wcls-room-file {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wcls-room-upload-btn,
.wcls-room-remove-btn {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.wcls-room-upload-btn {
    background: rgba(255,255,255,.12);
    color: #e8f0ff;
    border-color: rgba(255,255,255,.30);
}
.wcls-room-upload-btn:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.55);
}
.wcls-room-remove-btn {
    background: rgba(220,38,38,.15);
    color: #fca5a5;
    border-color: rgba(220,38,38,.35);
}
.wcls-room-remove-btn:hover {
    background: rgba(220,38,38,.25);
}
.wcls-room-upload-btn:focus-visible,
.wcls-room-remove-btn:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.wcls-room-upload-hint {
    font-size: 10.5px;
    color: rgba(255,255,255,.50);
    font-style: italic;
    flex: 1;
    min-width: 140px;
}

/* ==========================================================================
   Photometric Output Table
   ========================================================================== */
.wcls-output-section {
    margin-top: 20px;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.wcls-output-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: #f5f7fa;
    border-bottom: 1px solid #e2e6ee;
}

.wcls-output-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #1c2434;
}

.wcls-output-live-badge {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #16a34a;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
}

.wcls-output-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media ( max-width: 680px ) {
    .wcls-output-tables { grid-template-columns: 1fr; }
}

.wcls-photometric-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.wcls-photometric-table + .wcls-photometric-table {
    border-left: 1px solid #e2e6ee;
}

@media ( max-width: 680px ) {
    .wcls-photometric-table + .wcls-photometric-table {
        border-left: none;
        border-top: 1px solid #e2e6ee;
    }
}

.wcls-photometric-table tr {
    border-bottom: 1px solid #f0f2f7;
}
.wcls-photometric-table tr:last-child { border-bottom: none; }
.wcls-photometric-table tr:hover { background: #f8f9fc; }

.wcls-photometric-table th {
    padding: 9px 16px;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    font-size: 12px;
    width: 52%;
    background: #fafbfc;
}

.wcls-photometric-table td {
    padding: 9px 16px;
    color: #1c2434;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
}

.wcls-photometric-table td span {
    display: inline-block;
    transition: color .25s;
}

/* Flash when value changes */
.wcls-photometric-table td span.wcls-val-updated {
    color: #2563eb;
}

/* ==========================================================================
   Fixture Count Calculator
   ========================================================================== */
.wcls-calc-section {
    margin-top: 16px;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.wcls-calc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #f5f7fa;
    border: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: #1c2434;
    gap: 8px;
    transition: background .15s;
}
.wcls-calc-toggle:hover { background: #eef1f7; }
.wcls-calc-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }

.wcls-calc-chevron {
    font-size: 11px;
    color: #6b7280;
    transition: transform .2s;
}
.wcls-calc-toggle[aria-expanded="true"] .wcls-calc-chevron {
    transform: rotate(180deg);
}

.wcls-calc-body {
    padding: 18px 18px 20px;
    border-top: 1px solid #e2e6ee;
}

.wcls-calc-intro {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

.wcls-calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media ( max-width: 600px ) {
    .wcls-calc-inputs { grid-template-columns: 1fr 1fr; }
}

.wcls-calc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcls-calc-field--full {
    grid-column: 1 / -1;
}

.wcls-calc-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}

.wcls-calc-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcls-calc-input-wrap input[type="number"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    font-size: 13px;
    color: #1c2434;
    width: 100%;
    min-width: 0;
}
.wcls-calc-input-wrap input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.wcls-calc-input-wrap span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

.wcls-calc-btn {
    padding: 10px 22px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    margin-bottom: 20px;
}
.wcls-calc-btn:hover { background: #1d4ed8; box-shadow: 0 3px 10px rgba(37,99,235,.30); }
.wcls-calc-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

/* Calculator results */
.wcls-calc-results {
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    overflow: hidden;
}

.wcls-calc-hero {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
}

.wcls-calc-hero-num {
    font-size: 42px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wcls-calc-hero-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
}

.wcls-calc-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.wcls-calc-detail-table th,
.wcls-calc-detail-table td {
    padding: 9px 18px;
    border-bottom: 1px solid #f0f2f7;
    text-align: left;
}
.wcls-calc-detail-table tr:last-child th,
.wcls-calc-detail-table tr:last-child td { border-bottom: none; }

.wcls-calc-detail-table th {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    background: #fafbfc;
    width: 52%;
}
.wcls-calc-detail-table td {
    font-weight: 700;
    color: #1c2434;
    font-variant-numeric: tabular-nums;
}

.wcls-calc-note {
    margin: 0;
    padding: 10px 18px;
    font-size: 11px;
    color: #9ca3af;
    background: #fafbfc;
    border-top: 1px solid #f0f2f7;
    line-height: 1.5;
}

/* ==========================================================================
   Inline output section (inside canvas panel) — v1.3
   ========================================================================== */

/* When the output section lives inside .wcls-canvas-panel */
.wcls-output-section--inline {
    margin-top: 14px;
    border-radius: 8px;
}

/* Print & Share action buttons in header */
.wcls-output-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.wcls-output-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
    line-height: 1;
}
.wcls-output-action-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f0f6ff;
}
.wcls-output-action-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ==========================================================================
   Print styles — only photometric table visible
   ========================================================================== */
@media print {
    /* Hide everything on the page except the simulator output */
    body > *                        { display: none !important; }
    .woocommerce                    { display: block !important; }
    .wcls-wrap                      { display: block !important; }
    .wcls-output-section            { display: block !important; }
    .wcls-output-tables             { display: grid  !important; }
    .wcls-photometric-table         { display: table !important; }

    /* Hide non-print elements */
    .wcls-grid,
    .wcls-canvas-panel canvas,
    .wcls-room-upload-bar,
    .wcls-config-panel,
    .wcls-calc-section,
    .wcls-output-action-btn,
    .wcls-output-live-badge,
    #wcls_grid_badge,
    .wcls-price-preview,
    form.cart {
        display: none !important;
    }

    /* Clean output section for print */
    .wcls-output-section--inline {
        display: block !important;
        border: 1px solid #ccc !important;
        border-radius: 4px !important;
        margin: 0 !important;
    }

    .wcls-output-header {
        background: #1e3a8a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .wcls-output-title { color: #fff !important; }

    .wcls-photometric-table th,
    .wcls-photometric-table td {
        font-size: 10pt !important;
        padding: 6px 10px !important;
    }
}

/* ==========================================================================
   Responsive fine-tuning
   ========================================================================== */
@media ( max-width: 480px ) {
    .wcls-config-panel {
        padding: 14px 12px;
    }
    .wcls-panel-title {
        font-size: 13.5px;
    }
    .wcls-watt-pills {
        gap: 6px;
    }
    .wcls-watt-pill__body {
        padding: 7px 11px;
        min-width: 50px;
    }
    .wcls-price-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .wcls-price-preview__value {
        font-size: 16px;
    }
}
