/*
 * SVG CTA arrows.
 * Using an image prevents iOS from substituting the diagonal arrow with emoji artwork.
 */

.cta-arrow {
  display: inline-grid !important;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 24px !important;
  place-items: center;
  line-height: 0;
  transform-origin: center;
}

.cta-arrow-diagonal {
  transform: rotate(-45deg);
}

.cta-arrow img {
  display: block;
  width: 18px;
  height: 18px;
  max-width: none;
  transition: filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* White arrows on the dark and translucent CTA treatments. */
.button-light .cta-arrow img,
.button-dark .cta-arrow img,
.combo-content .text-button .cta-arrow img,
.product-whatsapp .cta-arrow img,
.whatsapp-checkout .cta-arrow img {
  filter: brightness(0) invert(1);
}

.button-light:hover .cta-arrow img,
.button-light:focus-visible .cta-arrow img,
.button-dark:hover .cta-arrow img,
.button-dark:focus-visible .cta-arrow img {
  filter: none;
}

/* These premium CTA variants use pale or gold backgrounds with dark text. */
.ritual-section .button .cta-arrow img,
.builder-footer .button-dark .cta-arrow img {
  filter: none;
}

.product-whatsapp .cta-arrow,
.whatsapp-checkout .cta-arrow {
  margin-left: auto !important;
}

.combo-content .text-button .cta-arrow,
[data-clear-filters] .cta-arrow {
  width: 14px;
  height: 14px;
  margin-left: 18px !important;
}

.combo-content .text-button .cta-arrow img,
[data-clear-filters] .cta-arrow img {
  width: 14px;
  height: 14px;
}

@media (max-width: 700px) {
  .button .cta-arrow {
    width: 17px;
    height: 17px;
    margin-left: 20px !important;
  }

  .button .cta-arrow img {
    width: 17px;
    height: 17px;
  }

  .combo-content .text-button .cta-arrow,
  [data-clear-filters] .cta-arrow {
    width: 12px;
    height: 12px;
    margin-left: 8px !important;
  }

  .combo-content .text-button .cta-arrow img,
  [data-clear-filters] .cta-arrow img {
    width: 12px;
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-arrow img {
    transition: none;
  }
}
