.cdk-overlay-pane.slab-toast-panel {
  background: transparent;
  transition: none !important;
}

systelab-toast {
  $toast-bg-color: #3f3f3f;
  $toast-text-color: #ffffff;
  $toast-success-icon-color: #c2d95d;
  $toast-warning-icon-color: #ffd24a;
  $toast-info-icon-color: rgb(5, 122, 201);
  $toast-error-icon-color: #ff4944;

  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  background: transparent;

  .slab-toast {
    color: $toast-text-color;
    position: relative;
    display: flex;
    align-items: center;
    width: 290px;
    min-height: 48px;
    padding: 10px 20px;
    background: $toast-bg-color;
    border-radius: 34.5px;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;

    &--auto-width {
      width: auto;
      min-width: 290px;
      max-width: 530px;
    }

    &--fixed-size-large {
      width: 530px;
    }

    > i.type,
    > i.slab-toast__close {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }
    
    > i.slab-toast__close {
      right: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: transparent;
      border: 1px solid $toast-text-color;
      border-radius: 50%;
      color: $toast-text-color;
      font-style: normal;
      font-size: 14px;
      font-weight: 500;
      line-height: 1;
      transition: background 0.2s ease;

      &:before {
        content: "\2715";
      }

      &:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      &:focus {
        outline: 2px solid white;
        outline-offset: 2px;
      }
    }
    
    > i.type {
      left: 16px;
      font-size: 32px;
    }

    &--success > i.type { color: $toast-success-icon-color; }
    &--warning > i.type { color: $toast-warning-icon-color; }
    &--info > i.type { color: $toast-info-icon-color; }
    &--error > i.type { color: $toast-error-icon-color; }

    &__content {
      flex: 1;
      padding-left: 42px;
      padding-right: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      overflow: hidden;
    }

    &__title {
      font-weight: 500;
      font-size: 14px;
      line-height: 1.4;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &__body {
      opacity: 0.9;
      font-size: 12px;
      line-height: 1.3;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    &__action {
      flex-shrink: 0;
      margin-left: 8px;
      padding: 6px 16px;
      background: transparent;
      border: 1px solid $toast-text-color;
      border-radius: 16px;
      color: $toast-text-color;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s ease;
      white-space: nowrap;
      align-self: center;

      &:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      &:focus {
        outline: 2px solid white;
        outline-offset: 2px;
      }
    }

    &.show-close-button {
      padding-right: 48px;
    }

    &.has-action {
      padding-right: 8px;
    }

    &.has-action.show-close-button {
      padding-right: 56px;

      .slab-toast__action {
        margin-right: 0;
      }
    }

    &.has-body {
      padding-top: 12px;
      padding-bottom: 12px;
    }
  }
}

.slab-toast-panel--top-end,
.slab-toast-panel--bottom-end {
  systelab-toast {
    align-items: flex-end;
  }
}
