/* GDPR Center Banner - Frontend Styles */

/* Overlay para el fondo oscuro */
#gdpr-center-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9899;
    display: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#gdpr-center-banner-overlay.active {
    display: block;
}

/* Banner centrado en pantalla */
#moove_gdpr_cookie_info_bar.gdpr-center-position {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    width: 90% !important;
    max-width: 800px;
    min-height: auto !important;
    max-height: 90vh;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9900 !important;
    overflow-y: auto;
    border: none !important;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position.moove-gdpr-dark-scheme {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position.moove-gdpr-light-scheme {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Ajustes para el contenedor interno */
#moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-info-bar-container {
    padding: 30px 40px;
    display: block;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-info-bar-content {
    display: block;
    padding: 0;
    text-align: center;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice {
    margin-bottom: 20px;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-button-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-top: 20px;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-button-holder .mgbutton {
    margin: 5px;
}

/* Botón de cierre mejorado para posición centrada */
#moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-infobar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
    z-index: 10;
}

/* Animaciones de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -120%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Aplicar animaciones */
#moove_gdpr_cookie_info_bar.gdpr-center-position.animation-fade {
    animation: fadeIn 0.4s ease-out;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position.animation-slide-up {
    animation: slideUp 0.5s ease-out;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position.animation-slide-down {
    animation: slideDown 0.5s ease-out;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position.animation-zoom {
    animation: zoomIn 0.4s ease-out;
}

/* Ocultar el banner cuando se cierra */
#moove_gdpr_cookie_info_bar.gdpr-center-position.moove-gdpr-info-bar-hidden {
    display: none !important;
}

/* Estilos responsive */
@media (max-width: 768px) {
    #moove_gdpr_cookie_info_bar.gdpr-center-position {
        width: 95% !important;
        max-width: none;
        border-radius: 10px !important;
    }

    #moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-info-bar-container {
        padding: 20px 25px;
    }

    #moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-button-holder {
        flex-direction: column;
    }

    #moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-button-holder .mgbutton {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    #moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-info-bar-container {
        padding: 15px 20px;
    }

    #moove_gdpr_cookie_info_bar.gdpr-center-position .moove-gdpr-infobar-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

/* Prevenir scroll del body cuando el banner está activo */
body.gdpr-center-banner-active {
    overflow: hidden;
}

/* Mejoras visuales para el banner centrado */
#moove_gdpr_cookie_info_bar.gdpr-center-position.moove-gdpr-dark-scheme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#moove_gdpr_cookie_info_bar.gdpr-center-position.moove-gdpr-light-scheme {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Efecto de scroll suave para contenido largo */
#moove_gdpr_cookie_info_bar.gdpr-center-position {
    scrollbar-width: thin;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position::-webkit-scrollbar {
    width: 8px;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#moove_gdpr_cookie_info_bar.gdpr-center-position::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}