/* Restore the original floating circles; do not recolor the storefront. */
body.mh-has-floating-socials { --mh-social-gutter: 76px; }
.mh-local.mh-has-floating-socials .mh-site-main,
.mh-local.mh-has-floating-socials .mh-footer {
  padding-inline-end: max(var(--mh-page-gutter, 24px), calc(var(--mh-social-gutter) + env(safe-area-inset-right, 0px)));
}
.mh-floating-socials {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.mh-floating-socials[hidden],
body:has(.mh-nav-menu[open]) .mh-floating-socials,
body:has(dialog[open]:not([hidden])) .mh-floating-socials { display: none !important; }
.mh-local .mh-floating-socials a[data-social] {
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 20px #0003;
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mh-floating-socials a[data-social="facebook"] { background: #1877f2; }
.mh-floating-socials a[data-social="whatsapp"] { background: #25d366; }
.mh-floating-socials a[data-social="instagram"] { background: var(--mh-accent, #cc3366); }
.mh-floating-socials svg { display: block; width: 52%; height: 52%; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .mh-floating-socials a[data-social]:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 24px #0004;
  }
}
.mh-floating-socials a[data-social]:focus-visible {
  outline: 3px solid var(--mh-ink, #5f4864);
  outline-offset: 3px;
  box-shadow: 0 8px 24px #0004;
}
@media (max-width: 900px) {
  body.mh-has-floating-socials { --mh-social-gutter: 70px; }
  body:has(.mh-nav-categories[open]) .mh-floating-socials { display: none !important; }
  .mh-floating-socials {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--mh-mobile-nav-bottom, env(safe-area-inset-bottom, 0px)) + 86px);
  }
  .mh-local .mh-floating-socials a[data-social] { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-floating-socials a[data-social] { transition: none; transform: none !important; }
}
