@import 'assets/scss/fonts.scss';
@import 'assets/scss/z-index.scss';

.container {
  display: flex;
  justify-content: center;
  height: 100%;
  padding-right: 6px;

  .emoji {
    height: 24px;
    top: 2px;
    position: relative;
  }
}

.alignBottom {
  align-items: flex-end;
  margin-bottom: 10px;
}

.alignCenter {
  align-items: center;
}

.emojiDrawer {
  position: absolute;
  right: 72px;
  bottom: 75px;
  z-index: $base;
}

.iconRecordingDefault {
  svg {
    path {
      stroke: var(--color-icons-gray);
      fill: none;
    }
  }
}

@mixin activeButton {
  background-color: var(--color-background-blue);
  border-radius: 50%;

  svg {
    path {
      fill: var(--color-airy-logo-blue);
    }
  }
}

@mixin iconsCommonStyle {
  svg {
    width: 22px;
    pointer-events: none;
  }
}

@mixin optionsIconButton {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: none;
}

@mixin iconButtonRecordingOn {
  background-color: var(--color-airy-blue);
  border-radius: 50%;
}

@mixin iconToolTip {
  @include font-s;
  position: absolute;
  background-color: var(--color-text-contrast);
  color: var(--color-background-white);
  border-radius: 4px;
  padding: 4px 8px;
  display: none;
  bottom: 33px;
  z-index: 1;
}

.recordingIconButton {
  @include optionsIconButton;

  .actionToolTip {
    @include iconToolTip;
  }

  &:hover {
    background-color: var(--color-background-blue);
    border-radius: 50%;

    svg {
      path {
        stroke: var(--color-airy-logo-blue);
      }
    }

    .actionToolTip {
      display: block;
    }
  }

  &.active {
    background-color: var(--color-background-blue);
    border-radius: 50%;
    svg {
      path {
        stroke: var(--color-airy-logo-blue);
      }
    }
  }

  &:focus {
    outline: none;
  }

  &:disabled {
    cursor: not-allowed;
  }
}

.iconButton {
  @include optionsIconButton;
  @include iconsCommonStyle;

  svg {
    path {
      fill: var(--color-icons-gray);
    }
  }

  .actionToolTip {
    @include iconToolTip;
  }

  &:hover {
    @include activeButton;

    .actionToolTip {
      display: block;
    }
  }

  &.active {
    @include activeButton;
  }

  &:focus {
    outline: none;
  }

  &:disabled {
    cursor: not-allowed;
  }
}

.iconRecordingOn {
  @include iconButtonRecordingOn;
  @include iconsCommonStyle;

  svg {
    path {
      stroke: var(--color-background-white);
      fill: none;
    }
  }
}

.iconRecordingPaused {
  @include iconButtonRecordingOn;
  @include iconsCommonStyle;
}

.smileyIcon {
  height: 20px;
  width: 20px;
}

.templateActionContainer {
  margin-top: 8px;
}

.fileInput {
  display: none !important;
}

.paperclipIcon {
  transform: scale(1.5);
}

.fileSizeErrorPopUp {
  z-index: 2;
}
