/* scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 0px;
}

::-webkit-scrollbar-track {
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(0, 0, 0, 0.1);
}

/* ==============Chat icon=============  */

body#digitaladmin {
  background-color: transparent !important;
}

#digitaladmin .overlay {
  position: absolute;
  bottom: 7;
  right: 40;
  /* background: rgb(59, 82, 121); */
  background: rgb(59, 82, 121);
  border-radius: 10px 5px 5px 10px;
  color: #3b5279;
  width: fit-content;
  transition: 0s cubic-bezier(1, 1, 1, 1);
  opacity: 0;
  color: rgb(255, 255, 255);
  font-size: 15px;
  padding: 5px;
  text-align: right;
  z-index: 0;
}

#digitaladmin .container:hover .overlay {
  opacity: 1;
  width: 250px;
}

/* ============= css related to chats =============== */

#digitaladmin .widget {
  display: none;
  width: 500px;
  right: 15px;
  height: 515px;
  bottom: 5%;
  overflow: hidden;
  position: fixed;
  /* min-width: 450px;
  max-width: 800px; */
  background: rgb(255, 255, 255);
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
  resize: none;
  border: 1px solid rgb(59, 82, 121);
}

#digitaladmin .chat_header {
  padding: 0px 15px 0px 0px;
  height: 52px;
  background: var(--primary);
  border-radius: 0px 0px 0px 0px;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#digitaladmin .bot-img {
  float: left;
  max-width: calc(100% - 270px);
  height: 100%;
}

#digitaladmin .wipo-img {
  width: 100%;
  /*height: 80px;*/
  background: #ffffff00;
  border-radius: 10px 10px 0px 0px;
  padding: 5px;
  /* margin-top: 4.0em; */
  /* float: inline-start;
  margin-top: 0px;
  box-sizing: border-box; */
}

#digitaladmin .chat_header_title {
  margin-top: 8px;
  margin-left: 1em;
  color: white;
  float: left;
  font-size: 22px;
  font-weight: 500;
}

#digitaladmin .chat_header_title span {
  font-size: 11px;
  font-weight: 400;
  clear: both;
}

#digitaladmin .chats {
  margin: 10px 0px;
  padding: 10px;
  height: 76%;
  border-radius: 1px;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #3b5279;
  transition: 0.2s;
}

#digitaladmin .clearfix {
  margin-top: 2px;
  margin-bottom: 2px;
}
#digitaladmin .material-symbols-outlined {
  font-size: 30px;
}
#digitaladmin .botAvatar {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  float: left;
}
#digitaladmin .text-transform-unset {
  text-transform: unset;
}

#digitaladmin .botMsg {
  margin: 0px 0px 5px 5px;
  padding: 5px 10px;
  float: left;
  background: #e5f1ff;
  color: var(--dark);
  border-radius: 1.5em;
  max-width: 85%;
  min-width: 55%;
  font-size: 1rem;
  word-wrap: break-word;
  border-radius: 0px 10px 10px 10px;
}

#digitaladmin .botMsg a {
  color: var(--primary);
}

#digitaladmin div.chats > pre {
  font-family: monospace, monospace;
  font-size: 1em;
  margin: 0 !important;
  /* display: inline !important; */
  white-space: initial !important;
}

#digitaladmin div.chats > ul:not(.browser-default) {
  padding-left: 1em;
}

#digitaladmin div.chats > ul:not(.browser-default) > li {
  list-style-type: initial;
}

#digitaladmin div.chats > span.botMsg > ol {
  padding-left: 1em;
}

#digitaladmin textarea {
  box-shadow: none;
  resize: none;
  outline: none;
  overflow: hidden;
  /* ********** */
}

textarea-webkit-scrollbar {
  width: 0 !important;
}

#digitaladmin .userMsg {
  font-size: 14px;
  margin: 5px 5px 10px 0px;
  animation: animateElement linear 0.2s;
  animation-iteration-count: 1;
  word-wrap: break-word;
  padding: 5px 10px;
  float: right;
  background: var(--primary);
  color: white;
  max-width: 65%;
  min-width: 15%;
  border-radius: 10px 0px 10px 10px;
  /* box-shadow: 0px 2px 5px 0px #9a828454; */
}

#digitaladmin blockquote {
  margin: 20px 0;
  padding-left: 1.5rem;
  border-left: 5px solid #ee6e73;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

#digitaladmin .userAvatar {
  width: 32px;
  height: 32px;
  float: right;
  animation: animateElement linear 0.3s;
  animation-iteration-count: 1;
  border-radius: 50%;
}

#digitaladmin .usrInput {
  padding: 10px;
  width: calc(100% - 100px);
  height: 40px;
  border: 0px;
  font-size: 16px;
}

#digitaladmin .keypad {
  padding: 10px 0px;
  background: white;
  position: absolute;
  bottom: 0px;
  width: 100%;
  border-radius: 0px 0px 10px 10px;
  border-top: 1px solid #e3e7ee;
}

#digitaladmin .feedback {
  font-size: 11px;
  padding: 3px 10px;
  background: white;
  position: absolute;
  bottom: 60px;
  width: 100%;
  border-radius: 0px 0px 0px 0px;
  border-top: 0px solid #e3e7ee;
  text-align: right;
  color: var(--primary);
  cursor: pointer;
}

#digitaladmin #sendVoice {
  margin-right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  float: right;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  background-color: var(--secondary);
  border-radius: 25px;
  color: #fff;
}

#digitaladmin #sendVoice:active {
  background-color: #ff0000;
}

#digitaladmin #sendButton {
  margin-right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  float: right;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  background-color: var(--primary);
  border-radius: 25px;
  color: #fff;
}

#digitaladmin .imgProfile {
  padding: 5px;
  border-radius: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#digitaladmin .imgProfile2 {
  padding: 5px;
  border-radius: 24px;
  width: 48px;
  height: 48px;
  background: #000;
}

#digitaladmin .profile_div {
  position: fixed;
  bottom: 0px;
  right: 0px;
  cursor: pointer;
}

#digitaladmin .profile_div2 {
  background-image: "static/img/close.png";
  position: fixed;
  width: 10%;
  bottom: 0;
  right: 0;
  cursor: pointer;
  color: #060dcfc7;
}

/* css for dropdown menu of the bot */
#digitaladmin #export,
#close,
#restart,
#clear {
  cursor: pointer;
}

#digitaladmin .right-icons {
  margin: 12px 0px 0px 10px;
  float: right;
}

#digitaladmin .expand-trigger {
  cursor: pointer;
  color: white;
  width: 20px;
  border: 1;
}

#digitaladmin .dropdown-trigger {
  cursor: pointer;
  color: white;
  margin-right: 8px;
  float: right;
  margin-bottom: 5px;
  width: 20px;
}

#digitaladmin .dropdown-content li > a,
#digitaladmin .dropdown-content li > span {
  color: #060dcfc7;
}

@keyframes animateElement {
  0% {
    opacity: 0;
    transform: translate(0px, 10px);
  }

  100% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
}

/*========== css related to chats elements============= */

/* css for card details of carousel cards */

#digitaladmin .content {
  transition: 0.2s;
  display: none;
  width: 350px;
  right: 15px;
  height: 250px;
  bottom: 5%;
  position: fixed;
  background: white;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0px 2px 10px 1px #b5b5b5;
}

#digitaladmin .content_header {
  object-fit: cover;
  width: 100%;
  height: 40%;
  border-radius: 10px 10px 0px 0px;
}

#digitaladmin .content_data {
  overflow-y: scroll;
  height: 70%;
  position: absolute;
  left: 0px;
  width: 100%;
  top: 30%;
  z-index: 1000;
  border-radius: 10px;
  background: white;
  padding: 5px;
  box-shadow: 0px -1px 20px 3px #9c9393ba;
}

#digitaladmin .content_title {
  color: black;
  font-weight: 600;
  word-wrap: break-word;
  padding-left: 5px;
  font-size: 1.2em;
  width: 80%;
  border-radius: 0.28571429rem;
}

#digitaladmin .votes {
  font-size: 10.5px;
  color: lightslategray;
}

#digitaladmin .ratings {
  margin-top: 5px;
  background: #9acd32;
  padding: 5px;
  color: white;
  border-radius: 5px;
}

.user_ratings {
  border-radius: 0.28571429rem;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

#digitaladmin .total_ratings {
  font-size: 10.5px;
  opacity: 0.5;
  margin-left: 5px;
}

#digitaladmin .content_data > .row .col {
  padding: 5px;
}

#digitaladmin .metadata_1,
#digitaladmin .metadata_2,
#digitaladmin .metadata_3,
#digitaladmin .metadata_4,
#digitaladmin .row {
  margin-bottom: 0px;
}

#digitaladmin .metadata_1 {
  color: lightslategrey;
  padding: 5px;
}

#digitaladmin .order,
#closeContents {
  color: #060dcfc7;
}

#digitaladmin .metadata_2,
#digitaladmin .metadata_3,
#digitaladmin .metadata_4,
#digitaladmin .metadata_5,
#digitaladmin .metadata_6 {
  color: lightslategrey;
  padding: 5px;
}

#digitaladmin .average_cost,
#digitaladmin .timings,
#digitaladmin .location,
#digitaladmin .cuisines {
  width: 70%;
  float: right;
  margin-right: 25%;
}

#digitaladmin .fa .fa-user-o {
  font-size: 15px;
}

#digitaladmin .stars-outer {
  display: inline-block;
  position: relative;
  font-family: FontAwesome;
}

#digitaladmin .stars-outer::before {
  content: "\f006 \f006 \f006 \f006 \f006";
}

#digitaladmin .stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}

#digitaladmin .stars-inner::before {
  content: "\f005 \f005 \f005 \f005 \f005";
  color: #f8ce0b;
}

#digitaladmin div.content::-webkit-scrollbar {
  width: 0 !important;
}

#digitaladmin div.content_data::-webkit-scrollbar {
  overflow-y: hidden;
  width: 0px;
  /* remove scrollbar space /
    background: transparent;
    / optional: just make scrollbar invisible */
}

/* css for single card */

#digitaladmin .singleCard {
  padding-left: 32px;
  padding-right: 10px;
}

/* css for image card */

#digitaladmin .imgcard {
  object-fit: cover;
  width: 80%;
  height: 50%;
  border-radius: 10px;
  margin-left: 1%;
}

/* css for markdown images */

#digitaladmin .imgcard_mrkdwn {
  width: 80%;
  border-radius: 10px;
  margin-left: 1%;
}

/* css for suggestions buttons */

#digitaladmin .suggestions {
  padding: 5px;
  max-width: 65%;
  min-width: 10%;
  border-radius: 10px;
  /* background: #e3e7ee;
  box-shadow: 2px 5px 5px 1px #dbdade; */
}

#digitaladmin .suggestions:expand {
  max-width: 60%;
}

#digitaladmin .menuTitle {
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
}

#digitaladmin .menu {
  padding: 5px;
  width: 140%;
}

/*#digitaladmin .menuChips {
  display: inline-block;
  background: #3B5279;
  color: #fff;
  text-align: center;
  padding: 5px 15px;
  margin-bottom: 5px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 15px;
  font-size: 10.5px;
  word-wrap: break-word;
  width: 210px;
}

#digitaladmin .menuChips:hover,
#digitaladmin .menuChips:active,
#digitaladmin .menuChips:focus{
  display: inline-block;
  background-color: white;
  border: 1px solid #3B5279;
  color: #3B5279;
  font-weight: normal;
  text-align: center;
  padding: 5px 15px;
  margin-bottom: 5px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 15px;
  font-size: 10.5px;
  word-wrap: break-word;
  width: 210px;
}*/

#digitaladmin .btn-primary {
    color: #0059C6;;
    background-color: #FFFFFF;
    border-color: #0059C6;
    box-shadow: 0 0 rgba(0, 0, 0, 0);
}

#digitaladmin .menuChips {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 2px;
  max-width: 90%;
  border-radius: 16px;
  height: auto;
  color: #0059C6;
}

#digitaladmin .menuChips:hover {
    background-color: #0059C6;
    color: white;
}

/*css for dropDown messages*/

#digitaladmin .dropDownMsg {
  float: left;
  margin-top: 5px;
  background: white;
  color: black;
  box-shadow: 2px 3px 9px 0px #9a82842e;
  margin-left: 0.5em;
  padding: 10px;
  border-radius: 1.5em;
  max-width: 60%;
  min-width: 25%;
  font-size: 10.5px;
  word-wrap: break-word;
}

#digitaladmin .dropDownMsg > select {
  border: 0px solid #f2f2f2;
}

/* css for quick replies */

#digitaladmin .quickReplies {
  padding: 5px;
  position: relative;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  transition: all 0.2s;
  transform: scale(0.98);
  will-change: transform;
  user-select: none;
  cursor: pointer;
  scroll-behavior: smooth;
}

#digitaladmin .quickReplies::-webkit-scrollbar {
  width: 0 !important;
}

#digitaladmin .quickReplies.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  transform: scale(1);
}

#digitaladmin .chip {
  background-color: white;
  border: 1px solid #3b5279;
  color: #3b5279;
  font-weight: bolder;
  text-align: center;
}

#digitaladmin .chip:hover,
#digitaladmin .chip:focus {
  background-color: #3b5279;
  color: white;
}

/* css for collapsible */

#digitaladmin .collapsible {
  margin-top: 5px;
  margin-left: 0%;
  max-width: 100%;
  min-width: 25%;
  word-wrap: break-word;
  border-radius: 20px;
  background: white;
}

#digitaladmin .collapsible-body {
  padding: 15px;
}

#digitaladmin .collapsible-header {
  font-weight: bold;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#digitaladmin ul.collapsible > li:first-child .collapsible-header {
  border-radius: 20px 20px 0px 0px;
}

#digitaladmin ul.collapsible > li:last-child .collapsible-header {
  color: var(--primary);
  border-radius: 20px;
}

#digitaladmin ul.collapsible > li:last-child .collapsible-body {
  border-bottom: none;
}

#digitaladmin .collapsible-header {
  padding: 10px;
}

/* css for botTyping */

#digitaladmin .botTyping {
  margin-top: 5px;
  background: #e5f1ff;
  color: #000000;
  /* box-shadow: 2px 3px 9px 0px #9a82847a; */
  margin-left: 2.5em;
  padding: 15px;
  border-radius: 5px 20px 20px 20px;
  max-width: 20%;
  min-width: 20%;
  word-wrap: break-word;
  border-radius: 5px 20px 20px 20px;
  margin-bottom: 2rem;
}

#digitaladmin .botTyping > div {
  width: 10px;
  height: 10px;
  background-color: #3b5279;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  margin-right: 5px;
}

#digitaladmin .botTyping .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

#digitaladmin .botTyping .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

#digitaladmin input:focus {
  outline: none;
}

#digitaladmin video:focus {
  outline: none;
}

#digitaladmin .video-container iframe,
#digitaladmin .video-container object,
#digitaladmin .video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  margin-left: 5%;
  border-radius: 10px;
  border-style: none;
}

/* Bot pop-up intro */

#digitaladmin .tap-target {
  color: #fff;
  background: #3b5279;
  margin-left: 2px;

  /* float: right; */
}

#digitaladmin .pdf_attachment {
  border: 0.5px solid #00000014;
  width: 60%;
  height: 14%;
  border-radius: 10px;
  margin-left: 10%;
  box-shadow: 2px 3px 9px 0px #9a82842e;
}

#digitaladmin .pdf_icon {
  border-radius: 10px 0px 0px 10px;
  height: 100%;
  font-size: 25px;
  padding: 7% !important;
  background-color: #060dcfc7;
  color: white;
}

#digitaladmin .pdf_link {
  padding: 5% !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#digitaladmin .pdf_link a {
  color: #060dcfc7;
}

/* Resize */
#digitaladmin #resizable {
  width: 150px;
  height: 150px;
  padding: 0.5em;
}

@media only screen and ((max-width: 768px) or (max-height: 530px) or ((hover: none) and (pointer: coarse))) {
  #digitaladmin .widget {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    right: 0;
    background: rgb(255, 255, 255);
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
    resize: none;
  }
}

/* Tooltip */
*[data-tooltip] {
  position: relative;
}

*[data-tooltip]::after {
  content: attr(data-tooltip);

  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;

  pointer-events: none;
  opacity: 0;
  -webkit-transition: opacity 0.15s ease-in-out;
  -moz-transition: opacity 0.15s ease-in-out;
  -ms-transition: opacity 0.15s ease-in-out;
  -o-transition: opacity 0.15s ease-in-out;
  transition: opacity 0.15s ease-in-out;

  display: block;
  font-size: 12px;
  line-height: 16px;
  background: #db17176e;
  padding: 2px 2px;
  border: 1px solid #c0c0c0;
  box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.4);
}

*[data-tooltip]:hover::after {
  opacity: 1;
}
