/* Alert modal */
.fsqr-alert-open {
  overflow: hidden;
}

.fsqr-alert-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  z-index: 2147483000;
}

.fsqr-alert-modal-overlay.is-visible {
  display: flex;
}

.fsqr-alert-modal {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.36);
  padding: 1.5rem 1.5rem 1.25rem;
}

.fsqr-alert-modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.fsqr-alert-modal-message {
  margin: 0;
  color: #334155;
  line-height: 1.6;
  word-break: break-word;
}

.fsqr-alert-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.fsqr-alert-modal-button {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.4rem;
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--btn-primary), var(--btn-primary-hover));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.fsqr-alert-modal-button:hover {
  filter: brightness(1.04);
}

.fsqr-alert-modal-button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.fsqr-alert-modal-button--secondary {
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}
