/* ShiftNevis User Feedback Center */
.sn-feedback-modal-open {
  overflow: hidden;
}

.sn-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: snFeedbackFadeIn 160ms ease-out both;
}

.sn-feedback-modal.is-leaving {
  animation: snFeedbackFadeOut 160ms ease-in both;
}

.sn-feedback-modal__dialog {
  --sn-feedback-accent: #6d28d9;
  --sn-feedback-soft: #f5f3ff;
  width: min(100%, 480px);
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  color: #172033;
  text-align: right;
  animation: snFeedbackDialogIn 180ms cubic-bezier(.2,.8,.2,1) both;
}

.sn-feedback-modal--error .sn-feedback-modal__dialog {
  --sn-feedback-accent: #dc2626;
  --sn-feedback-soft: #fef2f2;
}

.sn-feedback-modal--warning .sn-feedback-modal__dialog {
  --sn-feedback-accent: #d97706;
  --sn-feedback-soft: #fffbeb;
}

.sn-feedback-modal--info .sn-feedback-modal__dialog {
  --sn-feedback-accent: #2563eb;
  --sn-feedback-soft: #eff6ff;
}

.sn-feedback-modal__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--sn-feedback-soft);
  color: var(--sn-feedback-accent);
  font-size: 23px;
}

.sn-feedback-modal__content {
  min-width: 0;
  padding-left: 26px;
}

.sn-feedback-modal__content h2 {
  margin: 2px 0 7px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
  color: #111827;
}

.sn-feedback-modal__content p {
  margin: 0;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.95;
  color: #475569;
  overflow-wrap: anywhere;
}

.sn-feedback-modal__x {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.sn-feedback-modal__x:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sn-feedback-modal__x:active {
  transform: scale(.96);
}

.sn-feedback-modal__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 5px;
}

.sn-feedback-modal__close {
  min-width: 112px;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sn-feedback-accent) !important;
  color: #fff !important;
  font-weight: 800;
  cursor: pointer;
}

.sn-feedback-modal__close:focus-visible,
.sn-feedback-modal__x:focus-visible,
.sn-feedback-notice button:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .28);
  outline-offset: 2px;
}

.sn-feedback-notices {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10040;
  display: grid;
  gap: 10px;
  width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}

.sn-feedback-notice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .16);
  pointer-events: auto;
  animation: snFeedbackNoticeIn 180ms ease-out both;
}

.sn-feedback-notice.is-leaving {
  animation: snFeedbackNoticeOut 160ms ease-in both;
}

.sn-feedback-notice__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  font-size: 19px;
}

.sn-feedback-notice__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sn-feedback-notice__copy b {
  color: #111827;
  font-size: .9rem;
  font-weight: 800;
}

.sn-feedback-notice__copy span {
  color: #475569;
  font-size: .82rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.sn-feedback-notice button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.sn-feedback-notice button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@keyframes snFeedbackFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes snFeedbackFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes snFeedbackDialogIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes snFeedbackNoticeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 640px) {
  .sn-feedback-modal {
    align-items: end;
    padding: 12px;
  }

  .sn-feedback-modal__dialog {
    width: 100%;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px 18px;
    border-radius: 22px 22px 18px 18px;
  }

  .sn-feedback-modal__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 20px;
  }

  .sn-feedback-modal__content {
    padding-left: 24px;
  }

  .sn-feedback-modal__actions {
    padding-top: 2px;
  }

  .sn-feedback-modal__close {
    width: 100%;
    min-height: 46px;
  }

  .sn-feedback-notices {
    right: 16px;
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sn-feedback-modal,
  .sn-feedback-modal__dialog,
  .sn-feedback-notice,
  .sn-feedback-modal.is-leaving,
  .sn-feedback-notice.is-leaving {
    animation: none !important;
  }
}
