.wts-consultant-launch {
  position: fixed; z-index: 1100; inset: auto max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  display: inline-flex; align-items: center; gap: .65rem; min-height: 46px; padding: .65rem 1rem;
  color: #fff; background: #20292e; border: 1px solid #b89360; border-radius: .75rem;
  box-shadow: 0 5px 24px #141a1f40; font: 650 .95rem/1.35 var(--font, sans-serif);
}
.wts-consultant-launch::before { content: ""; width: 16px; height: 13px; border: 1.7px solid #dfc79e; border-radius: 5px 5px 5px 0; }
/* Keep the footer settings button outside the fixed launcher's click area. */
@media (max-width: 780px) {
  .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 781px) {
  .footer-bottom { padding-inline-end: 12.5rem; }
}
.wts-consultant-launch:hover { background: #354149; }
.wts-consultant-entry { display: inline-flex; align-items: center; min-height: 44px; padding: .48rem .75rem; font-weight: 700; text-underline-offset: .18em; }
.hero-enquiry > .wts-consultant-entry, .button-row > .wts-consultant-entry { vertical-align: middle; }
@media (max-width: 600px) { .hero-enquiry > .wts-consultant-entry { justify-content: center; width: 100%; } }
body:has(.cookie-banner.is-visible) .wts-consultant-launch { bottom: min(calc(25px + var(--wts-cookie-height, 0px)), calc(100dvh - 58px)); }
body:has(.cookie-banner .cookie-panel.is-open) .wts-consultant-launch,
body:has(.site-header.is-navigation-open) .wts-consultant-launch { visibility: hidden; }
body:has(dialog[data-consultant][open]) { overflow: hidden; }
dialog[data-consultant] {
  position: fixed; inset: auto max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  margin: 0; padding: 0; width: min(30rem, calc(100vw - 2rem)); height: min(44rem, calc(100dvh - 36px));
  max-height: none; max-width: none; border: 1px solid #c7bbab; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 75px #141a1f52; background: #faf8f4; color: #20292e;
}
dialog[data-consultant]::backdrop { background: #18202452; }
dialog[data-consultant] > div { height: 100%; }
@media (max-width: 600px) {
  dialog[data-consultant] { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .wts-consultant-launch { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
