.page-hero--chatbots .page-hero__content {
  max-width: 38rem;
  margin: 0 auto;
}

.page-hero--chatbots h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.chatbot-page {
  padding-bottom: 2rem;
}

.chatbot-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.chatbot-intro p {
  margin: 1rem auto 0;
  color: rgba(232, 244, 255, 0.68);
  line-height: 1.7;
}

.chatbot-grid {
  display: grid;
  gap: 1.25rem;
}

.chatbot-demo-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(10, 22, 40, 0.96), rgba(7, 16, 31, 0.96));
  border: 1px solid rgba(148, 176, 204, 0.16);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.chatbot-demo-card .btn {
  min-width: 140px;
  justify-self: end;
  align-self: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.chatbot-demo-card__copy h2 {
  margin: 0.35rem 0 0.75rem;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.chatbot-demo-card__copy p {
  margin: 0 0 0.75rem;
  color: rgba(232, 244, 255, 0.72);
}

.chatbot-demo-card__copy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: rgba(232, 244, 255, 0.62);
  font-size: 0.95rem;
}

.chatbot-demo-card__copy li {
  margin: 0.3rem 0;
}

.chatbot-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}

.chatbot-drawer.is-open {
  pointer-events: auto;
}

.chatbot-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 15, 0.62);
  opacity: 0;
  transition: opacity 220ms ease;
}

.chatbot-drawer.is-open .chatbot-drawer__backdrop {
  opacity: 1;
}

.chatbot-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  height: 100%;
  background: #07111f;
  border-left: 1px solid rgba(148, 176, 204, 0.18);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.chatbot-drawer.is-open .chatbot-drawer__panel {
  transform: translateX(0);
}

.chatbot-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid rgba(148, 176, 204, 0.12);
}

.chatbot-drawer__kicker {
  margin: 0 0 0.2rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chatbot-drawer__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}

.chatbot-drawer__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #e8f4ff;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(0, 194, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.chatbot-drawer__close:hover,
.chatbot-drawer__close:focus-visible {
  border-color: var(--accent-cyan);
}

.chatbot-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.15rem;
}

.chatbot-bubble {
  max-width: 92%;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chatbot-bubble--bot {
  align-self: flex-start;
  color: rgba(232, 244, 255, 0.92);
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(148, 176, 204, 0.14);
}

.chatbot-bubble--thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 2.4rem;
}

.chatbot-bubble--thinking span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(232, 244, 255, 0.72);
  animation: chatbot-dot 1s infinite ease-in-out;
}

.chatbot-bubble--thinking span:nth-child(2) {
  animation-delay: 0.16s;
}

.chatbot-bubble--thinking span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes chatbot-dot {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chatbot-bubble--user {
  align-self: flex-end;
  color: #04101d;
  background: var(--accent-cyan);
}

.chatbot-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chatbot-choice {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  color: #e8f4ff;
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(0, 194, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
}

.chatbot-choice:hover,
.chatbot-choice:focus-visible {
  color: #fff;
  border-color: var(--accent-cyan);
}

.chatbot-choice--primary {
  background: rgba(0, 194, 255, 0.12);
}

.chatbot-menu-list {
  align-self: flex-start;
  width: 100%;
  max-width: 92%;
  padding: 0.35rem 0;
}

.chatbot-menu-dish {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(148, 176, 204, 0.12);
  border-bottom: 0;
  background: rgba(10, 22, 40, 0.95);
}

.chatbot-menu-dish:first-child {
  border-radius: 14px 14px 0 0;
}

.chatbot-menu-dish:last-child {
  border-bottom: 1px solid rgba(148, 176, 204, 0.12);
  border-radius: 0 0 14px 14px;
}

.chatbot-menu-dish:only-child {
  border-radius: 14px;
}

.chatbot-menu-dish__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
}

.chatbot-menu-dish__price {
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.chatbot-menu-dish__note {
  margin: 0.25rem 0 0;
  color: rgba(232, 244, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.4;
}

.chatbot-progress {
  color: rgba(232, 244, 255, 0.5);
  font-size: 0.75rem;
}

.chatbot-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid rgba(148, 176, 204, 0.12);
}

.chatbot-composer input {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(148, 176, 204, 0.18);
  border-radius: 12px;
  font: inherit;
}

.chatbot-composer button {
  min-height: 44px;
  padding: 0 1rem;
  color: #04101d;
  background: var(--accent-cyan);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

body.chatbot-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .chatbot-drawer__panel {
    width: 100%;
  }
}

@media (min-width: 761px) {
  .chatbot-demo-card {
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: center;
  }
}
