.cui-legal-notice {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin: 7px 14px 10px 14px;
  line-height: 16px;
  opacity: 0.85;
  padding-bottom: 5px;
  user-select: text;
}

#cui-emoji-btn {
  background: none;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
  margin: 0 2px 0 2px;
  padding: 3px 6px;
  vertical-align: middle;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#cui-emoji-btn:hover {
  opacity: 1;
}

#cui-chatbox-window,
.cui-body,
#cui-messages,
.cui-msg,
.cui-prologue,
.cui-input-area,
#cui-user-input {
  font-family: var(--cui-font-regular-family, "Roboto", Arial, sans-serif);
  font-weight: var(--cui-font-regular-weight, 300);
}

/* Bolder: strong/b/bold inside bot message */
.cui-msg.bot strong,
.cui-msg.bot b,
.cui-header,
.cui-msg-label,
.bot-label,
.me-label,
.cui-msg.bot [style*="font-weight: bold"] {
  font-family: var(
    --cui-font-bold-family,
    "Roboto",
    Arial,
    sans-serif
  ) !important;
  font-weight: var(--cui-font-bold-weight, 400) !important;
}

#cui-chatbox-container {
  position: fixed;
  z-index: 99990;
  max-width: unset;
}
.cui-bottom-right {
  bottom: 30px;
  right: 30px;
}
.cui-bottom-left {
  bottom: 30px;
  left: 30px;
}
.cui-top-right {
  top: 30px;
  right: 30px;
}
.cui-top-left {
  top: 30px;
  left: 30px;
}

#cui-chatbox-trigger {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--main-color, #0073aa);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease-in-out;
}
#cui-chatbox-trigger:hover {
  transform: scale(1.05);
}

#cui-chatbox-trigger svg {
  display: block;
}

#cui-chatbox-window {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 360px;
  max-height: 80vh;
  min-height: auto;
  background: #fff;
  border-radius: var(--border-radius, 12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, width 0.33s cubic-bezier(0.35, 0.91, 0.58, 1),
    height 0.33s cubic-bezier(0.35, 0.91, 0.58, 1), border-radius 0.33s;
  font-size: 17px;
}
#cui-chatbox-window.active {
  opacity: 1;
  pointer-events: all;
}

/* Header */
.cui-header {
  background: var(--main-color, #0073aa);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* font-weight: bold; */
  position: relative;
  gap: 0;
}
#cui-header-title {
  font-size: 1.09em;
  margin-right: 10px;
  /* font-weight: bold; */
}
.cui-header-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.cui-header-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  transition: color 0.22s;
}
.cui-header-btn:hover {
  color: #ffd700;
}

/* Message area */
.cui-body {
  padding: 12px 10px;
  background: #fafbfd;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 350px;
  /* max-height: calc(80vh - 120px); */
}
.cui-msg {
  margin-bottom: 12px;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 15px;
  line-height: 1.6;
  width: fit-content;
  justify-self: end;
}
.cui-msg.me {
  background: var(--user-msg-color, #e2ffd7);
  align-self: flex-end;
  text-align: right;
}
.cui-msg.bot {
  background: var(--system-msg-color, #eef3fa);
  align-self: flex-start;
  text-align: left;
  justify-self: start;
}
.cui-msg.cui-loader {
  background: none;
  color: #888;
}
.cui-input-area {
  display: flex;
  border-top: 1px solid #eee;
  padding: 7px;
  background: #fff;
  flex-shrink: 0;
}

#cui-suggest-area {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shortcode mode - suggest area outside chatbox window */

#cui-user-input {
  flex: 1;
  min-width: 50px;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 15px;
  margin-bottom: 0 !important;
}
#cui-send-btn {
  margin-left: 8px;
  background: var(--main-color, #0073aa);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  cursor: pointer;
  /* font-weight: bold; */
  transition: background 0.2s;
  height: fit-content;
  width: fit-content;
  place-self: center;
}

.cui-suggest-btn {
  margin: 3px 4px 0 0;
  background: #fff;
  border: 1px solid #0073aa;
  color: #0073aa;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 5px;
  text-align: left;
}
.cui-suggest-btn:hover {
  background: #0073aa;
  color: #fff;
}

.cui-msg.bot ol,
.cui-msg.bot ul {
  margin: 8px 0 8px 0px;
}
.cui-msg.bot a {
  color: #0073aa;
  text-decoration: underline;
}

.cui-msg.bot code {
  background: #f2f2f2;
  padding: 2px 4px;
  border-radius: 4px;
  /* font-family: monospace; */
}
.cui-msg.bot pre {
  background: #f6f8fa;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
}
.cui-msg.bot h1,
.cui-msg.bot h2,
.cui-msg.bot h3 {
  margin: 10px 0 5px 0;
}

.cui-bot-avatar,
.cui-bot-avatar-header,
.cui-bot-send-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

#cui-send-btn.cui-icon-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-width: unset !important;
  min-height: unset !important;
}
#cui-send-btn.cui-icon-btn img.cui-bot-send-img {
  /* same as above */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.cui-bot-avatar-header {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

#cui-chatbox-window,
.cui-body,
#cui-messages,
.cui-msg,
.cui-prologue {
  box-sizing: border-box;
}

#cui-messages {
  overflow-y: hidden;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.cui-msg,
.cui-prologue {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cui-prologue {
  padding: 0;
  background: none;
  margin-bottom: 10px;
}
.cui-prologue div p {
  margin: 0;
}

.cui-msg-label {
  /* font-weight: 600; */
  margin-right: 5px;
  display: inline;
}
.hidden {
  display: none;
}

/* ================= FULLSCREEN & OVERLAY ================ */
.cui-fullscreen-overlay {
  display: none;
  position: fixed;
  z-index: 99989;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 28, 44, 0.6);
  transition: opacity 0.33s;
  opacity: 1;
  pointer-events: all;
}
.cui-has-overlay .cui-fullscreen-overlay {
  display: block;
  opacity: 1;
}
.cui-fullscreen-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* Fullscreen mode */
#cui-chatbox-window.cui-fullscreen {
  position: fixed;
  top: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 95vh;
  min-width: unset;
  min-height: unset;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 18px;
  z-index: 99999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.33s cubic-bezier(0.35, 0.91, 0.58, 1);
  font-size: 1.18em;
}
.cui-fullscreen .cui-header,
.cui-fullscreen .cui-body,
.cui-fullscreen .cui-msg,
.cui-fullscreen #cui-user-input,
.cui-fullscreen #cui-send-btn,
.cui-fullscreen .cui-suggest-btn {
  font-size: 0.9em;
  padding: 0.9em 1.1em;
}
.cui-fullscreen .cui-suggest-btn {
  margin: 19px 19px 0 0;
}

.cui-fullscreen #cui-send-btn {
  padding: 0.6em 2em;
}
.cui-fullscreen #cui-user-input {
  padding: 0.6em 1.1em;
}

/* Fullscreen mobile: truly 100% */
@media (max-width: 600px) {
  #cui-chatbox-window {
    width: calc(100vw - 60px);
  }

  #cui-chatbox-window.cui-fullscreen {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    min-width: 0;
    min-height: 0;
  }

  .cui-fullscreen .cui-header,
  .cui-fullscreen .cui-body,
  .cui-fullscreen .cui-msg,
  .cui-fullscreen #cui-user-input,
  .cui-fullscreen #cui-send-btn,
  .cui-fullscreen .cui-suggest-btn {
    font-size: 0.7em;
    padding: 0.7em 0.9em;
  }
  .cui-fullscreen .cui-suggest-btn {
    margin: 7px 7px 0 0;
  }
  #cui-chatbox-window.cui-fullscreen .cui-header-btn svg {
    width: 20px;
    height: 20px;
  }
  .cui-fullscreen #cui-send-btn {
    padding: 0.4em 1.7em;
  }
  .cui-fullscreen #cui-user-input {
    padding: 0.4em 0.9em;
  }
}
@media (max-width: 380px) {
  #cui-chatbox-window {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 98vw; /* or 95vw, to allow for shadow */
    min-width: 0;
    max-width: 98vw;
    border-radius: 10px; /* or whatever you use */
  }
  #cui-chatbox-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }

  #cui-chatbox-window.cui-fullscreen {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    min-width: 0;
    min-height: 0;
  }
  #cui-chatbox-trigger {
    justify-self: end;
    margin: 0 5px 5px 0;
  }
}

/* Spinner: Ellipsis */
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 16px;
}
.lds-ellipsis div {
  position: absolute;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--main-color, #0073aa);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}

/* Spinner: Ring */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 32px;
  height: 32px;
  margin: 4px;
  border: 4px solid var(--main-color, #0073aa);
  border-radius: 50%;
  animation: lds-ring 1.2s linear infinite;
  border-color: var(--main-color, #0073aa) 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);
  }
}

/* Spinner: Dual Ring */
.lds-dual-ring {
  display: inline-block;
  width: 64px;
  height: 64px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 46px;
  height: 46px;
  margin: 1px;
  border-radius: 50%;
  border: 5px solid var(--main-color, #0073aa);
  border-color: var(--main-color, #0073aa) transparent
    var(--main-color, #0073aa) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.cui-clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
}
.cui-clear-btn:hover {
  background: #f0f0f0;
}
.cui-prologue-container {
  position: relative;
  padding-top: 8px;
}
.cui-header-btn {
  background: transparent;
  border: none;
  margin: 0 1px;
  padding: 0 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  transition: transform 0.13s;
}

.cui-header-btn svg:hover {
  transform: scale(1.1);
}

#cui-fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

#cui-close-chat svg {
  width: 17px;
  height: 17px;
}
#cui-newchat-btn svg {
  width: 23px;
  height: 23px;
  margin-bottom: 3px;
}
#cui-send-mail svg {
  width: 24px;
  height: 24px;
}
#cui-download-btn svg {
  width: 23px;
  height: 22px;
  margin-bottom: 3px;
}

.cui-fullscreen #cui-fullscreen-btn svg {
  width: 25px;
  height: 25px;
}
.cui-fullscreen #cui-close-chat svg {
  width: 22px;
  height: 22px;
}
.cui-fullscreen #cui-newchat-btn svg {
  width: 30px;
  height: 30px;
}
.cui-fullscreen #cui-send-mail svg {
  width: 28px;
  height: 28px;
}
.cui-fullscreen #cui-download-btn svg {
  width: 28px;
  height: 27px;
}

.cui-fullscreen .cui-header-btn {
  margin: 0 5px;
}

/* Make the SVG color always #fff (override any parent color) */
.cui-header-btn svg * {
  stroke: #fff !important;
  fill: #fff !important;
}

.cui-modal-overlay {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 36, 52, 0.47);
  opacity: 1;
  transition: opacity 0.22s;
}

.cui-modal {
  position: fixed;
  z-index: 9999999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 24px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cui-modal-title {
  font-size: 1.2em;
  /* font-weight: bold; */
  margin-bottom: 12px;
  color: #0073aa;
}

#cui-sendmail-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  font-size: 14px;
  margin-bottom: 13px;
  border: 1px solid #bbb;
  border-radius: 7px;
}

.cui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 5px;
}
.cui-modal-btn {
  background: #f3f8fa;
  border: 1px solid #0073aa;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 1em;
  cursor: pointer;
  color: #0073aa;
  transition: background 0.18s, color 0.18s;
}
.cui-modal-btn-main {
  background: #0073aa;
  color: #fff;
}
.cui-modal-btn:hover,
.cui-modal-btn-main:hover {
  filter: brightness(1.06);
  background: #005d90;
  color: #fff;
}
.cui-modal-status {
  min-height: 20px;
  font-size: 0.97em;
  margin-top: 8px;
  color: #0073aa;
  text-align: left;
}

/* EMOJI */

.wrapper {
  z-index: 999999 !important;
  width: 223px !important;
  /* bottom: 121px !important;
  right: 50% !important;
  transform: translateX(-50%) !important;
  position: fixed !important;
  inset: unset !important;
  transform: unset !important; */
}
.emoji-picker {
  font-size: 13px !important;
  width: 300px !important;
}
.emoji-picker__preview {
  height: 45px !important;
  border-top: none !important;
  background-color: #fafafa !important;
}
.emoji-picker__emoji {
  font-size: 17px !important;
  width: 10px !important;
  height: 10px !important;
}

#emoji-picker-btn {
  background-color: transparent !important;
  margin-left: 6px !important;
  font-size: 23px !important;
  cursor: pointer;
  border: none;
}
#emoji-picker-btn:hover,
#cui-send-btn:hover {
  opacity: 0.9;
}
.emoji-picker__emojis h2.emoji-picker__category-name {
  padding: 5px 0;
}

/* bot messages handles */
.cui-msg.bot {
  position: relative; /* So .cui-bot-tooltip positions relative to this! */
}

/* Already provided tooltip CSS can remain unchanged, or tweak as you like: */
.cui-bot-tooltip {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: -8px;
  left: 16px; /* Tweak for best look, or set to 0 if you want it flush left */
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  padding: 3px 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s;
  z-index: 10000;
}
.cui-msg.bot:hover .cui-bot-tooltip,
.cui-bot-tooltip:hover {
  opacity: 1;
  pointer-events: auto;
}
.cui-tooltip-icon svg {
  display: block;
  height: 18px;
  width: 18px;
}
.cui-msg.bot p {
  margin-bottom: 10px;
}
.cui-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.13s;
  margin: 0 1px;
  padding: 0;
  vertical-align: middle;
  position: relative;
}
.cui-tooltip-icon:hover {
  background: #e8f2ff; /* subtle blue highlight */
  /* Optional: add box-shadow or border if you like */
}
.cui-tooltip-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none; /* so click goes to span */
}

.cui-tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%; /* above the icon */
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  z-index: 99;
  transition: opacity 0.12s, transform 0.15s;
  visibility: hidden;
}

.cui-tooltip-icon:hover::after,
.cui-tooltip-icon:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

.cui-tooltip-icon.active svg path,
.cui-tooltip-icon.active svg * {
  fill: #000 !important;
  stroke: #000 !important;
  /* Optionally add a filter or drop-shadow for more pop */
}
.cui-tooltip-icon#cui-tooltip-dislike.active svg path,
.cui-tooltip-icon#cui-tooltip-dislike.active svg * {
  fill: #000 !important;
  stroke: #000 !important;
}
.cui-tooltip-icon {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.14s, transform 0.14s;
}
.cui-tooltip-icon:hover {
  opacity: 1;
  transform: scale(1.13);
}
.cui-tooltip-icon.active svg path {
  fill: #000 !important;
  stroke: #000 !important;
}
.cui-tooltip-icon#cui-tooltip-dislike.active svg path {
  fill: #000 !important;
  stroke: #000 !important;
}

/* ===== WELCOME BUBBLE FEATURE (NO ARROW, X ON RIGHT) ===== */
#cui-welcome-bubble,
.cui-welcome-bubble {
  position: fixed;
  right: 40px;
  bottom: 105px;
  background: #fff;
  color: #222;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(50, 50, 100, 0.1);
  border: 1.5px solid #e0e0e0;
  padding: 0;
  z-index: 9999;
  max-width: 320px;
  font-size: 1.13em;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s;
  pointer-events: auto;
  cursor: pointer;
  align-items: start;
}
.cui-welcome-bubble-inner {
  flex: 1 1 auto;
  user-select: none;
  background: #fff;
  border-radius: 16px;
  padding: 20px 10px 16px 18px;
  font-size: 1rem;
  line-height: 1.45;
  min-width: 120px;
  max-width: 250px;
  cursor: pointer;
}
.cui-welcome-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
  margin: 2px 8px 0 0px;
}
.cui-welcome-close:hover {
  color: #e04;
  opacity: 1;
}
.wp-site-blocks .cui-shortcode #cui-chatbox-window button:focus {
  outline: none !important;
  box-shadow: none !important;
}

@media screen and (max-width: 380px) {
  #cui-welcome-bubble {
    right: 20px;
    bottom: 70px;
  }
}

/* ----------------------------------------------- */
/* SHORTCODE MODEE */

/* Inline/Shortcode mode: override floating/fixed styles */
.cui-shortcode {
  position: static !important;
  z-index: auto !important;
}

.cui-shortcode #cui-chatbox-window {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  width: 80% !important;
  max-width: 100% !important;
  min-height: auto;
  max-height: 80vh;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  margin: 0 auto 28px auto;
}

.cui-shortcode #cui-chatbox-trigger,
.cui-shortcode #cui-close-chat,
.cui-shortcode .cui-header,
.cui-shortcode .cui-legal-notice {
  display: none !important;
}
.cui-shortcode #cui-chatbox-window {
  opacity: 1 !important;
}

.cui-shortcode .cui-body {
  min-height: 175px;
  max-height: calc(80vh - 120px);
  height: auto;
}

/* Style the new chat button in the input area for inline mode */
.cui-shortcode #cui-newchat-btn {
  display: inline-flex !important;
  background: var(--main-color, #0073aa);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 10px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  justify-content: center;
}

.cui-shortcode #cui-newchat-btn:hover {
  background: #005d90;
}

.cui-shortcode #cui-chatbox-window.cui-fullscreen {
  position: fixed !important;
  top: 5vh !important;
  width: 80vw !important;
  height: 90vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  z-index: 99999 !important;
  box-shadow: none !important;
  background: #fff; /* or match your chatbox background */
  display: flex !important;
  flex-direction: column;
}
.cui-shortcode .cui-fullscreen-overlay {
  display: block;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99998;
}

.cui-shortcode .cui-suggest-btn {
  border: none;
  color: black;
}
.cui-shortcode .cui-suggest-btn:hover {
  background-color: #fafafa;
  color: black;
}

.cui-shortcode .cui-input-area {
  border: none !important;
}
.cui-shortcode .cui-body,
.cui-shortcode .cui-input-area,
.cui-shortcode #cui-user-input {
  background-color: #f2f7fc;
}
.cui-shortcode .bot-label {
  display: none;
}
.cui-shortcode #cui-chatbox-window > p {
  display: none;
}
.cui-shortcode #cui-chatbox-window {
  border: #d9d9f2 solid 1.5px;
}
.cui-shortcode #cui-newchat-btn {
  background: transparent !important;
  margin-left: 0 !important;
}
.cui-shortcode .cui-header-btn svg * {
  stroke: #000000 !important;
  fill: #a3a3ba !important;
}
.cui-shortcode #cui-newchat-btn svg {
  width: 26px;
  height: 26px;
}
.cui-shortcode #cui-suggest-area {
  gap: 10px;
  margin-top: 10px;
}

@media screen and (max-width: 678px) {
  .cui-shortcode #cui-chatbox-window.cui-fullscreen {
    top: 0 !important;
    width: 100vw !important;
    border-radius: 0 !important;
    height: 100vh !important;
  }
  .cui-shortcode #cui-chatbox-window {
    /* position: fixed !important; */
    /* top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important; */
    /* border-radius: 0 !important; */
    margin: 0 !important;
    width: 100vw !important;

    z-index: 99999 !important;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    transform: none;
  }
  .cui-shortcode .cui-body {
    max-height: calc(100vh - 100px) !important; /* or fit your header/footer */
    height: auto !important;
  }
  .cui-shortcode .cui-fullscreen-overlay {
    display: block !important;
  }
}

/* Disabled button styles */
#cui-send-btn:disabled {
  background: #ccc !important;
  color: #888 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.cui-suggest-btn:disabled {
  background: #f5f5f5 !important;
  color: #aaa !important;
  border-color: #ddd !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.cui-suggest-btn:disabled:hover {
  background: #f5f5f5 !important;
  color: #aaa !important;
}

#cui-user-input:disabled {
  background: #f5f5f5 !important;
  color: #aaa !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}
