/**
 * Étape obligatoire : demande d’alertes push après connexion (au-dessus du tableau de bord).
 */
.push-mandatory-gate {
  position: fixed;
  inset: 0;
  z-index: 100520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  pointer-events: auto;
}

.push-mandatory-gate[hidden] {
  display: none !important;
}

.push-mandatory-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.push-mandatory-gate__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--bg-card, #ffffff);
  color: var(--fg-default, #0f172a);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

#app-container.app-theme-night .push-mandatory-gate__panel {
  background: var(--bg-card-night, #1e293b);
  color: #f8fafc;
}

.push-mandatory-gate__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
}

.push-mandatory-gate__body {
  margin: 0 0 14px;
  font-size: 0.975rem;
  line-height: 1.48;
  color: #475569;
}

#app-container.app-theme-night .push-mandatory-gate__body {
  color: #cbd5f5;
}

.push-mandatory-gate__hint {
  margin: -6px 0 14px;
  font-size: 0.88rem;
  line-height: 1.42;
  color: #64748b;
}

#app-container.app-theme-night .push-mandatory-gate__hint {
  color: #94a3b8;
}

.push-mandatory-gate__hint[hidden] {
  display: none !important;
}

.push-mandatory-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.push-mandatory-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.push-mandatory-gate__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.push-mandatory-gate__btn--primary {
  background: #1e3a5f;
  color: #fff;
}

.push-mandatory-gate__btn--primary:active:not(:disabled) {
  opacity: 0.92;
}

.push-mandatory-gate__btn--secondary {
  background: transparent;
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

#app-container.app-theme-night .push-mandatory-gate__btn--secondary {
  color: #cbd5f5;
  border-color: rgba(148, 163, 184, 0.35);
}

.push-mandatory-gate__btn--secondary:active {
  opacity: 0.88;
}

.push-mandatory-gate__btn[hidden] {
  display: none !important;
}
