.asre-chat-root {
  --asre-blue: #0b5796;
  --asre-bright: #159fe8;
  --asre-ink: #17243a;
  --asre-link: #0073aa;
  --asre-link-hover: #005177;
  font-family: inherit;
}

.asre-chat-launcher {
  position: fixed;
  right: 28px;
  bottom: 94px;
  z-index: 2147483000;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.asre-chat-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.asre-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483001;
  width: min(430px, calc(100vw - 28px));
  height: min(720px, calc(100vh - 40px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--asre-ink);
}

.asre-chat-panel[hidden] { display: none; }
.asre-chat-open .joinchat { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.asre-chat-open #scroll-top { display: none !important; }
.asre-chat-header { height: 70px; padding: 0 18px; background: var(--asre-blue); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.asre-chat-header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asre-chat-header strong { min-width: 0; line-height: 1.2; }
.asre-chat-avatar { display: inline-flex; flex: 0 0 32px; width: 32px; height: 32px; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #fff; }
.asre-chat-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asre-chat-close { border: 0; background: transparent; color: #fff; font-size: 30px; cursor: pointer; }
.asre-chat-log-wrap { position: relative; height: calc(100% - 178px); }
.asre-chat-log { height: 100%; box-sizing: border-box; overflow-y: auto; padding: 16px; background: #f6f8fb; scroll-padding-top: 16px; }
.asre-chat-jump-latest { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; transform: translateX(-50%); border: 1px solid #c9d8e6; border-radius: 50%; background: #fff; color: var(--asre-blue); box-shadow: 0 5px 18px rgba(11, 87, 150, .24); line-height: 1; cursor: pointer; }
.asre-chat-jump-latest[hidden] { display: none; }
.asre-chat-jump-latest:focus-visible { outline: 3px solid var(--asre-bright); outline-offset: 2px; }
.asre-chat-jump-latest svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; }
.asre-chat-message { max-width: 90%; margin: 0 0 12px; padding: 11px 13px; border-radius: 14px; line-height: 1.42; font-size: 14px; }
.asre-chat-message p { margin: 0 0 9px; }
.asre-chat-message p:last-child { margin-bottom: 0; }
.asre-chat-assistant { background: #fff; border: 1px solid #e6e9ef; }
.asre-chat-assistant p a { color: var(--asre-link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.asre-chat-assistant p a:visited { color: var(--asre-link); }
.asre-chat-assistant p a:hover { color: var(--asre-link-hover); }
.asre-chat-assistant p a:focus-visible { border-radius: 2px; outline: 3px solid var(--asre-bright); outline-offset: 2px; }
.asre-chat-user { margin-left: auto; background: #318be0; color: #fff; }
.asre-chat-loading { font-style: italic; color: #667085; }
.asre-chat-property { padding: 11px 0; border-top: 1px solid #dfe4ec; }
.asre-chat-property:first-of-type { border-top: 0; }
.asre-chat-property-media { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 9px; overflow: hidden; border-radius: 10px; background: #e8eef5; }
.asre-chat-property-media:focus-visible { outline: 3px solid var(--asre-bright); outline-offset: 2px; }
.asre-chat-property-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.asre-chat-property h3 { font-size: 16px; line-height: 1.3; margin: 0 0 6px; }
.asre-chat-property a, .asre-chat-contact-lines a { color: #064f89; text-decoration: underline; }
.asre-chat-property-overview { margin: 0 0 7px !important; color: #344054; font-size: 13px; }
.asre-chat-property-price { color: var(--asre-ink); font-size: 15px; }
.asre-chat-property-facts { display: grid; gap: 3px; margin: 0; }
.asre-chat-property-facts > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.asre-chat-property-facts dt { margin: 0; color: #667085; font-size: 13px; font-weight: 600; line-height: 1.4; }
.asre-chat-property-facts dd { min-width: 0; margin: 0; color: #344054; font-size: 13px; line-height: 1.4; }
.asre-chat-property-summary { margin: 8px 0 0 !important; color: #475467; font-size: 13px; line-height: 1.42; }
.asre-chat-full-service { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid #dfe4ec; }
.asre-chat-inline-action { color: #064f89; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.asre-chat-inline-action:focus-visible { outline: 3px solid var(--asre-bright); outline-offset: 2px; border-radius: 2px; }
.asre-chat-social-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.asre-chat-social-links a { display: inline-block; border-radius: 8px; background: var(--asre-bright); color: #fff; padding: 7px 10px; font-weight: 600; text-decoration: none; }
.asre-chat-social-links a:focus-visible { outline: 3px solid #111827; outline-offset: 2px; }
.asre-chat-result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.asre-chat-result-actions button, .asre-chat-result-actions a, .asre-chat-suggestions button, .asre-chat-lead-form button { border: 0; border-radius: 8px; background: var(--asre-bright); color: #fff; padding: 8px 11px; font-weight: 600; text-decoration: none; cursor: pointer; }
.asre-chat-suggestions { height: 42px; padding: 6px 10px; display: flex; gap: 6px; overflow-x: auto; border-top: 1px solid #e4e7ec; background: #fff; }
.asre-chat-suggestions button { background: #eef5fb; color: #16496f; white-space: nowrap; padding: 6px 9px; font-size: 12px; }
.asre-chat-compose { height: 66px; display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e4e7ec; background: #fff; }
.asre-chat-compose textarea { flex: 1; box-sizing: border-box; resize: none; border: 1px solid #cfd6df; border-radius: 10px; padding: 4px 10px; font: inherit; line-height: 1.2; }
.asre-chat-compose button { flex: 0 0 44px; width: 44px; border: 0; border-radius: 10px; background: var(--asre-bright); color: #fff; cursor: pointer; }
.asre-chat-compose button svg { display: block; width: 24px; height: 24px; margin: auto; fill: currentColor; }
.asre-chat-lead-form { display: grid; gap: 9px; }
.asre-chat-lead-form label { display: grid; gap: 4px; font-weight: 600; font-size: 12px; }
.asre-chat-lead-form input, .asre-chat-lead-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd6df; border-radius: 8px; padding: 9px; font: inherit; }
.asre-chat-lead-form .asre-chat-consent { display: flex; align-items: flex-start; gap: 7px; font-weight: 500; line-height: 1.35; }
.asre-chat-lead-form .asre-chat-consent input { flex: 0 0 auto; width: auto; margin: 2px 0 0; }
.asre-chat-honeypot { position: absolute !important; left: -9999px !important; }
.asre-chat-success { color: #08783e; font-weight: 700; }
.asre-chat-error { color: #b42318; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  .asre-chat-panel {
    --asre-chat-gutter-top: max(7px, env(safe-area-inset-top));
    --asre-chat-gutter-right: max(7px, env(safe-area-inset-right));
    --asre-chat-gutter-bottom: max(7px, env(safe-area-inset-bottom));
    --asre-chat-gutter-left: max(7px, env(safe-area-inset-left));
    top: calc(var(--asre-chat-visible-top, 0px) + var(--asre-chat-gutter-top));
    right: auto;
    bottom: auto;
    left: calc(var(--asre-chat-visible-left, 0px) + var(--asre-chat-gutter-left));
    width: calc(var(--asre-chat-visible-width, 100vw) - var(--asre-chat-gutter-left) - var(--asre-chat-gutter-right));
    height: calc(var(--asre-chat-visible-height, 100vh) - var(--asre-chat-gutter-top) - var(--asre-chat-gutter-bottom));
    max-height: none;
    border-radius: 12px;
  }
  .asre-chat-launcher { right: 18px; bottom: 90px; }
  .asre-chat-log-wrap { height: calc(100% - 178px); }
  .asre-chat-compose textarea { min-width: 0; font-size: 16px; }
  .asre-chat-compose button { flex-basis: 48px; width: 48px; min-height: 48px; }
}
