/* Extracted 2026-06-09 (P2 audit #2) from inc/sections/uwpmc-sidecart-icon-swap-v1.php.
 * Rules are byte-identical to the former inline <style> block; the link
 * is printed by pp_print_section_stylesheet_link() at the same output
 * position (wp_footer:9999 alongside the icon-swap script)
 * so cascade order is unchanged — only the delivery is now a cacheable file. */
/* Anchor side cart icon to right side, top-aligned with header cart link */
.uwpmc-widget-container {
    top: 118px !important;
    bottom: auto !important;
    right: 20px !important;
}
/* Logged-out visitors: no admin bar, shift up 32px */
body:not(.admin-bar) .uwpmc-widget-container {
    top: 86px !important;
}

/* Make the qty badge visible as a solid pill over the cart SVG */
#uwpmc-widget-icon {
    position: relative;
}
#uwpmc-widget-icon .uwpmc-widget-qty {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    left: auto !important;
    background: var(--pp-blue,#003D82) !important;
    color: #fff !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    z-index: 10 !important;
    padding: 0 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* Mobile: move sidecart to bottom-right, above Crisp chat */
@media (max-width: 768px) {
    .uwpmc-widget-container {
        top: auto !important;
        bottom: 80px !important;
        right: 16px !important;
        position: fixed !important;
    }
    body:not(.admin-bar) .uwpmc-widget-container {
        top: auto !important;
        bottom: 80px !important;
    }
}
