/*
 * Flowbite-styled presentation for Notyf toasts. Loaded after notyf.min.css.
 * Colours are taken from the Flowbite theme CSS variables so dark mode is
 * handled automatically.
 */
.notyf {
  padding: 1rem;
  gap: 0.75rem;
}

.notyf__toast {
  max-width: 24rem;
  padding: 0;
  border: 1px solid var(--color-default);
  border-radius: var(--radius-base);
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 0.1),
    0 1px 2px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.notyf__toast--upper {
  margin-bottom: 0.75rem;
}

.notyf__toast--lower {
  margin-top: 0.75rem;
}

.notyf__wrapper {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-base);
}

.notyf__message {
  color: var(--color-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  white-space: pre-line;
}

.notyf__title {
  display: block;
  margin-bottom: 0.125rem;
  color: var(--color-heading);
  font-weight: 600;
}

.notyf__icon {
  width: auto;
  margin-right: 0.75rem;
  font-size: 1rem;
  opacity: 1;
}

.notyf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
}

.notyf-icon__glyph {
  width: 1rem;
  height: 1rem;
}

.notyf-icon--success {
  color: var(--color-fg-success);
  background-color: var(--color-success-soft);
}

.notyf-icon--error {
  color: var(--color-fg-danger);
  background-color: var(--color-danger-soft);
}

.notyf-icon--warning {
  color: var(--color-fg-warning);
  background-color: var(--color-warning-soft);
}

.notyf-icon--info {
  color: var(--color-fg-brand-strong);
  background-color: var(--color-brand-softer);
}

.notyf__toast--dismissible .notyf__wrapper {
  padding-right: 2.75rem;
}

.notyf__dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
}

.notyf__dismiss-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background-color: transparent;
  opacity: 0.6;
}

.notyf__dismiss-btn:hover {
  background-color: var(--color-neutral-secondary-medium);
  opacity: 1;
}

.notyf__dismiss-btn::before,
.notyf__dismiss-btn::after {
  background: var(--color-body);
}
