/* A mesma ação flutuante em todas as páginas, fora do cabeçalho. */
body.refined .contact-fab {
  --contact-size: 58px;
  position: fixed;
  z-index: 60;
  inset: auto;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  flex: 0 0 var(--contact-size);
  width: var(--contact-size);
  height: var(--contact-size);
  min-width: var(--contact-size);
  min-height: var(--contact-size);
  margin: 0;
  padding: 0;
  border: 1px solid #8dc7a7;
  border-radius: 50%;
  background: #096944;
  background: linear-gradient(145deg, #138252 0%, #096944 72%);
  color: #fff;
  box-shadow: 0 0 0 4px #050a301a, 0 8px 24px #02061c38,
    inset 0 1px 0 #ffffff40, inset 0 -2px 3px #00452e4d;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
  isolation: isolate;
  overflow: visible;
  transform: none;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1);
  -webkit-tap-highlight-color: transparent;
}

body.refined .contact-fab::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #ffffff14;
  border-top-color: #f2cd1b47;
  border-radius: inherit;
  pointer-events: none;
}

body.refined .contact-fab > svg {
  display: block;
  position: relative;
  width: 29px;
  height: 29px;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.refined .contact-fab .contact-phone {
  fill: currentColor;
  stroke: none;
}

body.refined .contact-fab:focus-visible {
  outline: 3px solid #96adff;
  outline-offset: 5px;
  box-shadow: 0 0 0 3px #050a30, 0 8px 24px #02061c38;
  transition: none;
}

body.refined .contact-fab .contact-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: max-content;
  max-width: min(230px, calc(100vw - 112px));
  padding: 10px 13px;
  border: 1px solid #96adff4d;
  border-radius: 10px;
  background: #101f3d;
  color: #f7f3e8;
  box-shadow: 0 6px 18px #02061c30;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(3px, -50%);
  transition: opacity 140ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1), visibility 140ms;
}

body.refined .contact-fab .contact-tooltip::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 100%;
  width: 13px;
}

body.refined .contact-fab:focus-visible .contact-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  body.refined .contact-fab:hover {
    transform: translateY(-2px);
  }

  body.refined .contact-fab:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
  }
}

body.refined .contact-fab:active {
  transform: scale(.97);
  transition-duration: 80ms;
}

@media (max-width: 760px) {
  body.refined .contact-fab {
    --contact-size: 54px;
  }

  body.refined .contact-fab > svg {
    width: 27px;
    height: 27px;
  }

  /* Leave room to read the final footer line beside the persistent action. */
  body.refined :is(.footer, .site-footer) {
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.refined .contact-fab,
  body.refined .contact-fab .contact-tooltip {
    transition: none;
  }

  body.refined .contact-fab:is(:hover, :active) {
    transform: none;
  }
}

body.refined.motion-paused .contact-fab,
body.refined.motion-paused .contact-fab .contact-tooltip,
html.motion-paused body.refined .contact-fab,
html.motion-paused body.refined .contact-fab .contact-tooltip {
  transition: none;
}

body.refined.motion-paused .contact-fab:is(:hover, :active),
html.motion-paused body.refined .contact-fab:is(:hover, :active) {
  transform: none;
}

@media (prefers-contrast: more) {
  body.refined .contact-fab {
    border: 2px solid #fff;
    background: #075438;
  }

  body.refined .contact-fab .contact-tooltip {
    border-color: #f7f3e8;
    background: #050a30;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.refined .contact-fab {
    background: #096944;
  }

  body.refined .contact-fab::before {
    display: none;
  }
}

@media (forced-colors: active) {
  body.refined .contact-fab {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  body.refined .contact-fab::before {
    display: none;
  }

  body.refined .contact-fab > svg {
    stroke: ButtonText;
  }

  body.refined .contact-fab .contact-phone {
    fill: ButtonText;
  }

  body.refined .contact-fab:focus-visible {
    outline-color: Highlight;
  }

  body.refined .contact-fab .contact-tooltip {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}

@media print {
  body.refined .contact-fab {
    display: none !important;
  }
}
