#popup-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#popup-ad-container {
    width: 800px;
    height: 500px;
    background-color: #fff;
    border-radius: 5px;
    position: relative;
    display: flex;
    overflow: hidden;
}

.ajuste-popup-container {
    background: white; 
    padding: 0px; 
    position: relative; 
    max-width: 100%; 
    border-radius: 8px;
}

#popup-ad-close {
    position: absolute;
    top: -8px;
    right: -5px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    border: none;
    z-index: 9999;
}

.popup-ad-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.ajuste-popup-ad {
    background: white;
    padding: 0px;
    position: relative;
    max-width: 100%;
    border-radius: 8px;
}

.popup-ad-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.popup-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px 0 0 6px;
}

.popup-ad-text {
    width: 50%;
    padding: 50px 50px !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-ad-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #666;
}

.popup-ad-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.popup-ad-description {
    margin-bottom: 20px;
    color: #555;
}

.popup-ad-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000 !important;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
    margin-bottom: 20px;
}

.popup-ad-button:hover {
    background-color: #0e0e0e !important;
}

.popup-ad-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.popup-ad-social a {
    color: #333;
    font-size: 20px;
}

.popup-ad-social a:hover {
    color: #000000;
}

/* Estilos admin */
.popup-ad-admin .field-group {
    margin-bottom: 15px;
}

.popup-ad-admin label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.popup-ad-admin input[type="text"],
.popup-ad-admin input[type="url"],
.popup-ad-admin input[type="datetime-local"],
.popup-ad-admin select {
    width: 100%;
    padding: 8px;
}

.social-media-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.social-media-item label {
    display: block;
    margin-top: 5px;
}

.social-media-item input {
    width: 100%;
    margin-bottom: 5px;
}

@media(max-width: 980px) {

    #popup-ad-container {
        height: auto;
        background-color: #fff;
        border-radius: 5px;
        position: relative;
        display: flex;
        overflow: hidden;
    }

    .ajuste-popup-container {
        background: white; 
        padding: 0px; 
        position: relative; 
        max-width: 100%;
        margin: 0 1rem;
        border-radius: 8px;
    }

    .popup-ad-content {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        height: 50%;
    }
    
    .ajuste-popup-ad {
        background: white;
        padding: 0px;
        position: relative;
        max-width: 100%;
        border-radius: 8px;
    }

    .popup-ad-image {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .popup-ad-image img {
        width: 100%;
        height: 360px;
        border-radius: 6px 6px 0 0;
        object-fit: cover;
    }

    .popup-ad-text {
        width: 100%;
    }

    #popup-ad-close {
        position: absolute;
        top: 0px;
        right: 0px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #ffffff;
        box-shadow: 10px 5px 5px black;
        border: none;
        z-index: 9999;
    }
}

@media(max-width: 480px) {

    #popup-ad-container {
        height: auto;
        background-color: #fff;
        border-radius: 5px;
        position: relative;
        display: flex;
        overflow: hidden;
    }

    .ajuste-popup-container {
        background: white; 
        padding: 0px; 
        position: relative; 
        max-width: 100%;
        margin: 0 1rem;
        border-radius: 8px;
    }

    .popup-ad-content {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        height: 50%;
    }
    
    .ajuste-popup-ad {
        background: white;
        padding: 0px;
        position: relative;
        max-width: 100%;
        border-radius: 8px;
    }

    .popup-ad-image {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .popup-ad-image img {
        width: 100%;
        height: 200px;
        border-radius: 6px 6px 0 0;
        object-fit: cover;
    }

    .popup-ad-text {
        width: 100%;
    }
}