@import "base";

$icon-radius: 40px;

.chat {
  display: flex;
  flex-direction: column;
  flex: 1;

  .chat__header {
    display: flex;
    flex-direction: row;
    font-size: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;;
    background-color: white;
    padding: 16px 25px 14px 80px;
    color: black;
    border-bottom: 2px solid color('primary');

    .chat__header__close {
      @extend %link;
      font-size: 30px;
      color: color('primary');
    }
  }

  &__recipients {
    flex: 1;
  }
}

.chat-icon {
  display: flex;
  position: absolute;
  z-index: 1;
  height: $icon-radius * 1.5;
  width: $icon-radius * 1.5;
  align-items: center;
  justify-content: center;
  font-size: $icon-radius * 0.8;
  color: white;
  background-color: color('primary');
  border-radius: $icon-radius;
  box-shadow: 0 2px 3px 2px #888888;

  bottom: 0;
  right: 0;
  margin: 30px;

  &:hover {
    cursor: pointer;
    color: color(white, normal, 0.6);
  }

  .chat-icon__unread {
    display: flex;
    position: absolute;
    background-color: color('important');
    color: white;
    font-size: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    height: ($icon-radius * 1.5) / 3;
    width: ($icon-radius * 1.5) / 3;

    top: 0;
    right: 0;
  }
}

.mailbox {
  @extend %block;
  flex-shrink: 0;
  width: 0;
  height: 100%;
  background-color: white;
  border-left: solid 2px color('primary');
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;

  &.mailbox_side-module {
    width: 300px;
  }
}
