/* Different implementation, should be in different file. */
.viva-minimized {
  background-color: transparent !important;
  border-radius: 50% !important;
  filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.5));
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;

  &[hidden] {
    display: none !important;
  }

  .viva-toolbox__toggle {
    height: 30px;
    margin: 0 !important;
    position: relative !important;
    top: calc(50% - 15px);
    width: 30px;

    &:hover {
      cursor: pointer !important;
    }
  }

  .viva-toolbox__buttons {
    width: 100px !important;
    height: 50px !important;
    right: 10px !important;
    left: auto !important;

    .viva-toolbox__btn {
      background-color: $vi-disable-red !important;
      border: 0 !important;
      bottom: 0 !important;
      height: 34px !important;
      left: 6px !important;
      top: 6px !important;
      width: 34px !important;

      &:hover,
      &:focus,
      &:not(.viva-toolbox__btn--active):not(.viva-toolbox__btn--confirm):not(:disabled):hover,
      &:not(.viva-toolbox__btn--active):not(.viva-toolbox__btn--confirm):not(:disabled):focus {
        border-color: transparent !important;
      }

      svg,
      svg path {
        fill: $vi-white !important;
      }

      .viva-toolbox__tooltip {
        background-color: $vi-dark-gray;
        color: $vi-white;
        left: -160px !important;
        // right: 45px !important;
        min-width: 140px !important;
        padding: 5px !important;

        &::before {
          display: none;
        }
      }
    }
  }

  &--is-listening {
    @keyframes t-scale {
      0% {
        transform: scale(0.25);
        opacity: 1;
      }

      60% {
        opacity: 0.8;
      }

      100% {
        transform: scale(1.5);
        opacity: 0;
      }
    }

    &::after {
      animation: t-scale infinite ease-in-out 4s;
      background: $vi-primary-gradient;
      border-radius: 50%;
      content: '';
      opacity: 0.8;
      position: absolute;
      left: 9px;
      height: 30px;
      top: 9px;
      transform: scale(1);
      will-change: transform;
      width: 30px;
    }

    &.viva-minimized--is-any-web::after {
      height: 35px;
      left: 6.5px;
      top: 6.5px;
      width: 35px;
    }
  }

  &--is-any-web {
    bottom: 20px !important;
    position: fixed !important;
    right: 20px !important;
    top: unset !important;

    >img.viva-toolbox__toggle {
      height: 34px !important;
      left: 7px !important;
      top: 24px !important;
      width: 34px !important;
    }
  }
}

.viva-container {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background-color: black !important;
  width: 240px !important;
}

.viva-chat-container {
  width: 100vw !important;
  display: flex;
  max-height: 100vh !important;
}

.viva-chat-left {
  width: 20vw !important;
  display: flex;
  flex-direction: column;
  max-height: 100vh !important;
}

.viva-chat-center {
  width: 80vw !important;
  max-height: 100vh !important;
}

.msgs-container {
  @include flex(flex-start, flex-start, column nowrap);
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 18px;
  position: relative;
  scroll-behavior: smooth;
  width: 100%;

  &::-webkit-scrollbar {
    display: none !important;
  }

  &[hidden] {
    @extend %no-display;
  }

  &__onboarding-message {
    @include flex(flex-start, flex-start, column nowrap);

    margin-top: -5px;
    padding-left: 42px;
    position: relative;
    width: 100%;

    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      width: 100%;

      li {
        @include flex(flex-start, flex-start, row nowrap);

        font-size: 14px;
        font-weight: 500;
        margin-bottom: 15px;

        svg {
          height: 17px;
          margin-right: 12px;
          min-height: 17px;
          min-width: 17px;
          position: relative;
          top: -1px;
          width: 17px;
        }

        svg,
        path {
          fill: $vi-white;
        }
      }
    }
  }

  &__close {
    @extend %btn-reset;

    height: 20px;
    position: absolute;
    right: 5px;
    top: 5px;
    transition: transform .3s ease-in-out;
    width: 20px;

    svg {
      fill: $vi-black;
      height: 100% !important;
      width: 100% !important;
    }

    &:hover {
      transform: scale(1.075);
    }
  }
}

.new-msg-btn {
  @extend %center-x;

  bottom: 20px;
  position: absolute;
  width: fit-content;
  z-index: 5;

  .viva-gradient-btn {
    @include flex(center);

    background: $vi-white !important;
    font-size: 11px !important;
    padding: 5px 12px !important;
    width: fit-content;

    &[hidden] {
      @extend %no-display;
    }

    svg {
      fill: $vi-black;
      margin-right: 5px;
      width: 15px;
    }
  }
}

.interim {
  display: flex;
  margin: 20px 0 0 0;
  transform: translateY(0);
  transition: transform 0.1s ease-in-out;
  white-space: pre-wrap;
  word-break: break-word;
  word-wrap: break-word;

  &:last-child {
    margin-bottom: 10px;
  }

  &.interim-text {
    transition: margin 0.2s ease-in-out;
    margin-bottom: 10px;
  }

  .viva-message {
    &-title {
      display: flex;
      flex-direction: row;
      align-items: end;
      margin-bottom: 6px;
    }

    &-content {
      margin-left: 12px;

      p {
        @include flex(flex-start, flex-start, column nowrap);

        min-height: 17px;
      }

      span {
        color: $vi-white;
        font-size: 14px;

        &.original-transcript {
          color: darken($vi-grey, 10%);
          margin-top: 20px;
          position: relative;

          &::before {
            background-color: darken($vi-grey, 30%);
            content: '';
            height: 0.5px;
            position: absolute;
            top: -10px;
            width: 98%;
          }

          &[hidden],
          &[hidden]::before {
            @extend %no-display;
          }
        }
      }

      .original-transcript[hidden]~.separator {
        @extend %no-display;
      }
    }

    &-speaker {
      color: $vi-grey;
      font-size: 14px;
      margin: 0;
      user-select: none !important;
    }

    &-timestamp {
      color: $vi-grey !important;
      font-size: 12px !important;
      margin: 0 8px;
      opacity: 0;
      transition: 0.2s;
    }

    &-speaker-image {
      @include flex(center, center);

      border-radius: 50%;
      color: black;
      height: 30px;
      font-weight: 500;
      min-width: 30px;
      max-width: 30px;
      position: relative;
      text-transform: uppercase;
      width: 30px;

      &.bg-viva {
        background-image: url('chrome-extension://__MSG_@@extension_id__/images/logo/circular-logo-gradient.svg');
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 0 !important;
      }

      &.bg-1 {
        background-color: $vi-speaker-1;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-1;
        }
      }

      &.bg-2 {
        background-color: $vi-speaker-2;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-2;
        }
      }

      &.bg-3 {
        background-color: $vi-speaker-3;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-3;
        }
      }

      &.bg-4 {
        background-color: $vi-speaker-4;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-4;
        }
      }

      &.bg-5 {
        background-color: $vi-speaker-5;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-5;
        }
      }

      &.bg-6 {
        background-color: $vi-speaker-6;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-6;
        }
      }

      &.bg-7 {
        background-color: $vi-speaker-7;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-7;
        }
      }

      &.bg-8 {
        background-color: $vi-speaker-8;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-8;
        }
      }

      &.bg-other {
        background-color: $vi-speaker-other;

        .viva-message-speaker-image__badge {
          border: 1px solid $vi-speaker-other;
        }
      }

      &__badge {
        @include flex(center, center);

        background-color: $vi-secondary-color;
        border-radius: 50%;
        height: 18px;
        position: absolute;
        right: -5px;
        top: -7px;
        width: 18px;

        >svg {
          height: 12px;
          left: 0.5px;
          position: relative;
          top: -0.5px;
          width: 12px;
        }
      }
    }

    &-msg {
      p {
        margin: 8px;
        font-size: 12px;
      }
    }
  }

  &--gradient-bg {
    position: relative;

    &::before {
      background: linear-gradient(180deg, transparent, rgba(190, 151, 249, 0.3), rgba(190, 184, 250, 0.2), transparent);
      content: '';
      height: 110%;
      left: -18px;
      position: absolute;
      top: -11px;
      width: calc(100% + 36px);
      z-index: -1;
    }
  }

  &--has-btn {
    button {
      margin-top: 10px;
    }
  }

  &:hover .viva-message-timestamp {
    opacity: 1;
  }

  &.viva-live-cc {
    margin-top: 15px;

    .viva-message-timestamp {
      margin-left: 0;
      opacity: 1;
      transition: none;
    }

    &.interim-text {
      margin-top: -2px;
      transition: none;

      .viva-message-timestamp {
        display: block !important;
        min-height: 20px;
        transition: none;
      }
    }
  }

  p {
    font-size: 14px;
    margin: 0;
    color: $vi-grey;
  }

  &--primary {
    &__animated {
      animation: 1s linear forwards 0s interim-animated;
    }

    p {
      color: $vi-white;
      user-select: text;
    }
  }

  &--consecutive {
    margin-top: 10px !important;

    +.interim:not(.interim--consecutive) {
      margin: 20px 0 0;
    }

    .viva-message-speaker-image {
      height: 0;
    }

    .viva-message-title {
      margin-bottom: 0;
    }
  }

  &--viva-msg {
    background-color: $vi-bg-purple;
    border: 1px solid $vi-purple;
    border-radius: 10px;
    white-space: initial !important;
    margin: 0 0 12px 0;

    p,
    span {
      margin: 1px;
      font-size: 12px;
      padding: 8px 12px;
      color: $vi-grey;

      .language {
        font-weight: 700;
        margin: 0;
        padding: 0;
      }
    }
  }
}

.interim-first {
  margin: 0;
}

.language-detail {
  letter-spacing: 0.025em;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1rem;
  margin: 0;
  padding: 10px 0 !important;
  text-align: center;
}

.viva-meet {
  font-family: 'Inter' !important;
  font-size: 0.8125rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-20 {
  padding: 20px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.speaking-dots {
  margin-top: 10px;
  font-weight: bold;
}

.speaking-dots:after {
  display: inline-block;
  animation: dotty steps(1, end) 1s infinite;
  content: '';
}

@keyframes dotty {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

.meet-login-popup {
  padding: 35px 16px !important;
}

.mt-4 {
  margin-top: 2rem;
}

.transcription-box {
  @include flex(flex-start, flex-start, column nowrap);
  backdrop-filter: blur(11px);
  background-color: $vi-blur-bg-color !important;
  color: white !important;
  font-family: 'Inter' !important;
  max-height: 50vh;
  transition: none;
  box-sizing: border-box;
  will-change: left, top, height, width;

  &[hidden] {
    display: none;
    pointer-events: none;
    visibility: hidden;
  }

  & * {
    box-sizing: border-box;
  }

  button {
    font-family: $vi-text-font;
  }

  .viva-tooltip {
    span {
      white-space: nowrap;
    }
  }

  &__content {
    @include flex();
    height: 100%;
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    padding: 0 0 8px 0;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;

    &--first {
      position: relative;
      display: flex;
      flex-direction: row;
      width: 100%;
      height: 100%;
      height: -webkit-fill-available;

      &.summary-active {

        .msgs-container,
        .meeting-summary {
          width: 50%;
        }
      }
    }

    &--second,
    &--third {
      position: relative;
      display: none;
      flex-direction: column;
      // width: 50%;
      // border-left: 1px solid $vi-border-color;
      height: -webkit-fill-available;

      &-panel {
        width: 100%;
        border-top: 1px solid $vi-border-color;
      }
    }

    .free-overlay {
      @include flex(center, center, column nowrap);

      height: 100%;
      background: rgba(11, 4, 20, 0.75);
      backdrop-filter: blur(10px);
      padding: 20px;
      position: absolute;
      width: 100%;

      &__disclaimer {
        color: $vi-white;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
      }

      &__screen-share {
        @include flex(center, flex-start, column nowrap);
      }

      &__or {
        margin: 10px 0;
      }

      &__button {
        padding: 12px 24px !important;

        &.viva-secondary-btn {
          color: $vi-black !important;
        }
      }
    }
  }

  .share-transcripts-overlay {
    @include flex(center, center, column nowrap);
    height: 99%;
    padding: 20px;
    position: absolute;
    width: 100%;

    &__text {
      color: $vi-white;
      font-size: 14px;
      font-weight: 500;
      margin-top: auto !important;
    }

    &__title {
      font-weight: 700;
      margin-bottom: 20px;
      text-align: center;
    }

    &__disclaimer {
      font-size: 12px;
      margin-bottom: 0;
      text-align: center;

      a {
        font-weight: 800;
        color: $vi-primary-g-1;
        text-decoration: none;
      }

      a:hover {
        text-decoration: underline;
      }
    }

    &__button {
      padding: 12px 24px !important;
      margin-bottom: 0;
    }
  }

  &__resize {
    height: 12px;
    bottom: -6px;
    width: calc(100% - 12px);
    border-radius: 50%;
    cursor: ns-resize;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 10000000;

    &::after {
      background-color: $vi-border-grey;
      content: '';
      height: 2px;
      left: calc(50% - 25px);
      position: absolute;
      top: -2px;
      width: 50px;
    }

    &--top {
      height: 12px;
      top: -6px;
      width: calc(100% - 12px);
      border-radius: 50%;
      cursor: ns-resize;
      left: 0;
      position: absolute;
      right: 0;

      &::after {
        background-color: transparent;
        content: '';
        height: 2px;
        left: calc(50% - 25px);
        position: absolute;
        top: 0px;
        width: 50px;
      }
    }

    &--horizontal {
      height: calc(100% - 12px);
      width: 12px;
      right: -6px;
      left: unset;
      bottom: unset;
      cursor: ew-resize;
      height: 100%;

      &::after {
        background-color: transparent;
        height: 50px;
        left: -2px;
        top: calc(50% - 25px);
        width: 2px;
      }
    }

    &--left {
      height: calc(100% - 12px);
      width: 12px;
      left: -6px;
      bottom: unset;
      cursor: ew-resize;
      height: 100%;
      right: unset;

      &::after {
        background-color: transparent;
        height: 50px;
        right: -2px;
        top: calc(50% - 25px);
        width: 2px;
      }
    }

    &--diagonal-left,
    &--diagonal-right {
      bottom: -2px;
      height: 12px;
      top: unset;
      width: 12px;

      &::after {
        background-color: transparent;
        height: 20px;
      }
    }

    &--diagonal-left {
      cursor: nesw-resize;
      left: 0;
      right: unset;
    }

    &--diagonal-right {
      cursor: nwse-resize;
      left: unset;
      right: -2px;
    }

    &--diagonal-left-top,
    &--diagonal-right-top {
      bottom: unset;
      height: 12px;
      top: 2px;
      width: 12px;

      &::after {
        background-color: transparent;
        height: 20px;
      }
    }

    &--diagonal-left-top {
      cursor: nwse-resize;
      left: 0;
      right: unset;
    }

    &--diagonal-right-top {
      cursor: nesw-resize;
      left: unset;
      right: -2px;
    }
  }
}

.transcription-box-sidebar {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: calc(100% + 1px) !important;
  min-height: 100% !important;
  max-height: unset !important;
  display: flex !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 8px !important;
}

.second-active {
  .transcription-box__content {
    flex-flow: column nowrap;
    margin-bottom: 0;

    &--first {
      display: flex;
      flex-direction: column;
      width: 50%;
      height: 100%;

      &-panel {
        width: 100%;
        overflow-y: auto;
      }

      .msgs-container {
        height: 100%;
        width: 100%;
      }
    }

    &--second {
      display: flex;
      width: 50%;

      .meeting-summary,
      .settings-section {
        border-left: 1px solid $vi-border-color;
        border-top: none;
      }

      &-panel {
        width: 100%;
        overflow-y: auto;

        .meeting-summary,
        .settings-section {
          border-top: 1px solid $vi-border-color;
          border-left: none;
        }
      }

      .meeting-summary,
      .settings-section {
        height: 100%;
        width: 100%;
      }
    }
  }

  .new-msg-btn {
    bottom: calc(50% + 10px);
  }

  &:not(.transcription-box-sidebar) {
    .transcription-box__content {
      flex-flow: row nowrap;
    }

    .new-msg-btn {
      left: 25%;
      bottom: 20px;
    }
  }
}

.popup-header {
  @include flex(center, space-between);
  background-color: $vi-header-color;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  cursor: initial !important;
  height: 40px !important;
  min-height: 40px !important;
  overflow: visible !important;
  padding: 5px !important;
  width: 100% !important;

  .recording-section {
    margin: 0 4px;
    @include flex(center);

    &[hidden] {
      @extend %no-display;
    }

    &__recording {
      @include flex(center, center);

      position: relative;
      background-color: transparent;
      border: none;
      cursor: pointer;
      margin: 0 2px;
      height: 24px;
      width: 24px;
      padding: 0;

      &::before {
        content: '';
        position: absolute;
        height: 8px;
        width: 8px;
        background: $vi-pink;
        border-radius: 1px;
        transition: height .2s, width .2s, border-radius .2s, transform .2s;
      }

      &::after {
        background: transparent;
        border: 1px solid $vi-pink;
        border-radius: 10px;
        content: '';
        height: 16px;
        position: absolute;
        transition: border-radius .2s;
        width: 16px;
      }

      &:hover {
        &::before {
          transform: scale(1.3);
        }

        &::after {
          border-radius: 2px;
        }
      }
    }

    &__pause {
      @extend %btn-reset;
      @include flex(center, center);
      margin: 0 2px;
      height: 24px;
      width: 16px;
      padding: 0;

      &[hidden] {
        @extend %no-display;
      }

      svg {
        height: 14px;
        width: 14px;
        transition: transform 0.2s ease-in-out;
      }

      &:hover {
        svg {
          transform: scale(1.05);
        }
      }
    }

    &__time {
      font-family: $vi-text-font;
      font-size: 14px;
      font-weight: 400;
      color: $vi-grey;
      user-select: text;
      margin: 0 4px;
      width: 40px;
    }
  }

  .learning-mode {
    @include flex(center);

    height: 100%;
    min-width: fit-content;

    .option-container {
      border-color: rgba($vi-grey, 0.2);
      border-radius: 3px;
      font-size: 10px;
      height: fit-content;
      margin: 0;
      min-width: fit-content;
      padding: 5px;
      width: 100%;

      .description {
        color: $vi-white;
        font-size: 10px;
        font-weight: 500;
        margin: 0;
        min-width: fit-content;
      }

      .toggle-container {
        @extend %toggle-compact;
        @extend %toggle-container-grey;
      }
    }
  }

  .draggable-area {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .buttons-section {
    @include flex(center, space-between);

    button {
      @extend %btn-reset;
      @include flex(center, center);
      position: relative;
      padding: 4px 3px;
      height: 28px;
      width: 32px;
      margin: 0px 1px;
      border-radius: 3px;
      transition: 0.2s;

      &[hidden] {
        @extend %no-display;
      }

      svg {
        display: flex;
        min-height: 20px;
        min-width: 20px;
        min-height: 14px;

        path {
          fill: $vi-grey;
          transition: stroke 0.2s ease-in-out, fill 0.2s ease-in-out;
        }
      }

      &:hover,
      &:hover path,
      &.btn-active {
        background: $vi-button-bg-color !important;

        svg path {
          fill: $vi-white;
        }
      }

      &.icon-sm svg {
        height: 12px;
      }

      &.icon-md svg {
        height: 16px;
      }

      &.icon-lg svg {
        height: 18px;
      }

      &.icon-xl svg {
        height: 20px;
      }
    }
  }
}

.notification-toast {
  @include flex(center, space-between, row nowrap);
  align-self: center;
  background-color: $vi-bg-toast;
  border-radius: 0;
  font-size: 12px;
  height: 60px;
  margin: 0;
  max-height: 60px;
  padding: 20px;
  position: fixed;
  top: 40px;
  transition: background-color .4s ease-in-out, max-height .3s ease-in-out;
  width: -webkit-fill-available;
  z-index: 1;

  &--can-expand {
    background-color: $vi-dark-purple;
    border-bottom: 1px solid $vi-white;
    height: fit-content;
    max-height: 500px;
  }

  &[hidden] {
    display: none;
    pointer-events: none;
  }

  &__button {
    background-color: transparent !important;
    border: 1px solid $vi-white !important;
    border-radius: 4px;
    color: $vi-white !important;
    cursor: pointer;
    font-weight: 400;
    height: 28px !important;
    margin: 0 0 0 auto;
    padding: 2px 8px;
    position: relative;

    &:hover {
      border: 1px solid transparent !important;
      background-color: $vi-bg-purple;
      @include border-gradient(4px, -1px, 1px);
    }

    &:disabled {
      border: 1px solid $vi-grey !important;
      color: $vi-grey !important;

      &:hover {
        border: 1px solid $vi-grey !important;

        &::after {
          content: none;
        }
      }
    }
  }

  &__message {
    margin: 0;
  }

  &__secondary-content {
    @include flex(flex-start, flex-start, column nowrap);
    @include slide-up-appear(10px, .3s, forwards, 0.15s);

    & {
      width: 100%;
    }


    &.toast-add-hours {
      @include flex(flex-start, flex-start, column nowrap);

      margin: 10px 0;

      .title {
        font-size: 14px;
        margin-bottom: 15px;
        user-select: text;
      }

      .input-container {
        @include flex(center, flex-start, row nowrap);

        width: 100%;

        button {
          font-size: 13px;
          font-weight: 700;
          height: 40px !important;
          margin: 0 0 0 10px;
          padding: 10px;
          transition: color .1s ease-in-out;

          &.active {
            background: $vi-primary-gradient;
            border-color: $vi-primary-g-1-border !important;
            color: $vi-black !important;
          }

          &:first-child {
            margin-left: 0;
          }

          span {
            &:first-child {
              font-size: 15px;
              font-weight: 700;
            }

            &:last-child {
              font-size: 12px;
            }
          }
        }

        .or-seperator {
          color: $vi-white;
          font-size: 12px;
          font-weight: 700;
          margin: 0 10px;
        }

        .specify-hours {
          background-color: transparent;
          border: 1px solid $vi-white;
          border-radius: 4px;
          outline: 0;
          color: $vi-white;
          font-size: 14px;
          font-weight: 700;
          height: 40px;
          padding: 10px;
          transition: background-color .2s ease-in-out;
          width: 80px;

          &.active {
            background-color: $vi-bg-gray;
            border-color: $vi-bg-gray;
            color: $vi-black;
          }

          &::-webkit-inner-spin-button,
          &::-webkit-outer-spin-button {
            appearance: none;
          }

          &::placeholder {
            color: lighten($vi-black, 55%);
            font-size: 14px;
            font-weight: 700;
          }

          &.active::placeholder {
            color: lighten($vi-black, 35%);
          }

          &:hover {
            @include border-gradient(4px, -1px, 1px);
          }
        }
      }

      .btn-container {
        @include flex(center, flex-end, row nowrap);

        border-top: 1px solid lighten($vi-dark-purple, 15%);
        margin-top: 25px;
        padding-top: 15px;
        width: 100%;

        &__disclaimer {
          color: $vi-white;
          font-size: 13px;
          font-weight: 500;
          margin-right: auto;
        }

        .submit-button {
          @include flex(center, center);

          height: 32px;
          margin-left: 15px;
          min-width: 50px;

          svg {
            height: 18px;
            left: 1px;
            position: relative;
            top: 1px;
            width: 18px;
          }
        }
      }

      .error-container {
        background: $vi-bg-purple-light;
        border-radius: 8px;
        margin: 15px 0 0 -10px;
        padding: 15px;
        width: calc(100% + 20px);

        p {
          margin: 0;
          font-size: 13px;
          font-weight: 700;

          a {
            color: $vi-white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            margin-left: 4px;
            position: relative;
            text-decoration: underline;
            top: .5px;
          }
        }
      }
    }

    &[hidden],
    &[hidden] * {
      display: none;
      user-select: none;
      pointer-events: none;
      width: 0;
    }
  }
}

.transcription-option {
  background-color: $vi-button-grey;
  border: 1px solid $vi-border-grey;
  border-radius: 10px;
  color: $vi-black;
  font-weight: bold;
  padding: 3px 8px;
  transition: background-color 0.24s ease-in-out;

  &:hover {
    background-color: darken($vi-button-grey, 5%);
    cursor: pointer;
  }
}

.transcription-export {
  width: 100%;
  margin-top: 10px;
}

/** Options toggle **/
.options-toggle {
  align-items: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  padding: 8px 10px 8px 12px;

  &:hover {
    background-color: $vi-bg-gray;

    .options-toggle__button svg {
      transform: scale(1.1);
    }
  }

  &[hidden] {
    @extend %no-display;
  }

  &__button {
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    outline: none;
    padding: 0;

    svg {
      min-width: 20px;
      transition: transform 0.3s ease-in-out;
    }

    &:focus {
      outline: 0;
    }
  }

  span {
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 0 !important;
  }

  &--active {
    border-bottom: 1px solid $vi-border-grey;
    border-radius: 0;

    .options-toggle__button svg {
      transform: rotate(180deg);
    }

    &:hover .options-toggle__button svg {
      transform: rotate(180deg) scale(1.1);
    }
  }
}

.success-message {
  align-items: center;
  background: #28262b;
  border-radius: 4px;
  bottom: 20px;
  color: white;
  font-size: 14px;
  margin: 8px;
  min-width: fit-content;
  opacity: 0;
  padding: 6px;
  position: absolute;
  text-wrap: nowrap;
  width: 110px;
  z-index: 10;

  &.off-limit {
    bottom: -55px;
  }

  &.active {
    transition: all 0.5s;
    opacity: 1;
    transform: translateY(-10px);
  }
}

/** Settings section **/
.settings-section {
  align-items: flex-start;
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
  overflow-y: scroll;
  padding: 18px;
  width: 100%;

  &[hidden] {
    @extend %no-display;
  }

  .viva-select {
    option {
      background: $vi-dark-purple !important;
      color: $vi-grey;
    }
  }
}

.option-container {
  display: flex;
  width: 100%;
  border: 1px solid $vi-grey;
  border-radius: 10px;
  padding: 16px 12px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
  white-space: break-spaces;
  box-sizing: border-box;
  position: relative;

  &.select-box,
  .select-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  span {
    color: $vi-grey;
    font-size: 14px;
    margin-bottom: 4px;
  }

  &::after {
    transition: 0.2s;
  }
}

.popup-checkbox {
  appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 2px;
  border: 1px solid $vi-grey;
  display: grid;
  place-content: center;
  margin-right: 8px;

  &__label {
    margin-bottom: 0;
    font-family: $vi-text-font;
    font-size: 14px;
    color: $vi-white;
  }

  &::before {
    content: '';
    transform: translateX(0);
    background-color: $vi-purple;
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 0.1s transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  }

  &:checked::before {
    transform: scale(1);
  }

  &:focus::before,
  &:hover::before {
    border-color: $vi-purple;
  }

  &[checked] {
    accent-color: $vi-purple;
  }
}

.no-scroll {
  overflow: hidden;
}

/** Summary section */
.meeting-summary {
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  border-left: 1px solid $vi-border-color;

  &__section {
    @include flex(flex-start, flex-start, column nowrap);

    border-radius: 8px;
    min-height: 125px;
    width: 100%;

    span {
      font-size: 12px;
      color: $vi-grey;
    }
  }

  &__placeholder {
    display: flex;
    font-family: $vi-text-font;
    width: 100%;
    font-size: 12px;
    color: $vi-grey;
  }

  &__list {
    @include flex(flex-start, flex-start, column nowrap);

    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    user-select: text;
  }

  &__item {
    @include flex();
    @include slide-up-appear(20px, 0.5s);

    & {
      font-family: $vi-text-font;
      font-size: 14px;
      margin-bottom: 10px;
      padding: 0 20px 0 15px;
      position: relative;
    }

    &::before {
      background-color: $vi-white;
      border-radius: 5px;
      content: '';
      height: 4px;
      left: 0px !important;
      min-width: 4px;
      position: absolute;
      top: 7px;
      width: 4px;
    }

    .delete-summary {
      @extend %btn-reset;
      @include flex(center, center);

      background-color: transparent !important;
      border: 1px solid transparent !important;
      border-radius: 7px;
      visibility: hidden;
      height: 25px;
      outline: none;
      padding: 0;
      position: absolute;
      right: -12px;
      width: 25px;
      display: none;

      svg {
        height: 13px;
        width: 13px;
      }
    }

    &:hover {
      .delete-summary {
        visibility: visible;

        border: 1px solid $vi-bg-black !important;
      }
    }
  }
}

.settings-section,
.meeting-summary {
  h2 {
    font-family: $vi-title-font !important;
    font-size: 14px !important;
    margin: 0 0 10px !important;
    font-weight: 500 !important;
    color: $vi-grey;
  }
}

/** Meeting toggle reset popup */
.meeting-reset-popup {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  display: flex;
  flex-flow: column nowrap;
  height: fit-content;
  padding: 20px 15px;
  position: fixed;
  right: 35px;
  top: 15px;
  width: 370px;
  z-index: 123412341234123412341234;

  &::before {
    border-bottom: 10px solid $vi-white;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    content: '';
    height: 0;
    position: absolute;
    right: 105px;
    top: -10px;
    width: 0;
  }

  p {
    font-family: $vi-text-font;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    width: 90%;
  }

  img {
    box-shadow: 0px 1px 6px 1px rgba(0, 0, 0, 0.2);
    margin: 20px 0 0;
    width: 100%;
  }

  &__close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    position: absolute;
    right: 5px;
    top: 10px;
    width: fit-content;

    svg {
      fill: $vi-black;
      transition: transform 0.15s ease-in-out;
    }

    &:hover svg {
      transform: scale(1.1);
    }
  }
}

.options-toast {
  align-items: center;
  background-color: lighten($vi-primary-color, 40%);
  border-radius: 8px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin: 10px auto;
  padding: 15px;
  width: calc(100% - 30px);

  p {
    color: $vi-black;
    font-family: $vi-text-font;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
  }

  &__button {
    background-color: transparent;
    border: none;
    color: $vi-primary-color;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    outline: none;

    &:hover {
      text-decoration: underline;
    }

    &:focus {
      outline: none;
    }
  }
}

.transcript-lang {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.toggle-container {
  @include flex(center, center, column nowrap);
  margin-left: 8px;

  svg {
    height: fit-content;
    margin-bottom: 2px;
    width: 25px;
  }

  .template-switch {
    height: 18px;
    width: 32px;

    .template-slider {
      background-color: darken($vi-bg-gray, 10%);
      height: 18px;
      width: 32px;
      left: 0;
      max-width: 100%;
      transition: none;

      &::before {
        left: 0;
        top: 0;
        height: 16px;
        width: 16px;
      }
    }
  }
}

.lang-settings {
  display: flex;
  flex-flow: column nowrap;
  box-sizing: border-box;
  align-items: start;

  &__title {
    font-family: $vi-text-font;
    font-size: 14px !important;
    margin-bottom: 16px;
    color: $vi-grey;
  }

  &__form {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    width: 100%;
  }

  &__option {
    display: flex;
    flex-flow: column nowrap;

    .input-wrapper {
      align-items: center;
      display: flex;
      flex-flow: row nowrap;
    }

    select {
      margin-top: 8px;
      font-size: 12px;
    }
  }
}

.settings-container {
  &__version {
    font-family: $vi-text-font !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    margin-top: auto !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0 !important;
  }
}

.viva-speech-low-quality {
  height: min-content;
  width: 25vw !important;
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 99999;
  background: #fae3e8;
  border: 2px solid $vi-disable-red;
  border-radius: 20px;
  padding: 10px 20px;

  &__title {
    font-family: 'Manrope';
    font-size: 16px;
    font-weight: bolder;
    margin: 0;
  }

  &__message {
    font-family: 'Nunito';
    font-size: 15px;
    margin-bottom: 0;
  }

  &__button {
    margin: 0 5px;
    border: 1px solid $vi-primary-color;
    padding: 2px 5px;
    border-radius: 5px;
    color: $vi-primary-color;
    font-weight: bolder;
    cursor: pointer;
  }

  &__timeout {
    font-family: 'Nunito';
    font-size: 11px;
    text-align: right;
    margin: 0;
    color: $vi-dark-gray;
  }
}

.in-message-button {
  background: transparent;
  border: 1px solid $vi-primary-color;
  border-radius: 10px;
  padding: 5px;
  font-weight: bold;
  color: $vi-primary-color;
  cursor: pointer;
}