/* Popup Banner Styles */

.popup-banner-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.popup-banner-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-banner-content {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-banner-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.popup-banner-image:hover {
    transform: scale(1.02);
}

.popup-banner-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 5px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-banner-close:hover {
    background-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.popup-banner-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.popup-banner-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.popup-banner-footer a:hover {
    text-decoration: underline;
}

.popup-banner-controls {
    padding: 12px 20px;
    background-color: #f0f0f0;
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

.popup-banner-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.popup-banner-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.popup-banner-checkbox label {
    cursor: pointer;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-banner-content {
        width: 95%;
        border-radius: 8px;
    }

    .popup-banner-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }

    .popup-banner-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .popup-banner-content {
        width: 98%;
        border-radius: 5px;
        max-height: 90vh;
    }

    .popup-banner-footer {
        font-size: 12px;
    }

    .popup-banner-controls {
        padding: 10px 15px;
        font-size: 12px;
    }
}
