/**
 * WC Promo Discounts - Frontend Styles
 */

/* Уведомление о скидке */
.woocommerce-info:has(.wcpd-notice),
.woocommerce-notice:has(.wcpd-notice) {
    border-left-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

/* Следующий порог */
.wcpd-next-threshold th,
.wcpd-next-threshold td {
    background: #faf5ff !important;
    padding: 15px !important;
}

.wcpd-next-threshold th {
    color: #6b21a8;
    font-weight: 500;
    font-size: 13px;
}

/* Прогресс-бар */
.wcpd-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcpd-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9d5ff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wcpd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 10px;
    transition: width 0.5s ease-out;
    position: relative;
}

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

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

.wcpd-progress-text {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
    text-align: right;
}

/* Адаптив */
@media screen and (max-width: 768px) {
    .wcpd-progress-wrapper {
        width: 100%;
    }
    
    .wcpd-next-threshold th,
    .wcpd-next-threshold td {
        display: block;
        width: 100%;
    }
    
    .wcpd-next-threshold th {
        border-bottom: none !important;
        padding-bottom: 5px !important;
    }
    
    .wcpd-next-threshold td {
        padding-top: 0 !important;
    }
}

/* Анимация для уведомлений */
.woocommerce-message,
.woocommerce-info,
.woocommerce-notice {
    animation: wcpd-fadeIn 0.3s ease-out;
}

@keyframes wcpd-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для иконки подарка в уведомлении */
.woocommerce-info strong {
    color: #7c3aed;
}

