body {
  margin: 0;
}

.wa-template-demo {
  background-image: linear-gradient(to right bottom, #861dfe, #a20be6, #b303d0, #bc0fbc, #c120aa, #ce2d9d, #d73c93, #dc4c8a, #ea6284, #f37881, #fa8f83, #fea589);
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
}

.wa-template-demo .vonage-logo {
  height: 100px;
  position: absolute;
  bottom: 40px;
  left: 40px;
}

.wa-template-demo .hide {
  display: none !important;
}

.wa-template-demo a {
  color: #861DFE;
  transition: 0.7s;
}
.wa-template-demo a:hover,
.wa-template-demo a:visited {
  color: #C13496;
  transition: 0.7s;
}

.wa-template-demo label {
  font-size: 1.1em;
  color: #fff;
}

.wa-template-demo button,
.wa-template-demo #send-button {
  width: fit-content;
  margin: 10px;
  background-color: #871fff;
  color: #fff;
  outline: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 10px;
  transition: 0.7s;
  font-size: 0.9em;
}
.wa-template-demo button:hover,
.wa-template-demo #send-button:hover {
  background-color: #741adb;
  transition: 0.7s;
}

.wa-template-demo .loader {
  border: 6px solid #f3f3f3;
  border-radius: 50%;
  border-top: 6px solid #000000;
  width: 20px;
  height: 20px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

.wa-template-demo audio {
  height: 30px;
  margin: 10px 0 10px 40px;
}

.wa-template-demo .transcription {
  font-style: italic;
  line-height: 1.2;
}

.wa-template-demo .panel {
  overflow: auto;
  display: block;
  height: auto;
  max-height: 540px;
}

.wa-template-demo .title {
  display: flex;
  font-weight: 600;
  margin: 10px 10px 15px;
}

.wa-template-demo .section {
  border: solid 1px #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 10px;
  margin-right: 5px;
}

.wa-template-demo .subtitle {
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 8px;
}

.wa-template-demo .description {
  font-size: 0.7em;
  margin-bottom: 5px;
}


/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form */
#send {
  /* display: flex;
  flex-direction: row; */
  /* text-align: center; */
  padding: 20px;
  /* width: 60%;
  margin: 40px auto; */
  width: 75%;
  margin: 40px 5% 0 auto;
  background: rgba(0, 0, 0, 0);
  font-size: 1.1em;
  background-color: #fff;
  border-radius: 10px;
  height: 80%;
  overflow: auto;
}

#send label {
  margin-bottom: 5px;
}
#send .sublabel {
  margin-bottom: 20px;
  margin-left: 10px;
  font-size: 0.7em;
  color: #ddd;
  text-align: left;
  font-style: italic;
}
#send input,
#send select {
  /* margin-bottom: 20px; */
  border-radius: 8px;
  border: solid 1px #ddd;
  padding: 6px 10px;
  font-size: 0.7em;
}
#send button {
  /* width: fit-content; */
  margin: 20px auto auto;
  /* background-color: black;
  color: #fff;
  outline: none;
  cursor: pointer;
  border: solid 1px #2e2e2e; */
  padding: 10px 30px;
  /* border-radius: 10px;
  transition: 0.7s; */
  font-size: 1.1em;
}
/* #send button:hover {
  background-color: #393939;
  transition: 0.7s;
} */
.wa-template-demo #send-button {
  margin: auto 0 auto auto;
  /* width: 40%; */
  font-size: 0.7em;
  padding: 8px 20px;
}

/* Controls & Notifications */
#main {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

.wa-template-demo #notification {
  background-color: #fff;
  width: 65%;
  height: 50%;
  margin: auto;
  border-radius: 20px;
  padding: 20px;
  overflow: auto;
}
.wa-template-demo #notification-message {
  line-height: 1.5;
}

/* Modal styling */
.wa-template-demo .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.wa-template-demo .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  min-width: 500px;
  border-radius: 20px;
}

.wa-template-demo .modal-content .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  transition: 0.7s;
}

.wa-template-demo .modal-content .close:hover,
.wa-template-demo .modal-content .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: 0.7s;
}

.wa-template-demo .modal-content #modal-content {
  padding: 40px 10px 20px;
  line-height: 1.4;
}

/* Sidebar */
.wa-template-demo .sidebar {
  width: 20%;
  background-color: #000;
  color: #fff;
  height: 100%;
  padding: 20px;
}

.wa-template-demo .agent-status {
  margin-bottom: 40px;
}

.wa-template-demo #agent-status {
  border-radius: 10px;
  font-size: 0.9em;
  margin: 10px 0 10px 5px;
  padding: 3px 10px;
}

.wa-template-demo .tab {
  font-size: 1.2em;
  margin-left: 20px;
  cursor: pointer;
  margin-bottom: 10px;
}
.wa-template-demo .selected {
  font-weight: 600;
  margin-left: 25px;
  cursor: initial;
}

/* Call popups */
.wa-template-demo .call-status,
.wa-template-demo .call-popup {
  background-color: rgb(38 38 38 / 95%);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
}

.wa-template-demo .call-status button,
.wa-template-demo .call-popup button {
  width: fit-content;
  margin: 10px;
  background-color: #fff;
  color: #000;
  outline: none;
  cursor: pointer;
  border: solid 2px #2e2e2e;
  padding: 10px 20px;
  border-radius: 10px;
  transition: 0.7s;
  font-size: 0.9em;
}
.wa-template-demo .call-status button:hover,
.wa-template-demo .call-popup button:hover {
  background-color: #e0e0e0;
  transition: 0.7s;
}

.wa-template-demo button.green {
  background-color: #06621a;
  color: #fff;
  border: solid 2px #2e2e2e;
}
.wa-template-demo button.green:hover {
  background-color: #043e10;
}

.wa-template-demo button.red {
  background-color: #830909;
  color: #fff;
  border: solid 2px #2e2e2e;
}
.wa-template-demo button.red:hover {
  background-color: #4a0505;
}


.wa-template-demo #body-section .sample {
  border-radius: 5px;
  font-size: 0.8em;
  border: solid 1px #ddd;
  padding: 10px;
  margin: auto;
  display: flex;
  overflow: hidden;
  word-wrap: break-word;
  flex-wrap: wrap;
  line-height: 2;
  background-color: #ddd;
}

.wa-template-demo #body-section .sample input {
  margin: -2px 4px 0;
  border-radius: 8px;
  border: solid 1px #ddd;
  padding: 2px 8px;
  font-size: 0.9em;
  max-height: 25px;
}


.wa-template-demo .chat-section {
  display: flex;
  height: 85%;
  background-color: #dddd;
  padding: 20px;
  border-radius: 5px;
}

.wa-template-demo .chat-section .chat-bubble {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 6px;
  float: left;
  color: black;
  background-color: #fff;
  position: relative;
  font-size: 0.7em;
  height: fit-content;
  box-shadow: 1px 1px #d6d6d6;
  line-height: 1.5;
}

.wa-template-demo .chat-section .chat-bubble:before {
  content: "";
  position: absolute;
  margin-top: -9px;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-bottom: 8px solid #fff;
  transform: rotate(45deg);
  left: -7px;
}

.wa-template-demo .chat-section .chat-bubble .ts {
  font-size: 0.8em;
  color: #989898;
  float: right;
}