.chat-content .attach_btn,
.chat-content .send_btn {
  background-color: var(--webchat-primary) !important;
  color: var(--webchat-primary-text) !important;
}

.chat-content .msg_cotainer_send {
  background-color: var(--webchat-secondary) !important;
  color: var(--webchat-secondary-text) !important;
}

.chat-content .type_msg {
  background-color: var(--webchat-input) !important;
  color: var(--webchat-input-text) !important;
}

.login {
  background: var(--webchat-main);
}

.login-button .btn {
  border: 0;
  background: var(--webchat-primary) !important;
  color: var(--webchat-primary-text);
}

#attachmentForm input {
  background-color: var(--webchat-secondary) !important;
  color: var(--webchat-secondary-text) !important;
}

#attachmentForm .styledsubmit {
  background-color: var(--webchat-primary) !important;
  color: var(--webchat-primary-text) !important;
}

.modal-attachments .modal-header {
  background: var(--webchat-tertiary);
}

.modal-attachments .modal-header .popupblocksubtitle {
  color: var(--webchat-tertiary-text);
}

.webchat__primary__bg {
  background: var(--webchat-primary) !important;
}

.webchat__primary__fg {
  color: var(--webchat-primary-text) !important;
}

.webchat__secondary__bg {
  background: var(--webchat-secondary) !important;
}

.webchat__secondary__fg {
  color: var(--webchat-secondary-text) !important;
}

.webchat__tertiary__bg {
  background: var(--webchat-tertiary) !important;
}

.webchat__tertiary__fg {
  color: var(--webchat-tertiary-text) !important;
}

.user_info {
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 15px;
  position: relative;
}
.user_info span {
  color: white;
  display: block;
  font-size: 12px;
}
.user_info p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.dropdown {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
}

#messages {
  position: absolute;
}

.msg_card_body {
  overflow-y: auto;
  display: flex;
  height: 85vh;
  flex-direction: column;
  gap: 5px;
}

.msg_container::before, .msg_container_send::before {
  content: "";
  display: block;
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  left: auto;
  right: -7px;
  top: auto;
  bottom: 0px;
  border: 4px solid;
  border-color: transparent transparent #FFF #FFF;
}

.msg_container::before {
  left: -7px;
  right: auto;
  border-color: transparent #fff #fff transparent;
}

.chatMessageText {
  color: black;
}
.chatMessageText div {
  display: flex;
}
.chatMessageText div i {
  position: absolute;
  top: 5px;
  right: 5px;
}
.chatMessageText div i:hover {
  cursor: pointer;
}
.chatMessageText div div {
  max-width: 40px;
  max-height: 40px;
}

.agent_message {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  font-size: 1em;
  color: #0a0b0d;
}
.agent_message .img_cont_msg {
  display: flex;
  align-content: flex-end;
  align-items: flex-end;
  flex-direction: column-reverse;
  margin-right: -5px;
  z-index: 2;
  margin-bottom: -2px;
}
.agent_message .img_cont_msg img {
  height: 40px;
  width: 40px;
  border-radius: 50% !important;
  border: 1px solid white;
}
.agent_message .msg_container {
  overflow-y: auto;
  background-color: #fff;
  position: relative;
  word-break: break-word;
  padding: 10px 10px 15px 10px;
  min-width: 200px;
  max-width: 90%;
  border-radius:5px;
}
.agent_message .msg_container ::before {
  left: -8px;
  right: auto;
  border-color: transparent #fff #fff transparent;
}
.agent_message .msg_container .msg_time {
  color: rgba(0, 0, 0, 0.45);
  font-size: 10px;
  line-height: 1;
  text-align: right;
  display: block;
}

.client_message {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  font-size: 1em;
}
.client_message .msg_container_send {
  background-color: #fff;
  position: relative;
  word-break: break-word;
  border-radius: 5px 5px 0 5px;
  padding: 10px 10px 15px 10px;
  min-width: 200px;
  max-width: 90%;
}
.client_message .msg_container_send .msg_time_send {
  color: rgba(0, 0, 0, 0.45);
  font-size: 10px;
  line-height: 1;
  text-align: right;
  display: block;
}

.chat-footer {
  display: flex;
  align-items: center;
  width: 100%;
  flex-direction: column;
  background-color: var(--webchat-primary) !important;
}
.chat-footer .webchat_action_group {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100vw;
}
.chat-footer .webchat_action_group .attachment {
  min-width: 20svw;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: center;
  background-color: var(--webchat-primary) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.5);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.chat-footer .webchat_action_group .attachment :hover {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
}
.chat-footer .webchat_action_group .attachment i {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-content: center;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  color: var(--webchat-primary-text) !important;
}
.chat-footer .webchat_action_group .sendChat {
  height: 100%;
  width: 20svw;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.chat-footer .webchat_action_group .sendChat :hover {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
}
.chat-footer .webchat_action_group .sendChat i {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-content: center;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--webchat-primary-text) !important;
}
.chat-footer .webchat_action_group .chat-content .type_msg {
  background-color: var(--webchat-input) !important;
  color: var(--webchat-input-text) !important;
  border: 0 !important;
  overflow-y: auto;
}

input, select {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px;
  box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.2), 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.5s ease;
  /*text-transform: capitalize;*/
}

input:focus {
  box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.4), 0 1px 1px rgba(255, 255, 255, 0.2);
}

#mainHeading {
  margin-top: 0 !important;
  font-size: 1.5em;
  font-weight: lighter;
  color: var(--webchat-primary-text);
}

.bot-button {
  color: #0a0b0d;
  background: #fff !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  align-items: center;
}

.user_img_msg {
  color: #ffffff;
  font-size: 40px;
  line-height: 40px;
}

.transcript-buttons {
  display: flex;
}
.transcript-buttons input {
  color: #ffffff;
}

.login-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: var(--card-body-background);
  gap: 4px !important;
}
.login-content p {
  font-size: 1em;
  border-bottom: 1px solid var(--webchat-primary-text);
  margin-top: 0;
  border-bottom: 1px solid white;
  padding: 10px 0;
}
.login-content section {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: space-between;
}
.login-content section span {
  width: 60%;
}
.login-content section select {
  width: 100%;
}

.login-button {
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: sticky;
  bottom: 0;
}
.login-button button {
  width: 80svw;
}

.department_header {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin: 10px 0;
  justify-content: center;
}

@media (max-width: 400px) and (max-height: 600px) {
  #loginPage {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
  }
  #loginPage .card {
    height: 100vh;
    border: 0;
  }
  #loginPage .card .card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    clear: both;
    border-width: 0 0 1px 0;
    border-style: solid;
    padding: 14px 20px;
    gap: 20px;
  }
  #loginPage .card .card-header img {
    height: 35px;
    width: 35px;
    margin-top: 0;
  }
  #loginPage .department_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    justify-content: center;
  }
  #loginPage input, #loginPage select {
    width: 100%;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 13px;
    color: var(--webchat-input-text);
    border-radius: 4px;
    box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.2), 0 1px 1px rgba(255, 255, 255, 0.2);
  }
  #loginPage input :focus, #loginPage select :focus {
    box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.4), 0 1px 1px rgba(255, 255, 255, 0.2);
  }
  .modal-closeit i {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 2;
  }
  .card {
    height: 100svh;
    border: 0;
  }
  .modal-content {
    background: var(--webchat-main) !important;
    height: 100%;
    border-radius: 0;
  }
  .modal-body {
    padding: 0;
  }
  .card-footer {
    padding: 5px;
  }
  .send-message-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .send-message-body textarea {
    width: 100%;
    min-height: 20vh;
  }
}
@media (min-width: 401px) {
  #loginPage {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 100svh;
  }
  #loginPage .card {
    height: 70svh;
    max-width: 600px;
  }
  #loginPage .card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    clear: both;
    border-width: 0 0 1px 0;
    border-style: solid;
    padding: 14px 20px;
    gap: 20px;
  }
  #loginPage .card-header img {
    height: 80px;
    width: 80px;
    margin-top: 0;
    position: absolute;
    top: -40px;
    left: calc(50% - 40px);
  }
  #loginPage input, #loginPage select {
    width: 100%;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 13px;
    color: var(--webchat-input-text);
    border-radius: 4px;
    box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.2), 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.5s ease;
  }
  #loginPage input :focus, #loginPage select :focus {
    box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.4), 0 1px 1px rgba(255, 255, 255, 0.2);
  }
  .department_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    justify-content: center;
  }
  .login-button {
    padding: 5px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .login-button button {
    width: 50svw;
  }
  .modal .modal-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .modal .modal-dialog .modal-content {
    max-width: 700px;
  }
  .modal .modal-dialog .modal-content .modal-body {
    padding: 0;
  }
  .modal-closeit i {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 2;
  }
  .send-message-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .send-message-body textarea {
    width: 100%;
    min-height: 20vh;
  }
}
@media (min-width: 500px) {
  #loginPage {
    padding: 10px;
  }
}
.timer-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

#countDownTimer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#ratingWindow {
  padding: 50px;
}

.scrollable-container {
  position: relative;
  width: 100%;
  overflow-y: scroll;
  max-height: 25vh;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.scrollable-content {
  gap: 5px;
  display: flex;
  flex-direction: column;
}
