/* ============================================
   MIDA PRO PLUS - Cart Status Banner Styles
   Фон: #eddfdb
   Акцент: #d3353d
   ============================================ */

.mpp-cart-status-banner {
    background: #eddfdb;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(211, 53, 61, 0.12);
    animation: mppBannerFadeIn 0.6s ease-out;
}

@keyframes mppBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.mpp-cart-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.mpp-cart-status-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #2c2c2c;
}

.mpp-cart-status-icon {
    font-size: 28px;
    animation: mppRotate 3s ease-in-out infinite;
}

@keyframes mppRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

.mpp-cart-status-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.mpp-cart-status-date strong {
    color: #d3353d;
    font-size: 16px;
}

.mpp-cart-status-days {
    color: #777;
    font-size: 13px;
}

/* Progress Bar */
.mpp-cart-status-progress {
    margin-bottom: 20px;
}

.mpp-cart-progress-bar-bg {
    background: rgba(211, 53, 61, 0.15);
    border-radius: 999px;
    height: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mpp-cart-progress-bar-fill {
    background: linear-gradient(90deg, #d3353d 0%, #e74c3c 50%, #d3353d 100%);
    background-size: 200% 100%;
    height: 100%;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: mppProgressShine 3s ease-in-out infinite;
}

@keyframes mppProgressShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.mpp-cart-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: mppProgressGloss 2s ease-in-out infinite;
}

@keyframes mppProgressGloss {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.mpp-cart-progress-text {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Info Grid */
.mpp-cart-status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.mpp-cart-status-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mpp-cart-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mpp-cart-status-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpp-cart-status-value {
    font-size: 20px;
    color: #2c2c2c;
    font-weight: 700;
}

.mpp-cart-status-highlight {
    color: #d3353d;
    animation: mppPulse 2s ease-in-out infinite;
}

@keyframes mppPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mpp-cart-status-savings {
    color: #2ecc71;
}

.mpp-cart-status-remaining {
    background: linear-gradient(135deg, rgba(211, 53, 61, 0.1) 0%, rgba(211, 53, 61, 0.05) 100%);
    border: 2px solid rgba(211, 53, 61, 0.3);
}

.mpp-cart-status-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0.05) 100%);
    border: 2px solid rgba(46, 204, 113, 0.4);
    grid-column: 1 / -1;
    text-align: center;
}

.mpp-cart-status-success .mpp-cart-status-label {
    font-size: 16px;
    color: #27ae60;
}

/* Alert */
.mpp-cart-status-alert {
    background: linear-gradient(135deg, rgba(211, 53, 61, 0.15) 0%, rgba(211, 53, 61, 0.08) 100%);
    border-left: 4px solid #d3353d;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: mppAlertBounce 2s ease-in-out infinite;
}

@keyframes mppAlertBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

.mpp-cart-alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.mpp-cart-alert-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.mpp-cart-alert-text strong {
    color: #d3353d;
    font-weight: 700;
}

/* Success Message */
.mpp-cart-status-success-message {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-left: 4px solid #2ecc71;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mpp-cart-success-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: mppBounce 1s ease-in-out infinite;
}

@keyframes mppBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.1);
    }
}

.mpp-cart-success-text {
    font-size: 14px;
    color: #27ae60;
    line-height: 1.5;
    font-weight: 500;
}

.mpp-cart-success-text strong {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .mpp-cart-status-banner {
        padding: 18px 20px;
    }
    
    .mpp-cart-status-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mpp-cart-status-title {
        font-size: 20px;
    }
    
    .mpp-cart-status-info {
        grid-template-columns: 1fr;
    }
    
    .mpp-cart-progress-bar-fill {
        padding-right: 12px;
    }
    
    .mpp-cart-progress-text {
        font-size: 13px;
    }
    
    .mpp-cart-status-value {
        font-size: 18px;
    }
}

/* WooCommerce Integration */
.woocommerce-cart .mpp-cart-status-banner {
    margin-top: 0;
}

/* Dark corners effect */
.mpp-cart-status-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(211, 53, 61, 0.3) 50%, 
        transparent 100%
    );
    border-radius: 16px 16px 0 0;
}

/* Print styles */
@media print {
    .mpp-cart-status-banner {
        background: #f5f5f5 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .mpp-cart-progress-bar-fill {
        background: #d3353d !important;
    }
}