:root {
  --color1: #531db1;
  --color2: #5b3dd5;
  --color3: #2537c5;
  --accent-color: #ea7b5e;
  --text: #142d4e;
}

p {
  margin-bottom: 0;
}

.page-wrapper {
  font-family: Archivo, sans-serif;
  position: fixed;
  bottom: 0;
  right: 0;
  width: auto;
  height: auto;
  z-index: 999999;
}

.widget {
  background-color: #3f2a2a;
  background-image: linear-gradient(131deg, var(--color1), var(--color2) 55%, var(--color3));
  cursor: pointer;
  border-radius: 50px 50px 10px;
  width: 100px;
  height: 100px;
  padding: 16px;
  display: block;
  position: absolute;
  inset: auto 20px 20px auto;
  box-shadow: 0 0 9px 5px #0000000f;
}

.widget:hover {
  box-shadow: 0 0 30px 19px #00000024;
}

.widget-intro {
  background-color: #3f2a2a;
  background-image: linear-gradient(131deg, var(--color1), var(--color2) 55%, var(--color3));
  color: #fff;
  border-radius: 50px 50px 10px;
  justify-content: flex-start;
  align-items: center;
  width: 300px;
  height: 80px;
  padding: 16px;
  display: none;
  position: absolute;
  inset: auto 20px 20px auto;
  box-shadow: 0 0 10px 3px #0003;
}

.icon-small {
  opacity: .9;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.icon-small:hover {
  opacity: 100;
}

.div-block {
  flex: 1;
  margin-left: 10px;
}

.text-intro {
  font-size: 18px;
  line-height: 1.2em;
}

.action {
  color: var(--accent-color);
  white-space: nowrap;
  cursor: pointer;
  background-color: #fff;
  border-radius: 40px;
  justify-content: flex-start;
  align-items: center;
  width: 48%;
  padding: 2px 6px;
  font-weight: 600;
  display: flex;
}

.action:hover {
  opacity: 1;
  box-shadow: inset 0 0 8px 5px #0003;
}

.icon-action {
  width: 25px;
  height: 25px;
}

.row-actions {
  justify-content: space-between;
  margin-top: 5px;
  display: flex;
}

.widget-main {
  background-color: #3f2a2a;
  background-image: linear-gradient(131deg, var(--color1), var(--color2) 55%, var(--color3));
  color: #fff;
  border-radius: 50px 50px 10px;
  justify-content: flex-start;
  align-items: center;
  width: 400px;
  height: 500px;
  padding: 0;
  display: none;
  position: absolute;
  inset: auto 20px 20px auto;
  box-shadow: 0 0 10px 3px #0003;
}

.call-screen {
  flex-flow: column;
  width: 100%;
  height: 100%;
  display: none;
}

.action-top-div {
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 10px;
  display: flex;
}

.main-content {
  background-color: #fff;
  border-radius: 20px;
  flex: 1;
  width: 103%;
  margin-bottom: 40px;
  margin-left: -1.5%;
  overflow: hidden;
  box-shadow: 0 0 16px #0000001a;
}

.screen-name {
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  display: flex;
}

.btn-back {
  opacity: .8;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
}

.btn-back:hover {
  opacity: 100;
}

.btn-close {
  opacity: .8;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
}

.btn-close:hover {
  opacity: 100;
}

.icon-screen {
  width: 35px;
  height: 35px;
  margin-right: 5px;
}

.screen-callstart {
  color: var(--text);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  display: flex;
}

.call-status {
  background-color: #39b54a;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
  padding: 12px;
}

.call-status.calling {
  background-color: #007acc;
}

.call-status-div {
  text-align: center;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.screen-devices {
  color: var(--text);
  background-color: #e6e6e6;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 100%;
  display: none;
}

.devices-top {
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 10px 20px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
}

.icon-close-devices {
  opacity: .8;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 4px;
}

.icon-close-devices:hover {
  opacity: 100;
}

.div-block-3 {
  flex: 1;
  margin-bottom: 20px;
  padding-top: 20px;
  padding-left: 22px;
  padding-right: 22px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row.center {
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  display: flex;
}

.select-field-div {
  color: var(--text);
}

.select-field {
  color: var(--text);
  border: 1px #000;
  border-radius: 10px;
  height: 45px;
  width: 100%;
}

.field-label {
  font-weight: 500;
}

.button {
  background-color: var(--accent-color);
  cursor: pointer;
  border-radius: 50px;
  padding: 9px 31px;
  font-size: 16px;
}

.button:hover {
  box-shadow: inset 0 0 10px 1px #0000001f;
}

.screen-calling {
  color: var(--text);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  display: none;
}

.screen-onncall {
  color: var(--text);
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  display: none;
}

.convo {
  flex: 0 auto;
  height: 400px;
  padding: 20px;
  overflow: auto;
}

.call-status-wave {
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  display: flex;
}

.voice-wave {
  flex: 1;
  margin-right: 10px;
}

.btn-endcall {
  cursor: pointer;
  background-color: #c1272d;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  padding: 8px;
}

.btn-endcall:hover {
  box-shadow: inset 0 -1px 9px 5px #0003;
}

.bubble-div {
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
  display: flex;
}

.bubble-div.user {
  justify-content: center;
  align-items: flex-end;
}

.bubble {
  background-color: #e6e6e6;
  border-radius: 10px;
  justify-content: flex-start;
  align-items: center;
  max-width: 80%;
  padding: 13px 10px;
  font-size: 16px;
  display: flex;
}

.bubble.user {
  background-color: var(--color2);
  color: #fff;
}

.text-timedate {
  opacity: .54;
  font-size: 12px;
}

.lottie-animation {
  filter: hue-rotate(87deg);
}

.screen-chat {
  color: var(--text);
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  display: flex;
}

.reply-div {
  border-top: 1px solid #e9e9e9;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  display: flex;
}

.textarea {
  flex: 1;
  margin-right: 10px;
}

.reply-textarea {
  border: 1px #000;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  margin-bottom: 0;
  font-size: 16px;
}

.form-block {
  margin-bottom: 0;
}

.btn-send {
  background-color: var(--accent-color);
  cursor: pointer;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  padding: 8px;
}

.btn-send:hover {
  box-shadow: inset 0 -1px 9px 5px #0003;
}

.chat-screen {
  flex-flow: column;
  width: 100%;
  height: 100%;
  display: none;
}

@media screen and (max-width: 479px) {
  .widget {
    width: 70px;
    height: 70px;
    padding: 10px;
  }

  .widget-intro {
    bottom: 10px;
    right: 10px;
  }

  .widget-main {
    border-radius: 30px;
    width: 90vw;
  }

  .action-top-div {
    padding-left: 10px;
  }
}


