/* Feedback (success/error) modals used instead of alert(). */

/* Hide by default and position as real overlay */
.nrich-lms-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  padding: 24px;
  background: rgba(17, 24, 39, 0.55);
}

.nrich-lms-feedback-overlay.is-open {
  display: grid;
  place-items: center;
}

/* ---- Scoped styles (derived from modals/success.css) ---- */
.nrich-lms-feedback-overlay {
  --bg: transparent;
  --modal-bg: #ffffff;
  --text: #1c1c1e;
  --muted: #707070;
  --primary: #008ce4;
  --ghost-bg: #f3f4f6;
  --ghost-text: #333333;

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.nrich-lms-feedback-overlay .overlay {
  min-height: unset;
  display: grid;
  place-items: center;
  padding: 0;
}

.nrich-lms-feedback-overlay .modal {
  width: min(520px, 100%);
  background: var(--modal-bg);
  border-radius: 10px;
  padding: 20px 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.nrich-lms-feedback-overlay .modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(107, 114, 128, 0.25);
  background: #fff;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nrich-lms-feedback-overlay .modal__icon {
  width: 100px;
  height: 100px;
  display: block;
}

.nrich-lms-feedback-overlay .modal__title {
  margin: 0;
  color: var(--text);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
}

.nrich-lms-feedback-overlay .modal__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}

.nrich-lms-feedback-overlay .modal__desc strong {
  color: var(--text);
  font-weight: 700;
}

.nrich-lms-feedback-overlay .modal__actions {
  width: 100%;
  display: flex;
  gap: 22px;
}

.nrich-lms-feedback-overlay .btn {
  flex: 1;
  border-radius: 10px;
  padding: 10px 14px;
  border: none;
  cursor: pointer;
  font-family: Mulish, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 33.56px;
}

.nrich-lms-feedback-overlay .btn--ghost {
  background: var(--ghost-bg);
  color: var(--ghost-text);
}

.nrich-lms-feedback-overlay .btn--primary {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 480px) {
  .nrich-lms-feedback-overlay .modal {
    padding: 18px 20px;
  }

  .nrich-lms-feedback-overlay .modal__actions {
    flex-direction: column;
  }
}

