/* [qi_accounts_signup] — plan/price card grid, selected-state highlight, and the terms overlay.
 * Deliberately minimal: a host theme's own typography/colors should still come through; this only
 * supplies the layout and selection affordance the shortcode's markup needs to make sense. */

.qi-accounts-signup__prices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

/* auto-fit (not auto-fill): with only a couple of plans, auto-fill still reserves empty tracks
 * for cards that could fit, which left the row short of the container's full width instead of
 * splitting it between the plans actually shown (Allan, 2026-10-02). */
.qi-accounts-signup__plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.qi-accounts-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 2px solid #d0d5dd;
  border-radius: 12px;
  padding: 16px;
  font: inherit;
  color: inherit;
}

.qi-accounts-card:hover {
  border-color: #94a3b8;
}

.qi-accounts-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.qi-accounts-card--selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.qi-accounts-card__title {
  font-weight: 600;
  font-size: 1.05em;
}

.qi-accounts-card__description {
  color: #475569;
  font-size: 0.9em;
}

.qi-accounts-card__price {
  font-weight: 600;
}

.qi-accounts-card--price {
  align-items: flex-start;
}

.qi-accounts-card__duration {
  color: #475569;
  font-size: 0.9em;
}

.qi-accounts-signup__admin-account {
  border: 2px solid #d0d5dd;
  border-radius: 12px;
  padding: 4px 16px 8px;
  margin: 12px 0;
}

.qi-accounts-signup__admin-account legend {
  padding: 0 6px;
  color: #475569;
  font-size: 0.9em;
}

.qi-accounts-terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qi-accounts-terms-overlay[hidden] {
  display: none;
}

.qi-accounts-terms-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.qi-accounts-terms-overlay__panel {
  position: relative;
  width: min(720px, 92vw);
  height: min(80vh, 900px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.qi-accounts-terms-overlay__panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.qi-accounts-terms-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 32px;
  height: 32px;
  line-height: 1;
  font-size: 1.4em;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  cursor: pointer;
}
