/* ==============================================================
 * Neutralise theme-injected list bullets
 * --------------------------------------------------------------
 * Several host themes add a decorative `::before` bullet to every
 * <li> inside their standard container classes. Our lists are
 * purely structural (cards, chips, key-value rows, tag lists) and
 * carry their own visual language, so we suppress the pseudo-
 * element throughout every plugin scope.
 *
 * Doubled selectors bump specificity above the theme's
 * `.container.container` pattern without needing !important.
 * Any plugin scope that intentionally wants a bullet can opt in
 * with a bespoke rule inside its own subtree.
 * ============================================================== */
.rl-wrap.rl-wrap ul > li::before,
.rl-wrap.rl-wrap ol > li::before,
.rl-programs.rl-programs ul > li::before,
.rl-programs.rl-programs ol > li::before,
.rl-drawer.rl-drawer ul > li::before,
.rl-drawer.rl-drawer ol > li::before,
.rl-modal-scrim.rl-modal-scrim ul > li::before,
.rl-modal-scrim.rl-modal-scrim ol > li::before,
.rl-toasts.rl-toasts ul > li::before,
.rl-toasts.rl-toasts ol > li::before {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset the container styling the theme puts on <ul>/<ol> too, so
   our lists stay flush and don't inherit an unwanted indent. */
.rl-wrap.rl-wrap ul,
.rl-wrap.rl-wrap ol,
.rl-programs.rl-programs ul,
.rl-programs.rl-programs ol,
.rl-drawer.rl-drawer ul,
.rl-drawer.rl-drawer ol,
.rl-modal-scrim.rl-modal-scrim ul,
.rl-modal-scrim.rl-modal-scrim ol {
  list-style: none;
  padding-left: 0;
}

/* Prose lists inside description-html should keep their default
   bullets — that's semantic content from the RecLite API, not a
   plugin-authored chip/card row. */
.rl-wrap.rl-wrap .rl-desc-html ul,
.rl-drawer.rl-drawer .rl-desc-html ul {
  list-style: disc;
  padding-left: 1.4em;
}
.rl-wrap.rl-wrap .rl-desc-html ol,
.rl-drawer.rl-drawer .rl-desc-html ol {
  list-style: decimal;
  padding-left: 1.4em;
}
.rl-wrap.rl-wrap .rl-desc-html ul > li::before,
.rl-wrap.rl-wrap .rl-desc-html ol > li::before,
.rl-drawer.rl-drawer .rl-desc-html ul > li::before,
.rl-drawer.rl-drawer .rl-desc-html ol > li::before {
  content: none !important;
  display: none !important;
}

/* Residency-filtered price rows/cards (hidden for the opposite residency). */
.rl-price-row-hidden { display: none !important; }

/* ---------- A11y utilities (WCAG 2.1 AA) ---------- */
.rl-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Strong, visible focus indicator on every interactive element inside our UI. */
.rl-wrap :focus-visible,
.rl-programs :focus-visible,
.rl-drawer :focus-visible,
.rl-toasts :focus-visible {
  outline: 3px solid var(--reclite-color-primary, #243b80);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Respect user preference for reduced motion (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  .rl-wrap *,
  .rl-programs *,
  .rl-drawer *,
  .rl-toasts * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Skeleton loaders announce themselves via aria-busy — hide their contents from AT. */
[aria-busy="true"] .rl-skel,
[aria-busy="true"] .rl-skel-grid {
  pointer-events: none;
}

/*
 * RecLite Headless — inherits theme CSS variables:
 *   --reclite-color-primary, --reclite-color-secondary,
 *   --color-primary, --color-primary-white, --color-text
 */
.rl-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 35px;
  color: var(--color-text, #222);
  font-family: inherit;
  border-radius: 10px;
  background-color: color-mix(
    in srgb,
    var(--reclite-color-primary) 10%,
    transparent
  );
}
.rl-wrap h1,
.rl-wrap h2,
.rl-wrap h3 {
  color: var(--reclite-color-primary, #243b80);
  margin-top: 0;
}
.rl-card {
  background: var(--color-primary-white, #fff);
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.rl-form .rl-row {
  margin-bottom: 14px;
}
.rl-form .rl-row.rl-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rl-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.rl-form input[type="text"],
.rl-form input[type="email"],
.rl-form input[type="tel"],
.rl-form input[type="password"],
.rl-form input[type="date"],
.rl-form input[type="number"],
.rl-form select,
.rl-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #bcbcbc;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
  color: var(--color-text, #222);
}
.rl-form input:focus,
.rl-form select:focus,
.rl-form textarea:focus {
  outline: none;
  border-color: var(--reclite-color-primary, #243b80);
  box-shadow: 0 0 0 3px rgba(36, 59, 128, 0.12);
}
/* Button base — mirrors the parent theme's `.button` (themes/reclite/assets/
   css/components.css) so plugin CTAs match native theme buttons in shape,
   padding, and hover behaviour. Colour tokens come from the theme too. */
.rl-btn {
  display: inline-block;
  background: var(--reclite-color-primary, #243b80);
  color: var(--color-primary-white, #fff);
  border: 2px solid var(--reclite-color-primary, #243b80);
  border-radius: var(--reclite-btn-radius, 4px);
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.rl-btn:hover,
.rl-btn:focus {
  background: transparent;
  color: var(--reclite-color-primary, #243b80);
  text-decoration: none;
}
.rl-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.rl-btn[disabled]:hover,
.rl-btn[disabled]:focus {
  background: var(--reclite-color-primary, #243b80);
  color: var(--color-primary-white, #fff);
}
/* Secondary — outline variant on light backgrounds (parent theme's own
   .button--secondary is white/transparent for dark hero backgrounds, which
   we can't reuse here). */
.rl-btn-secondary {
  background: transparent;
  color: var(--reclite-color-primary, #243b80);
}
.rl-btn-secondary:hover,
.rl-btn-secondary:focus {
  background: var(--reclite-color-primary, #243b80);
  color: var(--color-primary-white, #fff);
}
.rl-btn-danger {
  background: #b32d2e;
  border-color: #b32d2e;
}
.rl-btn-danger:hover,
.rl-btn-danger:focus {
  background: transparent;
  color: #b32d2e;
}
/* ==================================================================
   Emphasis hierarchy (added 2026-08-26).
   The parent theme (Ridgeville) styles EVERY <button> as its signature
   pill — white fill, brand-green border, and a green arrow-in-circle
   drawn with ::before/::after — via `button:not(#id)` selectors whose
   ID-level specificity (1,0,1) beats a plain `.rl-btn` class (0,1,0).
   The upshot on-site: primary, secondary and tertiary buttons ALL
   collapsed into the same pill, which is exactly the "too many
   identical buttons" complaint.

   Fix: leave the MAIN action (bare .rl-btn) to the theme so it keeps
   the branded pill, and give the quieter tiers enough specificity to
   win — the `:not(#_)` idiom adds one id's worth of specificity
   (→ 1,1,0, beating the theme's 1,0,1) exactly like the theme does to
   itself, no !important needed on the base props. The arrow-circle
   pseudo-elements are suppressed so a quiet button reads as quiet.
     .rl-btn             → THE main action (theme pill, untouched)
     .rl-btn-soft        → secondary: light tonal outline pill, no arrow
     .rl-btn-quiet       → tertiary: plain underlined text link
     .rl-btn-danger      → destructive main: solid red pill
     .rl-btn-danger-soft → destructive secondary: soft red outline pill
   Colours resolve through --reclite-color-primary (green on this
   theme, navy fallback elsewhere). Radius matches the theme's 50px
   pill so the tiers stay in the same visual family. */

/* Secondary — light tonal outline pill. */
.rl-btn-soft:not(#_) {
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 8%, #fff);
  color: var(--reclite-color-primary, #243b80);
  border: 1px solid color-mix(in srgb, var(--reclite-color-primary, #243b80) 38%, #fff);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
}
.rl-btn-soft:not(#_):hover,
.rl-btn-soft:not(#_):focus {
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 16%, #fff);
  color: var(--reclite-color-primary, #243b80);
  border-color: color-mix(in srgb, var(--reclite-color-primary, #243b80) 55%, #fff);
}

/* Tertiary — plain text link, no pill, no arrow. */
.rl-btn-quiet:not(#_) {
  background: transparent;
  color: var(--reclite-color-primary, #243b80);
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 8px 14px;
  font-weight: 500;
  text-decoration: none;
}
.rl-btn-quiet:not(#_):hover,
.rl-btn-quiet:not(#_):focus {
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 8%, transparent);
  color: var(--reclite-color-primary, #243b80);
}

/* Destructive main — solid red pill so it never reads as a normal CTA. */
.rl-btn-danger:not(#_) {
  background: #b32d2e;
  color: #fff;
  border: 1px solid #b32d2e;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 500;
}
.rl-btn-danger:not(#_):hover,
.rl-btn-danger:not(#_):focus {
  background: #9a2626;
  border-color: #9a2626;
  color: #fff;
}

/* Destructive secondary — soft red outline pill. */
.rl-btn-danger-soft:not(#_) {
  background: color-mix(in srgb, #b32d2e 8%, #fff);
  color: #b32d2e;
  border: 1px solid color-mix(in srgb, #b32d2e 38%, #fff);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
}
.rl-btn-danger-soft:not(#_):hover,
.rl-btn-danger-soft:not(#_):focus {
  background: color-mix(in srgb, #b32d2e 16%, #fff);
  border-color: color-mix(in srgb, #b32d2e 55%, #fff);
  color: #b32d2e;
}

/* Tertiary / info — denim tonal outline pill for non-committal actions
   ("View details", "Learn more"). Distinct from the green soft tier and the
   red danger tiers; uses the ACF-configurable tertiary brand colour. */
.rl-btn-tertiary:not(#_) {
  background: color-mix(in srgb, var(--color-tertiary, #1b6ca8) 8%, #fff);
  color: var(--color-tertiary-hover, #155688);
  border: 1px solid color-mix(in srgb, var(--color-tertiary, #1b6ca8) 38%, #fff);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
}
.rl-btn-tertiary:not(#_):hover,
.rl-btn-tertiary:not(#_):focus {
  background: color-mix(in srgb, var(--color-tertiary, #1b6ca8) 16%, #fff);
  color: var(--color-tertiary-hover, #155688);
  border-color: color-mix(in srgb, var(--color-tertiary, #1b6ca8) 55%, #fff);
}

.rl-btn-soft:not(#_)[disabled],
.rl-btn-quiet:not(#_)[disabled],
.rl-btn-tertiary:not(#_)[disabled],
.rl-btn-danger:not(#_)[disabled],
.rl-btn-danger-soft:not(#_)[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Center the label on the quieter tiers. On a <button> the parent theme's
   `button:not(#id)` rules (specificity 1,0,1) override the base .rl-btn
   line-height (0,1,0), so the theme's own button line-height applies and
   pushes the text toward the top. These tiers already beat the theme via
   `:not(#_)`, so restore centered text here: inline-flex + a normalized
   line-height centers the label whatever box height the theme imposes.
   (The <a> variants were fine already; this keeps them identical.) */
.rl-btn-soft:not(#_),
.rl-btn-quiet:not(#_),
.rl-btn-tertiary:not(#_),
.rl-btn-danger:not(#_),
.rl-btn-danger-soft:not(#_) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

/* Strip the theme's arrow-in-circle from the quieter tiers so they
   don't wear the primary button's signature accent. */
.rl-btn-soft:not(#_)::before,
.rl-btn-soft:not(#_)::after,
.rl-btn-quiet:not(#_)::before,
.rl-btn-quiet:not(#_)::after,
.rl-btn-tertiary:not(#_)::before,
.rl-btn-tertiary:not(#_)::after,
.rl-btn-danger:not(#_)::before,
.rl-btn-danger:not(#_)::after,
.rl-btn-danger-soft:not(#_)::before,
.rl-btn-danger-soft:not(#_)::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Icon-only button — compact pill/circle control for header + toolbar
   actions (Edit, Add a member, Upload, Mark all read, Refresh). Carries
   the soft tier's tint and overrides the theme pill + arrow-circle like
   the other tiers. It stays a circle at rest (icon only) and grows to a
   pill while busy (spinner + label from setBusy). ALWAYS pair with an
   aria-label (+ title tooltip) so it keeps an accessible name. */
.rl-icon-btn:not(#_) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 8%, #fff);
  color: var(--reclite-color-primary, #243b80);
  border: 1px solid color-mix(in srgb, var(--reclite-color-primary, #243b80) 38%, #fff);
  line-height: 0;
  cursor: pointer;
}
.rl-icon-btn:not(#_):hover,
.rl-icon-btn:not(#_):focus {
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 16%, #fff);
  border-color: color-mix(in srgb, var(--reclite-color-primary, #243b80) 55%, #fff);
  color: var(--reclite-color-primary, #243b80);
}
.rl-icon-btn:not(#_) svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}
.rl-icon-btn:not(#_)[disabled] { opacity: 0.5; cursor: not-allowed; }
.rl-icon-btn:not(#_)::before,
.rl-icon-btn:not(#_)::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Keep the quieter tiers distinguishable when system colours take over
   (their tint/underline is dropped in forced-colors mode). */
@media (forced-colors: active) {
  .rl-btn-soft:not(#_),
  .rl-btn-quiet:not(#_),
  .rl-btn-danger-soft:not(#_),
  .rl-icon-btn:not(#_) {
    border: 2px solid ButtonText;
  }
}
/* Full-width button modifier — was originally in reclite-registrations.css.
   Hoisted to the shared bundle so any module (memberships, future ones)
   can rely on the utility without re-declaring it. */
.rl-btn-block {
  display: block;
  width: 100%;
  text-align: center;
}
.rl-alert {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 14px;
}
.rl-alert-error {
  background: #fdecea;
  color: #b32d2e;
  border: 1px solid #f5c2c0;
}
.rl-alert-success {
  background: #e6f4ea;
  color: var(--reclite-color-secondary, #086f31);
  border: 1px solid #b8dfc4;
}
.rl-alert-info {
  background: #e8f1f8;
  color: var(--color-tertiary, #1b6ca8);
  border: 1px solid #bcd7ea;
}
.rl-muted {
  color: #6b6b6b;
  font-size: 13px;
}
/* Table wrapper — makes any .rl-table scroll horizontally on narrow screens
 * instead of pushing the tab / card / section beyond the viewport. */
.rl-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 16px;
}
.rl-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0; /* margin now lives on the wrap */
  min-width: 480px; /* keeps columns from squeezing to unreadable widths */
}
.rl-table th,
.rl-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e7e7e7;
  font-size: 14px;
}
.rl-table th {
  background: #f6f6f9;
  color: var(--reclite-color-primary, #243b80);
}

/* Mobile: instead of a horizontally-scrolling table, turn each row into a
 * stacked card. Each cell (which carries a data-label from the renderer) shows
 * its column name beside the value; the name cell becomes the card heading and
 * the icon-button cell sits at the bottom-right. `!important` on the display /
 * overflow props defeats the parent theme's own `.reclite_table` table display.
 * (Applies to the members + documents tables — the only .rl-table users.) */
@media (max-width: 640px) {
  .rl-table-wrap {
    overflow-x: visible !important;
  }
  .rl-table {
    min-width: 0 !important;
  }
  .rl-table,
  .rl-table tbody {
    display: block !important;
    width: 100%;
  }
  .rl-table thead {
    display: none !important;
  }
  .rl-table tbody tr {
    display: block !important;
    border: 1px solid #e4e4e8;
    border-radius: 8px;
    padding: 6px 12px 8px;
    margin-bottom: 10px;
    background: #fff;
  }
  .rl-table tbody td {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    font-size: 14px;
  }
  .rl-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--reclite-color-primary, #243b80);
    text-align: left;
    white-space: nowrap;
  }
  /* Name cell → card heading: full-width, bold, no "Name" label. */
  .rl-table tbody td.rl-td-primary {
    justify-content: flex-start;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
    padding-bottom: 8px;
  }
  .rl-table tbody td.rl-td-primary::before {
    content: none;
  }
  /* Action cell (edit / download icon) → no label, button at bottom-right. */
  .rl-table tbody td.rl-td-action {
    justify-content: flex-end;
    border-bottom: 0;
    padding-top: 8px;
  }
  .rl-table tbody td.rl-td-action::before {
    content: none;
  }
}
.rl-required::after {
  content: " *";
  color: #b32d2e;
}
.rl-hidden {
  display: none;
}
.rl-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #d1d1d1;
  border-top-color: var(--reclite-color-primary, #243b80);
  border-radius: 50%;
  animation: rl-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes rl-spin {
  to {
    transform: rotate(360deg);
  }
}
.rl-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rl-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.rl-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 2px solid #e3e3e3;
  margin-bottom: 18px;
  /* Firefox — slim, primary-tinted scroll thumb */
  scrollbar-width: thin;
  scrollbar-color: color-mix(
      in srgb,
      var(--reclite-color-primary, #243b80) 45%,
      transparent
    )
    transparent;
  /* Momentum scroll on iOS */
  -webkit-overflow-scrolling: touch;
  /* Snap tabs to the leading edge as the user swipes */
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
}
.rl-tabs::-webkit-scrollbar {
  height: 6px;
}
.rl-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.rl-tabs::-webkit-scrollbar-thumb {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #243b80) 45%,
    transparent
  );
  border-radius: 999px;
}
.rl-tabs::-webkit-scrollbar-thumb:hover {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #243b80) 70%,
    transparent
  );
}
.rl-tabs .rl-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}
.rl-tab {
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 16px 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text, #444);
  cursor: pointer;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  border-radius: 8px 8px 0 0;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.rl-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.rl-tab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rl-tab-label {
  display: inline-block;
}
.rl-tab:hover .rl-tab-icon {
  opacity: 1;
}
.rl-tab.is-active .rl-tab-icon {
  opacity: 1;
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .rl-tab {
    padding: 10px 12px 12px 12px;
    font-size: 14px;
  }
  .rl-tab-icon {
    width: 16px;
    height: 16px;
  }
}
.rl-tab:hover {
  color: var(--reclite-color-primary, #243b80);
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #243b80) 6%,
    transparent
  );
}

/* Active tab — prominent: primary-tinted background + bold bottom bar
 * + slight upward lift + subtle shadow so it visibly "sits on top" of
 * the divider instead of blending in. */
.rl-tab.is-active {
  color: #fff;
  background: var(--reclite-color-primary, #243b80);
  border-bottom-color: var(--reclite-color-primary, #243b80);
  box-shadow:
    0 -2px 0 0 var(--reclite-color-primary, #243b80) inset,
    0 2px 6px
      color-mix(in srgb, var(--reclite-color-primary, #243b80) 25%, transparent);
}
.rl-tab.is-active:hover {
  color: #fff;
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #243b80) 92%,
    black
  );
}
.rl-tab.is-active::after {
  /* underline sliver that extends past the pill for continuity with the
   * container's divider line — reinforces "this panel is selected" */
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -5px;
  height: 3px;
  border-radius: 3px;
  background: var(--reclite-color-primary, #243b80);
}
.rl-tab:focus-visible {
  outline: 3px solid var(--reclite-color-primary, #243b80);
  outline-offset: 2px;
  border-radius: 8px;
}
.rl-panel {
  display: none;
  min-width: 0;
}
.rl-panel.is-active {
  display: block;
}
/* Guardrail: nothing in a tab panel is allowed to push it wider than the tab hub. */
.rl-account .rl-panel {
  max-width: 100%;
  overflow-x: clip;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 640px) {
  .rl-wrap {
    padding: 16px 12px 32px;
  }

  /* Account header: stack title and sign-out */
  .rl-account-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .rl-account-header h1 {
    font-size: 22px;
  }

  /* Tabs: horizontal scroll strip on narrow screens (no wrap to multi-row) */
  .rl-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .rl-tabs::-webkit-scrollbar {
    height: 4px;
  }
  .rl-tabs::-webkit-scrollbar-thumb {
    background: #dcdce3;
    border-radius: 2px;
  }
  .rl-tab {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Toolbar buttons full-width */
  .rl-toolbar {
    flex-direction: column;
  }
  .rl-toolbar .rl-btn {
    width: 100%;
    text-align: center;
  }

  /* Card padding tighter */
  .rl-card {
    padding: 16px 14px;
  }

  /* Form row-2 already stacks under 600px; tighten gap and font */
  .rl-form .rl-row.rl-row-2 {
    gap: 10px;
  }
  .rl-form input,
  .rl-form select,
  .rl-form textarea {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* Alert sizing */
  .rl-alert {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Tables: allow a bit narrower on phones (still readable) */
  .rl-table {
    min-width: 380px;
  }
  .rl-table th,
  .rl-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* Toast: full-width band on very narrow */
  .rl-toasts {
    max-width: none;
  }
}

@media (max-width: 400px) {
  .rl-wrap {
    padding: 12px 10px 24px;
  }
  .rl-tab {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ---------- Tab panel responsive polish (my-account) -------------
 * The reservations row and permit head both use side-by-side flex
 * layouts that squeeze on narrow tab panels. Below ~640px we stack
 * the side/actions block under the main content so buttons never
 * overflow the tab hub (which is already width-clipped by
 * .rl-account .rl-panel { overflow-x: clip }).
 * -------------------------------------------------------------- */
@media (max-width: 640px) {
  /* NOTE: these use a `.rl-reservations-rows` prefix on purpose. The base
     `.rl-reservations-*` rules live LATER in this file, so at equal (single-
     class) specificity they would win even inside this media query and undo
     the mobile layout. The parent-scoped selectors (0,2,0) beat them (0,1,0)
     regardless of source order. */
  .rl-reservations-rows .rl-reservations-row {
    flex-direction: column;
    align-items: stretch;
    /* Tighter than the desktop 12px so the stacked card stays compact. */
    gap: 8px;
    padding: 12px;
  }
  /* Reset the main block's `flex: 1 1 260px`: in the column layout that 260px
     becomes a VERTICAL basis, forcing the tall empty block under the row's
     text (the pill + buttons get shoved to the bottom). Pin to content height. */
  .rl-reservations-rows .rl-reservations-row-main {
    flex: 0 0 auto;
    width: 100%;
  }
  .rl-reservations-rows .rl-reservations-row-side {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 8px;
  }
  .rl-reservations-row-actions {
    width: 100%;
  }
  .rl-reservations-row-actions .rl-btn {
    flex: 1 1 calc(50% - 3px);
    text-align: center;
  }
  .rl-reservations-permit-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .rl-reservations-permit-close {
    width: 100%;
  }
  .rl-reservations-permit-dl {
    grid-template-columns: 1fr !important;
  }
  .rl-reservations-pagination {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
  }
  .rl-reservations-pagination .rl-btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 400px) {
  .rl-reservations-row-actions .rl-btn {
    flex: 1 1 100%;
  }
}

/* ---------- OVERVIEW GRID ---------- */
.rl-account-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}
.rl-account-overview-head h2 {
  margin: 0;
  color: var(--reclite-color-primary, #086f31);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rl-ov-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
/* span helpers on the 6-col grid */
.rl-ov-span-2 { grid-column: span 3; } /* legacy alias → half width */
.rl-ov-full  { grid-column: 1 / -1; }  /* full width */
.rl-ov-half  { grid-column: span 3; }  /* two per row */
.rl-ov-third { grid-column: span 2; }  /* three per row */
/* Two-column key/value layout inside a full-width card (Your Details). */
.rl-ov-kvgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.rl-ov-kvgrid .rl-ov-kv:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 4px;
}
.rl-ov-card {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #086f31) 4%,
    #fff
  );
  border: 1.5px solid
    color-mix(in srgb, var(--reclite-color-primary, #086f31) 18%, transparent);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.rl-ov-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--reclite-color-primary, #086f31);
  letter-spacing: -0.005em;
}
.rl-ov-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--reclite-color-primary, #086f31);
}
.rl-ov-icon svg {
  width: 100%;
  height: 100%;
}
.rl-ov-hero {
  font-size: 22px;
  font-weight: 700;
  color: var(--reclite-color-primary, #086f31);
  line-height: 1.2;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.rl-ov-hero-big {
  font-size: 34px;
  letter-spacing: -0.02em;
}
/* Household / account name shown beside the member's name in Your Details. */
.rl-ov-household {
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 62%, #000);
  white-space: nowrap;
}
.rl-ov-household::before {
  content: "·";
  margin: 0 6px;
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 45%, #fff);
}
.rl-ov-caption {
  font-size: 13px;
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 78%, #000);
}
.rl-ov-body {
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 85%, #000);
  font-weight: 600;
}
.rl-ov-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0 2px;
  border-top: 1px solid
    color-mix(in srgb, var(--reclite-color-primary, #086f31) 14%, transparent);
  font-size: 14px;
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 78%, #000);
}
.rl-ov-kv:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.rl-ov-kv strong {
  font-weight: 700;
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 90%, #000);
  text-align: right;
  overflow-wrap: anywhere;
}
.rl-ov-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.rl-ov-dot.is-on {
  background: var(--reclite-color-secondary, #086f31);
}
.rl-ov-dot.is-off {
  background: #b0b3b8;
}

/* Tablet: keep the three stat cards three-across, but collapse the wide
   card's inner two-column key/value grid to a single column. */
@media (max-width: 760px) {
  .rl-ov-kvgrid {
    grid-template-columns: 1fr;
  }
  .rl-ov-kvgrid .rl-ov-kv:nth-child(2) {
    border-top: 1px solid
      color-mix(in srgb, var(--reclite-color-primary, #086f31) 14%, transparent);
    padding-top: 8px;
  }
}
@media (max-width: 560px) {
  .rl-ov-grid {
    grid-template-columns: 1fr;
  }
  .rl-ov-span-2,
  .rl-ov-half,
  .rl-ov-third,
  .rl-ov-full {
    grid-column: span 1;
  }
  .rl-account-overview-head h2 {
    font-size: 22px;
  }
  .rl-ov-hero-big {
    font-size: 28px;
  }
}

/* Primary / Secondary member pill — used beside a member's name in the
   household table and in the "Your Details" card title. Plain <span>s, so the
   theme's button styling never touches them. */
.rl-mchip {
  display: inline-block;
  vertical-align: middle;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rl-mchip-primary {
  color: #fff;
  background: var(--reclite-color-primary, #086f31);
}
.rl-mchip-secondary {
  color: color-mix(in srgb, var(--reclite-color-primary, #086f31) 80%, #000);
  background: color-mix(in srgb, var(--reclite-color-primary, #086f31) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--reclite-color-primary, #086f31) 28%, transparent);
}
.rl-member-name {
  font-weight: 600;
}
@media (forced-colors: active) {
  .rl-mchip { border: 1px solid CanvasText; }
}

/* ============================================================
 * Notifications tab — modern redesign
 *
 * Uses ONLY the theme's --reclite-color-primary and
 * --reclite-color-secondary for accents (with color-mix() tints).
 * Neutrals come from the existing plugin/theme palette so the
 * host site's border/muted tokens still cascade through.
 * ============================================================ */

[data-rl="notifications"] {
  --_np: var(--reclite-color-primary, #1f6feb);
  --_ns: var(--reclite-color-secondary, #5b6472);
  --_np10: color-mix(in srgb, var(--_np) 10%, transparent);
  --_np18: color-mix(in srgb, var(--_np) 18%, transparent);
  --_np35: color-mix(in srgb, var(--_np) 35%, transparent);
  --_ns10: color-mix(in srgb, var(--_ns) 10%, transparent);
  --_ns18: color-mix(in srgb, var(--_ns) 18%, transparent);
}

.rl-notif-card {
  padding: 24px;
}

/* Header */
.rl-notif-header {
  margin-bottom: 18px;
}
.rl-notif-title {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.rl-notif-lede {
  margin: 0;
  color: #5b6472;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Member picker */
.rl-notif-member-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--_np) 6%, transparent);
  border: 1px solid var(--_np35);
  border-radius: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rl-notif-member-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--_np);
  margin: 0;
  flex-shrink: 0;
}
.rl-notif-member-select {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
}
.rl-notif-member-select:focus-visible {
  outline: 3px solid var(--_np);
  outline-offset: 2px;
}

/* Body sections */
.rl-notif-body:empty {
  display: none;
}
.rl-notif-section {
  margin-bottom: 22px;
}
.rl-notif-section:last-of-type {
  margin-bottom: 0;
}
.rl-notif-section-head {
  margin-bottom: 12px;
}
.rl-notif-section-head h4 {
  margin: 0 0 2px 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.rl-notif-section-lede {
  margin: 0;
  color: #5b6472;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Channel cards (email / mobile lists) */
.rl-notif-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rl-notif-channel {
  background: #fff;
  border: 1px solid #e5e7ee;
  border-radius: 10px;
  padding: 14px;
}
.rl-notif-channel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
}
.rl-notif-channel-head h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1c222e;
}
.rl-notif-channel-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--_np10);
  color: var(--_np);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rl-notif-channel-icon svg {
  width: 16px;
  height: 16px;
}

/* --- Inner list rendered by renderContactRows() --- */
/* Hide the internal heading label — the card already has its own <h5> */
.rl-notif-channel .rl-notif-heading {
  display: none;
}

/* Stack rows with clear vertical rhythm; drop the shared 2-col layout
 * that fights the narrow channel card. */
.rl-notif-channel .rl-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.rl-notif-channel .rl-notif-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px;
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #243b80) 3%,
    transparent
  );
  border: 1px solid #e5e7ee;
  border-radius: 8px;
  margin: 0;
}
.rl-notif-channel .rl-notif-row > div {
  margin: 0;
}
.rl-notif-channel .rl-notif-val {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8dde7;
  border-radius: 6px;
  background: #fff;
  font-size: 0.92rem;
}
.rl-notif-channel .rl-notif-val:focus-visible {
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: 1px;
}
.rl-notif-channel .rl-notif-row-tail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}
.rl-notif-channel .rl-notif-label {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d8dde7;
  border-radius: 6px;
  background: #fff;
  font-size: 0.88rem;
  color: #5b6472;
}
.rl-notif-channel .rl-notif-label:focus-visible {
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: 1px;
}
/* Remove ✕ — strip .rl-btn defaults so it reads as an icon control, not
 * a chunky secondary button. */
.rl-notif-channel [data-remove-row],
.rl-notif-channel [data-remove-row].rl-btn,
.rl-notif-channel [data-remove-row].rl-btn-secondary,
.rl-notif-channel [data-remove-row].rl-btn-sm {
  all: unset;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
  flex-shrink: 0;
  background: transparent;
  color: #7a1414;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}
.rl-notif-channel [data-remove-row]:hover {
  background: #fde3e3;
  border-color: #b73a3a;
  color: #7a1414;
}
.rl-notif-channel [data-remove-row]:focus-visible {
  outline: 2px solid #b73a3a;
  outline-offset: 2px;
  background: #fde3e3;
}
.rl-notif-channel [data-remove-row]:active {
  background: #f9c9c9;
}
.rl-notif-channel [data-add-row] {
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 6px 12px;
}

/* --- Notification email / mobile contacts inside an edit FORM ---------
 * Same renderContactRows() markup as the .rl-notif-channel card above,
 * but here the rows live full-width in the account "Edit details" form
 * (no .rl-notif-channel wrapper), where they previously had NO styling:
 * the base classes were only ever styled under .rl-notif-channel, so the
 * heading, list and rows collapsed with no spacing and the remove ✕ fell
 * back to the theme's chunky green pill. Give them their own spacing and
 * a clean inline row (value · label · icon-remove). Higher specificity
 * (.rl-notif-list added) so the flex row beats the shared
 * `.rl-form .rl-row.rl-row-2` grid regardless of source order. */
.rl-form .rl-notif-heading {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c222e;
}
.rl-form .rl-notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.rl-form [data-account-notif-emails],
.rl-form [data-account-notif-mobiles] {
  display: block;
}
/* Breathing room between the last contact group ("+ Add mobile") and the
   Save/Cancel toolbar. */
.rl-form [data-account-notif-mobiles] + .rl-toolbar {
  margin-top: 20px;
}
.rl-form .rl-notif-list .rl-row.rl-notif-row {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.rl-form .rl-notif-list .rl-notif-row > div:first-child {
  flex: 1 1 52%;
  min-width: 0;
  margin: 0;
}
.rl-form .rl-notif-list .rl-notif-row-tail {
  flex: 1 1 48%;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.rl-form .rl-notif-list .rl-notif-val,
.rl-form .rl-notif-list .rl-notif-label {
  width: 100%;
  min-width: 0;
}
.rl-form .rl-notif-list .rl-notif-row-tail .rl-notif-label {
  flex: 1 1 auto;
}
/* Remove ✕ — icon control, not the theme's green pill. :not(#_) lifts
 * specificity past the theme's `button:not(#id)` (1,0,1); arrow-circle
 * pseudo-elements suppressed. */
.rl-form [data-remove-row]:not(#_) {
  all: unset;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
  flex: 0 0 auto;
  background: transparent;
  color: #7a1414;
  border: 1px solid transparent;
  cursor: pointer;
}
.rl-form [data-remove-row]:not(#_):hover {
  background: #fde3e3;
  border-color: #b73a3a;
  color: #7a1414;
}
.rl-form [data-remove-row]:not(#_):focus-visible {
  outline: 2px solid #b73a3a;
  outline-offset: 2px;
  background: #fde3e3;
}
.rl-form [data-remove-row]:not(#_)::before,
.rl-form [data-remove-row]:not(#_)::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
@media (max-width: 600px) {
  .rl-form .rl-notif-list .rl-row.rl-notif-row {
    flex-wrap: wrap;
  }
  .rl-form .rl-notif-list .rl-notif-row > div:first-child,
  .rl-form .rl-notif-list .rl-notif-row-tail {
    flex: 1 1 100%;
  }
}

/* Preference groups (toggle-row groups) */
.rl-notif-group {
  background: #fff;
  border: 1px solid #e5e7ee;
  border-radius: 10px;
  padding: 6px 4px;
  margin-bottom: 12px;
}
.rl-notif-group-title {
  margin: 8px 12px 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b6472;
}

/* One toggle row */
.rl-notif-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.rl-notif-toggle:hover {
  background: color-mix(in srgb, var(--_np) 5%, transparent);
}
.rl-notif-toggle:focus-within {
  background: color-mix(in srgb, var(--_np) 5%, transparent);
  outline: 2px solid var(--_np);
  outline-offset: 2px;
}
.rl-notif-toggle-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--_np10);
  color: var(--_np);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rl-notif-toggle-icon svg {
  width: 18px;
  height: 18px;
}
.rl-notif-toggle-sms .rl-notif-toggle-icon {
  background: var(--_ns10);
  color: var(--_ns);
}
.rl-notif-toggle-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rl-notif-toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #1c222e;
}
.rl-notif-toggle-hint {
  font-size: 0.83rem;
  color: #5b6472;
  line-height: 1.4;
}
.rl-notif-toggle.is-gated {
  opacity: 0.55;
  cursor: not-allowed;
}
.rl-notif-toggle.is-gated .rl-switch-track {
  pointer-events: none;
}

/* Consent row — gets its own emphasis so users notice it */
.rl-notif-consent {
  margin-top: 12px;
  background: color-mix(in srgb, var(--_ns) 6%, transparent);
  border: 1px solid var(--_ns18);
  border-radius: 10px;
  padding: 4px;
}
.rl-notif-toggle-consent .rl-notif-toggle-icon {
  background: var(--_ns);
  color: #fff;
}

/* Switch (checkbox → sliding pill) */
.rl-switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.rl-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.rl-switch-track {
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #cbd0dc;
  border-radius: 999px;
  position: relative;
  transition: background 0.18s ease;
}
.rl-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}
.rl-switch input:checked + .rl-switch-track {
  background: var(--_np);
}
.rl-switch input:checked + .rl-switch-track .rl-switch-thumb {
  transform: translateX(20px);
}
.rl-notif-toggle-sms .rl-switch input:checked + .rl-switch-track {
  background: var(--_ns);
}
.rl-switch input:focus-visible + .rl-switch-track {
  outline: 3px solid var(--_np);
  outline-offset: 2px;
}

/* Guardian-routed empty state */
.rl-notif-guardian {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: color-mix(in srgb, var(--_np) 6%, transparent);
  border: 1px solid var(--_np35);
  border-radius: 10px;
}
.rl-notif-guardian-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--_np);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rl-notif-guardian-icon svg {
  width: 22px;
  height: 22px;
}
.rl-notif-guardian-title {
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: 1rem;
}
.rl-notif-guardian-body {
  margin: 0;
  color: #5b6472;
  line-height: 1.5;
  font-size: 0.92rem;
}

/* Save bar */
.rl-notif-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #e5e7ee;
  margin: 24px -24px -24px -24px;
  border-radius: 0 0 8px 8px;
  position: sticky;
  bottom: 0;
  flex-wrap: wrap;
}
.rl-notif-savebar-hint {
  font-size: 0.85rem;
  color: #5b6472;
}
.rl-notif-savebar .rl-btn {
  min-width: 180px;
}

/* Responsive */
@media (max-width: 640px) {
  .rl-notif-card {
    padding: 16px;
  }
  .rl-notif-channels {
    grid-template-columns: 1fr;
  }
  .rl-notif-toggle {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px;
  }
  .rl-notif-toggle-icon {
    width: 32px;
    height: 32px;
  }
  .rl-notif-savebar {
    margin: 18px -16px -16px -16px;
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .rl-notif-savebar .rl-btn {
    width: 100%;
  }
}

/* Forced-colors mode */
@media (forced-colors: active) {
  .rl-notif-card,
  .rl-notif-member-picker,
  .rl-notif-channel,
  .rl-notif-group,
  .rl-notif-consent,
  .rl-notif-guardian {
    border-color: CanvasText;
  }
  .rl-switch-track {
    border: 1px solid CanvasText;
  }
}

/* Centered member-detail modal (my-account → Household → View).
 * Uses a UNIQUE class `.rl-member-modal` to avoid colliding with the
 * unrelated `.rl-modal` alert-dialog styles further down this file. */
.rl-member-modal[hidden] {
  display: none !important;
}
.rl-member-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999980;
}
.rl-member-modal .rl-member-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.rl-member-modal.is-open .rl-member-modal-overlay {
  opacity: 1;
}
.rl-member-modal .rl-member-modal-panel {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity 0.18s ease !important;
  animation: none !important;
  opacity: 0;
  width: min(640px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  background: var(--color-primary-white, #fff);
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rl-member-modal.is-open .rl-member-modal-panel {
  opacity: 1;
}
.rl-member-modal .rl-member-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1d;
}
.rl-member-modal .rl-member-modal-close:hover {
  background: #fff;
}
.rl-member-modal .rl-member-modal-body {
  overflow-y: auto;
  padding: 26px 26px 22px;
  flex: 1;
}
/* Select2 support inside the member modal: the widget it inserts (.select2)
 * should stretch to full row width and match our neighbouring inputs. */
.rl-member-modal .select2-container {
  width: 100% !important;
}
.rl-member-modal .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 40px;
  border: 1.5px solid #bcbcbc;
  border-radius: 4px;
  background: #fff;
  padding: 4px 8px;
  display: flex;
  align-items: center;
}
.rl-member-modal
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.4;
  padding: 0 2px;
  color: var(--color-text, #222);
}
.rl-member-modal
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  top: 0;
}
/* Select2 mounts its OPEN dropdown at the end of <body>, so the modal cannot
 * "contain" it via nested z-index. Force any open Select2 above our modal. */
body > .select2-container.select2-container--open {
  z-index: 999990 !important;
}
body.rl-member-modal-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .rl-member-modal .rl-member-modal-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
  .rl-member-modal .rl-member-modal-body {
    padding: 22px 18px 18px;
  }
}

/* Toaster */
.rl-toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100vw - 40px);
  z-index: 99999;
  pointer-events: none;
}
.rl-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #fff;
  border-left: 4px solid var(--reclite-color-primary, #243b80);
  font-size: 14px;
  line-height: 1.4;
  animation: rl-toast-in 0.2s ease-out;
  color: var(--color-text, #222);
}
.rl-toast-success {
  border-left-color: var(--reclite-color-secondary, #086f31);
}
.rl-toast-error {
  border-left-color: #b32d2e;
}
.rl-toast-info {
  border-left-color: var(--color-tertiary, #1b6ca8);
}
.rl-toast-body {
  flex: 1;
  word-break: break-word;
}
.rl-toast-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6b6b6b;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
}
.rl-toast-close:hover {
  color: #222;
}
@keyframes rl-toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.rl-toast.is-leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
}
@media (max-width: 600px) {
  .rl-toasts {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Capability pills on overview */
.rl-cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.rl-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.rl-pill.is-on {
  background: #e6f4ea;
  color: var(--reclite-color-secondary, #086f31);
  border-color: #b8dfc4;
}
.rl-pill.is-off {
  background: #f5f5f5;
  color: #888;
  border-color: #ddd;
}

/* Member detail panel inside members tab */
.rl-member-detail {
  margin-top: 16px;
}
.rl-member-detail h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rl-member-detail h3 .rl-close {
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  color: #6b6b6b;
}
.rl-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .rl-form .rl-row.rl-row-2,
  .rl-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Reservations tab (my-account) + withdraw modal + sign page
   ============================================================
   Guide reference: reservations-headless-api-guide.md §§E, F, G, H.
   These rules layer onto the shared shell (rl-card, rl-btn, etc.).
*/

.rl-reservations-card {
  padding: 16px;
}
.rl-reservations-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--color-text, #222);
}
.rl-reservations-lede {
  margin: 0 0 12px;
}

.rl-reservations-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rl-reservations-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--color-primary-white, #fff);
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  flex-wrap: wrap;
}
.rl-reservations-row.rl-reservations-row::before {
  content: none;
}
.rl-reservations-row-main {
  flex: 1 1 260px;
  min-width: 0;
}
.rl-reservations-row-title {
  margin: 0;
  font-weight: 600;
  color: var(--color-text, #222);
}
.rl-reservations-row-meta,
.rl-reservations-row-when {
  margin: 2px 0 0;
  color: #555;
  font-size: 0.92em;
}
.rl-reservations-row-side {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rl-reservations-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rl-reservations-row-actions .rl-btn {
  min-height: 44px;
}

/* Status pills — colour + text label so users don't rely on hue. */
.rl-pill-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.rl-pill-status-requested {
  background: #e8f1f8;
  color: var(--color-tertiary, #1b6ca8);
  border-color: #bcd7ea;
}
.rl-pill-status-held {
  background: #fff5db;
  color: #7a5300;
  border-color: #f0d78a;
}
.rl-pill-status-approved {
  background: #e8f1f8;
  color: var(--color-tertiary, #1b6ca8);
  border-color: #bcd7ea;
}
.rl-pill-status-confirmed,
.rl-pill-status-confirmed_with_balance {
  background: #dff5e4;
  color: #164a24;
  border-color: #9fd8ac;
}
.rl-pill-status-completed {
  background: #eee;
  color: #444;
  border-color: #cfcfcf;
}
.rl-pill-status-cancelled,
.rl-pill-status-denied {
  background: #fbe4e4;
  color: #7a1e1f;
  border-color: #e8a6a7;
}
.rl-pill-status-withdrawn {
  background: #eee;
  color: #555;
  border-color: #cfcfcf;
}

.rl-btn-danger-ghost {
  background: transparent;
  color: #7a1e1f;
  border: 1px solid #b32d2e;
  padding: 8px 14px;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}
.rl-btn-danger-ghost:hover,
.rl-btn-danger-ghost:focus {
  background: color-mix(in srgb, #b32d2e 10%, transparent);
  outline: 2px solid #b32d2e;
  outline-offset: 2px;
}

.rl-reservations-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}
.rl-reservations-page-label {
  color: #555;
}

/* Permit detail panel ------------------------------------------ */

.rl-reservations-permit {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  background: #fbfdff;
}
.rl-reservations-permit:focus {
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 2px;
}
.rl-reservations-permit-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.rl-reservations-permit-close {
  min-height: 44px;
}
.rl-reservations-permit-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0.5rem 0;
}
.rl-reservations-permit-dl dt {
  font-weight: 600;
  color: #555;
}
.rl-reservations-permit-dl dd {
  margin: 0;
}
.rl-reservations-permit-sub {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
}
.rl-reservations-permit-occ {
  margin: 0;
  padding-left: 1.1em;
}
.rl-reservations-permit-note {
  font-size: 0.88em;
  color: #666;
  font-style: italic;
}

/* Alertdialog modal (withdraw) --------------------------------- */

.rl-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* Sit above every other stacking context in the plugin, including the
     programs activity drawer (z-index 999990 in reclite-programs.css) —
     otherwise the modal opens behind the drawer when a resident clicks
     Sign in from inside it. */
  z-index: 1000000;
}
.rl-modal-scrim[hidden] {
  display: none;
}
/* Lock background scroll while a blocking modal (e.g. the disclaimer gate) is
   open, so the page behind the scrim can't be scrolled or interacted with. */
body.rl-modal-open {
  overflow: hidden;
}
/* Blocking disclaimer gate: a taller, scrollable info modal. The scrim already
   traps clicks; the dialog gives the disclaimer text its own scroll area so a
   long policy never pushes the Accept button off-screen. Because .rl-modal-info
   zeroes its own padding (head/body/footer own their spacing), the footer here
   needs its own padding + separator so the Accept button isn't flush. */
.rl-modal.rl-disc-modal {
  max-width: 640px;
  max-height: 90vh;
}
.rl-disc-modal .rl-modal-info-body {
  overflow-y: auto;
}
/* Readable disclaimer copy with comfortable line spacing. */
.rl-disc-modal .rl-disclaimer-text {
  margin: 0 0 18px;
  line-height: 1.6;
}
.rl-disc-modal .rl-disclaimer-text > :first-child { margin-top: 0; }
.rl-disc-modal .rl-disclaimer-text > :last-child  { margin-bottom: 0; }
/* Accept checkbox sits in its own boxed row, clearly separated from the text. */
.rl-disc-modal .rl-disc-accept-row {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e3e9f0;
  border-radius: 8px;
  background: #fbfdff;
}
.rl-disc-modal .rl-disc-accept-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
}
.rl-disc-modal .rl-disc-accept-row input[type="checkbox"] {
  margin: 2px 0 0;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.rl-disc-modal [data-disc-status] { margin-top: 10px; }
.rl-disc-modal [data-disc-status]:empty { margin-top: 0; }
/* Sticky, separated footer so the primary action is always visible + padded. */
.rl-disc-modal .rl-modal-actions.rl-disc-actions {
  padding: 16px 22px;
  border-top: 1px solid #e3e9f0;
  background: #fbfdff;
  flex: 0 0 auto;
}
.rl-disc-modal .rl-disc-actions .rl-btn {
  min-height: 44px;
}
@media (max-width: 560px) {
  .rl-disc-modal .rl-disc-actions .rl-btn { flex: 1 1 auto; }
}
@media (forced-colors: active) {
  .rl-disc-modal .rl-disc-accept-row,
  .rl-disc-modal .rl-disc-actions {
    border: 1px solid CanvasText;
  }
}
.rl-modal {
  background: var(--color-primary-white, #fff);
  color: var(--color-text, #222);
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  outline: none;
}
.rl-modal-alert {
  border-top: 4px solid #b32d2e;
}
.rl-modal-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.rl-modal-desc {
  margin: 0 0 8px;
}
.rl-modal-note {
  margin: 0 0 16px;
  font-size: 0.9em;
}
.rl-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.rl-modal-actions .rl-btn,
.rl-modal-actions .rl-btn-danger {
  min-height: 44px;
}
.rl-modal :focus,
.rl-modal :focus-visible {
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .rl-modal {
    padding: 16px;
  }
  .rl-modal-actions {
    justify-content: stretch;
  }
  .rl-modal-actions .rl-btn,
  .rl-modal-actions .rl-btn-danger {
    flex: 1 1 auto;
  }
}

/* ==============================================================
 * Universal sign-in modal (rl-modal-booking shell)
 * --------------------------------------------------------------
 * Triggered by window.RecLiteHeadless.openSignInModal({...}) from
 * anywhere in the plugin. Any module — Programs, Cart, Coach roster,
 * future ones — that needs a sign-in prompt while a resident is
 * anonymous should call the helper rather than roll its own.
 *
 * Mirrors the visual language of the facilities Book Now modal
 * (reclite-facilities.css). The CSS below is a self-contained
 * subset so this modal can appear even without the facilities CSS
 * loaded (e.g. on the activity detail page).
 * ============================================================== */

.rl-modal.rl-modal-booking {
  max-width: 640px;
  width: min(92vw, 640px);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.rl-modal.rl-modal-booking .rl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 12px;
  border-bottom: 1px solid #e3e3e3;
}
.rl-modal.rl-modal-booking .rl-modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--reclite-color-primary, #243b80);
}
.rl-modal.rl-modal-booking .rl-modal-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: #555;
  padding: 4px 10px;
  min-height: 44px;
  min-width: 44px;
}
.rl-modal.rl-modal-booking .rl-modal-close:hover,
.rl-modal.rl-modal-booking .rl-modal-close:focus-visible {
  color: #222;
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: 2px;
  border-radius: 4px;
}
.rl-modal.rl-modal-booking .rl-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.rl-modal.rl-modal-booking .rl-modal-body .rl-facility-subh {
  margin: 0 0 8px;
  color: var(--reclite-color-primary, #243b80);
  font-size: 1.6rem;
}
.rl-modal-booking-actions {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #e3e3e3;
  background: #f4f7f4;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.rl-modal-booking-actions .rl-btn,
.rl-modal-booking-actions .reclite_primary_btn {
  min-height: 44px;
}

/* Sign-in card — same class names the facilities module uses so the
   visual is identical either way. */
.rl-booking-signin {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.rl-booking-signin .rl-fac-muted {
  margin: 0 0 14px;
  color: #555;
}
.rl-booking-signin-form {
  display: block;
}
.rl-facility-book-signin-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.rl-facility-book-signin-row .rl-facility-quote-field {
  flex: 1 1 220px;
}
.rl-facility-quote-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;            /* the parent theme puts margin on form rows/labels */
}
/* Reset the parent theme's default label/input margins so the only spacing
   inside the sign-in form comes from the flex gaps above (otherwise the theme
   adds a large margin-bottom and the stacked inputs drift far apart on phones). */
.rl-facility-book-signin label,
.rl-booking-signin label,
.rl-facility-book-signin .rl-facility-quote-lbl,
.rl-booking-signin .rl-facility-quote-lbl {
  margin: 0;
}
.rl-facility-book-signin .rl-fac-muted,
.rl-booking-signin [data-signin-reason] {
  margin: 0 0 4px;
}
.rl-facility-quote-lbl {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--reclite-color-primary, #243b80);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rl-facility-book-signin input,
.rl-booking-signin input {
  min-height: 44px;
  margin: 0;            /* kill the theme's default input margin-bottom */
  padding: 8px 12px;
  border: 1px solid #b6b6b6;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.rl-facility-book-signin input:focus,
.rl-booking-signin input:focus {
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: 2px;
}
.rl-facility-book-signin-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.rl-facility-book-signin-alt {
  color: #333;
  text-decoration: underline;
}
.rl-facility-book-signin-alt:focus-visible {
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: 2px;
}
.rl-facility-book-signin-err {
  margin: 12px 0 0;
  padding: 8px 12px;
  color: #7a1e1f;
  background: color-mix(in srgb, #b32d2e 8%, transparent);
  border: 1px solid color-mix(in srgb, #b32d2e 40%, transparent);
  border-radius: 6px;
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .rl-facility-book-signin-err {
    background: #fbe6e6;
    border-color: #d99a9a;
  }
}

@media (max-width: 480px) {
  .rl-modal.rl-modal-booking {
    max-height: 100vh;
    border-radius: 0;
  }
  .rl-modal-booking-actions {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    justify-content: stretch;
  }
  .rl-modal-booking-actions .rl-btn,
  .rl-modal-booking-actions .reclite_primary_btn {
    flex: 1 1 auto;
  }
  .rl-facility-book-signin-row {
    flex-direction: column;
  }
  /* In the column layout the fields' `flex: 1 1 220px` would otherwise become a
     220px VERTICAL basis, forcing a tall gap between the username and password
     inputs. Pin them to content height. */
  .rl-facility-book-signin-row .rl-facility-quote-field {
    flex: 0 0 auto;
  }
  .rl-facility-book-signin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rl-facility-book-signin-actions .reclite_primary_btn,
  .rl-facility-book-signin-actions .rl-facility-book-signin-alt {
    width: 100%;
    text-align: center;
  }
}

/* Fallback for host themes without .reclite_primary_btn (the plugin
   assumes the parent theme provides it; this rule kicks in only when
   nothing else has styled the button). */
/* .rl-modal.rl-modal-booking .reclite_primary_btn:not([class*="btn-"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--reclite-color-primary, #243b80);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
} */
.rl-modal.rl-modal-booking .reclite_primary_btn:hover:not([disabled]) {
  filter: brightness(1.05);
}

/* ============================================================
   Sign page (anonymous e-sign)
   ============================================================
*/

.rl-sign {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--color-text, #222);
}
.rl-sign-header {
  margin-bottom: 16px;
}
.rl-sign-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.rl-sign-lede {
  margin: 0;
  color: #555;
}
.rl-sign-subhead {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}
.rl-sign-version {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
}

.rl-sign-state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: var(--color-primary-white, #fff);
  outline: none;
}
.rl-sign-loading {
  flex-direction: row;
  align-items: center;
}
.rl-sign-signed {
  border-color: #9fd8ac;
  background: #f6fbf7;
}
.rl-sign-expired {
  border-color: #e8a6a7;
  background: #fbf4f4;
}
.rl-sign-error {
  border-color: #f0d78a;
  background: #fffaeb;
}
.rl-sign-notoken {
  border-color: #e8a6a7;
  background: #fbf4f4;
}

.rl-sign-check svg {
  color: #164a24;
}
.rl-sign-x svg {
  color: #7a1e1f;
}

.rl-sign-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0;
}
.rl-sign-summary dt {
  font-weight: 600;
  color: #555;
}
.rl-sign-summary dd {
  margin: 0;
}

.rl-sign-disclaimer-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fafafa;
  line-height: 1.5;
}

.rl-sign-form {
  margin-top: 8px;
}
.rl-sign-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.rl-sign-lbl {
  font-weight: 600;
}
.rl-sign-input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font: inherit;
  color: var(--color-text, #222);
  background: var(--color-primary-white, #fff);
}
.rl-sign-input:focus {
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 2px;
}
.rl-sign-input[aria-invalid="true"] {
  border-color: #b32d2e;
}
.rl-sign-help {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}
.rl-sign-err {
  margin: 4px 0 0;
  color: #7a1e1f;
  font-size: 0.9em;
}
.rl-sign-err-form {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #e8a6a7;
  background: #fbf4f4;
  border-radius: 6px;
}

.rl-sign-ack {
  margin: 6px 0 16px;
}
.rl-sign-ack-lbl {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.rl-sign-ack-lbl input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-primary-green, #00662c);
}
.rl-sign-ack-lbl input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 2px;
}

.rl-sign-actions {
  margin-top: 12px;
}
.rl-sign-submit {
  min-height: 48px;
  min-width: 140px;
  cursor: pointer;
}
.rl-sign-submit[disabled],
.rl-sign-submit[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.rl-sign-contact {
  padding-left: 1.1em;
}

.rl-sign-noscript {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #f0d78a;
  background: #fffaeb;
  border-radius: 6px;
}

/* Windows High Contrast — sign + modal + reservations */
@media (forced-colors: active) {
  .rl-modal,
  .rl-sign-state,
  .rl-sign-input,
  .rl-sign-disclaimer-body {
    border: 2px solid CanvasText;
    forced-color-adjust: none;
  }
  .rl-pill-status {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
  .rl-reservations-row {
    border: 1px solid CanvasText;
  }
}

/* =============================================================
 * Universal form helpers — validation, pickers, select2
 * =============================================================*/

/* Inline field help text (small note below the input). */
.rl-field-help {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.88em;
  line-height: 1.4;
}

/* Prominent Residency block (register form). Two-column radio cards
 * that make the primary choice unmissable. */
.rl-residency-card {
  border-left: 4px solid var(--reclite-color-primary, #002d72);
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 4%,
    #ffffff
  );
}
.rl-residency-help {
  margin-top: -4px;
  margin-bottom: 12px;
  color: #3c3c3c;
  font-size: 0.95em;
}
.rl-residency-choice {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.rl-residency-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid #bcbcbc;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.rl-residency-option:hover {
  border-color: var(--reclite-color-primary, #002d72);
}
.rl-residency-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--reclite-color-primary, #002d72);
  transform: scale(1.15);
  flex: 0 0 auto;
}
.rl-residency-option:has(input[type="radio"]:checked) {
  border-color: var(--reclite-color-primary, #002d72);
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 6%,
    #ffffff
  );
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 15%, transparent);
}
.rl-residency-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rl-residency-option-title {
  font-weight: 700;
  color: #3c3c3c;
}
.rl-residency-option-desc {
  color: #6b7280;
  font-size: 0.9em;
}

/* Inline field error (shown by attachFieldValidation on email/tel). */
.rl-field-error {
  margin: 4px 0 0;
  color: #b32d2e;
  font-size: 0.9em;
  line-height: 1.35;
}
input.rl-invalid,
.rl-fac-picker-field .rl-fac-picker-input-native.rl-invalid {
  border-color: #b32d2e !important;
  box-shadow: 0 0 0 3px rgba(179, 45, 46, 0.14) !important;
}

/* --- Date + Time picker (copied from facilities module so it works
 *     across the whole plugin, not just facility pages). ---------- */

.rl-fac-picker-field {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 100%;
}
.rl-fac-picker-field input[data-rl-picker-input] {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  padding-right: 44px !important;
  background-image: none !important;
}
/* Locked/read-only picker field (e.g. the Book-this-space popup's date, start
   and end — pre-filled from the selection and not editable here). Greyed out,
   no pointer affordance, picker disabled. */
.rl-fac-picker-field--locked {
  cursor: default;
}
.rl-fac-picker-field--locked input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 44px !important;
  cursor: default !important;
  background: #f0f0f0 !important;
  color: #6b6b6b !important;
  border-color: #d9d9d9 !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #6b6b6b; /* keep grey in Safari despite readonly */
}
.rl-fac-picker-field--locked .rl-fac-picker-icon {
  color: #b0b0b0;
  cursor: default;
  pointer-events: none;
}
.rl-fac-picker-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--reclite-color-primary, #002d72);
  cursor: pointer;
  padding: 0;
}
.rl-fac-picker-icon::before,
.rl-fac-picker-icon::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.rl-fac-picker-icon:hover {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 8%,
    transparent
  );
}
.rl-fac-picker-icon:focus-visible {
  outline: 3px solid var(--reclite-color-primary, #002d72);
  outline-offset: 2px;
}

.rl-fac-picker {
  position: absolute;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 15%, transparent);
  border-radius: 12px;
  box-shadow: 0 12px 40px
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 22%, transparent);
  padding: 14px;
  min-width: 280px;
  color: #000;
  font-size: 14px;
}
.rl-fac-picker[hidden] {
  display: none;
}

.rl-fac-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.rl-fac-picker-monthlbl {
  font-weight: 700;
  color: #3c3c3c;
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Month + Year dropdowns in the header. Styled as pill selects with a
 * subtle chevron; deliberately not upgraded to Select2 so the calendar
 * popover stays lightweight and doesn't spawn a Select2 dropdown inside
 * another popover. */
.rl-fac-picker-monthsel,
.rl-fac-picker-yearsel {
  appearance: none;
  -webkit-appearance: none;
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 6%,
    transparent
  );
  color: #3c3c3c;
  border: 1px solid
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 22%, transparent);
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%233c3c3c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  max-height: 32px;
}
.rl-fac-picker-monthsel {
  flex: 1 1 auto;
  min-width: 0;
}
.rl-fac-picker-yearsel {
  flex: 0 1 auto;
}
.rl-fac-picker-monthsel:focus,
.rl-fac-picker-yearsel:focus {
  outline: 2px solid var(--reclite-color-primary, #002d72);
  outline-offset: 1px;
}
.rl-fac-picker-navbtn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #808080;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rl-fac-picker-navbtn::before,
.rl-fac-picker-navbtn::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.rl-fac-picker-navbtn:hover {
  color: var(--reclite-color-primary, #002d72);
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 8%,
    transparent
  );
}
.rl-fac-picker-nav {
  display: inline-flex;
  gap: 2px;
}

.rl-fac-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.rl-fac-picker-dow {
  text-align: center;
  font-size: 12px;
  color: #808080;
  font-weight: 600;
  padding: 6px 0 4px;
}
.rl-fac-picker-day {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #000;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.rl-fac-picker-day::before,
.rl-fac-picker-day::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.rl-fac-picker-day:hover:not([disabled]) {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 10%,
    transparent
  );
  color: var(--reclite-color-primary, #002d72);
}
.rl-fac-picker-day.is-out {
  color: #b7b7b7;
  opacity: 0.7;
}
.rl-fac-picker-day.is-today {
  outline: 1.5px solid var(--reclite-color-primary, #002d72);
  outline-offset: -1.5px;
  font-weight: 700;
}
.rl-fac-picker-day.is-selected,
.rl-fac-picker-day.is-selected:hover {
  background: var(--color-tertiary, #1b6ca8);
  color: #ffffff;
  font-weight: 700;
}
.rl-fac-picker-day[disabled] {
  color: #b7b7b7;
  cursor: not-allowed;
}

.rl-fac-picker-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 12%, transparent);
}
.rl-fac-picker-quick {
  border: 0;
  background: transparent;
  color: var(--reclite-color-primary, #002d72);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
/* .rl-fac-picker-quick::before,
.rl-fac-picker-quick::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
} */
.rl-fac-picker-quick:hover {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 8%,
    transparent
  );
}

.rl-fac-picker-time {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-height: 220px;
}
.rl-fac-picker-timecol {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 220px;
  gap: 4px;
  padding: 2px;
  scrollbar-width: thin;
}
.rl-fac-picker-timeitem {
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  min-height: 36px;
}
.rl-fac-picker-timeitem::before,
.rl-fac-picker-timeitem::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.rl-fac-picker-timeitem:hover {
  background: color-mix(
    in srgb,
    var(--reclite-color-primary, #002d72) 10%,
    transparent
  );
}
.rl-fac-picker-timeitem.is-selected {
  background: var(--color-tertiary, #1b6ca8);
  color: #ffffff;
  font-weight: 700;
}
.rl-fac-picker-timesep {
  align-self: center;
  color: #808080;
  font-weight: 700;
}

/* --- Select2 override — match theme forms + WCAG 2.5.5 target size --- */
.select2-container--default .select2-selection--single {
  height: 48px !important;
  border: 1.5px solid #bcbcbc !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 0 !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 14px !important;
  padding-right: 44px !important;
  color: #000 !important;
  font-size: 15px !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--reclite-color-primary, #002d72) !important;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 20%, transparent) !important;
  outline: none !important;
}
.select2-dropdown {
  border: 1px solid
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 22%, transparent) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 32px
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 18%, transparent) !important;
}
/* Space between the field and the dropdown so a mouseup on the field
 * doesn't accidentally land on the first option and select it. Also
 * unlocks the field's own border-radius (Select2 flattens the meeting
 * edge otherwise). */
.select2-container--open .select2-dropdown--below {
  margin-top: 40px !important;
}
.select2-container--open .select2-dropdown--above {
  margin-bottom: 6px !important;
}
.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--open.select2-container--above .select2-selection--single {
  border-bottom-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border-top-left-radius: 6px !important;
  border-top-right-radius: 6px !important;
}
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background: var(--reclite-color-primary, #002d72) !important;
  color: #ffffff !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: color-mix(
    in srgb,
    var(--reclite-color-secondary, #002d72) 90%,
    transparent
  ) !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1.5px solid #bcbcbc !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
}

/* Multi-select (data-rl-multi — the programs category filters). Match the
   single-select field chrome, and tint the choice tags with the brand color
   so they read as part of the plugin, not Select2's default blue-grey. */
.select2-container--default .select2-selection--multiple {
  min-height: 48px !important;
  border: 1.5px solid #bcbcbc !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 2px 6px !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--reclite-color-primary, #002d72) !important;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--reclite-color-primary, #002d72) 20%, transparent) !important;
  outline: none !important;
}
/* Each selected tag: a pill with the × on the RIGHT, clearly separated from
   the label. row-reverse puts Select2's leading remove control after the
   label text node; `gap` gives the two a guaranteed space (the default
   markup renders them flush, i.e. "×Aquatics"). */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  gap: 7px !important;
  background: color-mix(in srgb, var(--reclite-color-primary, #002d72) 9%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--reclite-color-primary, #002d72) 28%, #fff) !important;
  color: var(--reclite-color-primary, #002d72) !important;
  border-radius: 40px !important;
  padding: 4px 12px !important;
  margin: 5px 6px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice:hover {
  background: color-mix(in srgb, var(--reclite-color-primary, #002d72) 15%, #fff) !important;
  border-color: color-mix(in srgb, var(--reclite-color-primary, #002d72) 42%, #fff) !important;
}
/* The × control. Reset any theme <button> chrome (Select2 4.1 makes this a
   real <button>, which the parent theme would otherwise pill + arrow), then
   style it as a plain, tappable close affordance. */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  order: 2 !important;              /* explicit even with row-reverse */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--reclite-color-primary, #002d72) 55%, #fff) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove::before,
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove::after {
  content: none !important;        /* kill the theme's arrow-in-circle */
  display: none !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover,
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:focus {
  background: color-mix(in srgb, #b32d2e 14%, #fff) !important;
  color: #b32d2e !important;
  outline: none !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-search__field {
  margin-top: 6px !important;
  line-height: 1.4 !important;
}
@media (forced-colors: active) {
  .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    border: 1px solid ButtonText !important;
  }
  .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    border: 1px solid ButtonText !important;
  }
}

/* ==================================================================
 * Reservation detail (Flow H) + pay-status (Flow J) + cancel (Flow L)
 * Added for the 2026-08-06 reservations guide. Status is conveyed via
 * text as well as colour; forced-colors fallback at the end.
 * ================================================================== */

.rl-reservations-detail {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  background: #fbfdff;
}
.rl-reservations-detail:focus {
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 2px;
}
.rl-reservations-detail-buffer {
  margin: 0.5rem 0 0;
}

/* Charges table (detail view). */
.rl-reservations-charges {
  width: 100%;
  border-collapse: collapse;
  margin: 0.35rem 0 0;
  font-variant-numeric: tabular-nums;
}
.rl-reservations-charges th,
.rl-reservations-charges td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #e3e9f0;
}
.rl-reservations-charges th {
  font-weight: 600;
  color: #555;
}

/* Pay/settlement status (Flow J). */
.rl-reservations-paystatus {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid #c88500;
  background: color-mix(in srgb, #c88500 8%, #fff);
  border-radius: 0 6px 6px 0;
}
.rl-reservations-paystatus.is-settled {
  border-left-color: var(--color-primary-green, #00662c);
  background: color-mix(in srgb, #00662c 8%, #fff);
}
.rl-reservations-paystatus-line {
  margin: 0.15rem 0;
}

/* Cancel-booking modal fields (Flow L). */
.rl-modal .rl-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.rl-modal .rl-input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #a9b6c6;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.rl-modal .rl-input:focus {
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 1px;
}

@media (forced-colors: active) {
  .rl-reservations-detail,
  .rl-reservations-charges th,
  .rl-reservations-charges td,
  .rl-reservations-paystatus {
    border-color: CanvasText;
  }
}

/* ==================================================================
 * Info popup (rl-modal-info): the reservation detail/permit dialog and
 * the registration detail dialog. A roomier, scrollable variant of the
 * shared .rl-modal shell with a sticky header + close button. Sits on
 * the existing .rl-modal-scrim (fixed, centered, dimmed) overlay.
 * ================================================================== */

.rl-modal.rl-modal-info {
  max-width: 640px;
  width: min(94vw, 640px);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}
.rl-modal-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #e3e9f0;
  background: #fbfdff;
}
.rl-modal-info-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.rl-modal-info-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #55606c;
  cursor: pointer;
}
.rl-modal-info-close:hover,
.rl-modal-info-close:focus-visible {
  background: #eef2f6;
  color: #1c1c1c;
  outline: 2px solid var(--color-primary-green, #00662c);
  outline-offset: 1px;
}
.rl-modal-info-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
}
/* Tighten the first heading so it hugs the top of the body. */
.rl-modal-info-body > :first-child {
  margin-top: 0;
}
.rl-modal-info-body .rl-reservations-charges {
  margin-top: 0.4rem;
}

@media (max-width: 560px) {
  .rl-modal.rl-modal-info {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

@media (forced-colors: active) {
  .rl-modal.rl-modal-info {
    border: 1px solid CanvasText;
  }
  .rl-modal-info-head {
    border-bottom: 1px solid CanvasText;
  }
  .rl-modal-info-close:focus-visible {
    outline: 2px solid Highlight;
  }
}

/* ==================================================================
 * Popup content (.rl-dv) — the data layout inside the reservation
 * detail/permit and registration detail popups. Sectioned, with a
 * key/value summary grid, a right-aligned money list with an
 * emphasised total, styled occurrence chips, and a charges table.
 * ================================================================== */

.rl-dv-section {
  margin: 0 0 18px;
}
.rl-dv-section:last-child {
  margin-bottom: 0;
}

.rl-dv-sub {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8794;
  font-weight: 700;
}

/* Key/value summary grid */
.rl-dv-grid {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  margin: 0;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  overflow: hidden;
}
.rl-dv-grid dt,
.rl-dv-grid dd {
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid #eef2f6;
}
.rl-dv-grid dt:nth-of-type(1),
.rl-dv-grid dd:nth-of-type(1) {
  border-top: 0;
}
.rl-dv-grid dt {
  font-weight: 600;
  color: #5a6672;
  background: color-mix(in srgb, var(--reclite-color-primary) 10%, transparent);
  white-space: nowrap;
}
.rl-dv-grid dd {
  color: #1c2733;
}

/* Fees money list */
.rl-dv-fees {
  display: grid;
  grid-template-columns: 1fr max-content;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.rl-dv-fees dt,
.rl-dv-fees dd {
  margin: 0;
  padding: 6px 2px;
  border-bottom: 1px solid #eef2f6;
}
.rl-dv-fees dt {
  color: #5a6672;
}
.rl-dv-fees dd {
  text-align: right;
  color: #1c2733;
}
.rl-dv-fees .is-total {
  border-bottom: 0;
  border-top: 2px solid #d9e0e8;
  padding-top: 8px;
  margin-top: 2px;
  font-weight: 700;
  font-size: 1.02em;
  color: #14181c;
}

/* Occurrences / schedule */
.rl-dv-occ {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rl-dv-occ li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--reclite-color-primary) 10%, transparent);
  border: 1px solid #eef2f6;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.rl-dv-occ-date {
  font-weight: 600;
  color: #1c2733;
}
.rl-dv-occ-time {
  color: #5a6672;
}

.rl-dv-list {
  margin: 0;
  padding-left: 1.1em;
}

/* Charges table */
.rl-dv-charges {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rl-dv-charges th,
.rl-dv-charges td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f6;
}
.rl-dv-charges thead th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8794;
  background: color-mix(in srgb, var(--reclite-color-primary) 10%, transparent);
}
.rl-dv-charges th.rl-dv-amt,
.rl-dv-charges td.rl-dv-amt {
  text-align: right;
}
.rl-dv-charges tbody tr:last-child td {
  border-bottom: 0;
}
.rl-dv-charges-total th,
.rl-dv-charges-total td {
  border-top: 2px solid color-mix(in srgb, CanvasText 20%, transparent);
  border-bottom: 0;
  font-weight: 700;
  padding-top: 0.55rem;
}
.rl-dv-charges-total th {
  text-align: right;
}

.rl-dv-note {
  margin: 12px 0 0;
  color: #66707b;
  font-size: 0.9em;
}

/* Pay-status block sits flush inside the popup body. */
.rl-modal-info-body .rl-reservations-paystatus {
  margin-top: 4px;
}

/* Charge-status pills */
.rl-chgpill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  background: #eef2f6;
  color: #3a4552;
}
.rl-chgpill-recorded {
  background: color-mix(in srgb, #16803a 15%, #fff);
  color: #12652e;
}
.rl-chgpill-refunded {
  background: color-mix(in srgb, var(--color-tertiary, #1b6ca8) 15%, #fff);
  color: var(--color-tertiary-hover, #155688);
}
.rl-chgpill-waived {
  background: color-mix(in srgb, #808080 18%, #fff);
  color: #4a4a4a;
}
.rl-chgpill-pending {
  background: color-mix(in srgb, #c88500 16%, #fff);
  color: #8a5b00;
}

@media (forced-colors: active) {
  .rl-dv-grid,
  .rl-dv-occ li,
  .rl-dv-charges th,
  .rl-dv-charges td {
    border-color: CanvasText;
  }
  .rl-chgpill {
    border: 1px solid CanvasText;
  }
}

/* ==================================================================
 * Register: password UX — show/hide toggle, requirement checklist,
 * strength meter, and confirm-password match indicator.
 * ================================================================== */

/* Password field + inline show/hide button. */
.rl-pw-field {
  position: relative;
  display: block;
}
/* Reserve room at the end for the eye button so the typed text never runs
   under the icon. The selector is scoped through .rl-form and the type
   attribute so it beats the base `.rl-form input[type="password"] { padding }`
   rule; !important guards against theme overrides too. */
.rl-form .rl-pw-field input[type="password"],
.rl-form .rl-pw-field input[type="text"] {
  width: 100%;
  padding-right: 44px !important;
}
/* The toggle is injected site-wide, so cover password fields that are NOT
   inside a `.rl-form` too (facility quote / booking sign-in, the JS sign-in
   modal, add-member forms, …). Reserve room for the eye button regardless. */
.rl-pw-field {
  position: relative;
}
.rl-pw-field input[type="password"],
.rl-pw-field input[type="text"] {
  width: 100%;
  padding-right: 44px !important;
}
.rl-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #55606c;
  cursor: pointer;
  z-index: 2; /* paint above the input's own background */
  border-radius: 0 4px 4px 0;
  -webkit-user-select: none;
  user-select: none;
}
.rl-pw-toggle:hover {
  color: var(--reclite-color-primary, #243b80);
}
.rl-pw-toggle:focus-visible {
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: -2px;
}
.rl-pw-toggle .rl-eye { display: block; width: 20px; height: 20px; }
.rl-pw-toggle .rl-eye-hide { display: none; }
.rl-pw-toggle[aria-pressed="true"] .rl-eye-show { display: none; }
.rl-pw-toggle[aria-pressed="true"] .rl-eye-hide { display: block; }

/* Meta block that holds the strength bar + requirement checklist. */
.rl-pw-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Strength progress bar. */
.rl-pw-strength[hidden] { display: none; }
.rl-pw-strength-track {
  height: 8px;
  border-radius: 999px;
  background: #e3e9f0;
  overflow: hidden;
}
.rl-pw-strength-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #c0c7d0;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.rl-pw-strength-fill.is-weak   { background: #d63638; }
.rl-pw-strength-fill.is-fair   { background: #dba617; }
.rl-pw-strength-fill.is-strong { background: #1a8917; }
.rl-pw-strength-label {
  margin: 6px 0 0;
  font-size: 0.85em;
  font-weight: 600;
}

/* Requirement checklist. */
.rl-pw-reqs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 16px;
}
.rl-pw-reqs li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88em;
  line-height: 1.5;
  color: #55606c;
}
/* Default: a hollow circle. `!important` overrides the plugin's global
   `.rl-wrap ul > li::before { content:none !important }` list-marker reset,
   since the register form lives inside .rl-wrap. */
.rl-wrap.rl-wrap .rl-pw-reqs li::before,
.rl-pw-reqs li::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 2px !important;
  top: 0.35em;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #c0c7d0;
  border-radius: 50%;
  background: none;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
/* Met: a green check. */
.rl-pw-reqs li.is-ok {
  color: #1a1a1a;
}
.rl-wrap.rl-wrap .rl-pw-reqs li.is-ok::before,
.rl-pw-reqs li.is-ok::before {
  content: "✓" !important;
  border-color: #1a8917;
  background: #1a8917 !important;
  color: #fff;
  font-size: 10px;
  line-height: 12px !important;
  text-align: center;
  font-weight: 700;
}

/* Confirm-password match indicator. */
.rl-pw-match { margin-top: 6px; font-weight: 600; }
.rl-pw-match.is-ok  { color: #1a8917; }
.rl-pw-match.is-err { color: #d63638; }

@media (forced-colors: active) {
  .rl-pw-strength-fill.is-weak,
  .rl-pw-strength-fill.is-fair,
  .rl-pw-strength-fill.is-strong { background: Highlight; }
  .rl-pw-reqs li.is-ok::before { background: Highlight; color: Canvas; border-color: Highlight; }
}

/* -----------------------------------------------------------------
 * Reservation detail modal: comment thread (Flow O / RL-717)
 * and self-service payment-intent (Flow P / RL-661).
 * ----------------------------------------------------------------- */
.rl-reservations-payintent {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--reclite-color-primary, #243b80) 18%, transparent);
}
.rl-res-payintent-actions {
  margin-top: 0.5rem;
}
.rl-res-payintent-msg {
  margin: 0.6rem 0 0;
}
/* Flow P in-app balance payment (guide 7). */
.rl-res-paysession {
  margin-top: 0.75rem;
}
.rl-res-paysession-actions {
  margin-top: 0.5rem;
}
.rl-res-paysession-alt {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed color-mix(in srgb, var(--reclite-color-primary, #243b80) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.rl-res-paysession-msg {
  margin: 0.6rem 0 0;
}

/* Shared payment success/failure SCREEN — matches the Billing tab's pay result
   panel (reclite-finance.css .rl-fin-result). Defined here because this stylesheet
   loads on every RecLite page, so reservations (my-account) AND facility booking
   both get the identical centred icon panel. */
.rl-result {
  text-align: center;
  padding: 0.75rem 0.5rem 0.25rem;
}
.rl-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.rl-result-good .rl-result-icon {
  background: #e6f4ea;
  color: #1e7d34;
}
.rl-result-bad .rl-result-icon {
  background: #fdeceb;
  color: #b02a20;
}
.rl-result-title {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}
.rl-result-msg {
  margin: 0 auto 1.25rem;
  max-width: 40ch;
  color: var(--reclite-color-muted, #5a6473);
}
.rl-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
@media (forced-colors: active) {
  .rl-result-icon { border: 1px solid CanvasText; }
}

/* ---- Detail popup tabs (Details | Messages) ---- */
.rl-dv-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid color-mix(in srgb, CanvasText 14%, transparent);
}
/* :not(#_) raises specificity to beat the parent theme's button pill rule
   (id-level), and the pseudo-element resets kill its arrow-in-circle. */
.rl-dv-tab:not(#_) {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0.9rem;
  min-height: 0;
  font: inherit;
  font-weight: 600;
  color: color-mix(in srgb, CanvasText 62%, transparent);
  cursor: pointer;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: none;
}
.rl-dv-tab:not(#_)::before,
.rl-dv-tab:not(#_)::after {
  content: none !important;
  display: none !important;
}
.rl-dv-tab:not(#_):hover {
  color: CanvasText;
  background: transparent;
}
.rl-dv-tab.is-active:not(#_) {
  color: var(--reclite-color-primary, #243b80);
  border-bottom-color: var(--reclite-color-primary, #243b80);
}
.rl-dv-tab:not(#_):focus-visible {
  outline: 2px solid var(--reclite-color-primary, #243b80);
  outline-offset: 2px;
  border-radius: 4px;
}
.rl-dv-tab-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 15%, transparent);
  color: var(--reclite-color-primary, #243b80);
  font-size: 0.75em;
  line-height: 1.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---- Messages tab: chat interface ---- */
.rl-res-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rl-res-comments { display: flex; flex-direction: column; min-height: 0; }
.rl-res-chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 48vh;
  min-height: 8rem;
  overflow-y: auto;
  padding: 0.25rem 0.35rem 0.5rem;
  background: color-mix(in srgb, CanvasText 3%, transparent);
  border-radius: 12px;
}
.rl-res-chat-empty,
.rl-res-chat-loading {
  margin: auto;
  text-align: center;
  color: color-mix(in srgb, CanvasText 55%, transparent);
}
.rl-res-chat-day {
  align-self: center;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, CanvasText 50%, transparent);
  margin: 0.35rem 0 0.1rem;
}

/* Message rows: member aligns right, staff aligns left. */
.rl-res-msg {
  display: flex;
  max-width: 82%;
}
.rl-res-msg-staff  { align-self: flex-start; }
.rl-res-msg-member { align-self: flex-end; }
.rl-res-msg-bubble {
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: Canvas;
  border: 1px solid color-mix(in srgb, CanvasText 12%, transparent);
}
.rl-res-msg-staff .rl-res-msg-bubble {
  border-top-left-radius: 4px;
}
.rl-res-msg-member .rl-res-msg-bubble {
  border-top-right-radius: 4px;
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 14%, Canvas);
  border-color: color-mix(in srgb, var(--reclite-color-primary, #243b80) 30%, transparent);
}
.rl-res-msg-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.rl-res-msg-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: 0.2rem;
  font-size: 0.72em;
  color: color-mix(in srgb, CanvasText 55%, transparent);
}
.rl-res-msg-member .rl-res-msg-meta { justify-content: flex-end; }
.rl-res-msg-author { font-weight: 600; }
.rl-res-msg-time { font-variant-numeric: tabular-nums; }

/* Composer pinned under the transcript. */
.rl-res-chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.6rem;
}
.rl-res-chat-input {
  width: 100%;
  resize: none;
  min-height: 2.6rem;
  max-height: 8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  line-height: 1.4;
}
.rl-res-chat-send {
  white-space: nowrap;
}
.rl-res-chat-alert {
  grid-column: 1 / -1;
  margin: 0;
}
.rl-res-chat-closed {
  margin: 0.6rem 0 0;
  text-align: center;
}

@media (forced-colors: active) {
  .rl-reservations-payintent,
  .rl-res-msg-bubble,
  .rl-res-chat-scroll {
    border: 1px solid CanvasText;
  }
  .rl-dv-tab.is-active {
    border-bottom-color: Highlight;
    color: Highlight;
  }
}

/* ============================================================
 * Text-color policy (2026-09-09, user request):
 *   • Headings → primary   • Body/content text → black   • Links → primary
 *
 * Scoped to RecLite surfaces. This block is at the very end of
 * reclite-headless.css, which enqueues AFTER every per-module stylesheet,
 * so it wins at equal specificity. Functional / semantic colours (status
 * pills, badges, chips, alerts, buttons, the strength meter, calendar
 * highlights, toggles, validation states) keep their own colours — they
 * are never targeted here.
 *
 * The heading + link rules are wrapped in :where() (zero specificity) so
 * they ONLY colour text that has no explicit colour of its own: any
 * intentional inverse text (white-on-dark heroes, lightbox captions, …)
 * is class-coloured and therefore always wins, staying readable.
 * ============================================================ */

/* Body / content text → black. Only affects text that inherits from a root;
   inverse containers (which set their own colour) keep it. */
.rl-wrap,
.rl-account,
.rl-modal,
[data-rl],
[data-rl-prog],
[data-rl-fac],
[data-rl-reg],
[data-rl-mem] {
  color: #000;
}

/* Headings → primary (never overrides an explicit inverse heading colour). */
:where(.rl-wrap, .rl-account, .rl-modal, [data-rl], [data-rl-prog], [data-rl-fac], [data-rl-reg], [data-rl-mem]) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--reclite-color-primary, #243b80);
}

/* Links → primary. The parent theme colours links at ID-level specificity
   (with !important), so a plain rule loses. We use the plugin's `:not(#_)`
   idiom (adds one id → ID-level specificity) + !important to win, and exclude
   buttons / tabs so those keep their own colour. */
.rl-wrap a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
.rl-account a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
.rl-modal a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
[data-rl] a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
[data-rl-prog] a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
[data-rl-fac] a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
[data-rl-reg] a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab),
[data-rl-mem] a:not(#_):not([class*="rl-btn"]):not([class*="reclite_"]):not(.rl-tab) {
  color: var(--reclite-color-primary, #243b80) !important;
}

/* Accent CONTENT text the components paint with the primary colour → black.
   (Values, captions, field labels — not headings, not functional elements.) */
.rl-ov-hero,
.rl-ov-household,
.rl-ov-caption,
.rl-ov-body,
.rl-ov-kv,
.rl-ov-kv strong,
.rl-facility-quote-lbl,
.rl-mem-dt-tile-value,
.rl-mem-dt-validity,
.rl-mem-dt-validity strong,
.rl-mem-dt-pass,
.rl-mem-dt-pass strong {
  color: #000 !important;
}
/* Balance Due amount shows red when money is actually owed (beats the black
   text-policy rule above via the extra class + !important). */
.rl-ov-hero.rl-ov-balance-due {
  color: #d63638 !important;
}

/* ============================================================
 * Shared empty-state component (facilities / programs catalogues,
 * incl. the "no results after filtering" case). Neutral, NOT an error.
 * ============================================================ */
.rl-emptystate {
  grid-column: 1 / -1; /* span full width when the list is a CSS grid */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 24px;
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 4%, #fff);
  border: 1px dashed color-mix(in srgb, var(--reclite-color-primary, #243b80) 26%, transparent);
  border-radius: 12px;
}
.rl-emptystate-icon {
  width: 48px;
  height: 48px;
  color: color-mix(in srgb, var(--reclite-color-primary, #243b80) 55%, #98a2b3);
}
.rl-emptystate-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--reclite-color-primary, #243b80);
}
.rl-emptystate-text {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}
.rl-emptystate-btn {
  margin-top: 6px;
}
@media (forced-colors: active) {
  .rl-emptystate {
    border-color: CanvasText;
  }
}

/* --- Address picker (Flow N: state select + city type-ahead + zip) ------- */
.rl-addr-city-field { position: relative; }
.rl-addr-city-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  margin-top: 2px;
  background: var(--color-primary-white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.rl-addr-city-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.rl-addr-city-opt:last-child { border-bottom: 0; }
.rl-addr-city-opt:hover,
.rl-addr-city-opt:focus {
  background: color-mix(in srgb, var(--reclite-color-primary, #243b80) 10%, #fff);
  outline: none;
}
.rl-addr-status {
  margin: 4px 0 8px;
  font-size: 13px;
}
.rl-addr-status-ok   { color: #1a7f37; }
.rl-addr-status-warn { color: #9a6700; }
@media (forced-colors: active) {
  .rl-addr-city-results { border-color: CanvasText; }
  .rl-addr-city-opt { border-bottom-color: CanvasText; }
}
