/* Quiet per-photo cart controls. Keep the existing cart behavior and labels. */
.entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    background: rgba(20, 20, 20, 0.78) !important;
    color: #fff !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18) !important;
    transition: opacity 140ms ease, background-color 140ms ease;
}
.entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn > svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
}
.entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn:is(:hover, :focus-visible) {
    background: rgba(20, 20, 20, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}
.entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn.is-selected {
    background: #fff !important;
    color: #202020 !important;
    border-color: #fff !important;
}
.entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn.is-selected::after {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #202020;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}
/* Opacity keeps keyboard access; hiding with display/visibility would remove it. */
@media (hover: hover) and (pointer: fine) {
    .entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn {
        opacity: 0;
        pointer-events: none;
    }
    .entry-content :is(.mgl-item, figure, .msf-media-card, .msf-photo):is(:hover, :focus-within) .msf-whcc-cart-btn,
    .entry-content .msf-card-bottom-right-actions:focus-within .msf-whcc-cart-btn,
    .entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn:is(:focus-visible, .is-selected, .is-cart-guided) {
        opacity: 1;
        pointer-events: auto;
    }
}
/* Touch and hybrid devices do not require hover to discover a control. */
@media (hover: none), (pointer: coarse), (any-pointer: coarse) {
    .entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn {
        opacity: 1;
        pointer-events: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .entry-content .msf-card-bottom-right-actions .msf-whcc-cart-btn { transition: none; }
}
