.verde-ad-container,
.verde-ad-swiper .swiper-slide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.verde-ad-container a,
.verde-ad-swiper .swiper-slide a {
    display: block;
    width: 100%;
    text-align: center;
}

.verde-ad-responsive-media {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

iframe.verde-ad-responsive-media {
    aspect-ratio: 16/9;
    border: none;
}

/* Exibição Responsiva (Checkboxes de Dispositivos) */
@media (min-width: 1025px) {
    .verde-ad-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .verde-ad-hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .verde-ad-hide-mobile { display: none !important; }
}

/* --- MODO POPUP VERDE AD --- */
.verde-ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.verde-ad-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.verde-ad-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible; /* Importante para o botão sair do limite */
}

.verde-ad-popup-overlay.active .verde-ad-popup-content {
    transform: scale(1);
}

.verde-ad-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000001;
    border: none;
    transition: transform 0.2s ease;
}

.verde-ad-popup-close:hover {
    transform: scale(1.1);
}

/* Responsividade Popup */
@media (max-width: 767px) {
    .verde-ad-popup-content {
        width: 95%;
    }
    .verde-ad-popup-close {
        top: 10px;
        right: 10px;
    }
}
