.wh-fcta {
  position: fixed;
  z-index: 99990;
  inset: auto;
  bottom: var(--wh-fcta-offset-y);
  right: var(--wh-fcta-offset-x);
  pointer-events: none;
  --wh-fcta-size: 3.125rem;
  --wh-fcta-gap: 0.5rem;
  --wh-fcta-offset-x: 5%;
  --wh-fcta-offset-y: 5%;
  --wh-fcta-btn-bg: #ea002a;
  --wh-fcta-btn-bg-hover: #c80024;
  --wh-fcta-shadow: 0 10px 30px rgba(3, 7, 18, 0.22);
}

.wh-fcta__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--wh-fcta-gap);
  pointer-events: auto;
}

.wh-fcta[data-wh-fcta-desktop='bottom-right'] {
  right: var(--wh-fcta-offset-x);
  bottom: var(--wh-fcta-offset-y);
  left: auto;
}

.wh-fcta[data-wh-fcta-desktop='bottom-left'] {
  left: var(--wh-fcta-offset-x);
  bottom: var(--wh-fcta-offset-y);
  right: auto;
}

.wh-fcta[data-wh-fcta-desktop='bottom-left'] .wh-fcta__nav {
  align-items: flex-start;
}

.wh-fcta__items {
  display: flex;
  flex-direction: column;
  gap: var(--wh-fcta-gap);
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.wh-fcta__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wh-fcta-size);
  height: var(--wh-fcta-size);
  border-radius: 999px;
  background: var(--wh-fcta-btn-bg);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--wh-fcta-shadow);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: translateY(0.5rem) scale(0.92);
}

.wh-fcta.is-open .wh-fcta__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wh-fcta__item:hover,
.wh-fcta__item:focus-visible {
  background: var(--wh-fcta-btn-bg-hover);
  transform: translateY(-2px) scale(1.02);
}

.wh-fcta__item-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
}

.wh-fcta__item-icon svg {
  width: 100%;
  height: 100%;
}

.wh-fcta__tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.75rem);
  transform: translateY(-50%) translateX(0.25rem);
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  background: rgba(3, 7, 18, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.wh-fcta[data-wh-fcta-desktop='bottom-left'] .wh-fcta__tooltip {
  right: auto;
  left: calc(100% + 0.75rem);
  transform: translateY(-50%) translateX(-0.25rem);
}

.wh-fcta__item:hover .wh-fcta__tooltip,
.wh-fcta__item:focus-visible .wh-fcta__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.wh-fcta__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wh-fcta-size);
  height: var(--wh-fcta-size);
  border: 0;
  border-radius: 999px;
  background: var(--wh-fcta-btn-bg);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--wh-fcta-shadow);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wh-fcta__toggle:hover,
.wh-fcta__toggle:focus-visible {
  background: var(--wh-fcta-btn-bg-hover);
}

.wh-fcta__toggle:disabled {
  cursor: default;
  opacity: 0.92;
}

.wh-fcta--no-items .wh-fcta__toggle {
  cursor: default;
}

.wh-fcta__toggle.is-pulse {
  animation: wh-fcta-bounce 2.2s ease-in-out infinite;
}

.wh-fcta.is-open .wh-fcta__toggle.is-pulse {
  animation: none;
}

.wh-fcta__toggle-icon {
  display: block;
  transition: transform 0.2s ease;
}

.wh-fcta.is-open .wh-fcta__toggle-icon {
  transform: rotate(45deg);
}

@keyframes wh-fcta-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.45rem);
  }
}

@media (max-width: 63.99rem) {
  .wh-fcta[data-wh-fcta-mobile='bottom-right'] {
    right: var(--wh-fcta-offset-x);
    left: auto;
  }

  .wh-fcta[data-wh-fcta-mobile='bottom-right'] .wh-fcta__nav {
    align-items: flex-end;
  }

  .wh-fcta[data-wh-fcta-mobile='bottom-left'] {
    left: var(--wh-fcta-offset-x);
    right: auto;
  }

  .wh-fcta[data-wh-fcta-mobile='bottom-left'] .wh-fcta__nav {
    align-items: flex-start;
  }

  .wh-fcta[data-wh-fcta-mobile='bottom-left'] .wh-fcta__tooltip {
    right: auto;
    left: calc(100% + 0.75rem);
    transform: translateY(-50%) translateX(-0.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wh-fcta__toggle.is-pulse {
    animation: none;
  }

  .wh-fcta__item,
  .wh-fcta__toggle-icon,
  .wh-fcta__tooltip {
    transition: none;
  }
}
