//mobile
.notification {
  width: 100%;
  padding: 1.5rem;
  padding-right: 4rem;
  box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.15);
  background: $white;
  position: fixed;
  bottom: 0;
  right: 0;
  display: none;
  border-top: 4px solid $color-border-secondary;

  //title
  h5 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: $color-text-base;
    letter-spacing: 0;
    margin: 0;
    position: relative;
    line-height: 1rem;
    font-weight: 700;
  }
  p {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: $color-text-secondary;
  }
  p:last-child {
    margin-bottom: 0;
  }

  //icon version
  &.with-icon {
    border-top: 4px solid $color-border-secondary;
    h5 {
      .icon {
        position: absolute;
        top: -8px;
        left: -38px;
      }
    }
    h5,
    p {
      margin-left: 2rem;
    }
    //status variants
    &.success {
      border-color: $success;
      .icon {
        fill: $success;
      }
    }
    &.error {
      border-color: $danger;
      .icon {
        fill: $danger;
      }
    }
    &.info {
      border-color: $primary;
      .icon {
        fill: $primary;
      }
    }
    &.warning {
      border-color: $warning;
      .icon {
        fill: $warning;
      }
    }
  }
  // dismissable version
  &.dismissable {
    //close button
    .notification-close {
      position: absolute;
      right: 20px;
      top: 15px;
      display: block;
      width: 32px;
      height: 32px;
      padding: 0;
      background: none;
      .icon {
        fill: $icon-secondary;
      }
      &:hover {
        .icon {
          fill: $icon-primary;
        }
      }
      &:active {
        box-shadow: none;
      }
    }
  }
}

//small - tablet
@include media-breakpoint-up(sm) {
  .notification {
    padding: 1.333rem;
    padding-right: 3.556rem;
    &.with-icon {
      h5,
      p {
        margin-left: 1.778rem;
      }
    }
  }
}

//Tablet vertical
@include media-breakpoint-up(md) {
  .notification {
    width: 376px;
    bottom: 16px;
    right: 16px;
    border-radius: $border-radius;
    border-top: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
    //icon version
    &.with-icon {
      border-left: 4px solid $secondary;
      border-top: none;
    }
    //fix variants
    &.top-fix {
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      bottom: auto;
      right: auto;
    }
    &.bottom-fix {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      right: auto;
    }
    &.left-fix {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      border-left: none;
      border-right-style: solid;
      border-right-width: 4px;
      left: 0;
      right: auto;
      top: 50%;
      bottom: auto;
      transform: translateY(-50%);
    }
    &.right-fix {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      right: 0;
      top: 50%;
      bottom: auto;
      transform: translateY(-50%);
    }
  }
}
