.uss-toast {
  --color: var(--text-success);

  margin-bottom: 16px;

  display: flex;
  opacity: 1;
  transform: translateX(0);

  position: relative;
  border-left: 4px solid var(--color);
  padding: 16px;

  background-color: var(--background) !important;
  box-shadow: 0px 4px 20px rgba(var(--neutral-90-rgb), 0.15),
    0px 1px 2px rgba(var(--neutral-90-rgb), 0.1);

  max-width: 400px;

  gap: 12px;
  height: auto;

  .uss-icon {
    color: var(--color);
  }
  .ri-close-line {
    color: black;
  }

  &__close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: absolute;
    right: 8px;
    top: 8px;
    background-color: transparent;
    border: none;
    width: 32px;
    height: 32px;
  }

  &__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 304px;
    p {
      margin-bottom: 0px;
      font-size: 14px;
    }
  }

  &--info {
    --color: var(--text-info);
  }
  &--success {
    --color: var(--text-success);
  }
  &--warning {
    --color: var(--text-warning);
  }
  &--error {
    --color: var(--text-error);
  }
}

.uss-toast__overlay {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  width: 100%;
  height: 80px;
  background-color: peru;
  opacity: 0.5;
  z-index: 100; /* Ensure it's above the toast but below modal dialogs if any */
  cursor: pointer;
}

.uss-toast-container {
  position: fixed;
  bottom: 0px;
  right: 0px;
  display: flex;
  // background-color: red;
  width: 440px;
  padding: 20px;
  padding-bottom: 4px;
  height: fit-content;
  max-height: 150dvh;
  display: flex;
  flex-direction: column-reverse;
}

.dark {
  *.uss-toast {
    background-color: var(--elevation-2) !important;
    box-shadow: none;
  }
}
