/* The main clinic owns the shared dock UI. Keep the local fallback until it is ready. */
html.inae-contact-dock-ready {
  --diet-contact-dock-offset: var(--inae-contact-dock-height, 0px);
  scroll-padding-bottom: calc(var(--diet-contact-dock-offset) + 16px);
}

html.inae-contact-dock-ready body {
  padding-bottom: var(--diet-contact-dock-offset);
}

html.inae-contact-dock-ready [data-inae-contact-dock-fallback],
html.inae-contact-dock-ready [data-inae-contact-dock-legacy-spacer] {
  display: none !important;
}

/* Controls retain their current offsets inside a stage that ends above the dock. */
html.inae-contact-dock-ready .product-story {
  --stage-dock: var(--diet-contact-dock-offset);
}

html.inae-contact-dock-ready .inae-brand-story:not(.reduced) .sticky-scene {
  height: calc(100svh - var(--story-top) - var(--diet-contact-dock-offset));
  min-height: 0;
}

html.inae-contact-dock-ready .toast {
  bottom: calc(var(--diet-contact-dock-offset) + 22px);
}

@media (min-width: 769px) and (max-width: 1279px) {
  /* The original tablet chat pill extends above the bar at the right edge. */
  html.inae-contact-dock-ready .product-next,
  html.inae-contact-dock-ready .inae-brand-story .scene-controls {
    margin-right: 110px;
  }
}

@media (max-width: 600px) {
  /* Remove the old mobile-dock allowance; body padding now uses the shared height. */
  html.inae-contact-dock-ready .site-footer {
    padding-bottom: 35px;
  }
}

@media print {
  html.inae-contact-dock-ready body {
    padding-bottom: 0;
  }
}
