@import '../../../styles/core.scss';

.Notification {
  align-items: center;
  border-radius: 3px;
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 15px;
  transform-origin: 50%;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;

  &_open {
    opacity: 1;
    transform: scale(1);
  }

  &_close {
    opacity: 0;
    pointer-events: none;
    transform: scale(.95);
  }

  &_graphite {
    background-color: get(color 'graphite');
    box-shadow: 0 1px 3px rgba(get(color 'graphite'), 0.05), 0 3px 9px rgba(get(color 'graphite'), 0.1);
  }

  &_green {
    background-color: get(color 'green');
    box-shadow: 0 1px 3px rgba(get(color 'green'), 0.05), 0 3px 9px rgba(get(color 'green'), 0.1);
  }

  &_red {
    background-color: get(color 'red');
    box-shadow: 0 1px 3px rgba(get(color 'red'), 0.05), 0 3px 9px rgba(get(color 'red'), 0.1);
  }

  &_bottom,
  &_top {
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    transform: translateX(-50%);
  }

  &_bottom {
    bottom: 15px;
  }

  &_top {
    top: 15px;
  }

  &-Emoji {
    font-size: ms(0);
    margin-right: 10px;
  }

  &-Button {
    align-items: center;
    background: 0;
    border: 0;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    opacity: 0.75;

    &:hover,
    &:active,
    &:focus {
      opacity: 1;
    }

    &:focus {
      outline: 0;
    }

    i::before {
      color: #fff;
    }
  }
}
