@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

.row.row-broken {
  padding-bottom: 0;
}

.col-inside-lg {
  padding: 20px;
}

.decor-default {
  background-color: #ffffff;
  height: 80vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.no-scroll {
  background-color: #ffffff;
  height: 80vh;
  overflow-y: scroll;
  scroll-behavior: auto;
}

.chat-users h6 {
  font-size: 20px;
  margin: 0 0 20px;
}

.chat-users .user {
  position: relative;
  padding: 0 0 0 50px;
  display: block;
  cursor: pointer;
  margin: 0 0 20px;
}

.chat-users .user .avatar {
  top: 0;
  left: 0;
  
}
.chat-users .user .avatar
{
  top: 0;
  left: 0;
  
}

.chat .avatar {
  width: 40px;
  height: 40px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  /* border: 1px solid rgb(214, 26, 26); */
  background-color: #BFE6FF;
  border-radius: 50px;
  font-size: 22px;
}

.chat .user-avatar {
  width: 40px;
  height: 40px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  /* border: 1px solid rgb(214, 26, 26); */
  background-color: #FFFFFF;
  border-radius: 50px;
  font-size: 22px;
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.53);
}

.bi-person{
  color: #747475;
}

.chat .avatar .status.off {
  border: 1px solid #5a5a5a;
  background: #ffffff;
}

.chat .avatar .status.online {
  background: #4caf50;
}

.chat .avatar .status.busy {
  background: #ffc107;
}

.chat .avatar .status.offline {
  background: #ed4e6e;
}

.chat-users .user .status {
  bottom: 0;
  left: 28px;
}

.chat .avatar .status {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  position: absolute;
}

.chat-users .user .name {
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-users .user .mood {
  font: 200 14px/20px "Raleway", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*****************CHAT BODY *******************/
.chat-body h6 {
  font-size: 20px;
  margin: 0 0 20px;
}

.chat-body .answer.left {
  padding: 0 0 0 58px;
  text-align: left;
  float: left;
}

.chat-body .answer {
  position: relative;
  max-width: 600px;
  overflow: hidden;
  clear: both;
}

.chat-body .answer.left .avatar {
  left: 0;
}

.chat-body .answer .avatar {
  /* top:30px; */
}

.chat .avatar {
  width: 40px;
  height: 40px;
  position: absolute;
}

.chat .avatar img {
  display: block;
  border-radius: 20px;
  height: 100%;
}

.chat-body .answer .name {
  font-size: 14px;
  line-height: 36px;
}

#opt-chat-sidebar.opt-chat-hide-author-names .chat-body .answer .name {
  display: none;
}

.chat-body .answer.left .avatar .status {
  right: 4px;
}

.chat-body .answer .avatar .status {
  bottom: 0;
}


.chat-body .answer.cards .text {
  background: #ebebeb;
  color: #333333;
  border-radius: 8px 8px 8px 0;
}

.chat-body .answer.cards {
  max-width: 350px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.chat-body .answer .text {
  padding: 12px;
  font-size: 16px !important;
  /* line-height: 26px; */
  line-height: 1.2;
  position: relative;
}

#opt-chat-sidebar .chat-body .answer.left .text,
#opt-chat-sidebar .chat-body .answer.left .text p,
#opt-chat-sidebar .chat-body .answer.left .text li,
#opt-chat-sidebar .chat-body .answer.left .text .content,
#opt-chat-sidebar .chat-body .answer.left .text strong,
#opt-chat-sidebar .chat-body .answer.left .text ul,
#opt-chat-sidebar .chat-body .answer.left .text ol {
  color: #000F50 !important;
  font-size: 16px !important;
  font-family: "Lato" !important;
  line-height: 1.2 !important;
}

#opt-chat-sidebar .chat-body .answer .text p {
  margin: 0 0 10px;
}

#opt-chat-sidebar .chat-body .answer .text p:last-child {
  margin-bottom: 0;
}

#opt-chat-sidebar .chat-body .answer .text ul,
#opt-chat-sidebar .chat-body .answer .text ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.text p{
  margin-bottom: 10px;
  line-height: 1.2;
}

.text li {
  line-height: 1.2;
}


.chat-body .answer.left .text {
  /* background: #ebebeb; */
  background: #BFE6FF;
  color: #000F50;
  border-radius: 0px 20px 20px 20px;
  padding: 20px;
}


/* .chat-body .answer.left .text:before { */
  /* left: -30px; */
  /* border-right-color: #ebebeb; */
  /* border-right-color: #BFE6FF; */
  /* border-right-width: 12px; */
/* } */

.chat-body .answer .text:before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  border: 18px solid transparent;
  border-bottom-width: 0;
}

.chat-body .answer.left .time {
  padding-left: 12px;
  color: #333333;
  font-size: 10px;
}

.chat-body .answer .time {
  font-size: 10px;
  line-height: 36px;
  position: relative;
  padding-bottom: 1px;
}

/*RIGHT*/
.chat-body .answer.right {
  padding: 0 58px 0 0;
  text-align: right;
  float: right;
  overflow: visible;
}

.chat-body .answer.right .user-avatar {
  right: 0;
  /* top:30px; */
}

.chat-body .answer.right .user-avatar .status {
  left: 4px;
}

.chat-body .answer.right .text {
  background: #FFFFFf;
  color: #747475;
  border-radius: 20px 0 20px 20px;
  padding: 20px;
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.53);
}

/* .chat-body .answer.right .text:before {
  right: -30px;
  border-left-color: #474F51;
  border-left-width: 12px;
} */

.chat-body .answer.right .time {
  padding-right: 12px;
  color: #333333;
  font-size: 10px;
}

/**************ADD FORM ***************/
.answer-add {
  position: relative;
  margin-top: 10px;
  border-radius: 50px;
  padding-left: 5px;
  padding-right: 5px;
  background: #fff;
  border: 1px solid #181818;
}

.answer-add input {
  border: none;
  background: none;
  display: block;
  width: 100%;
  font-size: 16px;
  /* line-height: 20px; */
  padding: 0;
  color: #181818;
}

.chat input {
  -webkit-appearance: none;
  border-radius: 0;
}

.answer-add .answer-btn {
  display: block;
  cursor: pointer;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
  border: 1px solid transparent;
  background-color: transparent;
}

#opt-chat-sidebar .opt-chat-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin: 6px 12px 0;
  padding: 3px 5px 3px 12px;
  border: 1px solid #181818;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

#opt-chat-sidebar .opt-chat-composer #user_input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  height: 26px !important;
  padding: 2px 8px 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #181818;
  font: inherit;
  line-height: 22px !important;
}

#opt-chat-sidebar .opt-chat-composer-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding-left: 8px;
}

#opt-chat-sidebar .opt-chat-spinner {
  margin-right: 4px;
}

#opt-chat-sidebar .opt-chat-composer .answer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid transparent;
  background: transparent;
  text-align: center;
}

#opt-chat-sidebar .opt-chat-send-button {
  width: 32px !important;
  min-width: 32px;
  margin-left: 0 !important;
}

#opt-chat-sidebar .opt-chat-tts-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 0;
  color: #747475;
  font-size: 14px;
  line-height: 1.2;
}

#opt-chat-sidebar .opt-chat-tts-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #747475 !important;
  border-radius: 999px;
  background: #747475;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#opt-chat-sidebar .opt-chat-tts-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

#opt-chat-sidebar .opt-chat-tts-switch:checked {
  border-color: #00A9EA !important;
  background: #00A9EA;
}

#opt-chat-sidebar .opt-chat-tts-switch:checked::after {
  transform: translateX(14px);
}

#opt-chat-sidebar .opt-chat-tts-label {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.chat input::-webkit-input-placeholder {
  color: #181818;
}

.chat input:-moz-placeholder {
  /* Firefox 18- */
  color: #181818;
}

.chat input::-moz-placeholder {
  /* Firefox 19+ */
  color: #181818;
}

.chat input:-ms-input-placeholder {
  color: #181818;
}

.chat input {
  -webkit-appearance: none;
  border-radius: 0;
  padding-left: 10px;
  padding-right: 0px;
  padding-top: 10px;
  padding-bottom: 15px;
  border: unset !important;
}

.chat input:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #525a64;
}

.scrollable-element {
  scrollbar-width: thin;
  scrollbar-color: #525a64 #f1f1f1;
}

.imageContent {
  max-width: 300px;
  max-height: 300px;
}
.imageContent img {
  height: 100%;
  width: 100%;
}

.typing {
  align-items: center;
  display: flex;
  height: 17px;
}

.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #6cad96;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}

.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}

.typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color: #6cad96;
  }
  28% {
    transform: translateY(-7px);
    background-color: #9ecab9;
  }
  44% {
    transform: translateY(0px);
    background-color: #b5d9cb;
  }
}
.btn-send {
  border-radius: 30px;
  width: 60px;
  background-color: transparent;
  color: #00A9EA;
  font-size: 22px;
  transition: 0.3s ease-in-out;
}
.btn-send:hover, .btn-send:active {
  background-color: white;
  color: #00A9EA;
  border: 1px solid #00A9EA;
}

.btn-mic {
  border-radius: 30px;
  /* background-color: #474f51; */
  color: #00A9EA;
  transition: 0.3s ease-in-out;
  font-size: 22px;
}
.btn-mic:hover, .btn-mic:active {
  background-color: white;
  color: #00A9EA;
  border: 1px solid #00A9EA;
}

.btn-stop {
  border-radius: 30px;
  background-color: #474f51;
  color: white;
  transition: 0.3s ease-in-out;
}
.btn-stop:hover, .btn-stop:active {
  background-color: white;
  color: #474f51;
  border: 1px solid #474f51;
}

.btn-recording {
  border-radius: 30px;
  background-color: transparent;
  color: #00A9EA;
  transition: 0.3s ease-in-out;
}
.btn-recording.is-recording {
  background-color: #d92d20 !important;
  color: #fff;
  animation: opt-chat-recording-pulse 1s infinite;
}

#opt-chat-sidebar .btn-recording.is-recording .bi-record-circle {
  display: inline-block;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes opt-chat-recording-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(142, 102, 99, 0.55);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(217, 45, 32, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 45, 32, 0);
  }
}

.btn-settings {
  border-radius: 30px;
  background-color: #474f51;
  color: white;
  transition: 0.3s ease-in-out;
}
.btn-settings:hover, .btn-settings:active {
  background-color: white;
  color: #474f51;
  border: 1px solid #474f51;
}

.form-check-input:checked {
  background-color: #474f51 !important;
  border-color: #474f51 !important;
}

.chat .form-check-input {
  border: 1px solid #747475 !important;
}

.opt-chat-privacy-notice {
  flex-shrink: 0;
  padding: 8px 14px 0;
  color: #747475;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.opt-chat-privacy-notice a {
  color: #00A9EA;
  text-decoration: underline;
}

.disabled {
  background-color: rgba(71, 79, 81, 0.6705882353) !important;
}/*# sourceMappingURL=style.css.map */

.answer-add .btn-send.disabled,
.answer-add .btn-send.is-sending {
  background-color: transparent !important;
  color: #00A9EA;
  opacity: 0.45;
}




/* ########################################################################### */
/* ########################################################################### */
/* ########################################################################### */
/* ########################################################################### */
/* ########################################################################### */
/* ########################################################################### */
/* ricordati di togliere l'hover per il mobile */


.chat-body .answer.right .suggestion-wrapper {
  margin-right: -58px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

.chat-body .answer.right .suggestions {
  margin-right: -58px;      /* annulla il padding-right solo per questo elemento */
  text-align: right;        /* facoltativo, se vuoi che il testo stia a destra */
  font-size: 14px;
  line-height: 36px;
}

.answer.right .suggestion-wrapper button.suggestion-btn {
  background-color: #d8d8d8 !important;
  color: #474f51;
  padding: 6px 12px;
  border: none !important;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: none;
  text-align: center;
  display: inline-block;
  height: auto;
}

.suggestion-btn:hover {
  background-color: #474f51 !important;
  color: white !important;
}



.bot-icon{
height: 60%;
color: #000F50;

}



.splide__arrow.splide__arrow--prev {
  background-color: transparent !important;
}

.splide__arrow.splide__arrow--next{
  background-color: transparent !important;
}

.splide__container{
  margin-top: 20px;
}




/* Plugin-owned floating widget */
#opt-chat-sidebar.opt-chat-sidebar,
#opt-chat-sidebar.opt-chat-sidebar button,
#opt-chat-sidebar.opt-chat-sidebar input,
#opt-chat-sidebar.opt-chat-sidebar textarea,
#opt-chat-sidebar.opt-chat-sidebar select {
  font-family: "Lato" !important;
}

#opt-chat-widget {
  position: fixed;
  right: var(--opt-chat-launcher-offset, 22px);
  bottom: var(--opt-chat-launcher-bottom, 22px);
  z-index: 1000002;
}

.opt-chat-launcher {
  position: relative;
  width: 90px;
  height: 90px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

.opt-chat-launcher .opt-chat-launcher-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#opt-chat-sidebar.opt-chat-sidebar {
  position: fixed;
  right: 0;
  top: auto !important;
  bottom: 0 !important;
  width: min(396px, calc(100vw - 18px)) !important;
  min-width: 0 !important;
  max-width: 396px !important;
  height: var(--opt-chat-panel-height, 78%);
  max-height: 100vh;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  visibility: hidden;
}

#opt-chat-sidebar.opt-chat-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  border-radius: 8px 8px 0 0;
}

#opt-chat-sidebar .opt-chat-sidebar-header {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 48px;
  background: #6bb7e5;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

#opt-chat-sidebar .opt-chat-sidebar-header #opt-chat-close {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  position: absolute;
  left: 10px !important;
  right: auto !important;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 3;
}

#opt-chat-sidebar .opt-chat-sidebar-header #opt-chat-close:hover,
#opt-chat-sidebar .opt-chat-sidebar-header #opt-chat-close:focus-visible {
  background: rgba(255, 255, 255, .16);
}

#opt-chat-sidebar .opt-chat-sidebar-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--opt-chat-header-text-color, #0e295e);
  line-height: 1.2;
}

#opt-chat-sidebar .opt-chat-header-robot {
  width: 25px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--opt-chat-header-robot-color, #0e295e);
}

.opt-chat-sidebar-products {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

#opt-chat-sidebar .opt-chat-login-required {
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

#opt-chat-sidebar .opt-chat-login-required__content {
  max-width: 300px;
}

#opt-chat-sidebar .opt-chat-login-required__content p {
  margin: 0 0 18px;
  color: #343a40;
}

#opt-chat-sidebar .opt-chat-login-required__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: 4px;
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

#opt-chat-sidebar .opt-chat-login-required__button:hover,
#opt-chat-sidebar .opt-chat-login-required__button:focus {
  background: #0b5ed7;
  color: #fff;
}

#opt-chat-sidebar .opt-chat-sidebar-products > .container-fluid,
#opt-chat-sidebar .opt-chat-sidebar-products > .container-fluid > .row,
#opt-chat-sidebar .opt-chat-sidebar-products .chat {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

#opt-chat-sidebar .opt-chat-sidebar-products > .container-fluid {
  padding: 0;
}

#opt-chat-sidebar .opt-chat-sidebar-products > .container-fluid > .row {
  width: 100%;
  margin: 0;
}

#opt-chat-sidebar .opt-chat-sidebar-products .chat {
  flex-direction: column;
  padding: 8px 0 10px !important;
}

#opt-chat-sidebar .opt-chat-sidebar-products .chat-scroll.decor-default {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  margin: 0;
  overflow-y: auto;
}

.opt-chat-tip-content {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.opt-chat-tip-content::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.opt-chat-launcher:hover .opt-chat-tip-content,
.opt-chat-launcher:focus .opt-chat-tip-content,
.opt-chat-launcher:focus-visible .opt-chat-tip-content {
  opacity: 1;
}

@media (max-width: 768px) {
  .opt-chat-launcher {
    width: 80px;
    height: 80px;
    font-size: 29px;
  }

  #opt-chat-sidebar.opt-chat-sidebar {
    top: 0 !important;
    right: 0;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh;
  }

  #opt-chat-sidebar .opt-chat-sidebar-header #opt-chat-close {
    left: 10px !important;
    right: auto !important;
  }

  .opt-chat-tip-content {
    white-space: normal;
    max-width: 230px;
  }
}

@media (max-width: 480px) {
  .opt-chat-launcher {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }
}

/* Chat add-to-cart modal */
.opt-chat-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000003;
}

.opt-chat-overlay-high {
  z-index: 1000004;
}

.opt-chat-overlay-top {
  z-index: 1000005;
}

.opt-chat-modal-panel {
  background: #fff;
  max-width: 560px;
  margin: 7% auto;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  font-family: sans-serif;
  max-height: 86vh;
  overflow: auto;
}

.opt-chat-modal-title {
  margin-top: 0;
  color: #008000;
  font-size: 22px;
}

.opt-chat-title-danger {
  color: #b12a2a;
}

.opt-chat-summary-text {
  color: #444;
  font-size: 16px;
  margin-bottom: 16px;
}

.opt-chat-summary-small {
  color: #444;
  font-size: 15px;
  margin-bottom: 16px;
}

.opt-chat-feedback {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1.3;
}

.opt-chat-feedback.is-visible {
  display: flex;
}

.opt-chat-feedback.is-error {
  color: #8f1f1f;
  background: #fff1f1;
  border-color: #f1a5a5;
}

.opt-chat-feedback.is-success {
  color: #0d5a26;
  background: #eaf9ef;
  border-color: #8dd8a4;
}

.opt-chat-feedback.is-flash {
  animation: opt-chat-feedback-pop 240ms ease-out;
}

.opt-chat-feedback-icon {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.08);
}

.opt-chat-feedback-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.opt-chat-feedback-message {
  font-size: 13px;
  font-weight: 600;
}

@keyframes opt-chat-feedback-pop {
  0% {
    transform: scale(0.97);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.opt-chat-products-view {
  margin-bottom: 18px;
}

.opt-chat-btn {
  padding: 12px 30px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  width: 100%;
}

.opt-chat-btn-green {
  background: #1f7a1f;
  color: #fff;
  margin-bottom: 16px;
}

.opt-chat-btn-dark {
  background: #000;
  color: #fff;
}

.opt-chat-alt-text {
  color: #444;
  font-size: 12px;
  margin-bottom: 5px;
}

.opt-chat-processing-panel {
  background: #fff;
  max-width: 420px;
  margin: 18% auto;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
  position: relative;
}

.opt-chat-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #ddd;
  border-top-color: #111;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: opt-chat-spin 0.8s linear infinite;
}

.opt-chat-processing-title {
  margin: 0 0 8px;
  color: #111;
  font-size: 20px;
}

.opt-chat-processing-text {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.opt-chat-unavailable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.opt-chat-product-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.opt-chat-product-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 10px;
}

.opt-chat-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  min-height: 38px;
}

.opt-chat-product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.opt-chat-qty-dropup {
  position: relative;
  width: 118px;
}

.opt-chat-qty-trigger {
  width: 100%;
  height: 42px;
  border: 1px solid #d9e3ea;
  border-radius: 10px;
  background: #fff;
  color: #15232d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.opt-chat-qty-trigger:hover,
.opt-chat-qty-trigger:focus {
  border-color: #99c9dd;
  box-shadow: 0 0 0 3px rgba(0, 182, 237, 0.12);
  outline: none;
}

.opt-chat-qty-caret {
  width: 8px;
  height: 8px;
  border-left: 2px solid #5f707b;
  border-bottom: 2px solid #5f707b;
  transform: rotate(-45deg);
  margin-top: -3px;
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.opt-chat-qty-dropup.is-open .opt-chat-qty-caret {
  transform: rotate(135deg);
  margin-top: 3px;
}

.opt-chat-qty-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  display: none;
  background: #fff;
  border: 1px solid #e2ebf0;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(17, 36, 49, 0.18);
  padding: 8px;
  z-index: 3;
}

.opt-chat-qty-dropup.is-open .opt-chat-qty-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.opt-chat-qty-option {
  border: 1px solid #dde8ee;
  border-radius: 8px;
  background: #fff;
  color: #2b3f4c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 6px;
  transition: all 0.16s ease;
}

.opt-chat-qty-option:hover,
.opt-chat-qty-option:focus,
.opt-chat-qty-option.is-active {
  border-color: #8fc8dd;
  color: #0f4f66;
  background: #f5fbff;
  outline: none;
}

.opt-chat-qty-dropup.is-disabled .opt-chat-qty-trigger,
.opt-chat-qty-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.opt-add-single-available {
  cursor: pointer;
  background: none !important;
  color: #00b6ed;
}

.opt-add-single {
  height: 42px;
  min-width: 0;
}

/* Strong modal-scoped override against theme global button selectors */
#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-trigger,
#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-option,
#add-to-chart-modal .opt-chat-product-actions .opt-add-single-available {
  background: #fff !important;
}

#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-trigger {
  border: 1px solid #d9e3ea !important;
  color: #15232d !important;
}

#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-option {
  border: 1px solid #dde8ee !important;
  color: #2b3f4c !important;
}

#add-to-chart-modal .opt-chat-product-actions .opt-add-single-available {
  border: 1px solid #d7e8ef !important;
  color: #0097c6 !important;
}

#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-option:hover,
#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-option:focus,
#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-option.is-active,
#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-trigger:hover,
#add-to-chart-modal .opt-chat-product-actions .opt-chat-qty-trigger:focus,
#add-to-chart-modal .opt-chat-product-actions .opt-add-single-available:hover,
#add-to-chart-modal .opt-chat-product-actions .opt-add-single-available:focus {
  background: #fff !important;
}

#add-to-chart-modal #add-to-chart-close-modal.opt-chat-btn.opt-chat-btn-dark,
#add-to-chart-modal #add-to-chart-close-modal.opt-chat-btn.opt-chat-btn-dark:hover,
#add-to-chart-modal #add-to-chart-close-modal.opt-chat-btn.opt-chat-btn-dark:focus,
#add-to-chart-modal #add-to-chart-close-modal.opt-chat-btn.opt-chat-btn-dark:active {
  background: #D6D6D6 !important;
  color: #333333 !important;
  border: none !important;
}

#add-to-cart-processing-modal #add-to-cart-processing-close-x,
#add-to-cart-processing-modal #add-to-cart-processing-close-x:hover,
#add-to-cart-processing-modal #add-to-cart-processing-close-x:focus,
#add-to-cart-processing-modal #add-to-cart-processing-close-x:active {
  background: transparent !important;
  background-color: transparent !important;
  color: #333 !important;
  border: none !important;
  box-shadow: none !important;
}

#add-to-chart-modal #add-to-chart-close-x,
#add-to-chart-modal #add-to-chart-close-x:hover,
#add-to-chart-modal #add-to-chart-close-x:focus,
#add-to-chart-modal #add-to-chart-close-x:active,
#unavailable-products-modal #unavailable-products-close-x,
#unavailable-products-modal #unavailable-products-close-x:hover,
#unavailable-products-modal #unavailable-products-close-x:focus,
#unavailable-products-modal #unavailable-products-close-x:active {
  background: transparent !important;
  background-color: transparent !important;
  color: #333 !important;
  border: none !important;
  box-shadow: none !important;
}

.opt-add-single-unavailable {
  cursor: not-allowed;
  background: #f0f0f0 !important;
  color: #999;
  opacity: 0.7;
  border: none !important;
  box-shadow: none !important;
}

.opt-add-single-unavailable:hover,
.opt-add-single-unavailable:focus,
.opt-add-single[disabled],
.opt-add-single[disabled]:hover,
.opt-add-single[disabled]:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.opt-chat-unavailable-card {
  border: 1px solid #f0d0d0;
  border-radius: 10px;
  padding: 12px;
  background: #fff7f7;
}

.opt-chat-unavailable-image {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
}

.opt-chat-unavailable-name {
  font-size: 13px;
  font-weight: 700;
  color: #6a2323;
}

.opt-chat-muted {
  margin: 0;
  color: #666;
}

.opt-chat-splide-slide {
  padding: 4px;
}

@media (max-width: 480px) {
  .opt-chat-product-actions {
    gap: 8px;
  }

  .opt-chat-qty-dropup {
    width: 104px;
  }
}

@keyframes opt-chat-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Compact chat bubbles with the time inside the message. */
#opt-chat-sidebar .opt-chat-sidebar-products .chat-scroll.decor-default {
  padding: 12px 10px;
}

#opt-chat-sidebar .chat-body .answer {
  max-width: min(88%, 600px);
  margin-bottom: 8px;
}

#opt-chat-sidebar .chat-body .answer.cards {
  max-width: min(88%, 350px);
}

#opt-chat-sidebar .chat-body .answer.left {
  padding-left: 36px;
}

#opt-chat-sidebar .chat-body .answer.right {
  padding-right: 36px;
}

#opt-chat-sidebar .chat-body .answer .avatar,
#opt-chat-sidebar .chat-body .answer .user-avatar {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

#opt-chat-sidebar .chat-body .answer .name {
  font-size: 11px;
  line-height: 16px;
  margin-bottom: 2px;
}

#opt-chat-sidebar .chat-body .answer .text,
#opt-chat-sidebar .chat-body .answer.left .text,
#opt-chat-sidebar .chat-body .answer.right .text {
  padding: 8px 11px;
  font-size: 14px !important;
  line-height: 1.35;
  border-radius: 14px;
}

#opt-chat-sidebar .chat-body .answer .text:before {
  display: none;
}

#opt-chat-sidebar .chat-body .answer.left .text,
#opt-chat-sidebar .chat-body .answer.left .text p,
#opt-chat-sidebar .chat-body .answer.left .text li,
#opt-chat-sidebar .chat-body .answer.left .text .content,
#opt-chat-sidebar .chat-body .answer.left .text strong,
#opt-chat-sidebar .chat-body .answer.left .text ul,
#opt-chat-sidebar .chat-body .answer.left .text ol {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

#opt-chat-sidebar .chat-body .answer.left .text {
  border-top-left-radius: 4px;
}

#opt-chat-sidebar .chat-body .answer.right .text {
  border-top-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#opt-chat-sidebar .chat-body .answer .text .time {
  display: block;
  position: static;
  padding: 0;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1;
  text-align: right;
  opacity: 0.65;
}

#opt-chat-sidebar .chat-body .answer .text p,
#opt-chat-sidebar .chat-body .answer .text ul,
#opt-chat-sidebar .chat-body .answer .text ol {
  margin-bottom: 6px;
}

#opt-chat-sidebar .chat-body .answer.right .suggestion-wrapper,
#opt-chat-sidebar .chat-body .answer.right .suggestions {
  margin-right: -36px;
}

#opt-chat-sidebar .opt-chat-composer #user_input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35 !important;
}

#opt-chat-sidebar .opt-chat-composer #user_input::placeholder {
  color: #9ca6b3;
  font: inherit;
  opacity: 1;
}

#opt-chat-sidebar .opt-chat-sidebar-header .opt-chat-restart {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

#opt-chat-sidebar .opt-chat-sidebar-header .opt-chat-restart:hover,
#opt-chat-sidebar .opt-chat-sidebar-header .opt-chat-restart:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

#opt-chat-sidebar .opt-chat-sidebar-title {
  max-width: calc(100% - 80px);
}

#opt-chat-sidebar .opt-chat-sidebar-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #opt-chat-sidebar .opt-chat-sidebar-header .opt-chat-restart {
    right: 10px;
  }

  #opt-chat-sidebar .opt-chat-sidebar-title {
    max-width: calc(100% - 80px);
  }
}

#opt-chat-sidebar .opt-chat-stream-chunk,
#opt-chat-sidebar .opt-chat-stream-item,
#opt-chat-sidebar .opt-chat-stream-block {
  opacity: 0;
  transition: opacity 120ms ease-out;
}

#opt-chat-sidebar .opt-chat-stream-chunk {
  display: none;
}

#opt-chat-sidebar .opt-chat-stream-chunk.is-visible {
  display: inline;
}

#opt-chat-sidebar .opt-chat-stream-chunk.is-visible,
#opt-chat-sidebar .opt-chat-stream-item.is-visible,
#opt-chat-sidebar .opt-chat-stream-block.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #opt-chat-sidebar .opt-chat-stream-chunk,
  #opt-chat-sidebar .opt-chat-stream-item,
  #opt-chat-sidebar .opt-chat-stream-block {
    transition: none;
  }
}
