/* A compact, keyboard-friendly assistant in the warm Paramount palette. */
.pgm-chat {
  --chat-ink: #263342;
  --chat-muted: #596571;
  --chat-orange: #ae4316;
  --chat-line: #ddd5c9;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 120;
  color: var(--chat-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  color-scheme: light;
}
.pgm-chat *, .pgm-chat *::before, .pgm-chat *::after { box-sizing: border-box; }
.pgm-chat [hidden] { display: none !important; }
.pgm-chat button, .pgm-chat input, .pgm-chat textarea { font: inherit; letter-spacing: normal; }
.pgm-chat button { cursor: pointer; text-transform: none; transition: background .18s ease, border-color .18s ease; }
.pgm-chat button:disabled { cursor: wait; opacity: .6; }
.pgm-chat button:focus-visible, .pgm-chat a:focus-visible, .pgm-chat input:focus-visible, .pgm-chat textarea:focus-visible { outline: 3px solid #185abc; outline-offset: 3px; }
.pgm-chat p { margin: 0; }
.pgm-chat a { color: #185abc; text-decoration: underline; text-underline-offset: 3px; }
.pgm-chat-launcher {
  display: flex; align-items: center; gap: 10px; min-height: 54px;
  margin: 0 0 0 auto; padding: 11px 21px; border: 1px solid #98350f; border-radius: 999px;
  color: #fff; background: var(--chat-orange); font-weight: 650;
  box-shadow: 0 6px 25px #8c421631, 0 0 0 4px #fffaf2c9;
}
.pgm-chat-launcher:hover, .pgm-chat-primary:hover, .pgm-chat-send:hover { background: #87320e; }
.pgm-chat-spark { font-size: 23px; line-height: 1; }
.pgm-chat-panel {
  position: absolute; right: 0; bottom: 70px; display: flex; flex-direction: column;
  width: 390px; height: min(690px, calc(100dvh - 120px)); max-height: calc(100vh - 120px);
  border: 1px solid #d4cabe; border-radius: 20px; overflow: hidden;
  background: #fffdf8; box-shadow: 0 22px 85px #43332629, 0 3px 12px #43332612;
  animation: pgm-chat-arrive .22s ease both;
}
.pgm-chat-header {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 17px 17px 22px; background: #f5eee2; border-bottom: 1px solid var(--chat-line);
}
.pgm-chat-heading { display: grid; grid-template-columns: 1fr; gap: 2px; }
.pgm-chat-heading strong { color: var(--chat-ink); font-size: 16px; font-weight: 650; }
.pgm-chat-heading > span:last-child { color: var(--chat-muted); font-size: 12px; }
.pgm-chat-dots { display: flex; gap: 4px; padding-bottom: 7px; }
.pgm-chat-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #4285f4; }
.pgm-chat-dots i:nth-child(2) { background: #ea4335; }
.pgm-chat-dots i:nth-child(3) { background: #fbbc05; }
.pgm-chat-dots i:nth-child(4) { background: #34a853; }
.pgm-chat-icon-button { display: grid; place-items: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0; color: #54606b; background: transparent; border: 0; border-radius: 50%; font-size: 28px !important; line-height: 1; }
.pgm-chat-icon-button:hover { background: #e8e0d3; color: #263342; }
.pgm-chat-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px; scrollbar-width: thin; scrollbar-color: #c8bdad transparent; }
.pgm-chat-log { display: flex; flex-direction: column; gap: 15px; }
.pgm-chat-message { max-width: 94%; padding: 12px 14px; border-radius: 3px 15px 15px 15px; background: #f0ece5; overflow-wrap: anywhere; }
.pgm-chat-message p { color: var(--chat-ink); white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.pgm-chat-message-user { margin-left: auto; border-radius: 15px 3px 15px 15px; background: #eaf1fc; }
.pgm-chat-speaker { display: block; margin-bottom: 5px; color: #576472; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.pgm-chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.pgm-chat-suggestion { min-height: 44px; padding: 9px 12px; border: 1px solid #d4cabe; border-radius: 9px; color: #6e3e22; background: #fffcf6; font-size: 12px !important; text-align: left; }
.pgm-chat-suggestion:hover { background: #f6e8d9; border-color: #c58a5c; }
.pgm-chat-status { margin-top: 15px !important; color: var(--chat-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pgm-chat-status[data-state=error] { padding: 12px; border: 1px solid #e9c4b6; border-radius: 9px; color: #92371c; background: #fff0e8; }
.pgm-chat-status[data-state=success] { padding: 17px; border: 1px solid #b5d2bc; border-radius: 10px; background: #eff8ef; color: #215f35; font-size: 14px; }
.pgm-chat-invitation { margin-top: 17px; padding: 16px; border: 1px solid #e2cbb1; border-radius: 12px; background: #fff4e5; }
.pgm-chat-invitation strong { display: block; font-size: 14px; line-height: 1.5; }
.pgm-chat-invitation p { margin: 7px 0 13px; color: #685641; font-size: 12px; }
.pgm-chat-primary { display: block; width: 100%; min-height: 45px; padding: 11px 15px; color: #fff; border: 1px solid var(--chat-orange); border-radius: 9px; background: var(--chat-orange); font-size: 13px !important; font-weight: 650; text-align: center; }
.pgm-chat-footer { flex-shrink: 0; padding: 13px 16px 14px; border-top: 1px solid var(--chat-line); background: #fffdf8; }
.pgm-chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 6px; border: 1px solid #b8b2a7; border-radius: 12px; background: #fff; }
.pgm-chat-composer:focus-within { border-color: #185abc; }
.pgm-chat-composer textarea { display: block; min-height: 44px; min-width: 0; flex: 1; resize: none; padding: 7px; border: 0; border-radius: 5px; background: #fff; color: var(--chat-ink); font-size: 16px; line-height: 1.45; box-shadow: none; }
.pgm-chat-composer textarea::placeholder { color: #626f76; }
.pgm-chat-composer textarea:focus-visible { outline-offset: -2px; }
.pgm-chat-send { min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: var(--chat-orange); color: #fff; font-size: 25px !important; }
.pgm-chat-callback { display: block; min-height: 44px; width: 100%; padding: 8px; border: 0; background: transparent; color: #874019; font-size: 12px !important; font-weight: 600; }
.pgm-chat-callback:hover { color: #5e2d13; text-decoration: underline; text-underline-offset: 3px; }
.pgm-chat-privacy { color: #6b737b; font-size: 10px; line-height: 1.5; }
.pgm-chat-greeting { position: absolute; right: 0; bottom: 71px; display: flex; align-items: center; gap: 1px; width: 305px; padding: 8px 8px 8px 14px; border: 1px solid #d9cbbb; border-radius: 14px; background: #fffdf8; box-shadow: 0 8px 32px #5544321a; animation: pgm-chat-arrive .22s ease both; }
.pgm-chat-greeting-open { min-height: 64px; padding: 5px; border: 0; background: transparent; color: #39444d; font-size: 13px !important; line-height: 1.5; text-align: left; }
.pgm-chat-greeting-open:hover { color: #994215; }
.pgm-chat-back { min-height: 44px; margin: -8px 0 8px; padding: 5px 0; border: 0; background: transparent; color: #185abc; font-size: 12px !important; }
.pgm-chat-handoff h3 { margin: 0 0 8px; color: #263342; font-size: 23px; line-height: 1.2; font-weight: 550; letter-spacing: -.02em; }
.pgm-chat-form-intro { color: var(--chat-muted); font-size: 12px; }
.pgm-chat-lead-form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 0; }
.pgm-chat-field label { display: block; margin: 0 0 6px; color: #3d4853; font-size: 12px; font-weight: 600; }
.pgm-chat-field input, .pgm-chat-field textarea { display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #c7c0b6; border-radius: 7px; background: #fff; color: var(--chat-ink); font-size: 16px; line-height: 1.4; box-shadow: none; }
.pgm-chat-field textarea { resize: vertical; min-height: 88px; }
.pgm-chat-consent { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; color: #59636d; font-size: 11px; line-height: 1.6; cursor: pointer; }
.pgm-chat-consent input { flex-shrink: 0; width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; accent-color: var(--chat-orange); }
.pgm-chat-contact-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 12px; }
@keyframes pgm-chat-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .pgm-chat { right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .pgm-chat-launcher { min-height: 50px; padding: 10px 16px; }
  .pgm-chat-panel { width: calc(100vw - 24px); height: min(680px, calc(100dvh - 94px)); max-height: calc(100dvh - 94px); bottom: 64px; border-radius: 16px; }
  .pgm-chat-header { padding: 14px 13px 14px 18px; }
  .pgm-chat-body { padding: 18px 16px; }
  .pgm-chat-greeting { width: min(305px, calc(100vw - 24px)); bottom: 65px; }
  .pgm-chat-privacy { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pgm-chat *, .pgm-chat *::before, .pgm-chat *::after { animation: none !important; transition: none !important; } }
html[data-motion=off] .pgm-chat *, html[data-motion=off] .pgm-chat *::before, html[data-motion=off] .pgm-chat *::after { animation: none !important; transition: none !important; }
