// properties
$text-color: #fff;
$background-color: #2f353f;
$text-size: 14px;
$text-size-small: 13px;
$margin-bottom: 5px;
$avatar-margin-bottom: 5px;
$width: 100%;
$button-color-call: #23e004;
$button-color-handup: #e02b04;

.voip-widget {
  color: $text-color;
  background-color: $background-color;
  border-radius: 10px;
  box-shadow:
    0 4px 4px rgb(0 0 0 / 25%),
    0 4px 4px rgb(0 0 0 / 25%),
    -2px -2px 4px rgb(0 0 0 / 20%);

  h1 {
    margin-bottom: $margin-bottom;
    font-size: $text-size-small;
    font-weight: 400;
    text-align: center;
  }

  .voip-widget__interlocutor {
    margin-bottom: $margin-bottom;
    font-size: $text-size;
    font-weight: 500;
    text-align: center;
  }

  .voip-widget__content {
    .voip-widget__content__link {
      display: flex;
      align-items: center;
      justify-content: center;

      // как в макете
      margin-bottom: $avatar-margin-bottom;

      font-size: $text-size;
      color: $text-color;
      text-decoration: none;

      .voip-widget__content__link__icon {
        margin-right: 3px;
      }
    }

    .voip-widget__content__avatar {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: $avatar-margin-bottom;
    }

    .voip-widget__content__duration {
      text-align: center;
    }
  }

  .voip-widget__actions {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 20px);

    .voip-widget__actions__wrapper {
      display: flex;
      align-items: center;
      justify-content: space-around;
      width: $width;
    }

    .voip-widget__actions__item {
      cursor: pointer;

      width: 40px;
      height: 40px;
      padding: 10px;

      border-radius: 100%;

      &.green {
        background-color: $button-color-call;
      }

      &.red {
        background-color: $button-color-handup;
      }
    }
  }
}
