/* visual_designer / Astra High contract. Scoped; no theme or hero selectors. */
.zy-chat {
  --zy-chat-dark: #142630;
  --zy-chat-light: #f4f8fa;
  --zy-chat-blue: #39b9e9;
  --zy-chat-ink: #172b38;
  --zy-chat-line: #dbe4e9;
  --zy-chat-muted: #506671;
  position: relative;
  z-index: 9900;
  font-family: inherit;
  color: var(--zy-chat-ink);
  font-size: 15px;
  line-height: 1.55;
}
.zy-chat *, .zy-chat *::before, .zy-chat *::after { box-sizing: border-box; }
.zy-chat [hidden] { display: none !important; }
.zy-chat button, .zy-chat textarea { font: inherit; }
.zy-chat button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.zy-chat button:focus-visible, .zy-chat a:focus-visible, .zy-chat textarea:focus-visible { outline: 3px solid #0983b1; outline-offset: 3px; }
.zy-chat button:disabled, .zy-chat textarea:disabled { cursor: not-allowed; opacity: .56; }
.zy-chat-launcher {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px; display: grid; place-items: center;
  padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  color: var(--zy-chat-dark); background: var(--zy-chat-blue);
  box-shadow: 0 8px 30px rgba(20,38,48,.22);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.zy-chat-launcher:hover { background: #65ccf1; box-shadow: 0 8px 32px rgba(20,38,48,.3); }
.zy-chat-panel {
  position: fixed; right: 24px; bottom: 92px;
  width: 440px; max-width: calc(100vw - 48px); height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--zy-chat-line); border-radius: 24px;
  background: #fff; box-shadow: 0 20px 70px rgba(20,38,48,.2);
}
.zy-chat-panel:focus { outline: none; }
.zy-chat-header { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 15px 16px; color: #fff; background: var(--zy-chat-dark); }
.zy-chat-mark { flex: 0 0 32px; color: var(--zy-chat-blue); }
.zy-chat-header h2, .zy-chat-header .zy-chat-title { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; color: inherit; }
.zy-chat-header p { margin: 3px 0 0; font-size: 12px; line-height: 17px; color: #c6d5dd; }
.zy-chat-close { margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; font-size: 28px !important; line-height: 1; background: rgba(255,255,255,.08); color: #fff; }
.zy-chat-close:hover { background: rgba(255,255,255,.17); }
.zy-chat-disclosure { flex: 0 0 auto; margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--zy-chat-line); background: var(--zy-chat-light); color: var(--zy-chat-muted); font-size: 11px; line-height: 16px; }
.zy-chat-messages { flex: 1 1 auto; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; scrollbar-width: thin; }
.zy-chat-empty { margin: 0; color: var(--zy-chat-muted); font-size: 14px; line-height: 22px; }
.zy-chat-message { max-width: 94%; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--zy-chat-light); overflow-wrap: anywhere; }
.zy-chat-message--user { margin-left: auto; border-radius: 14px 14px 4px 14px; background: #e2f4fb; }
.zy-chat-message strong { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; color: var(--zy-chat-muted); }
.zy-chat-message p { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 23px; }
.zy-chat-quick { display: flex; flex: 0 0 auto; gap: 6px; overflow-x: auto; padding: 2px 18px 8px; scrollbar-width: thin; }
.zy-chat-quick button { min-height: 44px; max-width: 100%; flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--zy-chat-line); border-radius: 100px; background: #fff; color: var(--zy-chat-ink); font-size: 11px; line-height: 16px; }
.zy-chat-quick button:hover { border-color: #8baeba; background: var(--zy-chat-light); }
.zy-chat-estimate { flex: 0 0 auto; max-height: 60px; overflow: auto; margin: 0 18px 6px; font-size: 11px; line-height: 16px; color: var(--zy-chat-muted); }
.zy-chat-status { flex: 0 0 auto; margin: 0; padding: 3px 18px 6px; color: var(--zy-chat-muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.zy-chat-contacts { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 4px 12px; padding: 0 18px 8px; }
.zy-chat-contacts a { color: #126987; font-size: 12px; line-height: 20px; text-underline-offset: 3px; }
.zy-chat-form { flex: 0 0 auto; margin: 0; padding: 8px 18px 10px; border-top: 1px solid var(--zy-chat-line); }
.zy-chat-form label { display: block; margin-bottom: 5px; font-size: 12px; line-height: 18px; font-weight: 600; }
.zy-chat-form textarea { width: 100%; min-height: 52px; max-height: 140px; resize: vertical; padding: 10px 12px; border: 1px solid #bdced8; border-radius: 12px; background: #fff; color: var(--zy-chat-ink); font-size: 16px; line-height: 22px; }
.zy-chat-form textarea::placeholder { color: #617883; }
.zy-chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.zy-chat-reset { min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--zy-chat-muted); font-size: 11px !important; }
.zy-chat-submit { min-height: 44px; min-width: 100px; padding: 8px 15px; border: 0; border-radius: 12px; background: var(--zy-chat-dark); color: #fff; font-size: 13px !important; font-weight: 600 !important; }
.zy-chat-submit:hover:not(:disabled) { background: #244654; }
.zy-chat-footnote { flex: 0 0 auto; margin: 0; padding: 0 18px 12px; color: var(--zy-chat-muted); font-size: 10px; line-height: 15px; }
@media (max-width: 600px) {
  .zy-chat-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .zy-chat-panel { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 24px); max-width: calc(100% - 24px); height: calc(100dvh - 104px - env(safe-area-inset-bottom, 0px)); }
  .zy-chat-header { padding: 11px 12px; }
  .zy-chat-disclosure { padding: 9px 14px; }
  .zy-chat-quick { flex-wrap: wrap; gap: 8px; overflow: visible; padding-left: 14px; padding-right: 14px; }
  .zy-chat-quick button { min-height: 44px; }
  .zy-chat-messages { padding: 12px 14px; }
  .zy-chat-form { padding: 7px 14px; }
  .zy-chat-form textarea { min-height: 52px; height: 52px; }
  .zy-chat-status, .zy-chat-contacts { padding-left: 14px; padding-right: 14px; }
  .zy-chat-footnote { padding: 0 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .zy-chat *, .zy-chat *::before, .zy-chat *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
