.social-float {
  position: fixed;
  z-index: 10;
  inset: auto max(1.15rem, env(safe-area-inset-right)) max(1.15rem, env(safe-area-inset-bottom)) auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.social-float a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.4rem;
  border: 1px solid #587164;
  border-radius: 2rem;
  box-shadow: 0 6px 24px #070c09b3;
  transition: background .2s ease, border-color .2s ease;
}

.social-float-icon { width: 3.4rem; background: #17231c; }
.social-float-icon span { display: none; }
.social-float-icon:hover { border-color: var(--mint); background: #24392d; }

.social-float .whatsapp-float {
  padding: 0 1.15rem;
  border-color: #88ecac;
  background: #64df91;
  color: #071c11;
  font-size: .875rem;
  font-weight: 800;
}

.social-float .whatsapp-float:hover { background: #82eba8; }
.social-float img { display: block; flex: 0 0 auto; }
.social-float a:focus-visible { outline: 2px solid #aaf2d1; outline-offset: 3px; }

.footer { padding-bottom: max(5.4rem, calc(env(safe-area-inset-bottom) + 4.2rem)); }

@media (min-width: 761px) {
  :root[data-social-clear-right] .social-float {
    right: auto;
    left: max(1.15rem, env(safe-area-inset-left));
  }
}

@media (max-width: 760px) {
  :root {
    --social-row-height: 2.75rem;
    --header-height: calc(3.6rem + var(--social-row-height));
    scroll-padding-top: calc(var(--header-height) + .6rem);
  }

  header:has(> .social-float) {
    position: sticky;
    z-index: 12;
    top: 0;
    display: block;
    height: auto;
    padding-block: 0;
    background: #101312;
  }

  .header > .nav { min-height: 3.6rem; }
  :root:has(.blog-header > .social-float, .epk-header > .social-float) {
    --header-height: calc(4.5rem + var(--social-row-height));
  }

  header > .social-float {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: .5rem;
    align-items: stretch;
    padding-inline: max(.55rem, env(safe-area-inset-left)) max(.55rem, env(safe-area-inset-right));
    border-top: 1px solid #2f3c34;
    background: #151c18;
  }

  .social-float a,
  .social-float .whatsapp-float {
    width: auto;
    min-height: var(--social-row-height);
    gap: .35rem;
    padding: .2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ecf4ef;
    font: 650 .8125rem/1.2 var(--sans, Arial, sans-serif);
  }

  .social-float-icon span { display: inline; }
  .social-float img { width: 1.15rem; height: 1.15rem; }
  .social-float .whatsapp-float { color: #97edb8; }
  .social-float .whatsapp-float img { filter: brightness(0) saturate(100%) invert(91%) sepia(6%) saturate(2445%) hue-rotate(82deg) brightness(95%); }
  .social-float a:hover, .social-float .whatsapp-float:hover { background: #25382c; }
  .social-float a:focus-visible { outline-offset: -4px; }
  .footer { padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); }

  :root:has(.contact-form :is(input, textarea, select):focus) { --header-height: 3.6rem; }
  body:has(.contact-form :is(input, textarea, select):focus) header > .social-float { display: none; }
}

@media (max-width: 34rem) {
  :root:has(.blog-header > .social-float) { --header-height: calc(6.25rem + var(--social-row-height)); }
}

@media (max-width: 760px) and (max-height: 28rem) {
  :root { scroll-padding-top: .7rem; }
  header:has(> .social-float) { position: relative; }
}
