/* Ansvra guide and contact drawer. */
.contact-launcher[hidden],
.contact-panel [hidden] {
  display: none !important;
}
.contact-launcher {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 17px 9px 9px;
  border: 1px solid #4b8e744d;
  border-radius: 100px;
  color: #14392c;
  background: #f7fcf9;
  box-shadow: 0 6px 24px #09271b20;
  font-size: 12px;
  font-weight: 600;
  transition: box-shadow 0.2s;
}
.contact-launcher:hover {
  box-shadow: 0 8px 30px #09271b35;
}
.launcher-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #0d624c;
  background: #d9f5e9;
}
.contact-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: 440px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  margin: 0 0 0 auto;
  border: 0;
  border-left: 1px solid #a9c1b4;
  color: #192e25;
  background: #f7faf7;
  box-shadow: -20px 0 90px #071a1720;
  overflow: hidden;
}
.contact-panel[open] {
  animation: contact-enter 0.24s ease-out;
}
.contact-panel::backdrop {
  background: #071a1755;
}
.contact-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: max(22px, env(safe-area-inset-top)) 26px 22px;
  background: #fff;
  border-bottom: 1px solid #dce6df;
}
.contact-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}
.contact-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #edf7f0;
  border: 1px solid #d1e6d9;
  border-radius: 15px;
}
.contact-identity h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0;
}
.contact-identity p {
  color: #61766b;
  font-size: 11px;
  margin: 5px 0 0;
}
.contact-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce6df;
  background: #fff;
  color: #244b38;
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-close:hover {
  background: #edf7f0;
}
.contact-modes {
  display: flex;
  gap: 6px;
  padding: 12px 22px;
  background: #fff;
  border-bottom: 1px solid #dce6df;
}
.contact-modes button {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #61766b;
  border-radius: 10px;
}
.contact-modes button[aria-pressed="true"] {
  background: #eef6f0;
  border-color: #d5e6db;
  color: #0e644d;
  font-weight: 600;
}
.contact-modes .ui-icon {
  width: 17px;
  height: 17px;
}
.contact-soon {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 5px;
  color: #66527c;
  background: #eee9f6;
  border: 1px solid #ded5ec;
  white-space: nowrap;
}
.contact-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 28px;
  scrollbar-width: thin;
}
.agent-view {
  text-align: center;
}
.agent-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 165px;
  margin: 0 auto 15px;
  background: radial-gradient(ellipse, #a6e5c96b, transparent 70%);
}
.agent-portrait > span {
  z-index: 1;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  border: 1px solid #b4d4c2;
  background: linear-gradient(145deg, #fff, #dbf0e3);
  box-shadow:
    0 12px 30px #1e593d14,
    inset 0 1px #fff;
  transform: rotate(-7deg);
}
.agent-portrait img {
  transform: rotate(7deg);
}
.agent-orbit {
  position: absolute;
  width: 170px;
  height: 130px;
  border: 1px solid #bdd7c9;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.agent-orbit::after {
  content: "";
  position: absolute;
  inset: 14px -7px;
  border: 1px dashed #b5d0c0;
  border-radius: 50%;
  transform: rotate(65deg);
}
.agent-spark {
  position: absolute;
  color: #137c5f;
  font-size: 25px;
  z-index: 2;
}
.agent-spark-one {
  top: 8px;
  right: 20px;
}
.agent-spark-two {
  bottom: 14px;
  left: 10px;
  color: #9480ba;
  font-size: 17px;
}
.contact-eyebrow {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #167258;
  font-weight: 600;
  margin: 0 0 14px;
}
.agent-view h3 {
  font-size: 32px;
  line-height: 1.13;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}
.agent-intro {
  font-size: 14px;
  line-height: 1.8;
  color: #5a7164;
  margin: 0 auto 23px;
  max-width: 320px;
}
.agent-availability {
  padding: 18px;
  border: 1px solid #e0e4df;
  border-radius: 13px;
  background: #fff;
}
.agent-availability p {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 0;
  color: #5a7164;
}
.contact-panel .button {
  background: #106650;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  min-height: 46px;
  padding: 13px 18px;
  gap: 10px;
  justify-content: center;
}
.contact-email-cta {
  margin-top: 18px;
  width: 100%;
}
.agent-composer {
  margin-top: 30px;
  text-align: left;
}
.agent-composer label {
  display: block;
  font-size: 11px;
  color: #61766b;
  margin-bottom: 8px;
}
.agent-composer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #eef2ed;
  border: 1px solid #dce3dc;
  border-radius: 13px;
}
.agent-composer textarea {
  min-width: 0;
  flex: 1;
  background: none;
  border: 0;
  resize: none;
  font: inherit;
  font-size: 12px;
  color: #738378;
}
.agent-composer button {
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  background: #dde5dd;
  color: #84988b;
}
.agent-composer small {
  display: block;
  text-align: center;
  color: #738378;
  font-size: 10px;
  margin-top: 8px;
}
.contact-panel button:disabled {
  cursor: default;
}
.contact-email-intro h3 {
  font-size: 30px;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.contact-email-intro > p:last-child {
  color: #5a7164;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.contact-field {
  margin-bottom: 18px;
}
.contact-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #244b38;
}
.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: #193226;
  background: #fff;
  border: 1px solid #cadbcf;
  border-radius: 9px;
}
.contact-field textarea {
  resize: vertical;
  min-height: 135px;
  max-height: 400px;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid #148263;
  outline-offset: 2px;
}
.contact-submit {
  width: 100%;
}
.contact-submit:disabled {
  opacity: 0.65;
}
.contact-privacy {
  font-size: 11px;
  line-height: 1.8;
  color: #61766b;
  margin: 18px 0 0;
}
.contact-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #106650;
}
.contact-error {
  font-size: 12px;
  color: #933c33;
  background: #fceeea;
  border: 1px solid #f0d5cf;
  padding: 13px;
  border-radius: 8px;
}
.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.contact-success {
  padding: 30px 0;
  text-align: center;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 24px;
  background: #d9f2e4;
  color: #0d624c;
  border-radius: 50%;
}
.contact-success h3 {
  font-size: 28px;
  letter-spacing: -0.04em;
}
.contact-success p {
  color: #5a7164;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.contact-panel-footer {
  padding: 16px 22px max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6c8273;
  border-top: 1px solid #dce6df;
  font-size: 10px;
  background: #fff;
}
@keyframes contact-enter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 760px) {
  .contact-panel {
    width: 100%;
    border: 0;
  }
  .contact-launcher {
    right: 9px;
    padding: 6px;
  }
  .contact-launcher > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .contact-scroll {
    padding: 26px 24px;
  }
  .contact-heading {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-panel[open] {
    animation: none;
  }
}

.contact-panel { box-sizing: border-box; font-family: inherit; }
.contact-panel *, .contact-panel *::before, .contact-panel *::after { box-sizing: border-box; }
.contact-panel button, .contact-launcher { cursor: pointer; font-family: inherit; }
.contact-panel .ui-icon, .contact-launcher .ui-icon { width: 16px; height: 16px; flex: none; }
.contact-panel .button { display: inline-flex; align-items: center; text-decoration: none; border: 0; }
.contact-panel a { color: #145c49; text-decoration: underline; }
.contact-panel :focus-visible, .contact-launcher:focus-visible { outline: 2px solid #207e64; outline-offset: 3px; }
.agent-composer textarea { color: #192e25; font-size: 16px; }
.agent-composer textarea:focus { outline: none; box-shadow: none; }
.agent-composer > div:has(textarea:focus) {
  border-color: #287d66;
  box-shadow: 0 0 0 2px #287d6626;
}
@media (forced-colors: active) {
  .agent-composer > div:has(textarea:focus) { outline: 2px solid Highlight; outline-offset: 2px; }
}
.agent-composer textarea::placeholder { color: #597064; }
.agent-composer button { background: #106650; color: #fff; width: 42px; height: 42px; }
.agent-composer button:disabled { opacity: .55; }
.chat-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chat-suggestions button, .chat-actions button, .chat-rating button, .chat-contact {
  border: 1px solid #cfe1d7; border-radius: 999px; background: #fff; color: #145c49;
  font-size: 12px; line-height: 1.35; padding: 8px 12px;
}
.chat-suggestions button:hover, .chat-rating button:hover, .chat-rating button[aria-pressed="true"] { background: #e3f3eb; }
.chat-conversation { display: grid; gap: 18px; text-align: left; }
.chat-turn { display: grid; gap: 10px; }
.chat-question { justify-self: end; max-width: 90%; padding: 10px 14px; border-radius: 15px 15px 4px 15px; background: #deefe5; margin: 0; }
.chat-reply { padding: 14px; border: 1px solid #dce6df; background: #fff; border-radius: 4px 15px 15px; }
.chat-question { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.chat-answer { white-space: normal; overflow-wrap: anywhere; font-size: 15px; line-height: 24px; color: #192e25; }
.chat-answer p, .chat-answer ul, .chat-answer ol { margin: 10px 0 0; }
.chat-answer p, .chat-answer li { color: #192e25; }
.chat-answer > :first-child { margin-top: 0; }
.chat-answer ul, .chat-answer ol { padding-inline-start: 23px; }
.chat-answer ul { list-style-type: disc; }
.chat-answer ol { list-style-type: decimal; }
.chat-answer li { padding-inline-start: 3px; }
.chat-answer li + li { margin-top: 8px; }
.chat-answer li::marker { color: #0e644d; font-weight: 650; }
.chat-answer strong { font-weight: 650; color: #192e25; }
.chat-answer .chat-answer-label { margin-top: 18px; font-size: 14px; line-height: 22px; }
.chat-reply .chat-sources { border-top: 1px solid #e5ece7; padding-top: 12px; margin-top: 16px; }
.chat-speaker-row { display: flex; align-items: center; gap: 9px; }
.chat-speaker-avatar { display: block; flex: none; width: 34px; height: 34px; }
.chat-speaker-caption { display: grid; gap: 2px; }
.chat-speaker { color: #145c49; font-size: 12px; line-height: 1.3; }
.chat-thinking-label { color: #466559; font-size: 12px; line-height: 1.35; }
.chat-thinking-dots {
  display: inline-block;
  margin-inline-start: 2px;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.1em;
  animation: chat-thinking-dots 1.5s step-end infinite;
}
@keyframes chat-thinking-dots {
  0% { clip-path: inset(0 66.67% 0 0); }
  33.33% { clip-path: inset(0 33.33% 0 0); }
  66.67%, 100% { clip-path: inset(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-thinking-dots { animation: none; }
}
.chat-answer { margin: 8px 0 0; }
.chat-sources { padding-inline-start: 16px; margin: 10px 0 0; font-size: 12px; }
.chat-rating { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-rating button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; }
.chat-rating .ui-icon { width: 13px; height: 13px; }
.chat-contact { margin-top: 10px; }
.chat-status { font-size: 12px; color: #3a594b; margin: 8px 0; }
.chat-feedback-toast {
  position: absolute;
  z-index: 1;
  inset-inline: 12px;
  bottom: calc(58px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.chat-feedback-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #aed9c5;
  border-radius: 999px;
  background: #e3f6eb;
  color: #12543d;
  box-shadow: 0 6px 20px #1a58301a;
  font-size: 13px;
  font-weight: 600;
}
.chat-actions { display: flex; justify-content: center; margin-top: 8px; }
[data-chat-loading] { font-size: 13px; color: #3a594b; }

