.nut-audio {
  &-icon {
    position: relative;
    display: inline-block;

    &-box {
      display: flex;
      align-items: center;
      justify-content: center;
      width: scale-px(30px);
      height: scale-px(30px);
      background: $white;
      border-radius: 50%;
      box-shadow: 0 0 scale-px(8px) $color-text-disabled;
    }

    .nut-audio-icon-stop {
      position: relative;

      &::after {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%);
        content: '';
        height: scale-px(2px);
        width: scale-px(30px);
        background: $color-text-disabled;
        transform: rotate(45deg);
        transform-origin: scale-px(8px) scale-px(-18px);
      }
    }
  }

  &-progress {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: scale-px(10px) 0;

    &-bar-wrapper {
      flex: 1;
      margin: 0 scale-px(10px);
    }

    .time {
      min-width: scale-px(50px);
      font-size: $font-size-s;
      text-align: center;
    }

    .nut-range-button {
      width: scale-px(8px);
      height: scale-px(8px);
    }
  }

  .custom-button-group {
    .nut-button-primary {
      margin: 0 scale-px(5px);
    }
  }

  .custom-button-group-disable {
    .nut-button-primary {
      margin: 0 scale-px(5px);
      pointer-events: none;
    }
  }

  .disable {
    color: blue;
  }

  .nut-audio-none-container {
    .nut-voice {
      border: scale-px(1px) solid $color-title;
      align-items: center;
    }
  }
}

[dir='rtl'] .nut-audio,
.nut-rtl .nut-audio {
  &-icon {
    .nut-audio-icon-stop {
      &::after {
        left: auto;
        right: 50%;
        transform: rotate(-45deg);
        transform-origin: scale-px(20px) scale-px(-18px);
      }
    }
  }
}
