body {
  width: 100vw;
  height: 100vh;
  /* overflow: hidden; */
}

body {
  font-family: Poppins;
}

.center {
  text-align: center;
}

.space {
  margin: 10px auto;
  display: block;
}

.modal-xl {
  max-width: 40% !important;
}

div>.text-sm {
  font-size: 2.4vmin;
}

div>.text-m {
  font-size: 5vmin;
}

div>.text-lg {
  font-size: 5.2vmin;
}

.block {
  display: block;
}

/* Add a black background color to the top navigation */
.topnav {
  background: transparent linear-gradient(94deg, #8ecd97, #03ada4 100%) 0% 0% no-repeat padding-box;
  overflow: hidden;
  grid-area: nav;
  align-items: center;
  display: flex;
  justify-content: center;
  flex-direction: row;
  text-align: center;
}

.topnav-container {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* Style the links inside the navigation bar */
.topnav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  font-weight: bold;
  padding: 0.5vmin 1vmin;
  text-decoration: none;
  font-size: 2.3vmin;
}

.topnav .icon {
  display: none;
}

.shadow {
  -moz-box-shadow: inset 0 0 10px #000000;
  -webkit-box-shadow: inset 0 0 10px #000000;
  box-shadow: inset 0 0 10px #000000;
}

#page {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 6.78% 93.22%;
  grid-template-areas: "nav" "main";
}

#main {
  width: 100%;
  grid-area: main;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 20% 80%;
  grid-template-areas: "l m";
}

#left-column {
  display: grid;
  grid-area: l;
  min-width: 0;
  min-height: 0;
}

#operator-profile-page {
  grid-area: m;
  display: grid;
  grid-template-columns: 32% 68%;
  grid-template-areas: "operator graph";
}

#operator-profile {
  grid-area: operator;
  padding: 20px;
}

#operator-graph {
  grid-area: graph;
  padding: 20px;
}

#operator-chat-application-page {
  grid-area: m;
  display: grid;
  grid-template-rows: 100%;
  overflow-y: auto;
}

#im-chat-application-form label {
  font-size: 1.8vmin;
}

small {
  font-size: 1.5vmin;
}

#img-preview {
  background-color: white;
  border: 1px solid grey;
}

.ratio-1-1 {
  width: 100%;
  position: relative;
  background: url() 50% 50% no-repeat;
  background-size: cover;
  background-clip: content-box;
}

.ratio-1-1:before {
  display: block;
  content: "";
  padding-top: 100%;
}

#answer-message-page {
  grid-area: m;
  display: grid;
  grid-template-rows: 100%;
  grid-template-columns: 75% 25%;
  grid-template-areas: "main-section profile-section";
}

#right-column {
  grid-area: profile-section;
  display: grid;
  grid-template-rows: 31% 19% 50%;
  grid-template-areas: "profile" "claimed" "notes";
  text-align: center;
  background: transparent linear-gradient(227deg, #ffffff 0%, #e8e8e8 100%) 0% 0% no-repeat padding-box;
}

#right-column-profile {
  grid-area: profile;
  display: grid;
  grid-template-rows: 5% 40% 55%;
  grid-template-areas: "empty" "image" "customer";
}

#empty {
  grid-area: empty;
}

#right-column-profile-image {
  grid-area: image;
}

#right-column-profile-info {
  grid-area: customer;
}

#right-column-claimed {
  grid-area: claimed;
  display: grid;
  overflow: hidden;
  padding: 0 10px;

  grid-template-rows: 20% 20% 60%;
  grid-template-areas: "title" "message" "timer";
}

#right-column-notes {
  grid-area: notes;
  padding: 0 2rem;

  display: grid;
  grid-template-rows: 10% 55% 35%;
  grid-template-areas: "notes-title" "notes" "notes-input";
}

#right-column-notes-title {
  grid-area: notes-title;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#right-column-notes-content {
  grid-area: notes;
}

#right-column-notes-input {
  grid-area: notes-input;
}

#middle-column {
  display: grid;
  grid-area: main-section;
  grid-template-columns: 100%;
  grid-template-rows: 77% 16.6% 6.4%;
  grid-template-areas: "chat" "answer" "options";
  position: relative;
  background-color: white;
}

#middle-column-no-message {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  grid-area: main-section;
  background: white;
}

#middle-column-chat {
  overflow-y: auto;
  overflow-x: hidden;
  grid-area: chat;
  background: white;
  max-width: 100%;
}

#ans-row {
  grid-area: answer;
}

#opt-row {
  grid-area: options;
  display: flex;
  padding: 0 10px;
  background: #dedede 0% 0% no-repeat padding-box;
}

#left-column-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%) 0% 0% no-repeat padding-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

#opt-row-flex {
  padding: 0 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 70%;
  height: 100%;
}

#opt-row-flex button {
  margin: 0 0.5rem;
}

.btn-allstar {
  border-radius: 3vh;
  color: white;
  font-weight: bold;
  text-align: center;
  background-color: #32b8a6;
  font-size: 1vw;
  min-width: 9vw;
  padding: 0.25rem;
  border: none;
  white-space: normal;
}

.btn-allstar.template {
  font-weight: 300;
}

.btn-allstar.return {
  background-color: #ff4f40;
}

.btn-allstar.flag {
  background-color: #ffa740;
}

.btn-allstar.default {
  background-color: #acacac;
}

.btn-allstar.action {
  background-color: #3744ff;
}

.btn-allstar.option-selected {
  background-color: #727272;
}

.btn-load-more {
  color: #32b8a6;
  font-size: 14px;
  text-align: center;
}

/* @font-face {
    font-family: ;
    src: url(https://raw.githubusercontent.com/itfoundry//master/products/-4.003-GoogleFonts-TTF/-Regular.ttx)
} */

.container-ta-answer {
  border-top: 1px solid #e0e0e0;
  background: white;
  height: 100%;
}

.ta-answer {
  width: 100%;
  height: 100%;
  resize: none;
  border: none;
  font-size: 0.72vw;
  color: #626262;
}

.poppins {
  color: #626262;
}

#im-chat-application-title {
  font-size: 1.7vw;
  font-weight: 600;
}

.ta-answer::placeholder {
  color: #a1a1a1;
}

/* Chat */

.chat {
  height: 400px;
  padding: 0 1.2rem;
  max-width: 100% !important;
}

.chat ul {
  list-style: none;
  margin: 0;
  padding: 3rem 0 3rem 0;
  width: 100%;
  max-width: 100%;
}

.message {
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 2.5vh;
  margin-bottom: 1.2vh;
  font-size: 1.8vmin;
  width: max-content;
  max-width: 80%;
}

.message.operator {
  background: #32b8a6;
  color: #fff;
  margin-left: auto;
}

.message.operator.free {
  background-color: #cccc00;
}

.message.broadcast {
  background: #6d0e8a;
  color: #fff;
  margin-left: auto;
}

.message.template {
  background-color: #cccc00;
  color: #fff;
  margin-left: auto;
}

.message.customer {
  background: #efefef;
  color: #626262;
  margin-right: auto;
}

.message.operator.undelivered {
  background-color: #adb0b3;
}

.message.customer.preview {
  text-align: left;
}

.additional-info-text {
  text-align: left;
  color: #727272;
}

.modal-header {
  text-align: center;
  color: #727272;
  font-weight: 600;
  font-size: 1.5vw;
}

.modal-ta {
  border: none;
  resize: none;
  background: #f4f4f4;
  padding: 0.5rem;
  min-height: 30vmin;
  font-size: 1.5vmin;
  color: #626262;
}

.modal-footer {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0.5rem;
  border-top: 1px solid #e9ecef;
}

.additional-info {
  border: none;
  position: absolute;
  width: 100%;
  background-color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.clickable:hover {
  cursor: pointer;
  text-decoration: underline;
}

/* Queues */
.container-queues {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.my-queues {
  display: flex;
  flex-direction: column;
  justify-content: space-around;

  background: white;
  border-radius: 13px;
  text-align: center;
  max-width: 10vw;
  min-width: 70% !important;

  /*     max-height: 220px !important; */
}

.my-queues .refresh {
  text-align: right;
  color: #2cb3a1;
  font-size: 0.7vw;
  font-weight: 300;
}

.my-queues .refresh-img {
  height: 0.8vw;
  width: 0.8vw;
}

/* Timer */
#claim-timer-container {
  margin: 5vh auto 0 auto;
  display: flex;
  border-radius: 13px;
  background-color: white;
  justify-content: center;
  flex-direction: column;
}

#claim-timer {
  text-align: center;
  color: grey;
  font-size: 0.9vw;
  font-weight: 400;
  width: 100%;
}

#claim-timer-title {
  text-align: center;
  color: grey;
  font-size: 0.9vw;
  font-weight: 700;
  width: 100%;
}

/*  */

.edit-img {
  height: 1vw;
  width: 1vw;
  position: absolute;
  display: inline;
}

.inputName {
  text-align: center;
  background: transparent;
  width: 70%;
  border: none;
}

.inputName::placeholder {
  color: lightgrey;
}

.edit-img:hover {
  cursor: pointer;
}

.my-queues .your-queues {
  text-align: center;
  font-size: 1vw;
  letter-spacing: 0.2px;
  color: #2cb3a1;
  opacity: 1;
}

.my-queues .message-counter {
  text-align: center;
  font-size: 0.9vw;
  font-weight: bold;
  color: #727272;
  opacity: 1;
}

.my-queues .last-updated {
  text-align: center;
  font-size: 0.75vw;
  font-weight: 200;
  letter-spacing: 0.1px;
  color: #727272;
  opacity: 1;
}

#refresh:hover {
  cursor: pointer;
}

#container-profile {
  text-align: center;
}

.operator-profile-name {
  color: #2cb3a1;
  font-weight: bold;
  font-size: 2vmin;
}

.operator-profile-img {
  /* border-radius: 50%; */
  width: 10vmin;
  height: 10vmin;
  margin-bottom: 20px;
}

.circle {
  border-radius: 50%;
}

.operator-profile-stats {
  line-height: 1vh;
}

.operator-profile-stats-title {
  color: #727272;
  font-size: 1vw;
  font-weight: bold;
  letter-spacing: 0.14px;
}

.operator-profile-stat {
  font-size: 0.7vw;
  letter-spacing: 0.12px;
  color: #727272;
}

.chart-title {
  letter-spacing: 0.28px;
  color: #727272;
  font-size: 1vw;
  font-weight: bold;
  opacity: 1;
}

.customer-name {
  font-size: 1vw;
  font-weight: bold;

  color: #626262;
}

.message-type {
  font-size: 1vw;
  font-weight: 600;
  color: #2cb3a1;
}

.customer-info {
  font-size: 0.75vw;
  font-weight: 300;
  color: #626262;
}

#customerNotes div {
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
  padding: 0.3rem;
}

.notes-text {
  font-size: 0.8vw;
  font-weight: 300;
  color: #626262;
}

.customer-img {
  border-radius: 50%;
  width: 5vw;
  height: 5vw;
}

.nav-allstar a {
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.nav-icon {
  width: 20px;
  height: 15px;
}

.claimed-title {
  font-size: 0.9vw;
  font-weight: bold;
  color: #727272;
}

.claimed-text {
  font-size: 0.8vw;
  height: 1px;
  color: #727272;
}

.notes div {
  word-break: break-word;
}

.notes {
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: 100%;
  text-align: left;
  height: 1px;
}

.notes-input {
  width: 100%;
  border: none;
  border-top: 1px solid #e0e0e0;
  padding: 5px;
}

.notes-input::placeholder {
  color: #a1a1a1;
}

button:hover {
  cursor: pointer;
}

.error-title {
  color: #ff4f40;
  font-size: 1.4vmin;
  font-weight: 600;
  list-style: none;
  width: 100%;
  text-align: center;
}

.error-title.error {
  text-align: left;
}

.modal {
  border-radius: 13px;
}

.error-preview {
  text-align: left;
  background-color: #ffefef;
  line-height: 1.5vmin;
}

#modalPreviewBody {
  overflow-y: auto;
  padding: 0 1.5rem;
}

#modalPreviewBodyTitle {
  padding: 0 1.5rem;
}

.modal-title {
  font-size: 1.4vmin;
}

.close span,
.back span {
  color: rgb(0, 180, 156);
}

.modal-title {
  width: 95%;
  position: absolute;
  font-weight: bold;
  font-size: 1.7vmin;
}

.modal-content {
  border-radius: 13px;
}

.modal-header {
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.modal-bottom {
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

.modal-footer {
  padding: 0.8rem;
}

#modalTemplatePreview h6 {
  font-size: 1vw;
  overflow-y: auto;
}

.preview-body-title {
  color: #626262;
  font-size: 1.4vmin;
}

.error-preview-error {
  color: #ff4f40;
  font-size: 1.4vmin;
  font-weight: 200;
  list-style: none;
}

#character-count-container {
  position: relative;
}

#slices {
  line-height: 1.5em;
  word-break: break-word;
}

#character-count {
  position: absolute;
  /* text-align: right; */
  right: 2.7vmin;
  bottom: 0;
  font-weight: 300;
  color: #626262;
  font-size: 0.75vw;
}

.message-timestamp {
  color: grey;
  font-size: 0.7vw;
  text-align: center;
  font-weight: 700;
}

.back {
  float: left;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
}

.back:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.back:not(:disabled):not(.disabled):hover,
.back:not(:disabled):not(.disabled):focus {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

button.back {
  padding: 0;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
}

.modal-header .back {
  padding: 1rem;
  margin: -1rem auto -1rem -1rem;
}

.modal-dialog {
  max-width: 30vw;
}

.template-warning {
  color: #ff4f40;
  font-size: 1.2vmin;
}

.modal-body-title {
  color: #626262;
  font-size: 1.5vmin;
}

.modal-content {
  max-height: 80vmin;
}

.modal-body {
  overflow-y: auto;
}

.no-messages-title {
  text-align: center;
  font-size: 1.5vw;
  font-weight: bold;
  color: #727272;
  opacity: 1;
}

.no-message-info {
  text-align: center;
  font-size: 1.2vw;
  font-weight: bold;
  color: #939393;
  opacity: 1;
}

text::after,
text::before {
  box-sizing: unset;
}

canvas {
  /* padding:1em; */
}

li.load-more {
  text-align: center;
}

li.load-more button {
  color: red;
}

/* small size style */
@media screen and (max-width: 1440px) {
  #main {
    grid-template-columns: 25% 75%;
  }

  #operator-profile-page {
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    grid-template-areas: "operator" "graph";
  }

  .message {
    font-size: 1.4vw;
  }

  .my-queues {
    width: 100%;
    max-width: 100%;
  }

  .my-queues .your-queues {
    font-size: 1.4vw;
  }

  .my-queues .refresh {
    font-size: 1vw;
  }

  .my-queues .refresh-img {
    height: 1.3vw;
    width: 1.3vw;
  }

  .my-queues .message-counter {
    font-size: 1.3vw;
  }

  .my-queues .last-updated {
    font-size: 1vw;
  }

  .btn-allstar {
    font-size: 1.4vw;
    /*padding: 0em;*/
  }

  .customer-name {
    font-size: 1.5vw;
  }

  .message-type {
    font-size: 1.7vw;
  }

  .ta-answer {
    font-size: 1.2vw;
  }

  .customer-img {
    width: 5vw;
    height: 5vw;
    border-radius: 50%;
  }

  .customer-info {
    font-size: 1.2vw;
  }

  .claimed-text {
    font-size: 1.3vw;
  }

  .message-timestamp {
    font-size: 1vw;
  }

  .claimed-title {
    font-size: 1.3vw;
  }

  .notes-input {}

  #character-count {
    font-size: 1.1vw;
  }

  .modal-body-title {
    font-size: 2vmin;
  }

  .modal-ta {
    font-size: 2vmin;
  }

  .operator-profile-img {
    width: 15vmin;
    height: 15vmin;
  }

  .operator-profile-name {
    font-size: 1.8vw;
  }

  .operator-profile-stat {
    font-size: 1.2vw;
  }

  .operator-profile-stats-title {
    font-size: 1.5vw;
  }

  .chart-title {
    font-size: 1.9vw;
  }

  .topnav i {
    font-size: 3vmin;
  }

  .topnav a {
    font-size: 3vmin;
  }

  .template-warning {
    font-size: 1.1vw;
  }

  #opt-row-flex {
    padding: 0;
  }

  .error-title {
    font-size: 2.4vmin;
  }

  .additional-info-text {
    font-size: 1.3vw;
  }

  .error-preview {
    line-height: 2.6vmin;
  }

  .edit-img {
    height: 1.5vw;
    width: 1.5vw;
  }

  .error-preview-error {
    font-size: 2.1vmin;
    font-weight: 300;
  }

  .container-ta-answer {
    padding: 1rem !important;
  }

  #modalPreviewBody h6 {
    font-size: 1.5vw;
  }

  .preview-body-title {
    font-size: 1.9vmin;
  }

  .notes-text {
    font-size: 1.2vw;
  }

  .modal-title {
    font-size: 2.4vmin;
  }

  #middle-column {
    grid-template-rows: 66.6% 27% 6.4%;
  }

  #right-column {
    grid-template-rows: 2fr 0.9fr 2.2fr;
  }

  #claim-timer {
    font-size: 1.4vw !important;
    font-weight: 400 !important;
  }

  #claim-timer-title {
    font-size: 1.4vw;
  }
}

/* Loading */
.lds-ring {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 80px;
}

.lds-ring div {
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #32b8a6;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #32b8a6 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
/* ---- Live Chat Session Page ---- */
#livechat-session-page {
  grid-area: m;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}

#lcs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

#lcs-header-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #626262;
}

#lcs-end {
  font-size: 0.75rem !important;
  min-width: unset !important;
  padding: 0.3rem 0.9rem !important;
}

#lcs-tabs-bar {
  display: flex;
  align-items: flex-end;
  padding: 0.6rem 1rem 0;
  gap: 4px;
  background: #f5f5f5;
  border-bottom: 2px solid #e8e8e8;
  flex-shrink: 0;
}

.lcs-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.8rem 0.4rem 1rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #e4e4e4;
  color: #727272;
  font-size: 0.85vw;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 12vw;
  overflow: hidden;
  position: relative;
  transition: background 0.1s;
}

.lcs-tab:hover {
  background: #d8d8d8;
}

.lcs-tab.active {
  background: white;
  color: #32b8a6;
  border-color: #e8e8e8;
  border-top: 2px solid #32b8a6;
  margin-bottom: -2px;
}

.lcs-tab.unread {
  background: #ffe4bd;
  color: #a15c00;
}

.lcs-tab.unread:hover {
  background: #ffd79e;
}

.lcs-tab.unread::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffa740;
}

.lcs-tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.lcs-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 1;
}

.lcs-tab-close:hover {
  background: rgba(0,0,0,0.12);
  opacity: 1;
}

#lcs-notes-panel {
  flex-shrink: 0;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  padding: 0.5rem 1rem;
}

#lcs-notes-title {
  margin-bottom: 0.3rem;
}

#lcs-notes-list {
  max-height: 90px;
  overflow-y: auto;
  text-align: left;
}

#lcs-notes-list div {
  word-break: break-word;
  padding: 2px 0;
}

#lcs-notes-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

#lcs-notes-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8vw;
}

#lcs-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

#lcs-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  background: #e8e8e8;
}

#lcs-messages .message,
#lcs-messages .lcs-reply-quote {
  overflow-wrap: break-word;
  word-break: break-word;
}

#lcs-messages .message.customer {
  background: #fff;
  color: #626262;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  border: 1px solid #cbcbcb;
  border-radius: 30px;
}

#lcs-messages .message.operator {
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

#lcs-messages .message.system-message {
  background: #fef3c7;
  color: #92400e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lcs-msg-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2vh;
}

.lcs-msg-row .message {
  margin-bottom: 0;
}

.lcs-msg-customer {
  align-items: flex-start;
}

.lcs-msg-operator {
  align-items: flex-end;
}

.lcs-timestamp {
  font-size: 0.65rem;
  color: #aaa;
  margin-bottom: 2px;
  font-weight: normal;
}

.lcs-session-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #aaa;
  font-size: 0.7rem;
  margin: 0.8rem 0 0.4rem;
  gap: 0.5rem;
}

.lcs-session-divider::before,
.lcs-session-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e0e0e0;
}

.message.lcs-history {
  opacity: 0.6;
}

.lcs-reply-quote {
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  padding: 0.2em 0.6em;
  margin-bottom: 0.4em;
  font-size: 0.85em;
  opacity: 0.75;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcs-typing-indicator {
  padding: 0.25rem 1rem 0;
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  flex-shrink: 0;
}

.lcs-turn-hint {
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #a06400;
  background: #fff8e6;
  border-top: 1px solid #efefef;
  flex-shrink: 0;
}

.lcs-turn-hint-urgent {
  color: #fff;
  background: #ff4f40;
}

.lcs-msg-pending-reply .message.customer {
  outline: 2px solid #5b9bd5;
  outline-offset: 2px;
}

#lcs-pending-reply-banner {
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-style: italic;
  color: #3d6f96;
  background: #eef4fa;
  border-top: 1px solid #efefef;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Operator toast notifications ─────────────────────────────── */
#lc-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.lc-toast {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  max-width: 300px;
}

.lc-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.lc-toast--success { background: #32b8a6; }
.lc-toast--info    { background: #5b9bd5; }
.lc-toast--warning { background: #ffa740; }
.lc-toast--error   { background: #ff4f40; }
/* ── end toast ──────────────────────────────────────────────────── */

#lcs-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #efefef;
  background: #fafafa;
  flex-shrink: 0;
}

#lcs-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#lcs-input {
  width: 100%;
  resize: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  min-height: 2.4rem;
  max-height: 7rem;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}

#lcs-input:focus {
  outline: none;
  border-color: #32b8a6;
  box-shadow: 0 0 0 2px rgba(50, 184, 166, 0.15);
}

#lcs-char-count {
  align-self: flex-end;
  font-size: 0.72rem;
  color: #999;
  margin-top: 0.2rem;
}

#lcs-char-count.lcs-char-count-invalid {
  color: #c0392b;
}

#lcs-send {
  min-width: unset !important;
  padding: 0.45rem 1.2rem !important;
  flex-shrink: 0;
}

#lcs-send.lcs-send-blocked {
  opacity: 0.4;
  cursor: not-allowed;
}

#lcs-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #aaa;
  font-size: 1rem;
}

/* ---- Message action buttons (auto-respond / flag) ---- */

.lcs-msg-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  justify-content: flex-start;
}

.lcs-msg-operator .lcs-msg-actions {
  justify-content: flex-end;
}

.lcs-action-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  color: #888;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lcs-action-btn:hover {
  background: #f0f0f0;
  color: #444;
  border-color: #bbb;
}

.lcs-action-autorespond:hover { color: #32b8a6; border-color: #32b8a6; }
.lcs-action-flag:hover         { color: #e05260; border-color: #e05260; }

/* ---- Shared live-chat modal ---- */

.lc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lc-modal {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  width: 420px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}

.lc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.lc-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 0 4px;
}

.lc-modal-close:hover { color: #555; }

.lc-modal-label {
  padding: 10px 16px 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lc-modal-preview {
  margin: 0 16px;
  padding: 8px 12px;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #333;
  border-left: 3px solid #32b8a6;
  max-height: 80px;
  overflow-y: auto;
  word-break: break-word;
}

.lc-modal-textarea {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.88rem;
  resize: vertical;
}

.lc-modal-textarea:focus {
  outline: none;
  border-color: #32b8a6;
}

.lc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  margin-top: 12px;
}

.lc-modal-submit {
  font-size: 0.88rem;
}

/* ---- Auto-respond response list ---- */

.lcar-response-list {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.lcar-response-item {
  text-align: left;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: #333;
}

.lcar-response-item:hover {
  background: #e8f8f6;
  border-color: #32b8a6;
  color: #1a8a7a;
}

.lcar-loading {
  color: #aaa;
  font-size: 0.85rem;
  padding: 8px 0;
  display: block;
}

.lcar-status {
  font-size: 0.82rem;
  color: #e05260;
  flex: 1;
}

.slider-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  margin: 0;
  flex-shrink: 0;
}

.slider-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle-track {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-toggle-track::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.slider-toggle input:checked + .slider-toggle-track {
  background: #03ada4;
}

.slider-toggle input:checked + .slider-toggle-track::before {
  transform: translateX(22px);
}
