/**
 * Deactivation Intelligence modal styles. Deliberately self-contained and
 * scoped under .di-* so it never clashes with wp-admin or other plugins.
 * Looks native/premium, works on small screens, respects reduced motion.
 */

.di-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 15, 20, 0.5);
  animation: di-fade 0.12s ease-out;
}

.di-modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1d2327;
  animation: di-rise 0.14s ease-out;
}

.di-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.di-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #646970;
}

.di-reasons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.di-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.di-reason:hover {
  background: #f6f7f7;
}

.di-reason input {
  margin: 0;
  accent-color: #2271b1;
}

.di-followup {
  margin-top: 12px;
}

.di-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.di-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.di-textarea:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.di-notify {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #3c434a;
  cursor: pointer;
}

.di-recovery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f1;
}

.di-recovery-action {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #2271b1;
  background: #fff;
  transition: background 0.1s ease;
}

.di-recovery-action:hover {
  background: #f0f6fc;
}

.di-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.di-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.di-btn-ghost {
  background: #fff;
  border-color: #dcdcde;
  color: #3c434a;
}

.di-btn-ghost:hover {
  background: #f6f7f7;
}

.di-btn-primary {
  background: #2271b1;
  color: #fff;
}

.di-btn-primary:hover {
  background: #135e96;
}

.di-btn:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .di-modal {
    padding: 18px;
    border-radius: 10px;
  }
  .di-actions {
    flex-direction: column-reverse;
  }
  .di-btn {
    width: 100%;
  }
}

@keyframes di-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes di-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .di-overlay,
  .di-modal {
    animation: none;
  }
}
