/* Shared CTA sheen, independent from each page's button colors. */
.coman-button-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.coman-button-shine::after {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -75%;
    width: 48%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, .12) 34%,
        rgba(255, 255, 255, .52) 50%,
        rgba(255, 255, 255, .12) 66%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transform: skewX(-20deg);
    mix-blend-mode: screen;
}

.coman-button-shine:hover::after,
.coman-button-shine:focus-visible::after {
    animation: comanButtonLightSweep .62s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes comanButtonLightSweep {
    0% {
        left: -75%;
        opacity: 0;
    }

    14% {
        opacity: .9;
    }

    100% {
        left: 140%;
        opacity: 0;
    }
}

/* Keep CSS color feedback while GSAP owns the button transform. */
.coman-magnetic-cta,
.coman-magnetic-cta:hover,
.coman-magnetic-cta:focus-visible {
    transition-property: background, color, border-color, box-shadow !important;
}

.coman-magnetic-cta.coman-magnetic-native,
.coman-magnetic-cta.coman-magnetic-native:hover,
.coman-magnetic-cta.coman-magnetic-native:focus-visible {
    transition-property: translate, background, color, border-color, box-shadow !important;
}

/* Remove visible WhatsApp outlines while retaining their dimensions. */
html .btn-whatsapp,
html .btn-whatsapp:hover,
html .btn-whatsapp:focus,
html .btn-whatsapp:focus-visible,
html .btn-whatsapp:active,
html .coman-mobile-whatsapp,
html .coman-mobile-whatsapp:hover,
html .coman-mobile-whatsapp:focus,
html .coman-mobile-whatsapp:focus-visible,
html .coman-mobile-whatsapp:active,
html .coman-mobile-menu-actions .coman-mobile-whatsapp,
html .coman-mobile-menu-actions .coman-mobile-whatsapp:hover,
html .coman-mobile-menu-actions .coman-mobile-whatsapp:focus-visible,
html[data-theme] .btn-whatsapp,
html[data-theme] .btn-whatsapp:hover,
html[data-theme] .btn-whatsapp:focus,
html[data-theme] .btn-whatsapp:focus-visible,
html[data-theme] .btn-whatsapp:active,
html[data-theme] .coman-mobile-whatsapp,
html[data-theme] .coman-mobile-whatsapp:hover,
html[data-theme] .coman-mobile-whatsapp:focus,
html[data-theme] .coman-mobile-whatsapp:focus-visible,
html[data-theme] .coman-mobile-whatsapp:active,
html[data-theme] .coman-mobile-menu-actions .coman-mobile-whatsapp,
html[data-theme] .coman-mobile-menu-actions .coman-mobile-whatsapp:hover,
html[data-theme] .coman-mobile-menu-actions .coman-mobile-whatsapp:focus-visible {
    border-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
    .coman-button-shine:hover::after,
    .coman-button-shine:focus-visible::after {
        animation: none !important;
    }
}
