/* AreaWise R3 — mobile floating-control positioning (cookie + browser-toolbar aware).
   Single source of truth. Load AFTER feedback-widget.css + area-mobile-nav.css so these
   rules win. Consumes --aw-consent-* and --aw-viewport-clearance (set by
   feedback-launcher-position.js). Falls back to 0px when unset. */

/* ---- Make a Wish launcher ---- */
.aw-feedback-launcher {
  /* Desktop: keep left, above the consent banner / "Cookie Preferences" pill. */
  left: 24px;
  right: auto;
  bottom: calc(24px + max(var(--aw-consent-banner-clearance, 0px), var(--aw-consent-pill-clearance, 0px)));
}

@media (max-width: 767px) {
  .aw-feedback-launcher {
    /* Mobile: bottom-right, safe-area aware, above the consent banner + browser toolbar. */
    left: auto;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--aw-viewport-clearance, 0px) + var(--aw-consent-banner-clearance, 0px));
  }
}

/* ---- Education FAB (compact count badge, bottom-left) ---- */
@media (max-width: 520px) {
  .education-fab.is-compact {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--aw-viewport-clearance, 0px) + max(var(--aw-consent-banner-clearance, 0px), var(--aw-consent-pill-clearance, 0px)));
  }
}
