/* WindowTreat Shade Score widget. Scoped to #wt-shade-score so it sits inside any theme or Elementor page. */
#wt-shade-score{--wt-bg:#f4f6f7;--wt-surface:#fff;--wt-ink:#242a2e;--wt-muted:#687178;--wt-line:#d8dee2;--wt-accent:#00a8d3;--wt-accent-dark:#0087aa;--wt-accent-soft:#e6f8fc;--wt-night:#1f3348;--wt-good:#2f7d4a;--wt-warn:#a96613;--wt-warn-soft:#fff2d7;--wt-bad:#9c4040;--wt-bad-soft:#f9e9e9;--wt-radius:10px;
  color:var(--wt-ink);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.45;max-width:1100px;margin:0 auto;padding:0 16px;box-sizing:border-box}
#wt-shade-score *,#wt-shade-score *::before,#wt-shade-score *::after{box-sizing:border-box}
#wt-shade-score h2,#wt-shade-score h3,#wt-shade-score h4{margin:0 0 10px;line-height:1.2;color:var(--wt-ink)}
#wt-shade-score h2{font-size:30px}
#wt-shade-score h3{font-size:19px}
#wt-shade-score h4{font-size:16px}
#wt-shade-score p{margin:0 0 10px}
#wt-shade-score .wt-hero{background:var(--wt-night);color:#fff;border-radius:16px;padding:24px 22px;margin:0 0 18px}
#wt-shade-score .wt-hero h2,#wt-shade-score .wt-hero p{color:#fff}
#wt-shade-score .wt-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#9fd8ea;font-weight:800;margin-bottom:6px}
#wt-shade-score .wt-illustrative{font-size:13px;color:#d6e3ea;border-left:3px solid var(--wt-accent);padding-left:10px;margin:12px 0 0}
#wt-shade-score .wt-card{background:var(--wt-surface);border:1px solid var(--wt-line);border-radius:var(--wt-radius);padding:18px;margin:0 0 16px}
#wt-shade-score .wt-hint,#wt-shade-score .wt-small{font-size:13px;color:var(--wt-muted)}
#wt-shade-score .wt-field-label{font-size:13px;font-weight:700;margin:12px 0 6px}
#wt-shade-score label{display:block;font-size:13px;font-weight:700;margin:0 0 10px}
#wt-shade-score label > input,#wt-shade-score label > select,#wt-shade-score label > textarea{display:block;width:100%;margin-top:4px;font:inherit;font-weight:400;font-size:15px;padding:9px 10px;border:1px solid #c5ced4;border-radius:7px;background:#fff;color:var(--wt-ink);min-height:40px}
#wt-shade-score input:focus-visible,#wt-shade-score select:focus-visible,#wt-shade-score button:focus-visible,#wt-shade-score a:focus-visible{outline:3px solid rgba(0,168,211,.35);outline-offset:1px}
#wt-shade-score input[readonly]{background:#f1f4f5;color:var(--wt-muted)}
#wt-shade-score .wt-grid-2,#wt-shade-score .wt-grid-3,#wt-shade-score .wt-section-row,#wt-shade-score .wt-former-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
#wt-shade-score .wt-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
#wt-shade-score .wt-section-row,#wt-shade-score .wt-former-row{grid-template-columns:1fr 1fr auto;align-items:end}
#wt-shade-score .wt-former-row{grid-template-columns:1fr 1fr 1fr auto}
#wt-shade-score .wt-glass-spec{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;background:#f7f9fa;border:1px dashed var(--wt-line);border-radius:8px;padding:10px 12px 0;margin-bottom:12px}
#wt-shade-score .wt-span{grid-column:1/-1}
#wt-shade-score .wt-btn{display:inline-block;font:inherit;font-weight:700;font-size:15px;border-radius:8px;padding:10px 16px;border:1px solid #b9c4cb;background:#fff;color:var(--wt-ink);cursor:pointer;text-decoration:none;min-height:42px;line-height:1.3}
#wt-shade-score .wt-btn:hover{border-color:var(--wt-accent-dark);color:var(--wt-accent-dark)}
#wt-shade-score .wt-btn-primary{background:var(--wt-accent);border-color:var(--wt-accent);color:#fff}
#wt-shade-score .wt-btn-primary:hover{background:var(--wt-accent-dark);border-color:var(--wt-accent-dark);color:#fff}
#wt-shade-score .wt-btn-big{width:100%;font-size:17px;padding:14px;margin:4px 0 18px}
#wt-shade-score .wt-btn.is-dirty{box-shadow:0 0 0 3px rgba(201,149,45,.35);background:#c9952d;border-color:#c9952d;color:#111}
#wt-shade-score .wt-btn[disabled]{opacity:.6;cursor:wait}
#wt-shade-score .wt-icon-btn{font:inherit;font-size:20px;line-height:1;width:40px;height:40px;border-radius:8px;border:1px solid #b9c4cb;background:#fff;cursor:pointer;color:var(--wt-muted);margin-bottom:10px}
#wt-shade-score .wt-icon-btn:hover{color:var(--wt-bad);border-color:var(--wt-bad)}
#wt-shade-score .wt-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
#wt-shade-score .wt-segmented{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
#wt-shade-score .wt-segmented button,#wt-shade-score .wt-segmented label{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:700;padding:8px 12px;border:1px solid #c5ced4;border-radius:999px;background:#fff;cursor:pointer;margin:0}
#wt-shade-score .wt-segmented button.is-active{background:var(--wt-night);border-color:var(--wt-night);color:#fff}
#wt-shade-score .wt-segmented label input{width:auto;margin:0;min-height:0}
#wt-shade-score .wt-segmented label:has(input:checked){background:var(--wt-night);border-color:var(--wt-night);color:#fff}
#wt-shade-score .wt-plane,#wt-shade-score .wt-roof-item{border:1px solid var(--wt-line);border-radius:10px;padding:14px;margin:0 0 12px;background:#fafbfb}
#wt-shade-score .wt-plane-head,#wt-shade-score .wt-opening-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
#wt-shade-score .wt-opening{border-top:1px solid var(--wt-line);padding-top:12px;margin-top:12px}
#wt-shade-score .wt-type-grid,#wt-shade-score .wt-stage-grid,#wt-shade-score .wt-measure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
#wt-shade-score .wt-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#wt-shade-score .wt-choice{position:relative;margin:0;font-weight:400}
#wt-shade-score .wt-choice input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
#wt-shade-score .wt-choice-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px;padding:10px;border:1px solid #d5dde2;border-radius:10px;background:#fff;text-align:center;font-size:13px;font-weight:700;cursor:pointer;height:100%}
#wt-shade-score .wt-stage-grid .wt-choice-tile{align-items:flex-start;text-align:left}
#wt-shade-score .wt-choice-tile:hover{border-color:var(--wt-accent)}
#wt-shade-score .wt-choice input:checked + .wt-choice-tile{background:var(--wt-accent-soft);border-color:var(--wt-accent-dark);box-shadow:0 0 0 2px rgba(0,168,211,.25)}
#wt-shade-score .wt-choice input:focus-visible + .wt-choice-tile{outline:3px solid rgba(0,168,211,.35)}
#wt-shade-score .wt-choice.is-unavailable .wt-choice-tile{opacity:.55;cursor:not-allowed;background:#f3f5f6}
#wt-shade-score .wt-choice-tile .wt-small{font-weight:400}
#wt-shade-score .wt-choice-reason{font-size:11px;font-weight:400;color:var(--wt-muted)}
#wt-shade-score .wt-check{display:block;font-weight:400;font-size:14px;margin:6px 0}
#wt-shade-score .wt-check input{width:auto;display:inline;margin:0 4px 0 0;min-height:0}
#wt-shade-score .wt-inline{margin-top:8px}
#wt-shade-score .wt-inline > input,#wt-shade-score .wt-inline > select{max-width:320px}
#wt-shade-score .wt-validation{background:var(--wt-bad-soft);color:var(--wt-bad);border-radius:9px;padding:12px 14px;margin:0 0 14px;font-size:14px}
#wt-shade-score .wt-validation ul{margin:6px 0 0 18px;padding:0}
#wt-shade-score .wt-dirty-note{background:var(--wt-warn-soft);color:var(--wt-warn);border-radius:9px;padding:10px 12px;font-size:13px;font-weight:700}
#wt-shade-score .wt-scorebox{display:flex;gap:16px;align-items:center;margin:0 0 12px}
#wt-shade-score .wt-ring{width:112px;height:112px;min-width:112px;border-radius:50%;border:11px solid var(--wt-accent);display:grid;place-items:center}
#wt-shade-score .wt-ring b{font-size:36px}
#wt-shade-score .wt-status{font-size:21px;font-weight:800;margin-bottom:4px}
#wt-shade-score .wt-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}
#wt-shade-score .wt-metric{border:1px solid var(--wt-line);border-radius:9px;padding:10px}
#wt-shade-score .wt-metric b{display:block;font-size:19px}
#wt-shade-score .wt-intensity,#wt-shade-score .wt-note,#wt-shade-score .wt-safety{font-size:13px;background:#f1f4f5;border-left:4px solid var(--wt-accent);padding:10px 12px;border-radius:6px;margin:0 0 12px}
#wt-shade-score .wt-note[data-tone=blocked]{background:var(--wt-bad-soft);border-left-color:var(--wt-bad)}
#wt-shade-score .wt-safety{border-left-color:var(--wt-warn);background:var(--wt-warn-soft)}
#wt-shade-score .wt-drivers ul{margin:6px 0 12px 18px;padding:0;font-size:14px}
#wt-shade-score .wt-bar{height:8px;background:#e6ebee;border-radius:999px;overflow:hidden;margin-top:5px}
#wt-shade-score .wt-bar i{display:block;height:100%;background:var(--wt-night)}
#wt-shade-score .wt-analysis p{font-size:13px;margin:0 0 10px}
#wt-shade-score .wt-partl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:10px 0;font-size:14px}
#wt-shade-score .wt-summary-item{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--wt-line);padding:10px 0;margin:0;font-size:14px}
#wt-shade-score .wt-summary-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#wt-shade-score .wt-summary-detail{font-size:12px;color:var(--wt-muted)}
#wt-shade-score .wt-badge{display:inline-block;align-self:flex-start;background:var(--wt-accent-soft);color:var(--wt-accent-dark);font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px}
#wt-shade-score .wt-summary-price{text-align:right;min-width:150px;display:flex;flex-direction:column;gap:2px}
#wt-shade-score .wt-summary-price b{color:var(--wt-accent-dark);font-size:15px}
#wt-shade-score .wt-summary-price span{font-size:11px;color:var(--wt-muted)}
#wt-shade-score .wt-summary-price.is-pending b{color:var(--wt-warn)}
#wt-shade-score .wt-total-row{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f2f8fa;border-top:2px solid var(--wt-accent);padding:12px;margin:10px 0}
#wt-shade-score .wt-total-row strong{color:var(--wt-accent-dark);font-size:20px;text-align:right}
#wt-shade-score .wt-measure-area{border:1px solid var(--wt-line);border-radius:10px;padding:14px;margin:0 0 12px}
#wt-shade-score .wt-group-title{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--wt-muted);margin:10px 0 6px}
#wt-shade-score .wt-improved{border:2px solid var(--wt-accent);border-radius:10px;padding:14px;margin:14px 0}
#wt-shade-score .wt-compare{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;text-align:center;font-size:13px}
#wt-shade-score .wt-cb{border:1px solid var(--wt-line);border-radius:9px;padding:8px}
#wt-shade-score .wt-cb b{display:block;font-size:24px}
#wt-shade-score .wt-handoff{background:var(--wt-accent-soft);border-color:#b9e6f2}
#wt-shade-score .wt-method{font-size:12px;color:var(--wt-muted);margin:8px 0 24px}
#wt-shade-score .wt-flash{animation:wtFlash 1.1s ease}
@keyframes wtFlash{0%{box-shadow:0 0 0 0 rgba(0,168,211,.55)}50%{box-shadow:0 0 0 8px rgba(0,168,211,.12)}100%{box-shadow:0 0 0 0 rgba(0,168,211,0)}}
@media (prefers-reduced-motion:reduce){#wt-shade-score .wt-flash{animation:none}}
@media (max-width:700px){
  #wt-shade-score{font-size:15px;padding:0}
  #wt-shade-score h2{font-size:24px}
  #wt-shade-score .wt-hero{border-radius:12px;padding:18px 16px}
  #wt-shade-score .wt-card{padding:14px}
  #wt-shade-score .wt-grid-3,#wt-shade-score .wt-glass-spec{grid-template-columns:1fr}
  #wt-shade-score .wt-grid-2,#wt-shade-score .wt-partl-grid{grid-template-columns:1fr}
  #wt-shade-score .wt-section-row{grid-template-columns:1fr 1fr auto}
  #wt-shade-score .wt-former-row{grid-template-columns:1fr 1fr}
  #wt-shade-score .wt-type-grid,#wt-shade-score .wt-measure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #wt-shade-score .wt-stage-grid{grid-template-columns:1fr}
  #wt-shade-score .wt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  #wt-shade-score .wt-scorebox{flex-direction:column;align-items:flex-start}
  #wt-shade-score .wt-summary-item{flex-direction:column;gap:6px}
  #wt-shade-score .wt-summary-price{text-align:left;min-width:0}
  #wt-shade-score .wt-total-row{flex-direction:column;align-items:flex-start}
  #wt-shade-score .wt-btn{width:100%;text-align:center}
}
