.template-floating-actions {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.template-back-to-top,
.template-consult__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ed6c00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  appearance: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.template-back-to-top {
  width: 50px;
  height: 50px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.template-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.template-back-to-top svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.template-consult {
  position: relative;
  width: 54px;
  height: 54px;
}

.template-consult__trigger {
  width: 54px;
  height: 54px;
}

.template-consult__trigger svg {
  width: 54px;
  height: 54px;
}

.template-consult__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: #b42318;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-family: "sourcehansanscn-medium", "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  animation: template-newsletter-badge-pop 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.template-consult__badge[hidden] {
  display: none;
}

.template-back-to-top:hover,
.template-consult__trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.template-back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.template-consult__trigger:focus,
.template-consult__trigger:focus-visible,
.template-consult__trigger.is-newsletter-return-target {
  outline: none;
}

body.template-menu-open .template-floating-actions,
body.template-search-open .template-floating-actions,
body.template-lightbox-open .template-floating-actions,
body.template-quote-open .template-floating-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .template-floating-actions {
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }

  .template-back-to-top {
    width: 46px;
    height: 46px;
  }

  .template-back-to-top svg {
    width: 21px;
    height: 21px;
  }

  .template-consult,
  .template-consult__trigger,
  .template-consult__trigger svg {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-floating-actions,
  .template-back-to-top,
  .template-consult__trigger,
  .template-consult__badge {
    transition: none;
    animation: none;
  }
}

@keyframes template-newsletter-badge-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  70% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
