/* Uploaded monochrome arrows use their alpha silhouette, never their baked-in ink.
 * Kept separate from the legacy shelf layout so colour changes cannot alter drag,
 * spacing, shadows or the user's Elementor content. */
:is(.ape-support-carousel-widget, .ape-practice-carousel) .ape-support-carousel-widget__arrow-icon--masked {
    display: block;
    -webkit-mask: var(--ape-support-arrow-mask) center / contain no-repeat;
    mask: var(--ape-support-arrow-mask) center / contain no-repeat;
    background-color: currentColor;
    height: var(--ape-support-active-arrow-icon-size, 45%);
    width: var(--ape-support-active-arrow-icon-size, 45%);
}
.ape-support-carousel-widget .ape-support-carousel-widget__navigation .detached-nav-btn:not(:disabled):is(:hover, :focus-visible) {
    background: var(--ape-support-arrow-hover-background, #3c544c);
    color: var(--ape-support-arrow-hover-colour, #fff);
}
/* The older, inline-SVG carousel arrows use the same shape and colour behaviour. */
.elementor .detached-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1;
}
.elementor .detached-nav-btn:not([data-ape-support-next]):not([data-ape-support-previous]) {
    color: #3c544c;
}
.elementor .detached-nav-btn:not([data-ape-support-next]):not([data-ape-support-previous]):not(:disabled):is(:hover, :focus-visible) {
    background: #3c544c;
    color: #fff;
}
.elementor .detached-nav-btn svg :is(path, polygon) { fill: currentColor; }
.ape-related-products .ape-related-arrow {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 167.9 252.28'%3E%3Cpath d='M0 252.28 41.98 125.9 0 0 167.9 125.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 167.9 252.28'%3E%3Cpath d='M0 252.28 41.98 125.9 0 0 167.9 125.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ape-related-products .ape-related-arrow--previous { transform: rotate(180deg); }
/* Elementor opt-in: add agile-white-action to the individual button/icon widget.
 * Standalone uploaded SVG arrows can carry a baked-in .cls-1 fill, so colour
 * inheritance alone is insufficient. Do not recolour neighbouring image widgets. */
.agile-white-action :is(.elementor-button, .e-button-base, .elementor-icon, .elementor-button-icon),
.agile-white-action:is(.elementor-button, .e-button-base) {
    color: #fff !important;
}
.agile-white-action :is(.elementor-icon, .elementor-button-icon) svg,
.agile-white-action :is(.elementor-icon, .elementor-button-icon) svg :is(path, polygon, rect, circle, ellipse, use):not([fill="none"]) {
    fill: #fff !important;
}
.agile-white-action :is(.elementor-icon, .elementor-button-icon) svg [stroke]:not([stroke="none"]) {
    stroke: #fff !important;
}
.agile-white-action .elementor-button-icon img {
    filter: brightness(0) invert(1);
}
@media (forced-colors: active) {
    :is(.ape-support-carousel-widget, .ape-practice-carousel) .ape-support-carousel-widget__arrow-icon--masked { background-color: ButtonText; }
}

/* Practice navigation reads the shared Support & Guidance arrow settings. */
.ape-practice-carousel .ape-practice-carousel__controls {
    --ape-support-active-arrow-size:var(--ape-support-desktop-arrow-size);
    --ape-support-active-arrow-icon-size:var(--ape-support-desktop-arrow-icon-size);
    gap:var(--ape-support-arrow-gap);overflow:visible;
}
.ape-practice-carousel .ape-practice-carousel__controls .detached-nav-btn {
    flex:0 0 var(--ape-support-active-arrow-size);
    width:var(--ape-support-active-arrow-size);min-width:var(--ape-support-active-arrow-size);height:var(--ape-support-active-arrow-size);
    background:var(--ape-support-arrow-background);color:var(--ape-support-arrow-colour);border:0;border-radius:50%;
    transform:none;transition:opacity 180ms ease,transform 180ms ease;
}
.ape-practice-carousel .ape-practice-carousel__controls .detached-nav-btn:not(:disabled):is(:hover,:focus-visible) {
    background:var(--ape-support-arrow-hover-background);color:var(--ape-support-arrow-hover-colour);transform:scale(1.06);
}
.ape-practice-carousel .ape-practice-carousel__controls .detached-nav-btn:disabled {opacity:.35;cursor:default}
.ape-practice-carousel.ape-practice-carousel--split {overflow:visible}
@media(max-width:1079px){.ape-practice-carousel .ape-practice-carousel__controls{--ape-support-active-arrow-size:var(--ape-support-tablet-arrow-size);--ape-support-active-arrow-icon-size:var(--ape-support-tablet-arrow-icon-size)}}
@media(max-width:559px){.ape-practice-carousel .ape-practice-carousel__controls{--ape-support-active-arrow-size:var(--ape-support-mobile-arrow-size);--ape-support-active-arrow-icon-size:var(--ape-support-mobile-arrow-icon-size)}}

/* Shared elevation, measured from Apple Store's latest-product cards on
 * 16 September 2026. This deliberately owns elevation only, not dimensions,
 * typography, focus outlines, swatch selection rings or glass treatments. */
:root {
    --agile-shadow-rest: 2px 4px 12px rgba(0, 0, 0, .08);
    --agile-shadow-hover: 2px 4px 16px rgba(0, 0, 0, .16);
}
body :is(.ape-result-card, .ape-related-card, .ape-editorial-card,
    .ape-support-carousel-widget__card, .ur-card,
    .ape-discovery__filters, .ape-discovery-search__field,
    .ape-discovery-search__hint, .ape-discovery__status,
    .ape-basket-item, .ape-basket-request, .ape-account-panel) {
    box-shadow: var(--agile-shadow-rest) !important;
}
@media (hover: hover) {
    body :is(.ape-result-card, .ape-related-card, .ape-editorial-card,
        .ape-support-carousel-widget__card, .ur-card):hover,
    body :is(.elementor-button, .e-button, .e-button-base, .ape-button, .ape-basket-button,
        .woocommerce .button, .ape-discovery button,
        .ape-related-products button, .detached-nav-btn):not(:disabled):hover {
        box-shadow: var(--agile-shadow-hover) !important;
    }
    /* Card footers are not independently elevated buttons. */
    body .ape-result-card__action:hover { box-shadow: none !important; }
}
