/**
 * MLELE shared CTA interaction, matched to the reference site's whole-a / btn-3.
 * Only explicit CTA classes are targeted. Menus, icon controls, tabs, pagination,
 * ordinary text links and contact-rail items retain their own interaction.
 * Existing component CSS remains responsible for dimensions and typography.
 * Future custom CTAs can opt in with mle-btn-sweep; no JavaScript is required.
 */
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
) {
    --theme-button-transform: none;
    --theme-button-shadow: none;
    position: relative;
    isolation: isolate;
    z-index: 0;
    overflow: hidden;
    background: var(--mle-button-fill, var(--mle-blue, #1f4fa3));
    border-color: var(--mle-button-border, var(--mle-button-fill, var(--mle-blue, #1f4fa3)));
    border-radius: 6px;
    color: var(--mle-button-text, #fff);
    box-shadow: none;
    transform: none;
    text-decoration: none;
    outline: 1px solid var(--mle-button-border, var(--mle-button-fill, var(--mle-blue, #1f4fa3)));
    outline-offset: -1px;
    transition: color .3s ease;
}

/* Light and outlined CTAs keep their existing visual roles. */
body:not(.wp-admin) :is(.mle-button-light, .mle-product-button-light, .mle-category-contact-button) {
    --mle-button-fill: #fff;
    --mle-button-text: var(--mle-blue, #1f4fa3);
    --mle-button-sweep: var(--mle-blue, #1f4fa3);
    --mle-button-hover-text: #fff;
}
body:not(.wp-admin) .mle-button-outline {
    --mle-button-fill: rgba(5, 20, 43, .15);
    --mle-button-border: rgba(255, 255, 255, .7);
}
body:not(.wp-admin) .mle-header-chat svg { fill: currentColor; }

/* Exclude disabled / busy buttons so Fluent Forms owns its progress indicator. */
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"])::before,
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"])::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto;
    z-index: -1;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0 solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    opacity: 1;
    pointer-events: none;
    transform: rotate(360deg);
    animation: none;
    transition: border-width .5s ease;
}
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"])::before {
    bottom: -5px;
    left: -5px;
    border-left-color: var(--mle-button-sweep, #fff);
}
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"])::after {
    top: -5px;
    right: -5px;
    border-right-color: var(--mle-button-sweep, #fff);
}

/* Keyboard users receive the same fill state plus a visible focus outline. */
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"]):focus-visible {
    background: var(--mle-button-fill, var(--mle-blue, #1f4fa3));
    color: var(--mle-button-hover-text, var(--mle-blue, #1f4fa3));
    box-shadow: none;
    transform: none;
    text-decoration: none;
    outline: 2px solid var(--mle-blue, #1f4fa3);
    outline-offset: 3px;
}
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"]):focus-visible::before { border-width: 300px 0 0 300px; }
body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"]):focus-visible::after { border-width: 0 300px 300px 0; }

/* Do not leave a sticky desktop hover state on touch-only devices. */
@media (hover: hover) and (pointer: fine) {
    body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"]):hover {
        background: var(--mle-button-fill, var(--mle-blue, #1f4fa3));
        color: var(--mle-button-hover-text, var(--mle-blue, #1f4fa3));
        box-shadow: none;
        transform: none;
        text-decoration: none;
    }
    body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"]):hover::before { border-width: 300px 0 0 300px; }
    body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"]):hover::after { border-width: 0 300px 300px 0; }
}
@media (prefers-reduced-motion: reduce) {
    body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
),
    body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"])::before,
    body:not(.wp-admin) :is(
    .mle-button,
    .mle-btn-sweep,
    .mle-header-chat,
    .mle-about-readmore,
    .mle-product-showcase-button,
    .mle-solution-link,
    .mle-news-more,
    .mle-product-button,
    .mle-category-contact-button,
    .mle-article-contact-button,
    .mle-solutions-button,
    .mle-results-search button[type="submit"],
    .fluentform button.ff-btn-submit,
    .wp-block-button__link
):not(:disabled, .disabled, .ff-working, [aria-disabled="true"], [aria-busy="true"])::after { transition: none; }
}
/* Text-only site buttons. Keep CTA fill animations and real form feedback intact. */
body:not(.wp-admin) :is(button, [role="button"], .mle-button, .mle-btn-sweep, .mle-header-chat, .mle-about-readmore, .mle-product-showcase-button, .mle-solution-link, .mle-solutions-link, .mle-news-more, .mle-product-button, .mle-category-contact-button, .mle-article-contact-button, .mle-solutions-button, .mle-product-category-card__more, .mle-related-readmore, .mle-card-link, .mle-text-link, .mle-product-text-link, .mle-download-action, .wp-block-button__link) :is(svg, i[class*="fa"], [class*="button-icon"], [class*="btn-icon"], [aria-hidden="true"]):not(.ff-loading):not(.mle-about-play > svg):not(.mle-search-form > button > svg):not(.mle-search-toggle > svg):not(.mle-results-search > button > svg):not(.mle-404 .ct-search-form button > svg.ct-search-button-content):not(.mle-product-gallery-chevron):not([data-mle-back-to-top] > .mle-rail-icon) { display:none!important; }
body:not(.wp-admin) .mle-menu-toggle { flex-shrink:0;width:auto;min-width:54px;padding:0 10px;border-radius:6px;font-size:12px;line-height:1;gap:0; }
body:not(.wp-admin) :is(.mle-about-video-close,.mle-product-quote-close) { width:auto;min-width:64px;height:36px;min-height:0;padding:0 10px;border-radius:6px;font-size:13px;font-weight:600;line-height:1; }
body:not(.wp-admin) .mle-home-faq-icon { display:none; }
body:not(.wp-admin) :is(.mle-category-faq-item,.mle-product-faq-item,.mle-solutions-faq-item) summary::after { display:none;content:none; }
/* A parent-theme dialog may be injected even though the custom header is used. */
body:not(.wp-admin) .ct-toggle-close::after { content:"Close";font-size:13px; }

@media(max-width:600px) {
    body:not(.wp-admin) .mle-header-actions { gap:8px; }
    body:not(.wp-admin) .mle-brand { min-width:0;flex:1 1 0%; }
    body:not(.wp-admin) .mle-brand img.mle-brand-logo { max-width:100%;height:auto; }
    body:not(.wp-admin) .mle-header-chat { width:auto;padding:0 8px;border-radius:6px;font-size:11px; }
    body:not(.wp-admin) .mle-header-chat span { display:inline; }
    body:not(.wp-admin) .mle-menu-toggle { margin-left:6px;min-width:50px;padding:0 8px; }
}
/* Keep the restored gallery arrow clear of the fixed contact rail on phones. */
@media(max-width:600px) {
    body:not(.wp-admin) .mle-product-detail .mle-product-gallery-arrow.is-next { right:72px; }
}

/* Shared product navigation: homepage showcase and product-detail gallery. */
.mle-product-gallery-arrow{position:absolute;top:50%;z-index:2;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:42px;min-width:0;height:42px;min-height:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#28384b;font-size:27px;line-height:1;transform:translateY(-50%);cursor:pointer;box-shadow:0 2px 14px rgba(20,35,55,.12);transition:background .2s,color .2s}
.mle-product-gallery-arrow:hover{background:var(--mle-pd-blue,#1559a8);color:#fff}
.mle-product-gallery-arrow.is-prev{left:16px}
.mle-product-gallery-arrow.is-next{right:16px}
.mle-product-gallery-chevron{display:block;flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mle-product-gallery-arrow.is-prev .mle-product-gallery-chevron{transform:translateX(-1px)}
.mle-product-gallery-arrow.is-next .mle-product-gallery-chevron{transform:translateX(1px)}
.mle-product-gallery-arrow:focus-visible{outline:2px solid var(--mle-pd-blue,#1559a8);outline-offset:3px}



/* 询盘弹窗关闭叉号 */
body:not(.wp-admin) .mle-product-quote-dialog .mle-product-quote-close {
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}