/* Fixed call to action (bottom-left): a glass dock with two smart buttons.
   It appears after the first scroll, collapses to icons while scrolling down and expands again when scrolling up. */
.ebmnt1-fixed-cta {
  position: fixed;
  inset-block-end: var(--ebmnt1-offset-fixed-cta-bottom);
  left: var(--ebmnt1-offset-fixed-cta-left);
  z-index: var(--ebmnt1-z-fixed-cta);
  display: flex;
  background-color: var(--ebmnt1-background-fixed-cta);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.5rem) scale(0.96);
  transition:
    opacity var(--ebmnt1-duration-medium) var(--ebmnt1-easing-standard),
    transform var(--ebmnt1-duration-medium) var(--ebmnt1-easing-standard);
}

.ebmnt1-fixed-cta.ebmnt1-is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ebmnt1-fixed-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--ebmnt1-border-fixed-cta-dock);
  border-radius: var(--ebmnt1-radius-dock);
  background-color: var(--ebmnt1-background-fixed-cta-dock);
  box-shadow: var(--ebmnt1-shadow-fixed-cta);
  -webkit-backdrop-filter: blur(var(--ebmnt1-blur-fixed-cta));
  backdrop-filter: blur(var(--ebmnt1-blur-fixed-cta));
}

.ebmnt1-fixed-cta__button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  overflow: hidden;
  border-radius: var(--ebmnt1-radius-pill);
  color: var(--ebmnt1-text-fixed-cta);
  font-size: var(--ebmnt1-font-size-fixed-cta);
  font-weight: var(--ebmnt1-font-weight-bold);
  line-height: 1.2;
  white-space: nowrap;
  transition: all var(--ebmnt1-duration-medium) var(--ebmnt1-easing-standard);
}

.ebmnt1-fixed-cta__button--whatsapp {
  background-image: var(--ebmnt1-background-fixed-cta-whatsapp);
}

.ebmnt1-fixed-cta__button--call {
  background-image: var(--ebmnt1-background-fixed-cta-call);
}

/* Light sweep that crosses the button on hover */
.ebmnt1-fixed-cta__button::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  z-index: -1;
  width: 40%;
  background-image: var(--ebmnt1-background-fixed-cta-shine);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.7s ease;
}

.ebmnt1-fixed-cta__button:hover {
  transform: translateY(var(--ebmnt1-offset-hover-lift));
}

.ebmnt1-fixed-cta__button:hover::before {
  inset-inline-start: 120%;
}

.ebmnt1-fixed-cta__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--ebmnt1-size-fixed-cta-icon);
  height: var(--ebmnt1-size-fixed-cta-icon);
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-background-fixed-cta-icon);
  color: var(--ebmnt1-icon-fixed-cta);
  font-size: var(--ebmnt1-font-size-fixed-cta-icon);
}

.ebmnt1-fixed-cta__icon .ebmnt1-icon {
  font-size: inherit;
}

/* Soft pulse ring that draws attention to the icon */
.ebmnt1-fixed-cta__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ebmnt1-radius-circle);
  animation: ebmnt1-pulse-ring 2.4s ease-out infinite;
}

.ebmnt1-fixed-cta__button--whatsapp .ebmnt1-fixed-cta__icon::after {
  box-shadow: 0 0 0 0 var(--ebmnt1-shadow-color-pulse-whatsapp);
}

.ebmnt1-fixed-cta__button--call .ebmnt1-fixed-cta__icon::after {
  box-shadow: 0 0 0 0 var(--ebmnt1-shadow-color-pulse-call);
  animation-delay: 1.2s;
}

@keyframes ebmnt1-pulse-ring {
  70% {
    box-shadow: 0 0 0 0.875rem transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.ebmnt1-fixed-cta__label {
  max-width: 9rem;
  overflow: hidden;
  transition:
    max-width var(--ebmnt1-duration-medium) var(--ebmnt1-easing-standard),
    opacity var(--ebmnt1-duration-fast) ease;
}

@media (min-width: 425px) {
  .ebmnt1-fixed-cta__inner {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  /* Compact mode (desktop and tablet only): icons only while the visitor scrolls down; labels always show on phones */
  /* Compact mode: icons only while the visitor scrolls down */
  .ebmnt1-fixed-cta.ebmnt1-is-compact .ebmnt1-fixed-cta__label {
    max-width: 0;
    opacity: 0;
  }
  
  .ebmnt1-fixed-cta.ebmnt1-is-compact .ebmnt1-fixed-cta__button {
    gap: 0;
    padding-inline-end: 0.25rem;
  }
  
  .ebmnt1-fixed-cta.ebmnt1-is-compact:hover .ebmnt1-fixed-cta__label,
  .ebmnt1-fixed-cta.ebmnt1-is-compact:focus-within .ebmnt1-fixed-cta__label {
    max-width: 9rem;
    opacity: 1;
  }
  
  .ebmnt1-fixed-cta.ebmnt1-is-compact:hover .ebmnt1-fixed-cta__button,
  .ebmnt1-fixed-cta.ebmnt1-is-compact:focus-within .ebmnt1-fixed-cta__button {
    gap: 0.625rem;
    padding-inline-end: 1rem;
  }
}
