.utility-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  line-height: 1;
}

.utility-bar .utility-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--utility-text, #f3f5f3);
  font-family: var(--font-body, "Hanken Grotesk", Arial, sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease;
}

.utility-bar .utility-contact > span {
  max-width: none;
  color: inherit;
  line-height: 1;
  text-align: left;
}

.utility-contact:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.utility-bar .utility-contact .utility-contact-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent, #b8d6e6);
}

.whatsapp-float {
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    opacity 160ms ease,
    visibility 160ms ease;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #146c43, 0 6px 18px rgb(0 0 0 / 25%);
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  padding: 7px 10px;
  border-radius: 3px;
  background: #17231f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .utility-bar .utility-contact:hover {
    color: var(--accent, #b8d6e6);
  }

  .whatsapp-float:hover {
    transform: translateY(-2px);
    background: #20bd5a;
    box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
  }

  .whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.whatsapp-float[data-overlay-open] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  .utility-contacts {
    gap: 8px;
  }

  .utility-bar .utility-contact {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
  }

  .utility-bar .utility-contact > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .utility-bar .utility-contact .utility-contact-icon {
    width: 16px;
    height: 16px;
  }

  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .utility-bar .utility-contact,
  .whatsapp-float,
  .whatsapp-tooltip {
    transition: none;
  }
}
