/* Volume Discount Progress Bar Styles */

.volume-discount-progress {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
}

.volume-discount-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.volume-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.volume-text strong {
    font-size: 16px;
    color: #d97706;
    display: block;
    margin-bottom: 5px;
}

.volume-text p {
    font-size: 13px;
    color: #92400e;
    margin: 0;
}

.volume-progress-bar {
    position: relative;
    background: #f3f4f6;
    border-radius: 20px;
    height: 28px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.volume-progress-fill {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.5s ease;
    min-width: 40px;
    position: relative;
    overflow: visible;
}

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

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

.volume-progress-text {
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.volume-milestones {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 0 5px;
}

.current-amount {
    color: #f59e0b;
    font-weight: bold;
}

.target-amount {
    color: #059669;
    font-weight: bold;
}

/* Volume Discount Active (when achieved) */
.volume-discount-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.volume-icon-success {
    font-size: 32px;
    flex-shrink: 0;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.volume-text-success strong {
    font-size: 16px;
    color: #065f46;
    display: block;
    margin-bottom: 3px;
}

.volume-text-success p {
    font-size: 13px;
    color: #047857;
    margin: 0;
}

/* Multi-Platform Badge */
.multi-platform-badge {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.badge-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: rotate-star 3s linear infinite;
}

@keyframes rotate-star {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.badge-text strong {
    font-size: 16px;
    color: #5b21b6;
    display: block;
    margin-bottom: 3px;
}

.badge-text p {
    font-size: 13px;
    color: #6d28d9;
    margin: 0;
}

/* Discount Badge (AUTO-APPLIED) */
.discount-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.discount-amount {
    color: #10b981 !important;
    font-weight: bold;
}

/* Summary Row Enhancements */
.summary-row.discount {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #10b981;
}

.summary-row.discount span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.remove-promo {
    font-size: 12px;
    color: #ef4444;
    text-decoration: underline;
    margin-left: 8px;
    cursor: pointer;
}

.remove-promo:hover {
    color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .volume-discount-progress,
    .volume-discount-active,
    .multi-platform-badge {
        padding: 15px;
    }

    .volume-icon,
    .volume-icon-success,
    .badge-icon {
        font-size: 24px;
    }

    .volume-text strong,
    .volume-text-success strong,
    .badge-text strong {
        font-size: 14px;
    }

    .volume-text p,
    .volume-text-success p,
    .badge-text p {
        font-size: 12px;
    }

    .volume-progress-bar {
        height: 24px;
    }

    .volume-progress-text {
        font-size: 11px;
    }

    .volume-milestones {
        font-size: 11px;
    }

    .discount-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Desktop Specific */
@media (min-width: 1024px) {
    .volume-discount-progress {
        padding: 25px;
    }

    .volume-text strong {
        font-size: 17px;
    }

    .volume-text p {
        font-size: 14px;
    }
}

/* Hover Effects */
.volume-discount-progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.volume-discount-active:hover,
.multi-platform-badge:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.volume-discount-active:hover {
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.multi-platform-badge:hover {
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}
