@import url('./zmdi-kit.css');
/* Default font can be overridden at runtime via --mbw-font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------------
   Inline (embedded) mode – keep as-is but consume tokens
-------------------------------------------------------------------*/
.inline-widget-chat .inline-chat-layout {
  position: relative;
  width: 100%;
  display: block;
  min-height: calc(100vh - 120px);
  padding-bottom: 140px;
  box-shadow: none;
  border-radius: 0;
  transition: none;
  z-index: auto;
  font-family: var(--mbw-font), sans-serif !important;
  color: var(--mbw-text-primary);
  background: var(--mbw-surface);
}

.inline-widget-chat .inline-chat-conversation-flow {
  height: calc(100% - 64px);
  max-height: none;
  overflow-y: auto;
  border-bottom: 0;
}

.inline-widget-chat .inline-chat-input-field {
  position: relative;
  width: calc(100% - 50px);
  margin: 10px 0;
}

.inline-widget-chat .inline-chat-avatar img {
  width: 30px;
  height: 30px;
}

.inline-widget-chat .inline-message-unit {
  max-width: 90%;
}

.inline-widget-chat .inline-message-unit-agent {
  background-color: var(--mbw-secondary);
  color: var(--mbw-text-primary);
}

.inline-widget-chat .inline-message-unit-customer {
  background-color: var(--mbw-primary);
  color: var(--mbw-text-secondary);
}

.inline-widget-chat .inline-header-chat { display: none; }
.inline-widget-chat .inline-chat-avatar { display: inline-block; vertical-align: top; }
.inline-widget-chat .inline-widget-trigger-button { display: none; }
.inline-widget-chat .inline-chat-layout .chat-input-textarea { font-size: 15px; }
.inline-widget-chat .inline-chat-layout .is-typing-dot { width:6px; height: 6px }
.inline-widget-chat .inline-chat-layout .user-message-status,
.inline-widget-chat .inline-chat-layout .admin-message-status { font-size: 12px; }
.inline-widget-chat .inline-chat-layout { padding: 0; font-size: 15px;}
@keyframes inline-chatbotuifadein { from { opacity: 0; } to { opacity: 1; } }
.inline-widget-chat .inline-rating-star { animation: inline-chatbotuifadein 1s ease-in-out; }

@media only screen and (max-width: 768px) {
  .inline-widget-chat .inline-chat-layout { padding: 0; font-size: 15px;}
  .inline-widget-chat .inline-chat-input-field { width: calc(100% - 20px); }
}


/* ------------------------------------------------------------------
   Base & layout
-------------------------------------------------------------------*/
*, *:before, *:after { box-sizing: border-box; }

.widget-content { display: none; }

.widget-chat {
  z-index: 999999999;
  position: relative;
  cursor: default;
  opacity: 0;
  font-family: var(--mbw-font), sans-serif !important;
  color: var(--mbw-text-primary);
}

.widget-chat-block { opacity: 1; transition: opacity 1s linear; }

ul li { list-style: none !important; }

/* Launcher container */
.widget-chatbot {
  bottom: 16px;
  position: fixed;
  margin: 0;
  right: 0;
  z-index: 998;
}

/* Support left positioning (applied by runtime according to settings.position) */
.widget-chatbot.position-left { left: 16px; right: auto; }

/* ------------------------------------------------------------------
   Floating action button (FAB) + icons
-------------------------------------------------------------------*/
.widget-chat-convers {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  color: var(--mbw-text-secondary);
  margin: 25px auto 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: all .1s ease-in-out;
  position: relative;
  z-index: 998;
  overflow: hidden;
  background: var(--mbw-primary);
  box-shadow: none !important;
}
.widget-chat-convers > i {
  font-size: 32px;
  line-height: 60px;
  transition: all .2s ease-in-out;
}
.widget-chat-convers:not(:last-child) { width: 0; height: 0; margin: 20px auto 0; opacity: 0; display:none; line-height: 40px; }
.widget-chat-convers:not(:last-child) > i { font-size: 1.4em; line-height: 40px; }
.widget-chat-convers:not(:last-child).is-visible { width: 40px; height: 40px; margin: 15px auto 10; opacity: 1; display:block; }
.widget-chat-convers:nth-last-child(1) { transition-delay: 25ms; }
.widget-chat-convers:not(:last-child):nth-last-child(2) { transition-delay: 20ms; }
.widget-chat-convers:not(:last-child):nth-last-child(3) { transition-delay: 40ms; }
.widget-chat-convers:not(:last-child):nth-last-child(4) { transition-delay: 60ms; }
.widget-chat-convers:not(:last-child):nth-last-child(5) { transition-delay: 80ms; }

/* ------------------------------------------------------------------
   Chat panel
-------------------------------------------------------------------*/
.chat-layout {
  position: fixed;
  right: 0;
  bottom: 90px;
  width: 400px;
  line-height: 19px;
  font-size: 15px;
  font-family: var(--mbw-font), sans-serif !important;
  display: none;
  box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  transition: all .2s ease-in-out;
  background: var(--mbw-surface);
  color: var(--mbw-text-primary);
}
/* Left alignment companion for .widget-chatbot.position-left */
.chat-layout.position-left { left: 16px; right: auto; }

.chat-layout-screen { position: fixed; right: 0; bottom: 0; top: 0; }

.back { font-size: 50px !important; float: left; margin: -6px 25px 12px 14px; cursor:pointer; }

.header-chat {
  font-size: 13px;
  font-family: var(--mbw-font), sans-serif !important;
  font-weight: 500;
  color: var(--mbw-text-secondary);
  height: 59px;
  background: var(--mbw-primary);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding-top: 8px;
}

.widget-chat-block { border-top-left-radius: 0; border-top-right-radius: 0; }

.online-icon { display: block; float: right; cursor: pointer; font-size: 20px; opacity: 0.5; margin: -10px 10px; }
.online-icon i { color: #4de313; font-size: 12px; margin-right: 10px; }

.present-agent { margin-top:2px }
.agent-description { font-size: 13px !important; }
.agent-description-first-quote{ margin-right: 5px; transform: rotate(180deg); }
.agent-description-last-quote{ margin-left: 5px; }

.chat-layout.is-visible { opacity: 1; }
.chat-layout.is-visible-with-animation { opacity: 1; animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1); }

.is-hide{ opacity: 0 }

.chat-info {
  float: left;
  font-size: 15px;
  list-style: none;
  position: relative;
  height: 100%;
  width: 100%;
  margin-right: 10px;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.chat-info img {
  border-radius: 50%;
  width: 52px;
  height: 52px;
  float: left;
  margin: -5px 17px 10px 10px;
  border: 4px solid var(--mbw-primary);
  filter: brightness(0.85) /* keeps avatar ring contrast; can be tokenized later if needed */
}

.header-img .online-absolute {
    position: absolute;
    color: #4de313;
    font-size: 15px;
    z-index: 998;
    right: 11.3px;
    top: 11px;
}

.header-msg{
  background: transparent;
  font-size: 13px;
  line-height: 0px;
  opacity: 0.7;
  font-weight: bold;
  float: left;
  color: var(--mbw-text-surface);
  position: relative;
  margin: 8px 0 0 0;
  max-width: 75%;
  display: block;
  padding: 4px;
  clear: both;
  z-index: 999;
}
.header-msg-text{ margin-left: 45px; }

.admin-message-status{
  background: transparent;
  font-size: 12px;
  line-height: 0;
  opacity: 0.8;
  float: left;
  color: var(--mbw-text-surface);
  position: relative;
  margin: 6px 0 0 0;
  max-width: 75%;
  display: block;
  padding: 5px;
  clear: both;
  z-index: 999;
}
.inline-chat-layout .admin-message-status-text{ margin-left: 23px; }

.admin-message-status-text{ margin-left: 45px; }

.user-message-status{
  background: transparent;
  font-size: 12px;
  line-height: 0;
  opacity: 0.8;
  float: right;
  color: var(--mbw-text-surface);
  position: relative;
  margin: 6px 14px 0 0;
  max-width: 75%;
  display: block;
  padding: 5px;
  clear: both;
  z-index: 999;
}

/* ------------------------------------------------------------------
   Typography & inputs
-------------------------------------------------------------------*/
iframe { width:100%; }

.chat-input-textarea {
  position: relative;
  margin: 5px 0;
  width: 50%;
  font-family: var(--mbw-font), sans-serif !important;
  color: var(--mbw-text-surface);
  background: var(--mbw-surface);
  -webkit-font-smoothing: antialiased;
  border: none;
  outline: none;
  display: inline-block;
  line-height: 17px;
  height: 32px;
  resize: none;
  font-size: 14px;
  font-weight: 400;
  padding-top: 8px;
  padding-bottom: 6px;
}

.chat-input-textarea::placeholder {
  color: var(--mbw-text-surface);
  opacity: 0.5;
}

.chatbot-quick-replies{
  bottom: 0 !important;
  display: block !important;
  width: 100% !important;
  max-height: 150px !important;
  overflow: auto !important;
  padding: 0 !important;
}

.chat-input-field {
  width: 100%;
  display: inline-block;
  text-align: center;
  background: var(--mbw-surface);
  border-top: 1px solid var(--mbw-surface);
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.chat-input-field-alt { bottom: 0; position: absolute; z-index: 999; }

.chat-input-field a { display: inline-block; text-align: center; }
.image-chat { max-width: 100%; }
#input-send-action { float: right; background: transparent !important; }

.chat-input-field .widget-chat-convers {
  width: 35px;
  height: 35px;
  box-shadow: none;
  margin: 5px;
}
.chat-input-field .widget-chat-convers>i {
  font-size: 1.6em;
  line-height: 35px;
  color: var(--mbw-text-surface);
  opacity: 0.5;
}
.chat-input-field .widget-chat-convers>i:hover { color: var(--mbw-primary); }

/* ------------------------------------------------------------------
   Conversation area
-------------------------------------------------------------------*/
.chat-conversation-flow {
  position: relative;
  background: var(--mbw-surface);
  max-height: 532px;
  min-height: 0;
  line-height: 19px;
  font-size: 15px;
  height: 100%;
  overflow-y: auto;
  width: 100%;
  float: right;
}

.hide-panel { display: none; }
.show-panel { display: block; }

.message-unit {
  position: relative;
  margin: 8px 0 0 0;
  max-width: 75%;
  display: block;
  padding: 10px;
  word-wrap: break-word;
  border-top-right-radius: 0.3em;
  border-bottom-left-radius: 0.3em;
  border-bottom-right-radius: 0.3em;
  border-top-left-radius: 0.3em;
  clear: both;
  z-index: 999;
}

/* Gate message bubble animation behind a runtime flag */
html[data-mbw-animate="1"] .message-unit {
  animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
}

.message-unit .chat-avatar { position: absolute; top: 0; }
.message-unit.message-unit-agent .chat-avatar { left: -45px; top: -10px; }
.message-unit .chat-avatar, .chat-avatar img{
  width: 34px;
  height: 34px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 1px 1px 7px #bbb;
}

/* Agent bubble uses secondary bg + primary text for contrast */
.message-unit.message-unit-agent {
  margin-left: 20px;
  float: left;
  background: var(--mbw-secondary);
  color: var(--mbw-text-primary);
}
/* User bubble uses primary bg + text-secondary */
.message-unit.message-unit-customer {
  margin-right: 20px;
  float: right;
  background: var(--mbw-primary);
  color: var(--mbw-text-secondary);
  border-top-right-radius: 0;
  border-bottom-left-radius: 0.3em;
  border-bottom-right-radius: 0.3em;
  border-top-left-radius: 0.3em;
}

/* Bubble pointers */
.message-unit.message-unit-agent:before {
  content: '';
  position: absolute;
  top: 0;
  left: -11.4px;
  z-index: 998;
  border-bottom: 16px solid transparent;
  border-right: 10px solid transparent;
  border-left: 8px solid transparent;
  border-right-color: var(--mbw-secondary);
}
.message-unit.message-unit-customer:after {
  content: '';
  position: absolute;
  z-index: 998;
  border-bottom: 16px solid transparent;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-left-color: var(--mbw-primary);
  right: -11.3px;
  top: 0;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { border-radius: 0; }
::-webkit-scrollbar-thumb { margin: 2px; border-radius: 10px; background: #d7d7d7; }

.is-active { transform: rotate(180deg); transition: all 1s ease-in-out; }
.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.is-float { box-shadow: 0 0 6px rgba(0, 0, 0, .16), 0 6px 12px rgba(0, 0, 0, .32); }

@-webkit-keyframes zoomIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes zoomIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@-webkit-keyframes load {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes load {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------*/
@media only screen and (max-width: 480px) {
  .chat-layout {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
  }
  .chat-input-textarea { width: 80% !important; }
  .header-chat { border-top-left-radius: 0; border-top-right-radius: 0; }
  .chat-conversation-flow { max-height: 660px; border-bottom: 130px solid transparent; }
  .outer-body-card{ transform: scale(0.9); margin-left: 0 !important; margin-right: 0 !important; text-align: left; }
  #widget-trigger-button{ display: none; }
}

@media only screen and (min-width: 480px) {
  .chat-layout {
    width: 400px;
    height: 1000px;
    right: 0;
    bottom: 90px;
    max-height: 600px;
  }
  .chat-input-textarea { width: 85% !important; }
  .header-chat { border-top-left-radius: 10px; border-top-right-radius: 10px; }
  .chat-conversation-flow { max-height: 532px; border-bottom: 130px solid transparent; }
  .outer-body-card{ transform: scale(1); margin-left: 0 !important; margin-right: 0 !important; }
}

/* Placeholders */
::-webkit-input-placeholder { color: #d7d7d7; }
:-ms-input-placeholder { color: #d7d7d7; }
::-moz-placeholder { color: #d7d7d7; }
:-moz-placeholder { color: #d7d7d7; }

/* ------------------------------------------------------------------
   Welcome description section
-------------------------------------------------------------------*/
@keyframes fade-in-right {
  from { opacity: 0; transform: translate(0,-50px); }
  to   { opacity: 1; transform: translate(0,-100px); }
}
.card-full-screen{ margin-right: 5px; }
.chat-description{
  margin-top: 140px;
  margin-bottom: -80px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
  opacity: 0;
  animation: fade-in-right ease 1.6s forwards;
}
.chat-description p{
  font-weight: bold;
  text-align: center;
  color: var(--mbw-text-surface);
  margin: 17px 5px 5px 5px;
  font-size:18px;
}
.chat-description p.agent-description{ font-weight: normal; margin-top: 5px; font-size: 15px; }
.chat-description img{
   border-radius: 75%;
   width:150px;
   height:150px;
   display: block;
   margin-left: auto;
   margin-right: auto;
   box-shadow: 1px 1px 12px #bbb;
}
.chat-description #agent-rating{ margin: 5px; margin-bottom: 0; color: var(--mbw-primary); }
.chat-description .zmdi-star{ margin-left: -4px; }

#agent-name{ font-weight: bold; }

.rating-star-1{ animation: chatbotuifadein 1s; }
.rating-star-2{ animation: chatbotuifadein 1.2s; }
.rating-star-3{ animation: chatbotuifadein 1.4s; }
.rating-star-4{ animation: chatbotuifadein 1.6s; }
.rating-star-5{ animation: chatbotuifadein 1.8s; }
@keyframes chatbotuifadein { from { opacity: 0; } to { opacity: 1; } }

a { text-decoration: none; }
a:hover, a:focus, a:active { text-decoration: none; }

/* ------------------------------------------------------------------
   Cards + buttons (kept, but themed with tokens where relevant)
-------------------------------------------------------------------*/
.outer-body-card{ max-width: 87%; margin-top: 10px; margin-bottom: 10px; }
.card-component{ min-width:295px; }

.card-footer #card-prev,
.card-footer #card-next,
.card-footer .card-fancy-button,
.card-footer .card-fancy-button:hover{ box-shadow: none; transition: none; }

.card-products a{ box-shadow: none !important; }

.card-products .card-description{ max-height: 85px; overflow: hidden; font-weight: 500; }

.is-typing-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  margin-right:1.5px;
  background: var(--mbw-text-primary);
  animation: chatbotUIWave 1.3s linear infinite;
}
.is-typing-dot:nth-child(2) { animation-delay: -1.1s; }
.is-typing-dot:nth-child(3) { animation-delay: -0.9s; }

@keyframes chatbotUIWave {
  0%, 60%, 100% { transform: initial; }
  30% { transform: translateY(-8px); }
}

.chatbot-quick-replies li { margin-right: 5px !important; }
.animate-replies{ animation: zoomIn .5s ease-in-out; }
.card-animate{ transition: all 0.1s !important; }

.card-action-button{
  position: relative;
  padding: 10px 10px;
  border-radius: 8px;
  box-shadow: none !important;
  color: var(--mbw-text-secondary) !important;
  text-decoration: none !important;
  min-width: 200px;
  margin-bottom: 5px;
}
.card-red{ background-color: var(--mbw-primary) !important; border-bottom: 5px solid #081b27 !important; }
.card-action-button:active, .card-action-button:hover{ border-bottom: 1px solid !important; }
.widget-chat-convers:active, .widget-chat-convers:hover{ color: var(--mbw-primary) !important; }
.card-red-notification{ background: red !important; }

.card-bodycard {
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--mbw-font), sans-serif !important;
  font-size: 14px;
  line-height: 1.6em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: 0.5s ease;
}

.card-btn {
  border-radius: 2px;
  padding: 8px 12px;
  color: var(--mbw-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s ease;
}

.card-component {
  max-height: 375px;
  background: var(--mbw-surface);
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

.card-products { position: relative; overflow: hidden; transition: 0.5s ease; height: 340px; }
.card-product { position: absolute; top: 0; left: 0; opacity: 0; visibility: hidden; transition: 0.5s ease; }
.card-product.card-item-active { opacity: 1; visibility: visible; }

.card-thumbnail { margin: 0 0 48px; }
.card-thumbnail img{ max-height: 166px; }

.card-title { margin: 0 0 12px; line-height: 24px; font-size: 20px; transition: 0.5s ease; }

.card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 -12px -12px;
  position:relative;
}
.card-footer #card-prev { bottom: 180px; font-size: 29px; margin-left: -29px; }
.card-footer #card-next { bottom: 180px; font-size: 29px; margin-right: -29px; }

[card-ripple] { z-index: 1; position: relative; overflow: hidden; }
[card-ripple] .card-ripple {
  position: absolute;
  background: var(--mbw-surface);
  width: 60px;
  height: 60px;
  border-radius: 100%;
  transform: scale(0);
  animation: ripple 2s;
}
@keyframes ripple {
  0% { transform: scale(0); opacity: 0.2; }
  100% { transform: scale(20); opacity: 0; }
}

.zmdi-comment-outline:before { content: '\f261' !important; }
.zmdi-close:before { content: '\f136' !important; }

/* ------------------------------------------------------------------
   Trigger button & short text
-------------------------------------------------------------------*/
#widget-trigger-button {
  overflow: hidden;
  z-index: 2147483647 !important;
  margin: 0;
  outline: 0;
  position: fixed;
  width: 86px;
  height: 200px;
  cursor: default;
  bottom: calc(4% - 24px);
  right: 0;
  transition-property: top, bottom, left, right;
  transition-duration: .5s;
  font-family: var(--mbw-font), sans-serif !important;
}

/* Left positioning */
#widget-trigger-button.position-left { left: 0; right: auto; }
#widget-trigger-button.position-widget { right: 0; }

#widget-trigger-button .trigger-text {
  display: none;
  float: left;
  margin: 12px;
  padding: 12px 15px;
  width: 146px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  background-color: var(--mbw-text-secondary);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .3);
  color: #555;
  border-radius: 5px;
  bottom: 80px;
  position: absolute;
  right: 0;
  line-height: 20px;
  font-weight: 400;
  word-wrap: break-word;
}
#widget-trigger-button.allow-trigger-text { width: 185px; }
#widget-trigger-button.allow-trigger-text .trigger-text,
#widget-trigger-button.unread-notification .unread-notfication-count { display: block }

#widget-trigger-button .trigger-text .trigger-text-triangle {
  content: "";
  width: 1px;
  height: 1px;
  position: absolute;
  bottom: -7px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  right: 27px;
  border-top: 7px solid var(--mbw-surface);
}

#widget-trigger-button .conversation-trigger {
  margin: 12px;
  width: 62px;
  height: 62px;
  cursor: pointer;
  border-radius: 31px;
  background-color: var(--mbw-primary);
  overflow: hidden;
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, .9);
  position: absolute;
  right: 0;
  bottom: 0;
}
#widget-trigger-button.position-left .conversation-trigger { right: auto; left: 0; }

#widget-trigger-button .conversation-trigger:hover{
  transition-timing-function:linear;
  transition-duration:200ms;
  transform:scale(1.1) translate3d(0,0,0);
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, .9);
}

#widget-trigger-button .conversation-trigger .action-image-triggered {
  width: 100%;
  height: 100%;
  display: inline;
  margin: 0;
}

#widget-trigger-button .unread-notfication-count {
  display: none;
  position: absolute;
  bottom: 55px;
  color: var(--mbw-surface);
  background-color: hsl(3, 81.8%, 49.6%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 15px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--mbw-surface);
  right: 5px;
}

@keyframes message-notif-appear {
  0% { opacity: 0; transform: scale(.5); }
  100% { opacity: 1; transform: scale(1); }
}
.trigger-text, .unread-notfication-count { animation: message-notif-appear .25s ease!important; }

#widget-trigger-button .trigger-text .trigger-text-close {
  display: none;
  background: white;
  border-radius: 50%;
  position: absolute;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 5px;
  top: -15px;
  left: -15px;
  width: 25px;
  height: 25px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .3);
  transition: 0.1s linear;
}
#widget-trigger-button.pop_left .trigger-text .trigger-text-close { right: -15px; left: auto; }
#widget-trigger-button .trigger-text .trigger-text-close svg path { fill: #555; }
#widget-trigger-button .trigger-text:hover .trigger-text-close { display: block }
.trigger-text-close:hover { transform: scale(1.15) rotate(90deg); }

.close-icon-svg{
  font-size: 37px;
  line-height: 50px;
  margin-top: 5px;
  margin-left: 20px;
  margin-right: 10px;
  color: var(--mbw-text-secondary);
}

@media (max-width: 480px) {
  #widget-trigger-button .trigger-text { display: none }
  #widget-trigger-button .trigger-text .trigger-text-close { display: block }
}

/* ------------------------------------------------------------------
   Cards carousel & FAQ (kept original styles; themed where relevant)
-------------------------------------------------------------------*/
/* (The rest of the file below remains mostly the same but inherits tokens) */

.cards-response-wrapper {
  position: relative;
  user-select: none;
}

/* 
   1) If you DO have a .cards-navigation overlay wrapper, this centers arrows vertically.
   2) Your current HTML shows arrows are DIRECT children of .cards-response-wrapper (no .cards-navigation),
      so a fallback selector is included below to handle that case too.
*/
.cards-response-wrapper .cards-navigation {
  position: absolute;
  top: 0;
  bottom: 0;           /* ensures full height overlay */
  left: 0;
  right: 0;
  display: flex;
  padding: 0;
  align-items: center; /* vertical center */
  pointer-events: none;
}

.cards-response-wrapper .cards-response {
  display: flex;
  overflow: hidden;
}

.cards-response-wrapper .cards-response .spacer {
  flex-shrink: 0;
  content: "";
  width: 20px; 
}

.cards-response-wrapper .cards-response .card:not(:last-child) {
  margin-right: 10px;
}

.cards-response-wrapper .cards-response .card {
  transition: opacity .3s;
}

.cards-response-wrapper .cards-response .card:not(.visible) {
  opacity: .6;
}

.rich-content-card-response {
  width: 200px;                
  border-radius: 9px;         
  border: 1px solid;
  overflow: hidden;
  background: var(--mbw-surface);
}

.rich-content-card-response .rich-content-card-response-image {
  height: 120px; 
}

.lazy-img[data-status=loaded][data-cover=true] {
  height: 100%;
  width: 100%;
}

.lazy-img[data-status=loaded][data-cover=true] img.lazy-img-loaded {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.lazy-img img.lazy-img-loaded {
  display: block;
  background: transparent !important;
  max-width: 100%;
  cursor: pointer;
}

.rich-content-card-response .rich-content-card-response-content {
  display: flex;
  flex-direction: column;
  padding: 0 14px 16px;
}

.rich-content-card-response .rich-content-card-response-content .rich-content-card-response-title {
  font-size: 13px; 
  line-height: 18px; 
  font-weight: 700;
  word-wrap: break-word;
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}

.rich-content-card-response .rich-content-card-response-content .rich-content-card-response-description {
  font-size: 11px;
  line-height: 16px;
  word-wrap: break-word;
  margin-top: 4px;
  font-weight: 500;
}

.tpl-response-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.tpl-response-buttons .tpl-response-buttons-button {
  font-weight: 600;
  display: flex;
  height: 38px;
  border-top: 1px solid;
  align-items: center;
  padding: 0 8px;
  transition: all .3s;
  cursor: pointer;
}

.tpl-response-buttons .tpl-response-buttons-button .tpl-response-buttons-button-text {
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
  font-size: 12px;
  color: var(--mbw-primary);
}

/* Keep your existing next/prev offsets for the .cards-navigation structure */
.cards-response-wrapper .cards-navigation .arrow[data-direction=next] {
  margin-left: auto;
  margin-right: -22px;
}
.cards-response-wrapper .cards-navigation .arrow[data-direction=prev] {
  display: none;
  margin-left: -22px;
}

.cards-response-wrapper .cards-navigation .arrow {
  z-index: 2;
  pointer-events: all;
  width: 34px;
  height: 34px;
  display: flex;
  border-radius: 100%;
  box-shadow: 0 0 6px 0 rgba(0,0,0,.34);
  margin-bottom: 0;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  cursor: pointer;
}

.cards-response-wrapper .arrow {
  background: #fff;
  color: var(--mbw-primary);
}

.cards-response-wrapper .arrow svg path {
  fill: currentColor;
}

.cards-response-wrapper > .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: all;
  width: 34px;
  height: 34px;
  display: flex;
  border-radius: 100%;
  box-shadow: 0 0 6px 0 rgba(0,0,0,.34);
  margin-bottom: 0;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  cursor: pointer;
}

/* Match your old horizontal offsets */
.cards-response-wrapper > .arrow[data-direction="next"] {
  right: -22px;
}
.cards-response-wrapper > .arrow[data-direction="prev"] {
  left: -22px;
  display: none;
}


/* =========================================================
   Legacy quick-reply-card cards (iui="card_slide") -> ULTRA compact
   Put this at the END of the CSS file
========================================================= */

#quick-reply-card-container[iui="card_slide"] { overflow: hidden; }

#quick-reply-card-container[iui="card_slide"] .quick-reply-card-options.card-ul{
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#quick-reply-card-container[iui="card_slide"] .card-deck-wrapper{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 6px;
}

#quick-reply-card-container[iui="card_slide"] .card-deck{
  display: flex !important;
  gap: 6px;
  border-spacing: 0 !important;
  table-layout: auto !important;
}

#quick-reply-card-container[iui="card_slide"] .card.choose{
  width: 160px !important;
  min-width: 160px !important;
  border-radius: 8px !important;
  border: 1px solid rgb(219, 225, 232) !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 !important;
  cursor: pointer;
}

#quick-reply-card-container[iui="card_slide"] .card-wrapper{
  position: static !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#quick-reply-card-container[iui="card_slide"] .card-main{ height: auto !important; }

#quick-reply-card-container[iui="card_slide"] img.card-img-top{
  width: 100% !important;
  height: 92px !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 0 !important;

  color: transparent !important;
  font-size: 0 !important;
}

#quick-reply-card-container[iui="card_slide"] .card-block{
  height: auto !important;
  padding: 0 10px 10px !important;
  background: #fff !important;
  color: #000 !important;
}

#quick-reply-card-container[iui="card_slide"] .card-title{
  margin: 6px 0 0 !important;
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 700 !important;
}

#quick-reply-card-container[iui="card_slide"] .card-text{
  margin: 3px 0 0 !important;
  font-size: 10px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
}

#quick-reply-card-container[iui="card_slide"] .card-footer{
  position: static !important;
  height: 32px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  border-top: 1px solid rgb(219, 225, 232) !important;
  padding: 0 6px !important;
}

#quick-reply-card-container[iui="card_slide"] .card-footer small,
#quick-reply-card-container[iui="card_slide"] .card-footer b{
  color: var(--mbw-primary) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
