.chat-demo {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 38px;
  scroll-margin-top: 20px;
}
.shop-card {
  padding: 24px 23px;
  border: 1px solid #d5dfcf;
  background: #f1f5e9;
  border-radius: 10px;
}
.shop-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.7px;
}
.shop-card h2 {
  font:
    700 29px/1.2 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -0.7px;
  margin: 0 0 17px;
}
.shop-card > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: #53664e;
}
.shop-details {
  border-top: 1px solid #cddbc1;
  margin-top: 20px;
  padding-top: 16px;
}
.shop-details summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}
.shop-details dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  font-size: 13px;
  margin: 13px 0 17px;
}
.shop-details dd {
  margin: 0;
}
.shop-details p {
  font-size: 13px;
  line-height: 1.8;
  color: #53664e;
  margin: 0;
}
.shop-card .chat-small {
  font-size: 12px !important;
  line-height: 1.75;
  border-top: 1px solid #cddbc1;
  margin: 20px 0 0;
  padding-top: 16px;
}
.chat-window {
  background: #fff;
  border: 1px solid #cdd9c8;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 8px 25px #254b3510;
}
.chat-window > header {
  padding: 19px 22px;
  background: #fcfdf9;
  border-bottom: 1px solid #dbe4d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.assistant-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.assistant-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9f1df;
  color: #2d6848;
}
.assistant-mark svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chat-window h2 {
  font:
    700 18px/1.4 "Manrope",
    Arial,
    sans-serif;
  margin: 0 0 3px;
}
.chat-window header p {
  margin: 0;
  font-size: 12px;
}
.chat-window header > .link-button {
  font-size: 12px;
  flex-shrink: 0;
}
.chat-transcript {
  display: flex;
  flex-direction: column;
  height: 410px;
  background: #fff;
}
.chat-messages {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chat-bubble {
  max-width: 91%;
  padding: 15px 18px;
  background: #eff4e9;
  border: 1px solid #e0e8d8;
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.chat-bubble > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #4b6750;
  margin-bottom: 7px;
}
.chat-bubble p {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.chat-bubble p.chat-greeting {
  white-space: normal;
}
.chat-bubble.user {
  background: #24563f;
  border-color: #24563f;
  color: #fff;
  border-radius: 12px 12px 3px 12px;
  align-self: flex-end;
}
.chat-bubble.user > span {
  color: #d0e1d3;
}
.chat-bubble.waiting {
  background: #f5f7f0;
  color: #667361;
}
.chat-bubble.waiting p {
  font-size: 14px;
}
.chat-bubble.failed {
  border-color: #c59a81;
  opacity: 0.8;
}
.chat-starters {
  padding: 0 24px 21px;
}
.chat-starters > p {
  font-size: 12px;
  color: #63725e;
  margin: 0 0 11px;
}
.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-prompts button {
  min-height: 42px;
  padding: 9px 12px;
  background: #fafcf6;
  color: #315f42;
  border: 1px solid #c7d6bd;
  border-radius: 7px;
  font:
    500 13px/1.45 "DM Sans",
    Arial,
    sans-serif;
  cursor: pointer;
  text-align: left;
}
.chat-prompts button:hover {
  background: #eaf2e0;
  border-color: #85a36e;
}
.chat-window form {
  padding: 20px 22px 18px;
  border-top: 1px solid #dbe4d5;
  background: #fcfdf9;
}
.chat-window label {
  font-size: 14px;
  margin: 0 0 9px;
}
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 11px;
}
.chat-compose textarea {
  width: 100%;
  display: block;
  min-height: 58px;
  max-height: 180px;
  resize: none;
  overflow-y: auto;
  border: 1px solid #b5c7ac;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  margin: 0;
}
.chat-compose .button {
  min-height: 48px;
  flex-shrink: 0;
  padding-inline: 17px;
  gap: 11px;
}
.chat-compose-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  color: #63715e;
}
.chat-compose-meta p {
  margin: 0;
}
.chat-compose-meta > span {
  white-space: nowrap;
}
.keyboard-hint {
  font-size: 11px;
  color: #63715e;
  margin: 6px 0 0;
}
.chat-error {
  padding: 13px 15px;
  margin-top: 14px;
  border: 1px solid #dfc4b3;
  border-radius: 6px;
  background: #fff7f0;
}
.chat-error p {
  font-size: 13px;
  line-height: 1.7;
  color: #87472e;
  margin: 0 0 5px;
}
.chat-error .link-button {
  font-size: 13px;
  color: #87472e;
  border-color: #c49b83;
}
.reconnect {
  margin-top: 12px;
}
.chat-window button:disabled {
  opacity: 0.5;
  cursor: default;
}
.chat-window textarea:disabled {
  background: #f0f2eb;
  color: #67715f;
}
.chat-window textarea[readonly] {
  background: #fafbf6;
}
@media (pointer: coarse) {
  .keyboard-hint {
    display: none;
  }
}
@media (max-width: 850px) {
  .chat-demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-window {
    order: -1;
  }
  .shop-card {
    padding: 22px;
  }
  .shop-card h2 br {
    display: none;
  }
  .shop-card > p {
    max-width: 660px;
  }
  .shop-details dl {
    max-width: 360px;
  }
  .chat-transcript {
    height: 375px;
  }
  .chat-bubble p {
    font-size: 16px;
  }
}
@media (max-width: 500px) {
  .chat-window > header {
    padding: 17px 15px;
    gap: 10px;
  }
  .assistant-heading {
    gap: 9px;
  }
  .assistant-mark {
    width: 35px;
    height: 35px;
  }
  .assistant-mark svg {
    width: 23px;
    height: 23px;
  }
  .chat-window h2 {
    font-size: 17px;
  }
  .chat-window .connection-state {
    font-size: 11px;
  }
  .chat-window header > .link-button {
    font-size: 12px;
  }
  .chat-messages {
    padding: 18px 15px;
    gap: 16px;
  }
  .chat-bubble {
    padding: 14px;
    max-width: 95%;
  }
  .chat-starters {
    padding: 0 15px 17px;
  }
  .chat-prompts {
    display: grid;
    grid-template-columns: 1fr;
  }
  .chat-prompts button {
    font-size: 14px;
    min-height: 44px;
  }
  .chat-window form {
    padding: 18px 15px;
  }
  .chat-compose {
    gap: 9px;
  }
  .chat-compose .button {
    padding-inline: 12px;
    gap: 6px;
    font-size: 13px;
  }
  .chat-compose textarea {
    min-width: 0;
  }
  .chat-compose-meta {
    font-size: 11px;
    gap: 8px;
  }
  .chat-compose-meta p {
    max-width: 220px;
  }
  .chat-transcript {
    height: 390px;
  }
}
