/* Cart Discount Module Styles */
#product-modal .cdd-wrapper {
    margin-top: 12px;
}

.cdd-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #0a0a0a 0%, #666 100%);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.cdd-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    color: #2d3748;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.cdd-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #48bb78;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.cdd-text strong {
    color: #48bb78;
    font-weight: 700;
}

.cdd-qty {
    color: #718096;
    font-size: 13px;
}

.cdd-next {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.cdd-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.cdd-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.cdd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd89b 0%, #ffaa00 100%);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cdd-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: cddSlide 2s infinite;
}

@keyframes cddSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cdd-progress-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cdd-progress-text strong {
    color: #ffd89b;
    font-size: 14px;
}

.cdd-max {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    color: white;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.cdd-empty {
    position: relative;
    z-index: 1;
}

.cdd-tiers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: white;
    font-size: 13px;
}

.cdd-tiers-title {
    font-weight: 600;
    opacity: 0.95;
    flex-basis: 100%;
}

.cdd-tier {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.cdd-tier:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.cdd-tier-more {
    padding: 3px 8px;
    background: linear-gradient(90deg, #ffd89b 0%, #ffaa00 100%);
    border-radius: 3px;
    font-weight: 700;
    color: #2d3748;
}

@media (max-width: 480px) {
    .cdd-container {
        padding: 10px 12px;
    }
    
    .cdd-tiers {
        font-size: 12px;
    }
    
    .cdd-tier, .cdd-tier-more {
        padding: 2px 6px;
        font-size: 11px;
    }
}

/* --- Appended Styles for Robustness --- */
.cdd-wrapper.updating .cdd-animated-number-wrapper {
    display: inline-block;
    animation: cddNumberPop 0.7s ease-in-out;
}

@keyframes cddNumberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Direct Checkout Button Styles */
.woocommerce div.product form.cart .direct-checkout-button {
    width: 100%;
}

