/* Giardina Atelier assistant — chat widget (prototype). All classes prefixed ga-chat. */
.ga-chat, .ga-chat * { box-sizing: border-box; }
.ga-chat {
  --gc-ink: #18150F; --gc-muted: #6E6A5D; --gc-line: #DAD5C6; --gc-panel: #EDE9DD; --gc-paper: #F4F1E8; --gc-raised: #FBF9F2;
  --gc-serif: "Fraunces", Georgia, serif; --gc-sans: "Jost", "Avenir Next", system-ui, sans-serif;
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483000;
  font-family: var(--gc-sans); font-size: 15px; line-height: 1.5; color: var(--gc-ink);
}
.ga-chat-launch {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--gc-ink); background: var(--gc-ink); color: var(--gc-paper);
  border-radius: 999px; padding: 16px 26px 16px 20px; cursor: pointer; font: inherit; font-size: 17px; letter-spacing: .02em;
  box-shadow: 0 8px 28px rgba(24,21,15,.22);
}
.ga-chat-launch:hover { background: #000; }
.ga-chat-launch .ga-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #B9C59A; box-shadow: 0 0 0 3px rgba(185,197,154,.25); }
.ga-chat.open .ga-chat-launch { display: none; }

.ga-chat-panel {
  display: none; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  background: var(--gc-raised); border: 1px solid var(--gc-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(24,21,15,.25);
}
.ga-chat.open .ga-chat-panel { display: flex; }
/* 7-nov: the site styles bare section/header/form tags on some pages; keep them out of the widget */
.ga-chat section.ga-chat-panel, .ga-chat header.ga-chat-head, .ga-chat form.ga-chat-form { margin: 0; max-width: none; min-height: 0; }
.ga-chat-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--gc-line); background: var(--gc-paper); position: relative; }
.ga-chat-eyebrow { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gc-muted); }
.ga-chat-title { font-family: var(--gc-serif); font-size: 22px; line-height: 1.2; margin-top: 2px; }
.ga-chat-title em { font-style: italic; }
.ga-chat-sub { font-size: 12.5px; color: var(--gc-muted); margin-top: 2px; }
.ga-chat-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--gc-ink); border-radius: 50%; }
.ga-chat-close:hover { background: var(--gc-panel); }

.ga-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ga-chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.ga-chat-msg.bot { align-self: flex-start; background: var(--gc-paper); border: 1px solid var(--gc-line); border-bottom-left-radius: 4px; }
.ga-chat-msg.user { align-self: flex-end; background: var(--gc-ink); color: var(--gc-paper); border-bottom-right-radius: 4px; }
.ga-chat-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ga-chat-msg strong { font-weight: 500; }
.ga-chat-msg.typing { color: var(--gc-muted); font-style: italic; }
.ga-chat-note { align-self: center; font-size: 12.5px; color: #3f4a22; background: #E7E8DA; border-radius: 999px; padding: 5px 12px; }
.ga-chat-error { align-self: center; font-size: 13px; color: #7A2E2A; background: #F1E3DF; border-radius: 10px; padding: 8px 12px; text-align: center; }

.ga-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.ga-chat-chip { border: 1px solid var(--gc-line); background: transparent; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--gc-ink); }
.ga-chat-chip:hover { border-color: var(--gc-ink); }

.ga-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--gc-line); background: var(--gc-paper); }
.ga-chat-input { flex: 1; resize: none; border: 1px solid var(--gc-line); border-radius: 12px; padding: 9px 12px; font: inherit; background: var(--gc-raised); color: var(--gc-ink); max-height: 120px; }
.ga-chat-input:focus { outline: 2px solid var(--gc-ink); outline-offset: 0; }
.ga-chat-send { border: 0; background: var(--gc-ink); color: var(--gc-paper); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 14px; cursor: pointer; }
.ga-chat-send:disabled { opacity: .45; cursor: default; }
.ga-chat-foot { font-size: 11px; color: var(--gc-muted); text-align: center; padding: 0 12px 10px; background: var(--gc-paper); }

@media (max-width: 520px) {
  .ga-chat { right: 12px; bottom: 12px; left: auto; }
  .ga-chat.open { inset: 0; }
  .ga-chat.open .ga-chat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .ga-chat-launch { padding: 15px 22px 15px 18px; font-size: 16px; }
}
