.obt-chat {
  --chat-cream: #FDF8F0;
  --chat-ink: #2A2A2A;
  --chat-amber: #F19400;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  font-family: 'Montserrat', sans-serif;
}

.obt-chat-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(42, 42, 42, 0.14);
  border-radius: 8px;
  padding: 9px 16px 9px 9px;
  background: var(--chat-cream);
  color: var(--chat-ink);
  box-shadow: 0 10px 28px rgba(42, 42, 42, 0.18);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.obt-chat-launcher img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 5px;
  background: var(--chat-amber);
  object-fit: contain;
}

.obt-chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: none;
  width: min(420px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid rgba(42, 42, 42, 0.12);
  border-radius: 10px;
  background: var(--chat-cream);
  box-shadow: 0 22px 60px rgba(42, 42, 42, 0.24);
}

.obt-chat.is-open .obt-chat-panel {
  display: flex;
  flex-direction: column;
}

.obt-chat.is-open .obt-chat-launcher {
  display: none;
}

.obt-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 17px;
  background: var(--chat-ink);
  color: #fff;
}

.obt-chat-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.obt-chat-subtitle {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.obt-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.obt-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  overscroll-behavior: contain;
}

.obt-chat-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
}

.obt-chat-message p {
  margin: 0;
}

.obt-chat-message a {
  color: var(--chat-ink);
  font-weight: 600;
}

.obt-chat-message .obt-chat-action-link {
  display: inline-block;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid var(--chat-amber);
  border-radius: 3px;
  color: var(--chat-amber);
  text-decoration: none;
  font: 600 11px/1.2 'Montserrat', sans-serif;
}

.obt-chat-message-bot {
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-bottom-left-radius: 2px;
  background: #fff;
  color: var(--chat-ink);
}

.obt-chat-message-user {
  margin-left: auto;
  border-bottom-right-radius: 2px;
  background: var(--chat-amber);
  color: #fff;
}

.obt-chat-message-typing {
  color: rgba(42, 42, 42, 0.55);
  font-style: italic;
}

.obt-chat-choices,
.obt-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 18px;
}

.obt-chat-choices button {
  border: 1px solid rgba(42, 42, 42, 0.15);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: var(--chat-ink);
  cursor: pointer;
  font: 600 11px/1.25 'Montserrat', sans-serif;
  text-align: left;
}

.obt-chat-choices button:hover,
.obt-chat-choices button:focus {
  border-color: var(--chat-amber);
  color: #a45f00;
}

.obt-chat-choices button:disabled {
  cursor: default;
  opacity: 0.45;
}

.obt-chat-recommendation {
  margin: -3px 0 18px;
  padding: 16px;
  border: 1px solid rgba(42, 42, 42, 0.12);
  border-top: 3px solid var(--chat-amber);
  border-radius: 6px;
  background: #fff;
  color: var(--chat-ink);
}

.obt-chat-recommendation p,
.obt-chat-recommendation h3 {
  margin: 0;
}

.obt-chat-card-label {
  color: var(--chat-amber);
  font: 800 9px/1.2 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.obt-chat-recommendation h3 {
  margin-top: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  line-height: 1.15;
}

.obt-chat-card-meta {
  margin-top: 5px !important;
  color: rgba(42, 42, 42, 0.62);
  font-size: 11px;
}

.obt-chat-card-reason {
  margin-top: 10px !important;
  font-size: 12.5px;
  line-height: 1.5;
}

.obt-chat-recommendation a,
.obt-chat-actions a {
  display: inline-block;
  border-radius: 3px;
  padding: 9px 11px;
  text-decoration: none;
  font: 700 10.5px/1.2 'Montserrat', sans-serif;
}

.obt-chat-recommendation a {
  margin-top: 12px;
  background: var(--chat-ink);
  color: #fff;
}

.obt-chat-action-primary {
  background: var(--chat-amber);
  color: #fff;
}

.obt-chat-action-secondary {
  border: 1px solid rgba(42, 42, 42, 0.18);
  background: #fff;
  color: var(--chat-ink);
}

.obt-chat-human {
  margin: 0 20px 14px;
  padding: 14px;
  border: 1px solid rgba(42, 42, 42, 0.10);
  background: #fff;
}

.obt-chat-human p {
  margin: 0 0 9px;
  color: var(--chat-ink);
  font-size: 12px;
  font-weight: 600;
}

.obt-chat-human div {
  display: flex;
  gap: 8px;
}

.obt-chat-human a {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.obt-chat-sms {
  background: var(--chat-amber);
  color: #fff;
  border: 1px solid var(--chat-amber);
}

.obt-chat-whatsapp {
  border: 1px solid rgba(42, 42, 42, 0.16);
  color: var(--chat-ink);
}

.obt-chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 14px 16px 9px;
  border-top: 1px solid rgba(42, 42, 42, 0.10);
  background: #fff;
}

.obt-chat .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.obt-chat-form textarea {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-height: 100px;
  resize: none;
  border: 1px solid rgba(42, 42, 42, 0.14);
  border-radius: 4px;
  padding: 11px 12px;
  outline: 0;
  color: var(--chat-ink);
  font: 13px/1.4 'Montserrat', sans-serif;
}

.obt-chat-form textarea:focus {
  border-color: var(--chat-amber);
}

.obt-chat-form button {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--chat-ink);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.obt-chat-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.obt-chat-note {
  grid-column: 1 / -1;
  margin: 0 2px;
  color: rgba(42, 42, 42, 0.48);
  font-size: 9px;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .obt-chat {
    right: 14px;
    bottom: 70px;
  }

  .obt-chat-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .obt-chat-launcher span {
    display: none;
  }

  .obt-chat-launcher {
    padding: 7px;
    border-radius: 7px;
  }

  .obt-chat-launcher img {
    width: 40px;
    height: 40px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .obt-chat * {
    scroll-behavior: auto !important;
  }
}
