/* Уникальные стили для таймера акции - префикс promo-timer- */
.promo-timer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    background-color: #ff6b6b;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(0);
    opacity: 1;
}

.promo-timer-container.promo-timer-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.promo-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    width: 100%;
}

.promo-timer-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.promo-timer-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.promo-timer-time-unit {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.promo-timer-separator {
    margin: 0 2px;
}

.promo-timer-button {
    background-color: #ffffff;
    color: #333333;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-timer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.promo-timer-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.promo-timer-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.promo-timer-close:active {
    transform: translateY(-50%) rotate(90deg) scale(0.9);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .promo-timer-container {
        padding: 10px 40px 10px 15px;
    }
    
    .promo-timer-text {
        font-size: 14px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .promo-timer-countdown {
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .promo-timer-time-unit {
        min-width: 35px;
        padding: 3px 6px;
    }
    
    .promo-timer-button {
        font-size: 12px;
        padding: 6px 16px;
        width: 100%;
        text-align: center;
    }
    
    .promo-timer-close {
        right: 10px;
    }
}

/* Стили для body когда полоска видна */
body.promo-timer-active {
    padding-top: 0;
}
