/* Scoped component. Green identifies WhatsApp; the site brand remains red/black. */
.fb47-tools {
  --fb47-size: 56px; --fb47-gap: 12px; --fb47-edge: 24px; --fb47-bottom: 80px;
  position: fixed; z-index: 40;
  right: max(var(--fb47-edge), env(safe-area-inset-right, 0px));
  bottom: calc(max(var(--fb47-bottom), env(safe-area-inset-bottom, 0px)) + var(--fb47-bottom-offset, 0px));
  display: flex; flex-direction: column; gap: var(--fb47-gap);
  width: var(--fb47-size); height: calc(2 * var(--fb47-size) + var(--fb47-gap));
  pointer-events: none; font-family: Arial, Helvetica, system-ui, sans-serif;
}
.fb47-tools .fb47-tool {
  box-sizing: border-box; position: relative; display: inline-flex; flex: 0 0 var(--fb47-size);
  align-items: center; justify-content: center; width: var(--fb47-size); height: var(--fb47-size);
  min-width: var(--fb47-size); min-height: var(--fb47-size); padding: 0; margin: 0;
  border: 1px solid transparent; border-radius: 50%; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 18px #1717171a; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s; touch-action: manipulation;
}
.fb47-tools .fb47-whatsapp { background: #128c49; color: #fff; }
.fb47-tools .fb47-whatsapp:hover { background: #0e713b; color: #fff; }
.fb47-tools .fb47-top { background: #fff; border-color: #73777c; color: #171717; }
.fb47-tools .fb47-top:hover { color: #bf211c; border-color: #bf211c; background: #fff1f0; }
.fb47-tools .fb47-tool:active { box-shadow: inset 0 0 0 2px #17171733; }
.fb47-tools .fb47-tool:focus-visible { outline: 3px solid #e22b25; outline-offset: 4px; }
.fb47-tools .fb47-tool svg { display: block; width: 26px; height: 26px; margin: 0; flex: none; }
.fb47-tools .fb47-top svg { width: 24px; height: 24px; }
.fb47-tools [hidden] { display: none !important; }
.fb47-tools.is-blocked { visibility: hidden; }
.fb47-tools .fb47-tooltip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  width: max-content; max-width: calc(100vw - 116px); padding: 8px 12px; border-radius: 4px;
  font: 400 13px/1.4 Arial, Helvetica, system-ui, sans-serif; color: #fff; background: #171717;
  opacity: 0; visibility: hidden; pointer-events: none; white-space: normal;
}
.fb47-tools .fb47-tool:focus-visible .fb47-tooltip { opacity: 1; visibility: visible; }
@media (hover:hover) { .fb47-tools .fb47-tool:hover .fb47-tooltip { opacity: 1; visibility: visible; } }
@media (max-width:760px) { .fb47-tools { --fb47-size: 52px; --fb47-gap: 10px; --fb47-edge: 16px; --fb47-bottom: 64px; } }
@media (prefers-reduced-motion:reduce) { .fb47-tools .fb47-tool { transition: none; } }

/* Replace only known footer back-to-top controls once JavaScript is ready.
   Preserve the Kitchen footer logo and the native no-JavaScript fallback. */
html body.fb47-ready footer.fb17-footer a.fb17-top,
html body.fb47-ready footer.pilot-footer a.back-top { display: none !important; }
