/* DW floating controls (2026-11-11). The homepage pill (.dw-floating-book, dw-homepage.js + shop polish css) and back-to-top
   (.dw-scroll-top, dw-homepage.js + dw-sitewide-v3.css) share one baseline: the pill on the left, the round button on the right,
   both at --dwfc-base above the safe-area inset, plus --dwfc-lift (set by floating-controls.js to the height of the Complianz
   banner or "Manage consent" tab while one shows). Near the footer the pill fades out (body.dwfc-footer). */
:root { --dwfc-lift: 0px; --dwfc-base: 12px; --dwfc-gap: 10px; --dwfc-stt: 48px; --dwfc-pill: 52px; }
@media (min-width: 769px) { :root { --dwfc-base: 28px; --dwfc-gap: 12px; --dwfc-stt: 48px; --dwfc-pill: 54px; } }

html body.home .dw-scroll-top {
  right: max(12px, env(safe-area-inset-right, 0px)); left: auto;
  width: var(--dwfc-stt); height: var(--dwfc-stt);
  bottom: calc(var(--dwfc-base) + (var(--dwfc-pill) - var(--dwfc-stt)) / 2 + env(safe-area-inset-bottom, 0px) + var(--dwfc-lift));
  transition: opacity .3s ease, transform .3s ease, bottom .25s ease, background .2s ease;
}
html body.home .dw-floating-book {
  bottom: calc(var(--dwfc-base) + env(safe-area-inset-bottom, 0px) + var(--dwfc-lift));
}
/* phones: the pill runs from the left edge to just before the round button */
@media (max-width: 768px) {
  html body.home .dw-floating-book {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: calc(max(12px, env(safe-area-inset-right, 0px)) + var(--dwfc-stt) + var(--dwfc-gap));
  }
}
/* wide screens: the pill sits left of the round button, same baseline */
@media (min-width: 769px) {
  html body.home .dw-scroll-top { right: 32px; }
  html body.home .dw-floating-book { right: calc(32px + var(--dwfc-stt) + var(--dwfc-gap)); left: auto; }
}
/* the footer is on screen: the pill steps aside so it never covers footer links (the round button stays, it is the way up) */
html body.home.dwfc-footer .dw-floating-book.dfb-visible { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
/* Complianz "Manage consent" tab: dark and gold instead of a white box at the bottom edge (every page) */
html body .cmplz-manage-consent {
  background-color: #17161a !important; color: #ffe296 !important;
  border: 1px solid rgba(255, 226, 150, .38) !important; border-bottom: 0 !important;
  box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .8) !important;
}
html body .cmplz-manage-consent:focus-visible { outline: 3px solid #ffe296 !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html body.home .dw-scroll-top, html body.home .dw-floating-book { transition: opacity .01s, visibility 0s !important; }
}
@media print { html body .cmplz-manage-consent { display: none !important; } }
