.itt-chatbot {
  --itt-bg: #f1f3f8;
  --itt-surface: #ffffff;
  --itt-ink: #0d1525;
  --itt-muted: #54595f;
  --itt-line: #d5d5d5;
  --itt-navy: #060633;
  --itt-blue: #3548da;
  --itt-purple: #6600d3;
  --itt-mint: #15ebae;
  --itt-soft-blue: #e8ebff;
  --itt-shadow: 0 24px 70px rgba(6, 6, 51, 0.18);
  color: var(--itt-ink);
  font-family: Inter, Roboto, Arial, sans-serif;
}

.itt-chatbot * {
  box-sizing: border-box;
}

.itt-chatbot button,
.itt-chatbot input {
  font: inherit;
}

.itt-chatbot button {
  cursor: pointer;
}

.itt-chatbot__shell {
  width: min(1120px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--itt-shadow);
}

.itt-chatbot__side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  background:
    linear-gradient(150deg, rgba(53, 72, 218, 0.95), rgba(102, 0, 211, 0.9) 48%, rgba(6, 6, 51, 0.98)),
    var(--itt-blue) !important;
  color: #ffffff !important;
}

.itt-chatbot__brand,
.itt-chatbot__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.itt-chatbot__logo,
.itt-chatbot__avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.itt-chatbot__logo img,
.itt-chatbot__avatar img {
  width: 78%;
  height: auto;
  display: block;
}

.itt-chatbot__brand p,
.itt-chatbot__header span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.itt-chatbot__brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.itt-chatbot__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.94rem;
}

.itt-chatbot__status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--itt-mint);
  box-shadow: 0 0 0 6px rgba(21, 235, 174, 0.16);
}

.itt-chatbot__features {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.itt-chatbot__features article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.itt-chatbot__features article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--itt-blue);
  font-weight: 900;
}

.itt-chatbot__features h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0;
}

.itt-chatbot__features p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
  font-size: 0.94rem;
}

.itt-chatbot__panel {
  min-height: 640px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: var(--itt-surface);
}

.itt-chatbot__header {
  min-height: 82px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--itt-line);
}

.itt-chatbot__avatar {
  width: 46px;
  height: 46px;
  background: var(--itt-soft-blue);
}

.itt-chatbot__header p {
  margin: 0 0 2px;
  color: var(--itt-ink);
  font-weight: 900;
}

.itt-chatbot__header span {
  color: var(--itt-muted);
  font-size: 0.78rem;
}

.itt-chatbot__clear,
.itt-chatbot__close {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--itt-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--itt-muted);
  font-weight: 900;
}

.itt-chatbot__clear {
  margin-left: auto;
  padding: 0 12px;
}

.itt-chatbot__close {
  display: none;
  padding: 0 11px;
}

.itt-chatbot__clear:hover,
.itt-chatbot__close:hover,
.itt-chatbot__quick-actions button:hover {
  border-color: var(--itt-blue);
  color: var(--itt-purple);
}

.itt-chatbot__messages {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(53, 72, 218, 0.05) 28px 29px);
}

.itt-chatbot__message-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.itt-chatbot__message-row--user {
  justify-content: flex-end;
}

.itt-chatbot__message-bubble {
  max-width: min(76%, 520px);
  padding: 12px 14px;
  border: 1px solid var(--itt-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--itt-ink);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.itt-chatbot__message-row--user .itt-chatbot__message-bubble {
  background: linear-gradient(135deg, var(--itt-blue), var(--itt-purple));
  border-color: var(--itt-blue);
  color: #ffffff;
}

.itt-chatbot__message-row--bot .itt-chatbot__message-bubble {
  box-shadow: 0 12px 28px rgba(6, 6, 51, 0.08);
}

.itt-chatbot__message-meta {
  display: block;
  margin-top: 7px;
  color: var(--itt-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.itt-chatbot__message-row--user .itt-chatbot__message-meta {
  color: rgba(255, 255, 255, 0.74);
}

.itt-chatbot__typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.itt-chatbot__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--itt-muted);
  animation: itt-chatbot-blink 1s infinite ease-in-out;
}

.itt-chatbot__typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.itt-chatbot__typing span:nth-child(3) {
  animation-delay: 0.28s;
}

.itt-chatbot__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 0;
  border-top: 1px solid var(--itt-line);
}

.itt-chatbot__quick-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--itt-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--itt-ink);
  font-weight: 800;
}

.itt-chatbot__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 22px 22px;
  margin: 0;
}

.itt-chatbot__composer input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--itt-line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--itt-ink);
  outline: none;
}

.itt-chatbot__composer input:focus {
  border-color: var(--itt-blue);
  box-shadow: 0 0 0 4px rgba(53, 72, 218, 0.13);
}

.itt-chatbot__composer button {
  min-width: 92px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--itt-blue);
  color: #ffffff;
  font-weight: 900;
}

.itt-chatbot__composer button:hover {
  background: var(--itt-purple);
}

.itt-chatbot__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes itt-chatbot-blink {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.itt-chatbot__launcher {
  display: none;
}

.itt-chatbot--floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  width: auto;
}

.itt-chatbot--floating:not(.itt-chatbot--closed) {
  width: min(420px, calc(100vw - 32px));
}

.itt-chatbot--floating .itt-chatbot__shell {
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 112px);
  grid-template-columns: 1fr;
}

.itt-chatbot--floating .itt-chatbot__side {
  display: none;
}

.itt-chatbot--floating .itt-chatbot__panel {
  min-height: min(640px, calc(100vh - 112px));
  max-height: calc(100vh - 112px);
}

.itt-chatbot--floating .itt-chatbot__header {
  padding: 14px 16px;
}

.itt-chatbot--floating .itt-chatbot__messages {
  padding: 16px;
}

.itt-chatbot--floating .itt-chatbot__quick-actions {
  padding: 12px 16px 0;
}

.itt-chatbot--floating .itt-chatbot__composer {
  padding: 12px 16px 16px;
}

.itt-chatbot--floating .itt-chatbot__message-bubble {
  max-width: 88%;
}

.itt-chatbot--floating .itt-chatbot__close {
  display: grid;
}

.itt-chatbot--floating.itt-chatbot--closed .itt-chatbot__shell {
  display: none;
}

.itt-chatbot--floating.itt-chatbot--closed .itt-chatbot__launcher {
  display: inline-flex;
}

.itt-chatbot--floating:not(.itt-chatbot--closed) .itt-chatbot__launcher {
  display: none;
}

.itt-chatbot__launcher {
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin-left: auto;
  padding: 10px 18px 10px 10px;
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--itt-blue), var(--itt-purple)) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 45px rgba(6, 6, 51, 0.34), 0 0 0 5px rgba(53, 72, 218, 0.12);
  font-weight: 900;
  text-decoration: none !important;
}

.itt-chatbot__launcher img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

.itt-chatbot__launcher:hover {
  filter: brightness(1.04);
}

@media (max-width: 760px) {
  .itt-chatbot__shell {
    grid-template-columns: 1fr;
  }

  .itt-chatbot__side {
    padding: 22px;
    gap: 18px;
  }

  .itt-chatbot__features {
    margin-top: 0;
  }

  .itt-chatbot__panel {
    min-height: 68vh;
  }

  .itt-chatbot__messages {
    padding: 18px;
  }

  .itt-chatbot__message-bubble {
    max-width: 88%;
  }
}

@media (max-width: 460px) {
  .itt-chatbot--floating {
    right: 12px;
    bottom: 12px;
  }

  .itt-chatbot--floating:not(.itt-chatbot--closed) {
    width: calc(100vw - 24px);
  }

  .itt-chatbot--floating .itt-chatbot__panel {
    min-height: min(620px, calc(100vh - 92px));
    max-height: calc(100vh - 92px);
  }

  .itt-chatbot__logo {
    width: 48px;
    height: 48px;
  }

  .itt-chatbot__features article {
    padding: 14px;
  }

  .itt-chatbot__header,
  .itt-chatbot__quick-actions,
  .itt-chatbot__composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .itt-chatbot__composer {
    grid-template-columns: 1fr;
  }

  .itt-chatbot__composer button {
    width: 100%;
  }
}
