/* Pre-login consent gate modal. */
.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consent-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
}

.consent-modal__panel {
  position: relative;
  background-color: var(--color-dark-blue);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-elevated);
  width: 480px;
  max-width: 90vw;
  padding: 20px;
}

/* Header */
.consent-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider);
}

.consent-modal__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.consent-modal__close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.consent-modal__close-btn:hover {
  color: var(--color-text-white);
}

/* Body / consent text */
.consent-modal__body {
  margin-bottom: 20px;
}

.consent-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-modal__check {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-steam-blue-bright);
  cursor: pointer;
}

.consent-modal__consent-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
  cursor: pointer;
}

.consent-modal__consent-text a {
  color: var(--color-steam-blue);
  text-decoration: underline;
}

.consent-modal__consent-text a:hover {
  color: var(--color-steam-blue-bright);
}

/* Actions */
.consent-modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Confirm button disabled state (anchor, toggled by JS via .is-disabled). */
.consent-modal__confirm.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
