/* Banner overlay */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup banner container */
.popup-banner {
    position: relative;
    width: 60%;
    max-width: 320px;
    aspect-ratio: 9/16;
    background: transparent;
}

/* Image container */
.hvac-ad-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Main image */
.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay content */
.overlay-content {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95) 50%);
    padding: 20px 10px 15px;
    text-align: center;
}

/* WhatsApp button */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

/* Close timer */
.banner-close-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10000;
    min-width: 30px;
    text-align: center;
    cursor: default;
    transition: all 0.3s ease;
}

/* Стили для активной кнопки закрытия */
.banner-close-timer[style*="cursor: pointer"] {
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer !important;
    transform: scale(1.1);
}

.banner-close-timer[style*="cursor: pointer"]:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.2);
}

/* Pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Media queries */
@media (max-width: 768px) {
    .popup-banner {
        width: 70%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .popup-banner {
        width: 75%;
        max-width: 260px;
    }
    
    .whatsapp-button {
        padding: 8px 18px;
        font-size: 13px;
    }
}

.promo-banner {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.promo-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.promo-banner h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.promo-banner p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.promo-button {
    display: inline-block;
    padding: 12px 30px;
    background: #ff4d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.promo-button:hover {
    background: #ff3333;
} 