/*
Copyright 2021 New Vector Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.button,
.toolbarButton,
.toolbarButtonSecondary,
.iconButton,
.iconCopyButton,
.secondary,
.copyButton {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.secondary,
.button,
.copyButton {
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.button {
  color: #fff;
  background-color: var(--primaryColor);
}

.button:focus,
.toolbarButton:focus,
.toolbarButtonSecondary:focus,
.iconButton:focus,
.iconCopyButton:focus,
.secondary:focus,
.copyButton:focus {
  outline: auto;
}

.toolbarButton,
.toolbarButtonSecondary {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background-color: var(--bgColor2);
}

.toolbarButton:hover,
.toolbarButtonSecondary:hover {
  background-color: var(--bgColor4);
}

.toolbarButton.on,
.toolbarButton.off {
  background-color: #ffffff;
}

.toolbarButtonSecondary.on {
  background-color: #0dbd8b;
}

.iconButton:not(.stroke) svg * {
  fill: #ffffff;
}

.iconButton:not(.stroke):hover svg * {
  fill: #0dbd8b;
}

.iconButton.on:not(.stroke) svg * {
  fill: #0dbd8b;
}

.iconButton.on.stroke svg * {
  stroke: #0dbd8b;
}

.hangupButton,
.hangupButton:hover {
  background-color: #ff5b55;
}

.toolbarButton.on svg * {
  fill: #0dbd8b;
}

.toolbarButton.off svg * {
  fill: #21262c;
}

.toolbarButtonSecondary.on svg * {
  fill: #ffffff;
}

.secondary,
.copyButton {
  color: #0dbd8b;
  border: 2px solid #0dbd8b;
  background-color: transparent;
}

.copyButton.secondaryCopy {
  color: var(--textColor1);
  border-color: var(--textColor1);
}

.copyButton {
  width: 100%;
  height: 40px;
  transition: border-color 250ms, background-color 250ms;
}

.copyButton span {
  font-weight: 600;
  font-size: 15px;
  margin-right: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.copyButton svg {
  flex-shrink: 0;
}

.copyButton:not(.on) svg * {
  fill: #0dbd8b;
}

.copyButton.on {
  border-color: transparent;
  background-color: #0dbd8b;
  color: white;
}

.copyButton.on svg * {
  stroke: white;
}

.copyButton.secondaryCopy:not(.on) svg * {
  fill: var(--textColor1);
}

.iconCopyButton svg * {
  fill: var(--textColor3);
}

.iconCopyButton:hover svg * {
  fill: #0dbd8b;
}

.iconCopyButton.on svg *,
.iconCopyButton.on:hover svg * {
  fill: transparent;
  stroke: #0dbd8b;
}

.lg {
  height: 40px;
}
