.sae-sq-root { --sae-navy: #0C4E96; --sae-blue: #00AEEF; --sae-gold: #FCF352; --sae-ink: #111827; --sae-paper: #FFFFFF; --sae-mist: #F2F2F2; --sae-line: #E3E3E3; --sae-green: #0F9D58; --sae-amber: #B7791F; --sae-muted: #64748B; font-family: 'Manrope', sans-serif; background: var(--sae-mist); color: var(--sae-ink); box-sizing: border-box; }
.sae-sq-root *, .sae-sq-root *::before, .sae-sq-root *::after { box-sizing: inherit; }

/* Neutralise the host theme's global button/link/input styling before we
   apply our own — themes very commonly set border-radius, background and
   box-shadow on every <button> and <a>, which otherwise wins the cascade. */
.sae-sq-root button,
.sae-sq-root input,
.sae-sq-root a {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-family: inherit;
	line-height: normal;
	box-shadow: none;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
}

.sae-sq-loading { padding: 40px; text-align: center; color: var(--sae-muted); }

.sae-sq-container { max-width: 980px; margin: 0 auto; padding: 40px 20px 56px; }

.sae-sq-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sae-sq-brand-badge { width: 30px; height: 30px; border-radius: 8px; background: var(--sae-navy); display: flex; align-items: center; justify-content: center; }
.sae-sq-brand-name { font-weight: 700; font-size: 15px; color: var(--sae-navy); letter-spacing: 0.2px; }

.sae-sq-h1 { font-weight: 800; font-size: 30px; color: var(--sae-navy); margin: 10px 0 6px; line-height: 1.15; }
.sae-sq-sub { color: var(--sae-muted); font-size: 15px; margin: 0 0 28px; max-width: 560px; }

.sae-sq-grid { display: grid; grid-template-columns: 360px 1fr; gap: 26px; }
@media (max-width: 800px) { .sae-sq-grid { grid-template-columns: 1fr; } }

.sae-sq-panel { background: var(--sae-paper); border: 1px solid var(--sae-line); border-radius: 18px; padding: 24px; }

.sae-sq-field { margin-bottom: 20px; }
.sae-sq-field-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 600; font-size: 13.5px; color: var(--sae-navy); }

.sae-sq-input {
	width: 100%; padding: 10px 12px !important; border-radius: 9px !important; border: 1.5px solid var(--sae-line) !important;
	font-family: inherit; font-weight: 600 !important; font-size: 14.5px !important; color: var(--sae-navy) !important; background: #fff !important;
}
.sae-sq-postcode-wrap { position: relative; }
.sae-sq-postcode-status { font-size: 11.5px; margin-top: 5px; min-height: 15px; }
.sae-sq-postcode-status.ok { color: var(--sae-green); }
.sae-sq-postcode-status.warn { color: var(--sae-amber); }
.sae-sq-postcode-status.bad { color: #C0392B; }

.sae-sq-pill {
	border: 1.5px solid var(--sae-line) !important; background: var(--sae-paper) !important; color: var(--sae-ink) !important;
	border-radius: 10px !important; padding: 9px 14px !important; font-family: inherit; font-weight: 500 !important; font-size: 13.5px !important;
	cursor: pointer; margin: 0 8px 8px 0 !important; transition: all 120ms ease; display: inline-block;
}
.sae-sq-pill.selected { border-color: var(--sae-blue) !important; background: var(--sae-blue) !important; color: #fff !important; }

.sae-sq-range { width: 100%; accent-color: var(--sae-blue); }
.sae-sq-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--sae-muted); margin-top: 2px; }

.sae-sq-disclaimer { font-size: 11.5px; color: var(--sae-muted); margin-top: 4px; line-height: 1.5; }

.sae-sq-state-panel { background: var(--sae-mist); border: 1px solid var(--sae-line); border-radius: 12px; padding: 14px 16px; margin: -6px 0 20px; }
.sae-sq-state-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.sae-sq-state-title { font-weight: 700; font-size: 12.5px; color: var(--sae-navy); }
.sae-sq-badge { font-weight: 700; font-size: 10.5px; color: #fff; border-radius: 999px; padding: 3px 9px; text-transform: uppercase; letter-spacing: 0.3px; }
.sae-sq-rebate-row { display: flex; gap: 10px; margin-bottom: 8px; align-items: baseline; }
.sae-sq-rebate-row:last-of-type { margin-bottom: 0; }
.sae-sq-rebate-label { font-weight: 700; font-size: 11px; color: var(--sae-blue); min-width: 74px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.3px; }
.sae-sq-rebate-text { font-size: 12.5px; color: #374151; line-height: 1.5; }
.sae-sq-rebate-disclaimer { font-size: 10.5px; color: var(--sae-muted); margin-top: 10px; line-height: 1.5; }

.sae-sq-hero { background: var(--sae-navy); border-radius: 18px; padding: 26px 28px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.sae-sq-hero-label { color: #BFE9FA; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.sae-sq-hero-value { font-weight: 800; font-size: 40px; color: #fff; line-height: 1.1; margin: 6px 0 12px; }

.sae-sq-editbill-btn { display: inline-flex !important; align-items: center; gap: 6px; background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.28) !important; border-radius: 8px !important; padding: 5px 10px !important; color: #fff !important; font-family: inherit; font-weight: 600 !important; font-size: 12.5px !important; cursor: pointer; }
.sae-sq-editbill-input { width: 78px; padding: 5px 8px !important; border-radius: 7px !important; border: none !important; font-family: inherit; font-weight: 700 !important; font-size: 14.5px !important; color: var(--sae-navy) !important; background: #fff !important; }
.sae-sq-editbill-save { background: rgba(255,255,255,0.15) !important; border: none !important; border-radius: 7px !important; padding: 6px !important; cursor: pointer; display: inline-flex !important; }

.sae-sq-cta-btn { background: var(--sae-gold) !important; color: var(--sae-ink) !important; border: none !important; border-radius: 11px !important; padding: 13px 22px !important; font-family: inherit; font-weight: 700 !important; font-size: 14px !important; cursor: pointer; display: inline-block; white-space: nowrap; }

.sae-sq-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .sae-sq-cards { grid-template-columns: 1fr; } }
.sae-sq-card { background: var(--sae-paper); border: 1px solid var(--sae-line); border-radius: 14px; padding: 16px 18px; }
.sae-sq-card.highlight { border-color: var(--sae-gold); }
.sae-sq-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sae-sq-card-label { font-size: 11.5px; color: var(--sae-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.sae-sq-card-value { font-weight: 600; font-size: 21px; color: var(--sae-navy); }

/* Modal */
.sae-sq-modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.55); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 20px; }
.sae-sq-modal { background: #fff; border-radius: 16px; padding: 28px; width: 100%; max-width: 420px; font-family: 'Manrope', sans-serif; }
.sae-sq-modal h3 { margin: 0 0 8px; color: var(--sae-navy); font-size: 20px; font-weight: 800; }
.sae-sq-modal p { margin: 0 0 18px; color: var(--sae-muted); font-size: 13.5px; line-height: 1.5; }
.sae-sq-modal label { display: block; font-weight: 600; font-size: 13px; color: var(--sae-navy); margin-bottom: 6px; }
.sae-sq-modal .sae-sq-input { margin-bottom: 14px; }
.sae-sq-modal-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.sae-sq-modal-close { background: none !important; border: none !important; color: var(--sae-muted) !important; font-size: 13px !important; cursor: pointer; padding: 0 !important; }
.sae-sq-modal-error { color: #C0392B; font-size: 12.5px; margin: -8px 0 12px; }
.sae-sq-modal-success { color: var(--sae-green); font-weight: 600; font-size: 14px; }
.sae-sq-required { color: #C0392B; }
