.npp-trash-button-wrap {
  display: flex;
}

.npp-trash-button {
  align-items: center;
  background-color: transparent;
  border: 0 solid currentColor;
  cursor: pointer;
  display: inline-flex;
  gap: 0.35em;
  justify-content: center;
  line-height: 1;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.npp-trash-button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.npp-trash-button__icon,
.npp-trash-button__icon i,
.npp-trash-button__icon svg {
  display: block;
  height: 1em;
  width: 1em;
}

.npp-trash-list {
  display: grid;
  gap: 0.75rem;
}

.npp-trash-list__title,
.npp-trash-list__empty {
  margin: 0;
}

.npp-trash-list__items {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.npp-trash-list__item {
  align-items: center;
  border: 1px solid currentColor;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem;
}

.npp-trash-list__meta {
  display: grid;
  gap: 0.15rem;
}

.npp-trash-list__actions {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.npp-trash-list__restore,
.npp-trash-list__delete {
  cursor: pointer;
}

.npp-trash-list__restore:disabled,
.npp-trash-list__delete:disabled {
  cursor: wait;
  opacity: 0.45;
}

.npp-trash-list__delete {
  color: #8a1f1f;
}

.npp-trash-list__notice {
  color: #0f6b3b;
  margin: 0;
}

.npp-error {
  color: #8a1f1f;
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
  margin-top: 0.45rem;
}

.npp-toast {
  background: #1f1f1f;
  bottom: 1rem;
  color: #fff;
  left: 50%;
  line-height: 1.35;
  max-width: min(28rem, calc(100vw - 2rem));
  opacity: 0;
  padding: 0.75rem 0.95rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100000;
}

.npp-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.npp-confirm {
  align-items: center;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99999;
}

.npp-confirm.is-open {
  display: flex;
}

.npp-confirm__backdrop {
  background: rgba(20, 20, 20, 0.42);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.npp-confirm__dialog {
  background: #fff;
  border: 1px solid #1f1f1f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  color: #1f1f1f;
  max-width: 28rem;
  padding: 1.25rem;
  position: relative;
  width: min(100%, 28rem);
}

.npp-confirm__title {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
}

.npp-confirm__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.npp-confirm__button {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0.7rem 0.9rem;
}

.npp-confirm__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.npp-confirm__button--ok {
  background: #1f1f1f;
  color: #fff;
}

@media (max-width: 640px) {
  .npp-trash-list__item {
    align-items: stretch;
    flex-direction: column;
  }

  .npp-trash-list__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .npp-confirm__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
