/* Scope variables to the Next widget only */
#next-blc-isolated {
  --next-primary: #F89725; /* tune to Next Wi-Fi brand */
  --next-accent:  #F89725;
  --ink: #0e1726; --muted:#5b6b7a; --bg:#f7f9fb; --card:#ffffff; --ring: rgba(248, 151, 37, 0.25);
  --ok:#0a8f5b; --warn:#9b8700; --bad:#b23b3b; --shadow: 0 10px 30px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.06);
  --radius:16px; --radius-sm:10px;
}

/* Isolation to prevent global CSS collisions */
#next-blc-isolated { all: revert; width: 100%; margin: 0 auto; }
#next-blc-isolated *, #next-blc-isolated *::before, #next-blc-isolated *::after { box-sizing: border-box; }
@media (min-width:1024px){ #next-blc-isolated { width: 50%; } }

.next-blc { font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; color: var(--ink); }
.next-blc .wrap { background: var(--bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.next-blc .hdr { display:grid; gap:6px; margin-bottom:16px; }
.next-blc .eyebrow { color: var(--next-primary); font-weight:700; font-size:13px; letter-spacing:.08em; text-transform:uppercase; }
.next-blc h2 { margin:0; font-size:26px; line-height:1.2; }
.next-blc .sub { color:var(--muted); font-size:14px; }

.next-blc .grid { display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:980px){ .next-blc .grid { grid-template-columns: minmax(480px, 1fr) 420px; } }

.next-blc .calc-panel { background:#fff; border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); }
.next-blc .calc-panel h3 { margin:0 0 8px; font-size:16px; color:var(--muted); font-weight:600; }

.next-blc .field { display:grid; grid-template-columns:160px 1fr; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #eef2f6; }
.next-blc .field:last-child { border-bottom:0; }
@media (max-width:520px){ .next-blc .field { grid-template-columns:1fr; } }
.next-blc label { font-weight:600; }

.next-blc input[type="number"], .next-blc input[type="text"], .next-blc select {
  width:100%; border:1px solid #d7dee6; border-radius:12px; padding:10px 12px; background:#fff;
  outline:none; transition: box-shadow .2s ease, border-color .2s ease;
}
.next-blc input:focus, .next-blc select:focus { border-color: var(--next-primary); box-shadow: 0 0 0 6px var(--ring); }
.next-blc .hint { color:var(--muted); font-size:12px; margin-top:6px; }

.next-blc .radios { display:flex; flex-wrap:wrap; gap:8px; }
.next-blc .radios label { display:flex; gap:8px; align-items:center; background:#fff; border:1px solid #dfe7ef; padding:8px 10px; border-radius:10px; cursor:pointer; }
.next-blc .radios input { accent-color: var(--next-primary); }

.next-blc details { background:#fafcff; border:1px solid #e7eef6; padding:10px 12px; border-radius:12px; }
.next-blc summary { cursor:pointer; font-weight:600; color:var(--next-primary); }

.next-blc .stats { display:grid; gap:12px; }
.next-blc .stat { background:#fff; border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); border-left:5px solid transparent; }
.next-blc .stat h4 { margin:0; font-size:12px; color:var(--muted); font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.next-blc .stat .num { font-size: clamp(24px, 4vw, 36px); font-weight:800; margin-top:4px; line-height:1.1; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; white-space: nowrap; min-width: 12ch; text-align: right; }
.next-blc .ok   { border-left-color: var(--ok); }
.next-blc .warn { border-left-color: var(--warn); }
.next-blc .bad  { border-left-color: var(--bad); }

.next-blc .brandbar { display:flex; align-items:center; justify-content:space-between; background:linear-gradient(120deg, var(--next-primary), #ffb35f); color:#fff; border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); }
.next-blc .brandbar h3 { margin:0; font-size:16px; font-weight:700; }

.next-blc .notes { background:#fff; border-radius:12px; padding:12px; border:1px dashed #d9e3ef; }
.next-blc .notes p { margin:0 0 6px; font-size:12px; color:var(--muted); }
.next-blc .notes strong { color: var(--ink); }

.next-blc .stepper { display:flex; align-items:center; gap:8px; }
.next-blc .stepper button { border:1px solid #d7dee6; background:#fff; border-radius:10px; padding:8px 10px; cursor:pointer; line-height:1; font-weight:700; }
.next-blc .stepper button:focus { outline:none; border-color: var(--next-primary); box-shadow: 0 0 0 6px var(--ring); }
.next-blc .stepper input { flex:1 1 auto; }

/* Safety: ensure inputs are visible even if site CSS tries to hide them */
.next-blc input, .next-blc select { display:block !important; opacity:1 !important; visibility:visible !important; height:auto !important; min-height:40px !important; }