/* Interaction feedback for the Chinese site. The existing focus styles remain visible. */
@media (prefers-reduced-motion: no-preference) {
    html[lang^="zh"] body.home.stm-reference-home.stm-ui-refined.stm-official-brand.stm-home-v3
    [data-stm-banner-motion] .stm-hr-slide {
        animation: none;
    }

    [data-stm-banner-motion] .stm-hr-slides {
        isolation: isolate;
    }

    [data-stm-banner-motion] .stm-hr-slides::after {
        z-index: 2;
    }

    .stm-banner-outgoing {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .stm-banner-outgoing img {
        display: block;
        width: 100%;
        height: 100% !important;
    }

    :is(.sv-tasks a, .sv-thumbnails button, .pc-card-link, .stm-ps-link) > :is(i, svg):last-child,
    .stm-gallery-expand {
        transition: translate 160ms ease-out, scale 160ms ease-out;
    }

    :is(.sv-tasks a, .sv-thumbnails button, .stm-ps-link):focus-visible > :is(i, svg):last-child,
    .pc-card a:focus-visible .pc-card-link > :is(i, svg):last-child {
        translate: 3px 0;
    }

    .stm-gallery-photo:focus-visible .stm-gallery-expand {
        scale: 1.08;
    }

    @media (min-width: 1024px) {
        html[lang^="zh"] body.home.stm-reference-home.stm-ui-refined.stm-official-brand.stm-home-v3
        #stm-solutions.stm-sv .sv-thumbnails button {
            transition: translate 220ms ease-out, border-color 200ms ease-out, background-color 200ms ease-out;
        }

        .stm-home-v3 #stm-solutions .sv-thumbnails button:focus-visible {
            translate: 0 -5px;
        }

        @media (hover: hover) and (pointer: fine) {
            .stm-home-v3 #stm-solutions .sv-thumbnails button:hover {
                translate: 0 -5px;
            }
        }
    }

    @media (hover: hover) and (pointer: fine) {
        :is(.sv-tasks a, .sv-thumbnails button, .stm-ps-link):hover > :is(i, svg):last-child,
        .pc-card a:hover .pc-card-link > :is(i, svg):last-child {
            translate: 3px 0;
        }

        .stm-gallery-photo:hover .stm-gallery-expand {
            scale: 1.08;
        }
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1101px) {
    .stm-hn-mega:not([hidden]) {
        animation: stm-menu-open 200ms cubic-bezier(.22, 1, .36, 1);
    }

    .stm-hn-mega:not([hidden]) .stm-hn-panel:not([hidden]) {
        animation: stm-menu-content 160ms ease-out;
    }

    .stm-header-manual-mega {
        transition-duration: 200ms;
        transition-timing-function: cubic-bezier(.22, 1, .36, 1);
    }

    .stm-header-manual-mega:not(.is-open) {
        transform: translateY(-5px);
    }
}

@keyframes stm-menu-open {
    from { opacity: .82; translate: 0 -5px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes stm-menu-content {
    from { opacity: .87; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html[lang^="en"] :is(
        .stm-header-manual-mega, .stm-header-manual-mobile, .stm-header-manual-backdrop,
        .stm-hero-slide, .stm-product-slide, .stm-product-card__image
    ) {
        animation: none !important;
        transition: none !important;
    }
}

[data-stm-motion-carousel] :is([data-stm-hero-slide], .stm-product-slide) {
    transition: none;
    transform: none;
}

[data-stm-motion-carousel] .stm-carousel-outgoing {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: none;
}

[data-stm-motion-carousel="products"] .stm-carousel-outgoing .stm-product-card__content {
    visibility: hidden;
}

[data-stm-motion-carousel] .stm-carousel-pause {
    position: absolute;
    top: .875rem;
    right: .875rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / .56);
    border-radius: 50%;
    color: #fff;
    background: rgb(5 23 40 / .85);
}

.stm-carousel-pause::before {
    content: '';
    width: 11px;
    height: 13px;
    border-inline: 3px solid currentColor;
    box-sizing: border-box;
}

.stm-carousel-pause[data-paused="true"]::before {
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-left: 10px solid currentColor;
    border-right: 0;
    margin-left: 2px;
}

[data-stm-motion-carousel] .stm-carousel-pause:is(:hover, :focus-visible) {
    background: #075db1;
}

[data-stm-motion-carousel] .stm-carousel-pause:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (hover: none) {
    [data-stm-motion-carousel] .stm-product-slider__arrow {
        opacity: 1;
    }
}
