/* ── Email confirm + loading overlay ── */

#email-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

#email-overlay-confirm {
  background: #fff;
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  text-align: center;
  min-width: 300px;
  max-width: 360px;
}

#email-overlay-confirm .overlay-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

#email-overlay-confirm .overlay-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

#email-overlay-confirm-text {
  margin: 0 0 24px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.overlay-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#email-overlay-cancel-btn {
  flex: 1;
  padding: 10px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#email-overlay-confirm-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  background: var(--fds-primary, #3b82f6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
#email-overlay-confirm-btn:hover {
  background: var(--fds-primary-dark, #2563eb);
}

#email-overlay-loading {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 36px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  text-align: center;
  min-width: 260px;
}

.overlay-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--fds-primary, #3b82f6);
  border-radius: 50%;
  animation: overlay-spin .8s linear infinite;
  margin: 0 auto 20px;
}

.overlay-loading-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.overlay-loading-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

@keyframes overlay-spin {
  to { transform: rotate(360deg); }
}
