@import '../../style/themes';
@import '../../style/mixins';

.x-notification-container {
  @include reset-component();
  
  position: fixed;
  bottom: 16px;
  right: $margin-lg;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  height: 0;
  user-select: none;
}

.x-notification-wrapper {
  flex-shrink: 0;
  margin-top: $margin-md;
  box-shadow: $box-shadow-base;
  transition-property: all, transform;
  transition-duration:  .8s, .1s !important;
  &:active {
    transform: scale(.98);
  }
}

.x-notification {
  display: flex;
  flex-direction: column;
  width: $notification-width;
  box-sizing: border-box;
  background: $notification-bg;

  &_cover {
    
  }

  &_header {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: $padding-md;
  }

  &_title {
    padding-right: $padding-md;
    font-size: $font-size-lg;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &_close {
    position: absolute;
    top: 0;
    right: 0;
    padding: $padding-md $padding-md 0 0;
    opacity: .4;
    &:hover {
      opacity: 1;
    }
  }

  &_description {
    font-size: $font-size-lg;
    color: $notification-desc-color;
  }

  &_meta {
    font-size: $font-size-sm;
    color: $notification-desc-color;
  }

}