.gps-chat {
  --gps-chat-edge: clamp(12px, 2.2vw, 26px);
  --gps-chat-right: max(var(--gps-chat-edge), env(safe-area-inset-right));
  --gps-chat-bottom: max(var(--gps-chat-edge), env(safe-area-inset-bottom));
  font: 1rem/1.45 var(--gps-font, "Segoe UI", Arial, sans-serif);
  color: #13231f;
}
.gps-chat *, .gps-chat *::before, .gps-chat *::after { box-sizing: border-box; }
.gps-chat [hidden] { display: none !important; }
.gps-chat :focus-visible { outline: 2px solid #36916c; outline-offset: 3px; }
.gps-chat button { cursor: pointer; }
.gps-chat button:disabled { cursor: wait; opacity: .65; }
.gps-chat-launcher, .gps-chat-panel {
  position: fixed;
  z-index: 35;
  inset: auto var(--gps-chat-right) calc(var(--gps-chat-bottom) + var(--gps-chat-keyboard-offset, 0px)) auto;
  margin: 0;
}
.gps-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  min-height: 48px;
  border: 1px solid #338367;
  border-radius: 999px;
  background: #12533e;
  box-shadow: 0 5px 20px #10201d3b;
  color: #fff;
  font: 700 .95rem/1.2 var(--gps-font, "Segoe UI", Arial, sans-serif);
}
.gps-chat-launcher svg { color: #b5f5d6; }
.gps-chat-launcher:hover, .gps-chat-send:hover:not(:disabled) { background: #19664c; }
.gps-chat-launcher[aria-expanded="true"] { visibility: hidden; }
.gps-chat-panel {
  width: min(25rem, calc(100% - var(--gps-chat-right) - max(12px, env(safe-area-inset-left))));
  height: min(32rem, calc(var(--gps-chat-visible-height, 100dvh) - var(--gps-chat-bottom) - 12px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: auto;
  border: 1px solid #b9cec0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 46px #10201d39;
  color: inherit;
  text-align: left;
}
.gps-chat-panel[open] { display: grid; grid-template-rows: auto minmax(2.5rem, 1fr) auto; }
.gps-chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem .8rem .7rem 1rem;
  background: #102b22;
  color: #fff;
}
.gps-chat .gps-chat-heading h2 { margin: 0; font: 750 1.15rem/1.25 var(--gps-font, "Segoe UI", Arial, sans-serif); }
.gps-chat .gps-chat-heading p { margin: .1rem 0 0; color: #c7e4d6; font-size: .85rem; }
.gps-chat-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid #608477;
  border-radius: 10px;
  background: transparent;
  color: white;
}
.gps-chat-close:hover { background: #244439; }
.gps-chat-close:focus-visible { outline-color: #b5f5d6; }
.gps-chat-scroll { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: .9rem .9rem .7rem; background: #f5f7f3; }
.gps-chat .gps-chat-welcome { margin: 0 0 .75rem; }
.gps-chat-suggestions { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.gps-chat-suggestions button {
  min-height: 38px;
  padding: .3rem .62rem;
  border: 1px solid #9cbcab;
  border-radius: 8px;
  background: #fff;
  color: #12533e;
  font: 650 .875rem/1.25 var(--gps-font, "Segoe UI", Arial, sans-serif);
}
.gps-chat-suggestions button:hover { background: #e4f3e9; }
.gps-chat-messages { display: grid; gap: .55rem; }
.gps-chat-message { justify-self: start; width: fit-content; max-width: 94%; padding: .5rem .7rem; border-radius: 11px; background: #e6eee7; overflow-wrap: anywhere; }
.gps-chat-message--user { justify-self: end; background: #d3edde; }
.gps-chat-message strong { display: block; color: #295043; font-size: .8rem; }
.gps-chat .gps-chat-message p { margin: 0; white-space: pre-wrap; }
.gps-chat-form { margin: 0; padding: .65rem .8rem .65rem; border-top: 1px solid #d4e3d8; background: white; }
.gps-chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gps-chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: end; }
.gps-chat textarea {
  display: block;
  width: 100%;
  min-height: 49px;
  max-height: 7rem;
  padding: .5rem .6rem;
  resize: vertical;
  border: 1px solid #8aa799;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.gps-chat-send {
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #12533e;
  color: white;
  font: 700 .875rem/1.2 var(--gps-font, "Segoe UI", Arial, sans-serif);
}
.gps-chat .gps-chat-status { min-width: 0; margin: 0 0 .45rem; color: #405b4f; font-size: .875rem; }
.gps-chat .gps-chat-status:empty { display: none; }
.gps-chat .gps-chat-status[data-error] { color: #92322b; }
.gps-chat .gps-chat-privacy { margin: .45rem 0 0; color: #4a6158; font-size: .8rem; }
.gps-chat-privacy a { color: #12533e; }
