@import '../../lib/commonStyles/colors';

.root {
  min-height: 62px;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 6px;
}

// .root:first-child {
//   margin-top: -5px;
// }
.root:last-child {
  margin-bottom: 15px;
}

.wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 20px 18px;
  box-sizing: border-box;
  margin-bottom: 1px; // &:hover {
  //   background-color: #fafafa;
  //   border-bottom: 1px solid #efefef;
  // }
}

.infoWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  height: 100%;
  max-width: calc(
    100% - 21px
  ); // temporary fix the issue, waiting for refacotring
  padding-left: 6px;
  padding-right: 8px;
  box-sizing: border-box;
  // Add below style if you have calllog button on callitem
  // max-width: calc(100% - 23px - 21px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.callIcon {
  display: inline-flex;
  font-size: 22px;
  color: #666;
  width: 21px;
}

.activeCall {
  color: $active;
}

@keyframes ringing {
  0% {
    text-shadow: 0px 0px 1px $active;
  }
  100% {
    color: #2ce44d;
    text-shadow: 0px 0px 10px #2ce44d;
  }
}

.activeCall.ringing {
  animation-name: ringing;
  animation-direction: alternate;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
}

.details {
  font-size: 12px;
  color: #979797;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.contactDisplay {
  margin-bottom: 5px;
}

.missed {
  color: $missed !important;
  button {
    color: $missed !important;
  }
}

.webphoneButtons {
  position: absolute;
  left: 194px;
  bottom: 7px;
}

.webphoneButton {
  display: inline-block;
  font-size: 15px;
  width: 1.5em;
  height: 1.5em;
  border-radius: 1em;
  line-height: 1.4em;
  margin-left: auto;
  margin-right: auto;
  background: #4cd964;
  text-align: center;
  margin: 2px;
  color: #ffffff;
  &:hover {
    color: #ffffff;
  }
}

.rejectWebphoneButton {
  background: #ff4646;
}

.active {
  color: $active;
  button {
    color: $active;
  }
}

.dropdownSelect {
  ul {
    left: 0;
    margin-left: -5px;
  }
}
