/* WBPhotography - Winkelwagen notificatie-badge voor UberMenu */
/* Activeer via: UberMenu Control Panel -> General Settings -> Custom CSS */

.wbp-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #cc0000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}

.ubermenu .ubermenu-item.wbp-has-cart-badge > .ubermenu-target,
.x-anchor-toggle.wbp-has-cart-badge,
.x-anchor.wbp-has-cart-badge,
.x-anchor-button.wbp-has-cart-badge {
    overflow: visible !important;
}

.wbp-cart-hidden {
    display: none !important;
}

.x-anchor-toggle.wbp-has-cart-badge .wbp-cart-badge {
    top: 5px;
    right: 7px;
}

.wbp-cart-badge--on-image {
    top: 0;
    right: auto;
    left: 0;
}

.wbp-cart-badge--visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes wbp-badge-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.88); }
    100% { transform: scale(1); }
}

.wbp-cart-badge--pop {
    animation: wbp-badge-pop .45s cubic-bezier(.36,.07,.19,.97);
}

@media (max-width: 766px) {
    .wbp-cart-badge {
        top: -3px;
        right: -3px;
    }

    .x-anchor-toggle.wbp-has-cart-badge .wbp-cart-badge {
        top: 6px;
        right: 9px;
    }
}
