/* Native cursor rendering keeps the tip under the mouse even while a page is scrolling. */
.jm-pointer-ring {
    position: fixed;
    z-index: 2147483647;
    inset: 0 auto auto 0;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease-out;
}
.jm-pointer-ring::before {
    content: "";
    position: absolute;
    left: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 1px solid var(--champagne, #d4af72);
    box-shadow: 0 0 0 1px rgb(68 25 34 / 30%);
    border-radius: 50%;
    transform: scale(.78);
    transition: transform var(--jm-motion-fast) var(--jm-ease-out);
}
@media (hover:hover) and (pointer:fine) and (forced-colors:none) {
    html, body {
        --jm-pointer: url('../icons/maison-pointer.svg') 3 2;
        cursor: var(--jm-pointer), auto;
    }
    /* Controls with their own native edit, drag or selection affordances keep those. */
    body :is(a[href],button,summary,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled,.disabled,.loading,[aria-disabled="true"],[aria-busy="true"],[draggable="true"]):not(#wpadminbar *) {
        cursor: var(--jm-pointer), pointer;
    }
    body :where(input,select,textarea,[contenteditable]:not([contenteditable="false"]),[draggable="true"],#wpadminbar) { cursor: auto; }
    body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="password"],input[type="url"],textarea,[contenteditable]:not([contenteditable="false"])) { cursor: text; }
    body :is(:disabled,.disabled,[aria-disabled="true"]) { cursor: not-allowed; }
    .jm-pointer-ring.is-visible { opacity: .78; }
    .jm-pointer-ring.is-visible::before { transform: scale(1); }
}
@media (prefers-reduced-motion:no-preference) {
    .jm-arrive { animation: jm-surface-arrive var(--jm-motion-slow) var(--jm-ease-out); }
    .jm-arrive:is(:target,:focus-within) { animation: none; }
    @keyframes jm-surface-arrive {
        from { opacity: .68; translate: 0 9px; }
        to { opacity: 1; translate: 0 0; }
    }
    /* Modal dialogs remain in the top layer while the close transition plays. */
    @supports (transition-behavior:allow-discrete) {
        dialog.pem-quiz, dialog.pem-quiz-exit, .jm-search::details-content {
            opacity: 0;
            transition: opacity var(--jm-motion-fast) ease, display var(--jm-motion-fast) allow-discrete, overlay var(--jm-motion-fast) allow-discrete, content-visibility var(--jm-motion-fast) allow-discrete;
        }
        dialog.pem-quiz[open], dialog.pem-quiz-exit[open], .jm-search[open]::details-content { opacity: 1; }
        @starting-style { dialog.pem-quiz[open], dialog.pem-quiz-exit[open], .jm-search[open]::details-content { opacity: 0; } }
    }
}
@media (max-width:1000px) and (prefers-reduced-motion:no-preference) {
    @supports (transition-behavior:allow-discrete) {
        .header .nav {
            opacity: 0;
            translate: 0 -4px;
            transition: opacity var(--jm-motion-fast) ease, translate var(--jm-motion-fast) ease, display var(--jm-motion-fast) allow-discrete;
        }
        .header .nav.is-open { opacity: 1; translate: 0; }
        @starting-style { .header .nav.is-open { opacity: 0; translate: 0 -4px; } }
    }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .jn-cta > [aria-hidden=true], .jn-link > [aria-hidden=true], .jl-home-product-action > i {
        display: inline-block;
        transition: transform var(--jm-motion-base) var(--jm-ease-out);
    }
    :is(.jn-cta,.jn-link):is(:hover,:focus-visible) > [aria-hidden=true],
    .jn-card > a:is(:hover,:focus-visible) .jl-home-product-action > i { transform: translateX(2px); }
    .jn-cta:active > [aria-hidden=true], .jn-link:active > [aria-hidden=true] { transform: none; }

    body .pem-product .pem-size-choices button:hover { transform:none; }
    body .header .nav a:focus-visible::after { right:0; }
    body .jn-card > a:is(:hover,:focus-visible) .jn-card__media img { transform:scale(1.025); }
    body .jn-card > a:is(:hover,:focus-visible) .jn-card__foot > span:last-child { transform:none; }
    body :is(.pem-product-card,.pem-home-catalog__item,.pem-quiz__result,.pem-tree-extras__item,.wc-block-product,.wc-block-grid__product)::before {
        content:none;
    }
    body .pem-shop ul.products li.product.pem-product-card .pem-product-card__image:is(:hover,:focus-visible) img { transform:scale(1.025)!important; }
}
@media (forced-colors:active), (prefers-reduced-motion:reduce), (hover:none), print {
    .jm-pointer-ring { display:none; }
}

@media print { .jm-arrive { animation:none; } }
