/* ─────────────────────────────────────────────────────────────────────────────
   bes-widget-lite.css
   Scoped styles for the [bes_name_check] shortcode (inline, not iframe).
   Design tokens are scoped to .bes-nc-lite-wrap to avoid polluting the theme.
   body/html resets from bes-widget.css are intentionally excluded.
───────────────────────────────────────────────────────────────────────────── */

/* ── Scoped design tokens ────────────────────────────────────────────────────── */
.bes-nc-lite-wrap {
  --bes-navy: #24405F;
  --bes-navy-deep: #122A45;
  --bes-blue: #005EA2;
  --bes-btn-blue: #005EA2;
  --bes-ink: #1D2733;
  --bes-muted: #5C6675;
  --bes-line: #E1E7EF;
  --bes-soft: #F4F7FA;
  --bes-serif: "Merriweather", Georgia, serif;
  --bes-sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.bes-nc-lite-wrap *,
.bes-nc-lite-wrap *::before,
.bes-nc-lite-wrap *::after {
  box-sizing: border-box;
}

.bes-nc-lite-wrap a {
  text-decoration: none;
}

/* ── Check card ────────────────────────────────────────────────────────────── */
.bes-nc-lite-wrap .bes-check-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--bes-line);
  border-radius: 20px;
  padding: 32px 36px 34px;
  text-align: left;
}

.bes-nc-lite-wrap .bes-check-card h2 {
  font-family: var(--bes-serif);
  font-weight: 700;
  font-size: 21px;
  color: #16283E;
  margin: 0 0 8px;
  text-align: left;
}

.bes-nc-lite-wrap .bes-nc-lite-form {
  margin-bottom: 0;
}


.bes-nc-lite-wrap .bes-scope-note {
  font-family: var(--bes-sans);
  font-size: 13px;
  color: var(--bes-muted);
  margin-bottom: 10px;
}

/* ── Search row ────────────────────────────────────────────────────────────── */
.bes-nc-lite-wrap .bes-search-row {
  display: flex;
  transition: box-shadow .15s;
}

.bes-nc-lite-wrap .bes-search-row .bes-search-input {
  flex: 1;
  font-family: var(--bes-sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid #C6D1DE;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--bes-ink);
  min-width: 0;
  transition: border-color .15s;
  outline: none;
}

.bes-nc-lite-wrap .bes-search-row:focus-within {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(0, 94, 162, .18);
}

/* When results are visible: flatten bottom corners of the search row */
.bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-search-row:focus-within {
  border-radius: 10px 10px 0 0;
  clip-path: inset(-20px -20px 0 -20px round 10px 10px 0 0);
}

.bes-nc-lite-wrap .bes-search-row .bes-search-input::placeholder {
  color: #9AA3AF;
}

.bes-nc-lite-wrap .bes-bar-sel {
  font-family: var(--bes-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bes-ink);
  padding: 0 34px 0 14px;
  border: 1.5px solid #C6D1DE;
  border-left: 1px solid var(--bes-line);
  border-right: none;
  border-radius: 0;
  background: #F6F8FB url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2320293A' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center/11px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s;
}

.bes-nc-lite-wrap .bes-bar-sel:focus {
  background-color: #fff;
  outline: none;
}

/* When results are visible: remove bottom corners from inputs + button */
.bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-search-input {
  border-radius: 10px 0 0 0 !important;
  border-bottom-color: transparent !important;
}

.bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-bar-sel {
  border-bottom-color: transparent !important;
}

.bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-search-btn {
  border-radius: 0 10px 0 0 !important;
}

/* Focus ring extends to result card when form is focused */
.bes-nc-lite-wrap .bes-nc-lite-form:focus-within~.bes-nc-lite-result .bes-ir-card.is-visible {
  box-shadow: 0 0 0 3px rgba(0, 94, 162, .18) !important;
  clip-path: inset(0 -20px -20px -20px round 0 0 16px 16px);
}

.bes-nc-lite-wrap .bes-search-btn {
  background: var(--bes-btn-blue);
  border: none;
  border-radius: 0 10px 10px 0;
  width: 58px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex: 0 0 58px;
}

.bes-nc-lite-wrap .bes-search-btn:hover {
  background: #2B74C4;
}

.bes-nc-lite-wrap .bes-search-btn:disabled {
  background: #B0BAC5 !important;
  cursor: not-allowed;
}

.bes-nc-lite-wrap .bes-search-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bes-nc-lite-wrap .bes-search-btn.is-loading svg {
  display: none;
}

.bes-nc-lite-wrap .bes-search-btn.is-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bes-lite-spin .65s linear infinite;
  display: block;
}

@keyframes bes-lite-spin {
  to {
    transform: rotate(360deg);
  }
}

.bes-nc-lite-wrap .bes-check-card-disclosure {
  font-family: var(--bes-sans);
  font-size: 12px;
  line-height: 1.5;
  color: #6B7686;
  margin: 12px 0 0;
}

.bes-nc-lite-wrap .bes-check-card-disclosure a {
  color: #5B6B7E;
  text-decoration: underline;
}

.bes-nc-lite-wrap .bes-check-card-disclosure a:hover {
  color: var(--bes-btn-blue);
}

/* ── Inline result container ───────────────────────────────────────────────── */
.bes-nc-lite-wrap .bes-nc-lite-result {
  position: relative;
  width: 100%;
  display: none;
  z-index: 100;
}

.bes-nc-lite-wrap .bes-nc-lite-result.is-visible {
  display: block;
  animation: besLiteIRFadeIn 0.22s ease both;
}

@keyframes besLiteIRFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── IR card ───────────────────────────────────────────────────────────────── */
.bes-nc-lite-wrap .bes-ir-card {
  background: #fff;
  border: 1.5px solid #C6D1DE;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  padding: 0 24px 20px;
  display: none;
}

.bes-nc-lite-wrap .bes-ir-card.is-visible {
  display: block;
}

.bes-nc-lite-wrap .bes-ir-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -24px 16px;
  padding: 12px 24px;
  justify-content: space-between;
}

.bes-nc-lite-wrap .bes-ir-status-row svg {
  flex-shrink: 0;
}

.bes-nc-lite-wrap .bes-ir-status-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.bes-nc-lite-wrap .bes-ir-card--unavail .bes-ir-status-label {
  color: #c0392b;
}

.bes-nc-lite-wrap .bes-ir-card--unavail .bes-ir-status-row svg {
  color: #c0392b;
}

.bes-nc-lite-wrap .bes-ir-status-row--unavail {
  background: #fff0f0;
}

.bes-nc-lite-wrap .bes-ir-card--avail .bes-ir-status-label {
  color: #1a7e4f;
}

.bes-nc-lite-wrap .bes-ir-card--avail .bes-ir-status-row svg {
  color: #1a7e4f;
}

.bes-nc-lite-wrap .bes-ir-status-row--avail {
  background: #f0fff8;
}

.bes-nc-lite-wrap .bes-ir-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  flex-shrink: 0;
  margin-left: auto;
}

.bes-nc-lite-wrap .bes-ir-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bes-nc-lite-wrap .bes-ir-badge--avail {
  color: #1a7e4f;
}

.bes-nc-lite-wrap .bes-ir-badge--avail .bes-ir-badge-dot {
  background: #22c55e;
}

.bes-nc-lite-wrap .bes-ir-badge--unavail {
  color: #c0392b;
}

.bes-nc-lite-wrap .bes-ir-badge--unavail .bes-ir-badge-dot {
  background: #ef4444;
}

.bes-nc-lite-wrap .bes-ir-details-heading {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 8px;
  text-align: left;
}

.bes-nc-lite-wrap .bes-ir-detail-container {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 4px 14px;
}

.bes-nc-lite-wrap .bes-ir-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #f2f4f7;
  gap: 12px;
}

.bes-nc-lite-wrap .bes-ir-detail-row:last-child {
  border-bottom: none;
}

.bes-nc-lite-wrap .bes-ir-detail-label {
  font-size: 12.5px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.bes-nc-lite-wrap .bes-ir-detail-value {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  word-break: break-word;
}

.bes-nc-lite-wrap .bes-ir-hint {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 12px 0 16px;
  text-align: left;
}

.bes-nc-lite-wrap .bes-ir-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.bes-nc-lite-wrap .bes-ir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.bes-nc-lite-wrap .bes-ir-btn--secondary {
  background: transparent;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}

.bes-nc-lite-wrap .bes-ir-btn--secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1e293b;
}

.bes-nc-lite-wrap .bes-ir-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .32);
}

.bes-nc-lite-wrap .bes-ir-btn--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .42);
  color: #fff;
}

.bes-nc-lite-wrap .bes-ir-avail-intro {
  font-size: 13.5px;
  color: #334155;
  margin: 0 0 14px;
  line-height: 1.5;
  text-align: left;
}

.bes-nc-lite-wrap .bes-ir-avail-intro strong {
  color: #0f172a;
}

.bes-nc-lite-wrap .bes-ir-what-to-do {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #64748b;
  margin: 0 0 8px;
  text-align: left;
}

.bes-nc-lite-wrap .bes-ir-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bes-nc-lite-wrap .bes-ir-picker--col {
  flex-direction: column;
  flex-wrap: nowrap;
}

.bes-nc-lite-wrap .bes-ir-picker--col .bes-ir-pill {
  width: 100%;
  border-radius: 8px;
}

.bes-nc-lite-wrap .bes-ir-picker label {
  cursor: pointer;
  width: 100%;
}

.bes-nc-lite-wrap .bes-ir-picker input[type="radio"] {
  position: relative;
  opacity: 1;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
  margin: 0;
}

.bes-nc-lite-wrap .bes-ir-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  width: 100%;
  transition: border-color .15s, background .15s, color .15s;
  cursor: pointer;
  user-select: none;
}

.bes-nc-lite-wrap .bes-ir-pill:has(input[type="radio"]:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.bes-nc-lite-wrap .bes-ir-pill:hover {
  border-color: #2563eb;
}

.bes-nc-lite-wrap .bes-ir-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.bes-nc-lite-wrap .bes-ir-nwra-logo {
  height: 22px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(0.3);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .bes-nc-lite-wrap .bes-check-card {
    padding: 22px 18px 24px;
  }

  .bes-nc-lite-wrap .bes-ir-badge {
    display: none;
  }

  .bes-nc-lite-wrap .bes-ir-status-row {
    justify-content: flex-start;
  }

  .bes-nc-lite-wrap .bes-search-row {
    flex-wrap: wrap;
  }

  .bes-nc-lite-wrap .bes-search-row .bes-search-input {
    border-radius: 6px 6px 0 0;
    border-right: 1.5px solid #C6D1DE;
    border-bottom: none;
    width: 100%;
    flex: none;
  }

  .bes-nc-lite-wrap .bes-bar-sel {
    flex: 1;
    border-radius: 0 0 0 6px;
    padding: 14px 32px 14px 14px;
    border-left: 1.5px solid #C6D1DE;
  }

  .bes-nc-lite-wrap .bes-search-btn {
    border-radius: 0 0 6px 0;
    width: 58px;
  }

  .bes-nc-lite-wrap .bes-ir-card {
    padding: 0 14px 16px;
    border-radius: 0 0 10px 10px;
  }

  .bes-nc-lite-wrap .bes-ir-status-row {
    margin: 0 -14px 14px;
    padding: 10px 14px;
  }

  .bes-nc-lite-wrap .bes-ir-actions {
    flex-direction: column;
  }

  .bes-nc-lite-wrap .bes-ir-btn {
    width: 100%;
    justify-content: center;
  }

  .bes-nc-lite-wrap .bes-ir-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .bes-nc-lite-wrap .bes-ir-picker label {
    width: 100%;
  }

  /* When results visible on mobile: flatten bottom corners to connect with result card */
  .bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-search-input {
    border-radius: 6px 6px 0 0 !important;
  }

  .bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-bar-sel {
    border-radius: 0 !important;
  }

  .bes-nc-lite-wrap:has(.bes-nc-lite-result.is-visible) .bes-search-btn {
    border-radius: 0 !important;
  }
}