.ax-contact-actions {
  position: fixed;
  z-index: 35;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px) + var(--ax-sticky-footer-height, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-inline-size: calc(100vw - 32px);
}

.ax-contact-actions :is(.ax-intelligence-launcher, .ax-enquiry-launcher) {
  position: static;
  order: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 3px 12px rgb(16 24 40 / 22%);
  cursor: pointer;
}

.ax-contact-actions .ax-intelligence-launcher { background: #106b55; }
.ax-contact-actions .ax-enquiry-launcher { order: 1; background: #075e54; }
.ax-contact-actions .ax-enquiry-launcher span { display: none; }
.ax-contact-actions svg { width: 23px; height: 23px; }
.ax-contact-actions :focus-visible, .ax-concierge :focus-visible { outline: 2px solid #168569; outline-offset: 2px; }
.ax-contact-actions :is(button,a):hover { filter: brightness(.9); }
.ax-contact-actions :disabled { opacity: .7; }
body:has(.ax-concierge[open]) .ax-contact-actions,
html.sh-locked .ax-contact-actions,
body:has(.connection-toast.visible) .ax-contact-actions { visibility: hidden; }

.ax-concierge {
  --surface: #fff;
  --ink: #101828;
  --muted: #4b5d57;
  --line: #a7b7b2;
  --accent: #075e54;
  --bubble: #eef6f3;
  position: fixed;
  inset: auto calc(16px + env(safe-area-inset-right, 0px)) calc(142px + env(safe-area-inset-bottom, 0px) + var(--ax-sticky-footer-height, 0px)) auto;
  margin: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(540px, calc(100dvh - 156px - env(safe-area-inset-bottom, 0px) - var(--ax-sticky-footer-height, 0px)));
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.4 system-ui, sans-serif;
  box-shadow: 0 14px 44px #10182844;
}

.ax-concierge, .ax-concierge * { box-sizing: border-box; }
.ax-concierge[open] { display: flex; flex-direction: column; }
.ax-concierge::backdrop { background: #10182855; }
.ax-concierge header {
  position: static;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 4px 12px;
  background: #075e54;
  color: #fff;
}
.ax-concierge h2 { min-width: 0; margin: 0; font-size: 1rem; color: inherit; overflow-wrap: anywhere; }
.ax-concierge-content {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  padding: 12px;
  scrollbar-gutter: stable;
}
.ax-concierge p { margin: 0; overflow-wrap: anywhere; }
.ax-concierge-welcome { font-weight: 650; }
.ax-concierge-suggestions, .ax-concierge-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.ax-concierge :is(textarea, button) {
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.ax-concierge button { cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.ax-concierge button:disabled { opacity: .65; }
.ax-concierge header button { flex: none; min-width: 44px; background: transparent; color: inherit; font-size: 1.25rem; }
.ax-concierge-suggestions button { width: 100%; text-align: left; color: var(--accent); }
.ax-concierge-answer { min-width: 0; display: grid; gap: 5px; background: var(--bubble); padding: 9px; border-radius: 10px; }
.ax-concierge-answer p { white-space: pre-wrap; }
.ax-concierge-question { font-weight: 650; }
.ax-concierge-status:not(:empty) { margin-top: 8px; color: var(--muted); }
.ax-concierge footer { flex: none; min-width: 0; padding: 8px 12px 4px; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.ax-concierge form { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; margin: 0; }
.ax-concierge textarea { width: 100%; resize: none; font-size: 16px; padding-top: 10px; }
.ax-concierge form button { display: grid; place-items: center; padding: 0; background: #075e54; color: #fff; }
.ax-concierge-links { display: flex; flex-wrap: wrap; gap: 0 10px; }
.ax-concierge a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.ax-concierge-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; }

@media (max-width: 960px) { body:has(.ck) .ax-contact-actions { visibility: hidden; } }
@media (max-width: 640px), (max-height: 480px) {
  body:has(main form :focus) .ax-contact-actions { visibility: hidden; }
  .ax-concierge {
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    /* Fallback before the script measures the visual viewport; never 100vh, which ignores the keyboard on iOS. */
    max-height: min(520px, calc(100vh - 12px));
    max-height: min(520px, calc(100dvh - max(12px, env(safe-area-inset-top, 0px))));
    border-radius: 18px 18px 0 0;
    overscroll-behavior: none;
  }
  /* Sized and placed by script from visualViewport so the whole panel sits above the keyboard. */
  .ax-concierge.ax-vv { top: var(--ax-sheet-top); bottom: auto; height: var(--ax-sheet-height); max-height: none; }
  .ax-concierge.ax-keyboard { border-radius: 0; }
  .ax-concierge header { flex: none; }
  .ax-concierge footer { padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)); }
  .ax-concierge.ax-keyboard footer { padding-bottom: 4px; }
  .ax-concierge.ax-keyboard .ax-concierge-links, .ax-concierge.ax-keyboard .ax-concierge-support { display: none; }
}
@media (max-width: 640px) {
  .ax-contact-actions :is(.ax-intelligence-launcher, .ax-enquiry-launcher) { width: 52px; height: 52px; }
  .ax-contact-actions svg { width: 25px; height: 25px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-appearance=light]) .ax-concierge {
    --surface: #101828; --ink: #f1f5f9; --muted: #c3cfd9; --line: #75899e; --accent: #99e9ba; --bubble: #192638; color-scheme: dark;
  }
}
html[data-appearance=dark] .ax-concierge {
  --surface: #101828; --ink: #f1f5f9; --muted: #c3cfd9; --line: #75899e; --accent: #99e9ba; --bubble: #192638; color-scheme: dark;
}

.ax-concierge-support,.ax-concierge-hours-details { font-size:.75rem; color:var(--muted); margin:.25rem 0; }
.ax-concierge-hours-details p { margin:.25rem 0; overflow-wrap:anywhere; }
.ax-concierge-hours-details summary { cursor:pointer; padding-block:.25rem; }
