@use "../../../../../style/theme/util" as *;

.floating-window-h5-groupcall-container {
  width: 72px;
  height: 90px;
  top: 100px;
  right: 0;
  display: flex;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
  @include theme() {
    background-color: get(floating-color-default);
    box-shadow: 0px 0px 10px 0px get(black-8);
  }

  .click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 11;
  }
  
  .call-status {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

    .video-stream {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      // padding: 8px;
      box-sizing: border-box;

      &.hidden {
        visibility: hidden !important;
        opacity: 0;
      }
    }

    .audio-stream {
      display: flex;
      align-items: center;
      flex-direction: column;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
  }

  .call-status {
    height: 70px;
    width: 100%;
    position: relative;
    padding: 8px 18px 8px 18px;
    box-sizing: border-box;

    &.video {
      padding: 8px;
    }

    .earphone {
      height: 36px;
      width: 36px;
      top: 8px;
      position: absolute;
    }

    .info {
      @include theme() {
        color: get(text-color-success);
      }
      text-align: center;
      font-family: PingFang SC;
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      line-height: 16px; /* 133.333% */
      position: absolute;
      bottom: 8px;
    }
  }

  .device-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 20px;
    width: 100%;
    position: relative;
    justify-content: space-evenly;

    @include theme() {
      background-color: get(floating-color-operate);
    }

    .icon {
      display: flex;
      width: 16px;
      height: 16px;
      position: absolute;
    }

    .camera {
      left: 14px;
    }

    .micphone {
      right: 14px;
    }
  }  
}