/* ========== CART COUNT BADGE STYLES ========== */

.cbb-cart-count,
.cbb-cart-count-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cbb-cart-count-wrapper {
    position: relative;
}

.cbb-cart-count-value {
    background: #f98c6e;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    min-width: 28px;
    min-height: 28px;
    line-height: 1;
    position: absolute;
    top: -12px;
    right: -12px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cbb-cart-count-wrapper:not(.has-items) .cbb-cart-count-value {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

.cbb-cart-count-wrapper.has-items .cbb-cart-count-value {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: badgePulse 0.3s ease;
}

.cbb-cart-count-value.show {
    animation: badgePulse 0.3s ease;
}

@keyframes badgePulse {
    0% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cbb-sticky-cart-count {
    background: #f98c6e;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    position: absolute;
    top: -10px;
    right: -10px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* ========== IMPROVED NOTIFICATIONS ========== */

.cbb-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 380px;
    word-wrap: break-word;
    pointer-events: auto;
    user-select: none;
}

.cbb-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cbb-notification.success {
    background: linear-gradient(135deg, #f98c6e 0%, #ff7a56 100%);
    border-left: 4px solid #ff6b47;
}

.cbb-notification.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-left: 4px solid #a93226;
}

.cbb-notification.info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-left: 4px solid #1f618d;
}

.cbb-notification-success {
    background: linear-gradient(135deg, #f98c6e 0%, #ff7a56 100%);
    border-left: 4px solid #ff6b47;
}

.cbb-notification-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-left: 4px solid #a93226;
}

.cbb-notification-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-left: 4px solid #1f618d;
}

@media (max-width: 768px) {
    .cbb-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: calc(100% - 32px);
        font-size: 13px;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .cbb-notification {
        top: 12px;
        right: 12px;
        left: 12px;
        width: calc(100% - 24px);
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .cbb-cart-count-value {
        width: 24px;
        height: 24px;
        font-size: 11px;
        top: -10px;
        right: -10px;
    }
}
