/* "Ask Grace & Tallow" assistant widget — brand olive/cream, Georgia headings. */
.gt-chat {
  --gt-olive: #343b23;
  --gt-cream: #f8f5ed;
  --gt-card: #fffdf8;
  --gt-line: #dcdccd;
  --gt-muted: #676c58;
  font-family: Arial, Helvetica, sans-serif;
}
.gt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gt-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--gt-olive);
  color: #f6efda;
  font-size: 14px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px #13170d33;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.gt-chat-launcher:hover {
  background: #525a37;
  transform: translateY(-1px);
}
.gt-chat-launcher svg {
  color: #d6b46a;
}
.gt-chat.is-open .gt-chat-launcher {
  opacity: 0;
  pointer-events: none;
}
.gt-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 41;
  width: 400px;
  height: min(600px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--gt-card);
  color: #292d20;
  border: 1px solid var(--gt-line);
  box-shadow: 0 18px 50px #13170d40;
}
.gt-chat-panel[hidden] {
  display: none;
}
.gt-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 18px 20px 14px;
  background: var(--gt-olive);
  color: #f6efda;
}
.gt-chat-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #bfc6a5;
  margin-bottom: 6px;
}
.gt-chat-head h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gt-chat-close {
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  margin: -6px -8px 0 0;
  color: #f6efda;
}
.gt-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
  background: var(--gt-cream);
}
.gt-chat-intro p {
  font-size: 14px;
  color: #4f5541;
  line-height: 1.6;
}
.gt-chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.gt-chat-starters button {
  border: 1px solid #c5cbb8;
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 13px;
  background: var(--gt-card);
  text-align: left;
}
.gt-chat-starters button:hover {
  background: var(--gt-olive);
  border-color: var(--gt-olive);
  color: white;
}
.gt-msg {
  max-width: 88%;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.gt-msg-user {
  align-self: flex-end;
  background: var(--gt-olive);
  color: #fffdf8;
  white-space: pre-wrap;
}
.gt-msg-assistant {
  align-self: flex-start;
  background: var(--gt-card);
  border: 1px solid var(--gt-line);
}
.gt-msg-assistant p + p,
.gt-msg-assistant p + ul,
.gt-msg-assistant ul + p {
  margin-top: 8px;
}
.gt-msg-assistant ul {
  list-style: disc;
  padding-left: 18px;
}
.gt-msg-assistant li + li {
  margin-top: 4px;
}
.gt-msg-assistant a {
  color: #7a5d26;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gt-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.gt-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa087;
  animation: gt-bounce 1.2s infinite ease-in-out;
}
.gt-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.gt-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes gt-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.gt-chat-error {
  margin: 0 18px 8px;
  padding: 10px 12px;
  font-size: 13px;
  background: #f6e4df;
  color: #843a30;
}
.gt-chat-form {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--gt-line);
  background: var(--gt-card);
}
.gt-chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid #bfc5ae;
  background: #fffef9;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
}
.gt-chat-form textarea:focus {
  border-color: #987539;
  box-shadow: 0 0 0 3px #98753933;
}
.gt-chat-send {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--gt-olive);
  color: white;
  flex-shrink: 0;
}
.gt-chat-send:hover {
  background: #525a37;
}
.gt-chat-note {
  padding: 0 14px 12px;
  font-size: 11px;
  color: var(--gt-muted);
  background: var(--gt-card);
}
.gt-chat-reset {
  font-size: 11px;
  text-decoration: underline;
  color: var(--gt-muted);
  margin-left: 4px;
}
@media (max-width: 600px) {
  .gt-chat-long {
    display: none;
  }
  .gt-chat-launcher {
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }
  .gt-chat-panel {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    height: min(78dvh, calc(100dvh - 20px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .gt-typing i {
    animation: none;
  }
}
