/* ---------- Logos / Header ---------- */
.chat-logo {
  height: 3.5em;
  margin-left: 0.5em;
  padding: 0.3em;
  vertical-align: middle;
}

.chat-logo-large {
  height: 2em;
}

.chat-logo-large span {
  font-size: 1.8rem;
}

.chat-logo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

a.chat-cta-button {
  display: inline-block;
  margin-left: auto;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 0.8rem;
  font-size: 1.5rem;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}

.chat-cta-button span {
  padding: 1.4rem 1.6rem;
}

/* ---------- Overlay ---------- */
.chat-ui-overlay {
  position: fixed;
  inset: 0;
  background: rgba(127, 127, 127, 0.5);
  backdrop-filter: blur(2px);
  z-index: 4000;
}
.next-best-action-card .card-heading {
  font-family: "T1 Body Font Regular", arial, sans-serif;
  font-size: 1.8rem;
  color: inherit;
  line-height: 1.3em;
}
/* ---------- Main Card ---------- */
.chat-ui-card {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120rem;
  height: 70vh;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.35);
  z-index: 5000;

  font-size: 1.6rem;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  font-family: "T1 Body Font Regular", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
}
.chat-header.minimised {
  cursor: pointer;
}
.pointer {
  cursor: pointer;
}
.chat-sub-header {
  font-family: "T1 Body Font Regular", arial, sans-serif;
  font-size: 1.8rem;
  color: inherit;
  line-height: 1.3em;
  padding-left: 4rem;
}
.chat-header-actions {
  display: flex;
  gap: 1.2rem;
}

.chat-header-actions i {
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.75;
}

.chat-header-actions i:hover {
  opacity: 1;
}

.chat-main-wrapper {
  flex: 1;
}
.prompts-title {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
}

.prompt-title span {
  padding: 1rem;
  font-size: 1.4rem;
  border-radius: 999px;
  border: 1px solid #222;
}

.prompts-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1.5rem 2rem;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.6rem;
  padding: 1.6rem;
}

.prompt-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.prompt-card-panel {
  background: #f5f6f7;
  border-radius: 0.6rem;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.prompt-card-content {
  flex: 1;
  overflow-y: auto;
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  padding-right: 0.4rem;
  max-height: 20rem;
  min-height: 20rem;
  white-space: pre-line;
}

.prompt-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prompt-card-actions button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-size: 1.4rem;
  text-align: left;
  cursor: pointer;
}

.prompt-card-actions button:hover {
  background: #f0f0f0;
}

/* ---------- Chat Body ---------- */
.chat-body {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.overflow-item {
  overflow-y: auto;
}
.msg-row {
  display: flex;
  gap: 1rem;
}

.ai-msg {
  justify-content: flex-start;
}

.user-msg {
  justify-content: flex-end;
  width: 100%;
}

/* ---------- Message Bubbles ---------- */
.ai-col {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.msg-bubble {
  padding: 1rem 1.4rem;
  border-radius: 0.7rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.ai-bubble {
  background: #f6f6f6;
  border: 1px solid #ddd;
}

.user-msg .chat-bubble {
  position: relative;
  max-width: 360px;
  padding: 1rem;
  border-radius: 2rem;
  background: #000;
  color: #fff;
  font-size: 1.4rem;
  font-family: "T1 Body Font", Arial, sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  min-width: 8rem;
  min-height: 3.2rem;
  z-index: 999;
}

.user-msg .chat-bubbleX::after {
  content: "";
  position: absolute;
  top: 0.8px;
  width: 5rem;
  height: 1.6rem;
  background: #000;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 3px;
}

.badge-bottom {
  position: absolute;
  top: 8px;
  right: 0;
  width: 50px;
  height: 16px;
  background-color: #000;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 3px;
}

/* ---------- Feedback ---------- */
.ai-feedback {
  display: flex;
  gap: 0.5rem;
}

.feedback-icon {
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.95;
  padding: 0.2rem;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.feedback-icon:hover {
  transform: scale(1.12);
  filter: brightness(0.85);
}

.feedback-icon:active {
  transform: scale(0.95);
}

.thumbs-up-icon {
  color: #08b76d;
}

.thumbs-down-icon {
  color: #eb3332;
}
.thumbs-up-active {
  color: #08b76d;
  /* green */
}

.thumbs-down-active {
  color: #eb3332;
  /* red */
}
.thumbs-up-outline {
  color: #08b76d;
  /* green */
}

.thumbs-down-outline {
  color: #eb3332;
  /* red */
}

.thumbs-up-active {
  color: #08b76d;
}

.thumbs-down-active {
  color: #eb3332;
}
/* ---------- Input ---------- */
.chat-input-inline {
  padding: 1.2rem 1.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.chat-input {
  width: 100%;
  min-height: 4.8rem;
  padding: 1.2rem 4.6rem 1.2rem 1.6rem;
  border-radius: 2rem;
  border: 1px solid #ddd;
  font-size: 1.5rem;
  resize: none;
  outline: none;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ---------- Send Button ---------- */
.send-btn {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: none;
  background: #eb3332;
  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.send-btn:hover {
  filter: brightness(0.9);
}

.send-btn:active {
  transform: translateY(-50%) scale(0.92);
}
.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  text-align: center;
  gap: 1.2rem;
  color: #222;
}

.chat-welcome h2 {
  font-size: 2.4rem;
  font-weight: 600;
}

.send-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(25%) brightness(0.9);
}

.send-btn i {
  font-size: 1.6rem;
}
.chat-ui-card.minimised .chat-main-wrapper,
.chat-ui-card.minimised .chat-input-inline {
  display: none;
}

.chat-ui-card.minimised {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  transform: none;
  width: 320px;
  height: auto;
  border-radius: 8px;
}

/* ---------- Disclaimer ---------- */
.chat-disclaimer {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.4;
}

.chat-disclaimer a {
  color: #333;
  text-decoration: underline;
}

.chat-close-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(127, 127, 127, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6000;
}

.chat-close-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  z-index: 100001;
}

.chat-close-textarea {
  width: 100%;
  height: 100px;
  resize: none;
}

.chat-close-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #555;
  /* match bubble text color */
  border-radius: 50%;
  display: inline-block;
  animation: typing-wave 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.typing-indicator.typing-indicator--small {
  height: auto;
}

.typing-indicator.typing-indicator--small span {
  width: 4px;
  height: 4px;
  margin: 0 2px;
}

.typing-indicator.typing-indicator--small span {
  animation-name: typing-wave-small;
}
@keyframes typing-wave-small {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }

  20% {
    transform: translateY(-3px);
    opacity: 1;
  }

  40% {
    transform: translateY(0);
    opacity: 0.6;
  }

  100% {
    opacity: 0.4;
  }
}
@keyframes typing-wave {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }

  20% {
    transform: translateY(-6px);
    opacity: 1;
  }

  40% {
    transform: translateY(0);
    opacity: 0.6;
  }

  100% {
    opacity: 0.4;
  }
}

.prompt-card-content ul,
.msg-bubble ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

.badge-container {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 100px;
  height: 30px;
  z-index: 9999;
}
.badge-bottom {
  position: absolute;
  top: 8px;
  right: 0;
  width: 50px;
  height: 16px;
  background-color: #000;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 3px;
}
.badge-top {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 30px;
  background-color: #000;
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  z-index: 2;
  min-width: 8rem;
  max-width: 360rem;
}
.copy-icon-span {
  padding: 0.5rem;
}
.copy-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-image: url("assets/copy.svg");
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
}
.custom-overlay-modal {
  z-index: 20000 !important;
}

.custom-overlay-modal .modal-dialog {
  z-index: 20000 !important;
}

.custom-overlay-modal + .modal-backdrop {
  z-index: 19900 !important;
}
