/* Shared Zeelool-inspired AR Try-On control for every storefront entry point. */
.vp-ar-tryon {
    display: inline-flex !important;
    width: auto !important;
    min-width: 118px !important;
    height: 42px !important;
    padding: 0 17px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid rgba(26, 26, 26, .12) !important;
    border-radius: 11px !important;
    background: rgba(229, 229, 229, .94) !important;
    color: #333 !important;
    box-shadow: 0 4px 13px rgba(0, 0, 0, .10) !important;
    font-size: 12px !important;
    font-weight: 560 !important;
    line-height: 1 !important;
    letter-spacing: -.01em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: none !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.vp-ar-tryon:hover,
.vp-ar-tryon:focus-visible {
    border-color: rgba(26, 26, 26, .20) !important;
    background: rgba(216, 216, 216, .97) !important;
    color: #242424 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .12) !important;
    outline: none !important;
    transform: none !important;
}

.vp-ar-tryon:focus-visible {
    outline: 2px solid rgba(75, 56, 238, .32) !important;
    outline-offset: 3px !important;
}

.vp-ar-tryon__icon {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.vp-product-detail-active .vp-main-image-wrap > .vp-try-on.vp-ar-tryon {
    top: auto !important;
    right: 0 !important;
    bottom: 16px !important;
    left: 0 !important;
    width: max-content !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.vp-product-detail-active .vp-product-page .vp-related .zl-product-card.product-cart-wrap:not(.small) .product-badges.product-badges-position:has(.vp-ar-tryon) {
    top: auto !important;
    right: 0 !important;
    bottom: 12px !important;
    left: 0 !important;
    width: max-content !important;
    max-width: calc(100% - 24px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.vp-ar-tryon > span,
.product-cart-wrap .vp-ar-tryon > span,
.zl-product-card .vp-ar-tryon > span {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font: inherit !important;
    white-space: nowrap !important;
}

/* Remove the legacy badge capsule so only the shared AR pill is visible. */
.product-cart-wrap .product-badges.product-badges-position span.hot:has(.vp-ar-tryon),
.zl-product-card .product-badges.product-badges-position span.hot:has(.vp-ar-tryon) {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 991.98px) {
    body .product-cart-wrap:not(.small) .product-badges.product-badges-position span.hot > .vp-ar-tryon,
    body .zl-product-card.product-cart-wrap .product-badges.product-badges-position span.hot > .vp-ar-tryon,
    body .vp-ar-tryon,
    .product-cart-wrap .vp-ar-tryon,
    .zl-product-card .vp-ar-tryon {
        width: auto !important;
        min-width: 106px !important;
        height: 36px !important;
        padding: 0 13px !important;
        gap: 7px !important;
        border-radius: 10px !important;
        font-size: 10.5px !important;
    }

    body .vp-ar-tryon__icon,
    body .product-cart-wrap .vp-ar-tryon__icon,
    body .zl-product-card .vp-ar-tryon__icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }

    body .product-cart-wrap .product-badges.product-badges-position:has(.vp-ar-tryon),
    body .zl-product-card .product-badges.product-badges-position:has(.vp-ar-tryon) {
        width: auto !important;
        height: auto !important;
        max-width: calc(100% - 16px) !important;
    }

    body.vp-product-detail-active .vp-product-page .vp-related .zl-product-card.product-cart-wrap:not(.small) .product-badges.product-badges-position span.hot > .vp-ar-tryon {
        width: max-content !important;
        min-width: 96px !important;
        height: 32px !important;
        padding: 0 11px !important;
        gap: 6px !important;
        border-radius: 9px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 575.98px) {
    body .product-cart-wrap:not(.small) .product-badges.product-badges-position span.hot > .vp-ar-tryon,
    body .zl-product-card.product-cart-wrap .product-badges.product-badges-position span.hot > .vp-ar-tryon,
    body .vp-ar-tryon,
    .product-cart-wrap .vp-ar-tryon,
    .zl-product-card .vp-ar-tryon {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 50% !important;
    }

    body .vp-ar-tryon__icon,
    body .product-cart-wrap .vp-ar-tryon__icon,
    body .zl-product-card .vp-ar-tryon__icon {
        width: 19px !important;
        height: 19px !important;
        flex-basis: 19px !important;
    }

    body .vp-ar-tryon > span,
    body .product-cart-wrap .vp-ar-tryon > span,
    body .zl-product-card .vp-ar-tryon > span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
    }
}

/* Product detail keeps the complete action label on every screen. */
@media (max-width: 575.98px) {
    body.vp-product-detail-active .vp-main-image-wrap > .vp-try-on.vp-ar-tryon {
        width: max-content !important;
        min-width: 108px !important;
        height: 36px !important;
        padding: 0 13px !important;
        gap: 7px !important;
        border-radius: 10px !important;
        font-size: 10.5px !important;
    }

    body.vp-product-detail-active .vp-main-image-wrap > .vp-try-on.vp-ar-tryon > span {
        position: static !important;
        display: inline !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: nowrap !important;
    }

    body.vp-product-detail-active .vp-product-page .vp-related .zl-product-card.product-cart-wrap:not(.small) .product-badges.product-badges-position:has(.vp-ar-tryon) {
        right: 0 !important;
        bottom: 8px !important;
        left: 0 !important;
        max-width: calc(100% - 16px) !important;
    }

    body.vp-product-detail-active .vp-product-page .vp-related .zl-product-card.product-cart-wrap:not(.small) .product-badges.product-badges-position span.hot > .vp-ar-tryon {
        width: max-content !important;
        min-width: 90px !important;
        height: 30px !important;
        padding: 0 9px !important;
        gap: 5px !important;
        border-radius: 8px !important;
        font-size: 9px !important;
    }

    body.vp-product-detail-active .vp-product-page .vp-related .zl-product-card .vp-ar-tryon > span {
        position: static !important;
        display: inline !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
    }
}
