/* ========== WPLIFE PROMO MODAL ========== */

/* Оверлей */
.wplife-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.wplife-promo-overlay.active {
    display: flex;
}

/* Модальное окно */
.wplife-promo-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wplifePromoFadeIn 0.3s ease;
}

@keyframes wplifePromoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Кнопка закрытия */
.wplife-promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C2D2F;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.wplife-promo-close:hover {
    background: #2C2D2F;
    color: #fff;
}

/* Слайдер */
.wplife-promo-slider {
    position: relative;
}

.wplife-promo-slides {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wplife-promo-slide {
    flex: 0 0 100%;
    display: none;
}

.wplife-promo-slide.active {
    display: block;
}

/* Изображение */
.wplife-promo-image img {
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Контент */
.wplife-promo-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wplife-promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #2C2D2F;
    margin: 0 0 15px;
    line-height: 1.3;
}

.wplife-promo-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Таймер */
.wplife-promo-timer {
    margin-bottom: 20px;
}

.wplife-promo-timer-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.wplife-promo-countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2C2D2F;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.countdown-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

.countdown-separator {
    font-size: 22px;
    font-weight: 700;
    color: #2C2D2F;
}

.countdown-ended {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
}

/* Кнопка */
.wplife-promo-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #2ABBC2;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.wplife-promo-btn:hover {
    background: #14848A;
    color: #fff;
}

/* Форма */
.wplife-promo-form {
    margin-top: 20px;
}

/* Навигация */
.wplife-promo-prev,
.wplife-promo-next {
    position: absolute;
    top: 150px; /* Половина высоты изображения */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C2D2F;
    transition: all 0.2s;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.wplife-promo-prev:hover,
.wplife-promo-next:hover {
    background: #2ABBC2;
    color: #fff;
}

.wplife-promo-prev {
    left: 15px;
}

.wplife-promo-next {
    right: 15px;
}

/* Точки */
.wplife-promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0 0;
}

.wplife-promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2ABBC2;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.wplife-promo-dot.active {
    background: #2ABBC2;
    transform: scale(1.2);
}

.wplife-promo-dot:hover {
    background: rgba(42, 187, 194, 0.3);
}

/* Прогресс-бар */
.wplife-promo-progress {
    height: 3px;
    background: #e0e0e0;
    margin-top: 10px;
}

.wplife-promo-progress-bar {
    height: 100%;
    background: #2ABBC2;
    width: 0;
    transition: width 0.1s linear;
}

/* Адаптив */
@media (max-width: 768px) {
    .wplife-promo-overlay {
        padding: 10px;
    }
    
    .wplife-promo-modal {
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .wplife-promo-image img {
        height: 200px;
    }
    
    .wplife-promo-content {
        padding: 20px;
    }
    
    .wplife-promo-title {
        font-size: 20px;
    }
    
    .wplife-promo-prev,
    .wplife-promo-next {
        top: 100px;
        width: 36px;
        height: 36px;
    }
    
    .countdown-item {
        min-width: 45px;
        padding: 6px 8px;
    }
    
    .countdown-value {
        font-size: 18px;
    }
}
/* Сообщение о необходимости заполнить слайды */
.wplife-promo-empty {
    display: none; /* Скрыто от посетителей */
}

/* Цена */
.wplife-promo-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin: 15px 0 10px 0;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.wplife-promo-price .price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 10px;
}

.wplife-promo-price .price-new {
    color: #e74c3c;
    font-weight: 700;
}

/* Адаптив для цены */
@media (max-width: 768px) {
    .wplife-promo-price {
        font-size: 22px;
    }
    
    .wplife-promo-price .price-old {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wplife-promo-price {
        font-size: 18px;
    }
    
    .wplife-promo-price .price-old {
        font-size: 14px;
    }
}
.wplife-promo-image{
    margin-top: 1rem;
}