.sw-calc{border:1px solid #d9e2ec;border-radius:12px;padding:20px;margin:24px 0;background:#f8fafc;font-family:inherit}
.sw-calc h3{margin-top:0}
.sw-calc label{display:block;font-weight:600;margin:12px 0 4px}
.sw-calc input,.sw-calc select{width:100%;padding:9px;border:1px solid #bcccdc;border-radius:8px;box-sizing:border-box}
.sw-calc .sw-help{font-size:.85em;color:#52606d;margin:2px 0 0}
.sw-calc .sw-results{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:16px;margin-top:18px}
.sw-calc .sw-results p{margin:6px 0;display:flex;justify-content:space-between;gap:12px}
.sw-calc .sw-results strong{white-space:nowrap}
.sw-calc .sw-note{font-size:.85em;color:#52606d;margin-top:12px}
.sw-calc .sw-calc-btn{display:inline-block;width:auto;margin-top:18px;padding:12px 30px;border:0;border-radius:10px;background:#0b6e4f;color:#fff;font-size:1em;font-weight:700;cursor:pointer}
.sw-calc .sw-calc-btn:hover{background:#095c42}
.sw-calc .sw-placeholder{margin-top:14px;text-align:center}

/* v1.0.3 design polish: clear fields, help lines, presets, roof settings, results */
.sw-calc .sw-intro{color:#52606d;margin:0 0 8px}
.sw-calc .sw-field{margin:0 0 18px}
.sw-calc .sw-field label{margin:0 0 2px;font-size:1em}
.sw-calc .sw-field .sw-help{margin:0 0 7px}
.sw-calc .sw-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sw-calc .sw-presets button{border:1px solid #9fb3c8;background:#fff;border-radius:999px;padding:8px 14px;cursor:pointer;font-weight:700}
.sw-calc .sw-presets button:hover,.sw-calc .sw-presets button:focus{border-color:#0b6e4f;color:#0b6e4f}
.sw-calc .sw-details{margin:0 0 18px;border-top:1px solid #d9e2ec;border-bottom:1px solid #d9e2ec;padding:12px 0}
.sw-calc .sw-details summary{cursor:pointer;font-weight:700}
.sw-calc .sw-details .sw-help{margin:8px 0 12px}
.sw-calc .sw-error{min-height:1.3em;margin:10px 0 0;color:#9f1d1d;font-weight:600}
.sw-calc .sw-results h4{margin:0 0 10px}
.sw-calc .sw-primary{background:#e6f4ec;border-radius:12px;padding:16px;margin:0 0 10px}
.sw-calc .sw-primary span{display:block;color:#52606d;font-size:.9em}
.sw-calc .sw-primary strong{display:block;font-size:1.9em;margin-top:2px;white-space:normal}
.sw-calc .sw-result-note{font-weight:700;margin-top:10px}

/* v1.0.5: force readable button text against theme overrides */
.sw-calc .sw-presets button{color:#1c3327;background:#fff}
.sw-calc .sw-calc-btn{color:#fff;background:#0b6e4f}
.sw-calc .sw-presets button:hover,.sw-calc .sw-presets button:focus{color:#0b6e4f}

/* v1.0.7: button must never stretch (theme grid/flex stretch fix) */
.sw-calc{display:block}
.sw-calc .sw-calc-btn{display:inline-block;width:auto!important;max-width:max-content!important;height:auto!important;align-self:flex-start!important;justify-self:start!important;flex:0 0 auto!important}

/* v1.0.8: normal-size submit on solar savings calculator + placeholder style */
.swssc-submit{display:inline-block;width:auto!important;max-width:max-content!important;height:auto!important;align-self:flex-start!important;justify-self:start!important}
.sw-calc-placeholder{margin-top:14px;color:#52606d;font-size:.95em}
