.pct-contact-stack {
  position: fixed;
  bottom: var(--pct-bottom, 24px);
  bottom: calc(var(--pct-bottom, 24px) + env(safe-area-inset-bottom, 0px));
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: var(--pct-gap, 12px);
  align-items: flex-end;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pct-contact-stack.pct-contact-right {
  right: 18px;
  right: max(18px, env(safe-area-inset-right, 0px));
}

.pct-contact-stack.pct-contact-left {
  left: 18px;
  left: max(18px, env(safe-area-inset-left, 0px));
  align-items: flex-start;
}

.pct-contact-button {
  box-sizing: border-box;
  width: var(--pct-size, 58px);
  height: var(--pct-size, 58px);
  min-width: var(--pct-size, 58px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none !important;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24), 0 3px 8px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.pct-contact-button:hover {
  color: #fff !important;
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3), 0 4px 10px rgba(15, 23, 42, 0.2);
  filter: brightness(1.04);
}

.pct-contact-button:active {
  transform: translateY(0) scale(0.97);
}

.pct-contact-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.36), 0 12px 30px rgba(15, 23, 42, 0.28);
}

.pct-contact-phone {
  background: var(--pct-phone-color, #0b638f) !important;
}

.pct-contact-whatsapp {
  background: var(--pct-whatsapp-color, #25d366) !important;
}

.pct-contact-button svg {
  width: calc(var(--pct-size, 58px) * 0.48);
  height: calc(var(--pct-size, 58px) * 0.48);
  flex: 0 0 auto;
  display: block;
}

.pct-contact-label {
  display: none;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pct-contact-show-labels .pct-contact-button {
  width: auto;
  min-width: var(--pct-size, 58px);
  padding: 0 17px;
}

.pct-contact-show-labels .pct-contact-label {
  display: inline-block;
}

.pct-contact-left.pct-contact-show-labels .pct-contact-button {
  flex-direction: row-reverse;
}

.pct-contact-visible-mobile {
  display: none;
}

@media (max-width: 767px) {
  .pct-contact-visible-mobile {
    display: flex;
  }

  .pct-contact-visible-desktop {
    display: none;
  }

  .pct-contact-stack.pct-contact-right {
    right: 14px;
    right: max(14px, env(safe-area-inset-right, 0px));
  }

  .pct-contact-stack.pct-contact-left {
    left: 14px;
    left: max(14px, env(safe-area-inset-left, 0px));
  }

  .pct-contact-show-labels .pct-contact-button {
    width: var(--pct-size, 58px);
    padding: 0;
  }

  .pct-contact-show-labels .pct-contact-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pct-contact-button {
    transition: none;
  }
}

@media print {
  .pct-contact-stack {
    display: none !important;
  }
}
