/**
 * CSS bridge for the pricing simulation.
 * Floating plan-selector panel + inline simulation content.
 */

:root {
  --chrome-height: 77px;
}

/* ---------- Floating panel ---------- */

.sim-panel {
  position: fixed;
  top: calc(var(--chrome-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(25, 30, 40, 0.95);
  border: 1px dashed rgba(140, 180, 220, 0.35);
  border-radius: 2px;
  padding: 5px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  user-select: none;
  white-space: nowrap;
}

.sim-panel-dragging {
  opacity: 0.92;
  cursor: grabbing;
}

.sim-panel-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #c44040;
  flex-shrink: 0;
}

.sim-panel-pills {
  display: flex;
  gap: 3px;
}

.sim-panel-grip {
  cursor: grab;
  color: #c44040;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 1px 0 4px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 2px;
}
.sim-panel-dragging .sim-panel-grip {
  cursor: grabbing;
}

/* ---------- Plan pills ---------- */

.sim-pill {
  padding: 2px 9px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: transparent;
  color: rgba(200, 215, 230, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.5;
}

.sim-pill:hover {
  background: rgba(110, 168, 199, 0.10);
  border-color: rgba(110, 168, 199, 0.35);
  color: rgba(230, 237, 245, 0.85);
}

.sim-pill:focus-visible {
  outline: 2px solid var(--accent, #6ea8c7);
  outline-offset: 1px;
}

.sim-pill-active {
  background: rgba(110, 168, 199, 0.20);
  border-color: rgba(110, 168, 199, 0.55);
  color: #e6edf5;
}

/* ---------- Mobile: collapsible selector ---------- */

.sim-panel-toggle {
  display: none;
}

@media (max-width: 600px) {
  .sim-panel {
    left: 8px;
    right: 8px;
    transform: none;
    flex-wrap: wrap;
    white-space: normal;
    padding: 5px 10px;
  }

  .sim-panel-grip {
    display: none;
  }

  .sim-panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px dashed rgba(110, 168, 199, 0.3);
    border-radius: 2px;
    color: #e6edf5;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 10px;
    cursor: pointer;
    line-height: 1.5;
  }
  .sim-panel-toggle-arrow {
    font-size: 0.55rem;
    transition: transform 0.15s;
  }
  .sim-panel-toggle-arrow.open {
    transform: rotate(180deg);
  }

  .sim-panel-pills {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
  }
  .sim-panel-pills.sim-pills-open {
    display: flex;
  }
  .sim-panel-pills.sim-pills-open .sim-pill {
    text-align: left;
    border-radius: 2px;
    padding: 6px 12px;
  }
}

/* ---------- Charter announcement block (inside sim-panel) ---------- */

.sim-charter-block {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 620px;
  margin-top: 4px;
  padding: 8px 12px 8px 14px;
  background: rgba(25, 30, 40, 0.95);
  border: 1px dashed rgba(140, 180, 220, 0.35);
  border-left: 3px solid #22c55e;
  border-radius: 2px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: normal;
  box-sizing: border-box;
}

.sim-charter-heading {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e4e6eb;
  margin-bottom: 3px;
}

.sim-charter-body {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #b0b6c0;
  line-height: 1.5;
}

/* ---------- Simulation content area ---------- */

.sim-section {
  padding: 0;
}

.sim-content {
  min-height: 200px;
}

/* brand-sub subtitle is part of site branding — visible on pricing */
