/* Fleurs Deuil Toulouse — estilo del banner de cookies para el sitio estático.
   Replica el modal centrado + overlay oscuro de Paris (extraído de
   el child theme de Toulouse). Aplica solo en el estático;
   el WP /fleuriste/ usa el CSS del child theme.

   Activación: gdpr-sync.js añade `body.overlay-visible` cuando no hay
   cookie `moove_gdpr_popup`. Esas reglas convierten el <aside> inferior
   en modal centrado con overlay translúcido. */

#moove_gdpr_cookie_info_bar {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 700px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9001 !important;
    background: #fff !important;
    color: #000 !important;
    border-radius: 5px !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    pointer-events: all !important;
    height: 35% !important;
    min-height: 300px !important;
}

body.overlay-visible #moove_gdpr_cookie_info_bar {
    display: flex !important;
}

body.overlay-visible:before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, .7) !important;
    z-index: 9000 !important;
}

/* Contenedor interno: distribución vertical centrada */
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 40px !important;
    text-align: center !important;
}

/* Texto del banner: color negro sobre fondo blanco */
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content p {
    color: #000 !important;
}

#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice p {
    margin-bottom: 10px !important;
    font-size: 1em !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #000 !important;
}

#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice p strong {
    font-weight: 400 !important;
    text-align: justify !important;
    font-size: 1em !important;
}

/* Botones: disposición horizontal centrada */
#moove_gdpr_cookie_info_bar .moove-gdpr-button-holder {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin: 10px !important;
}

#moove_gdpr_cookie_info_bar .moove-gdpr-button-holder .mgbutton {
    opacity: 1 !important;
    font-weight: 400 !important;
    filter: none !important;
    box-shadow: none !important;
}

/* Estilo individual de cada botón — replicado de Paris main.css */
/* Rejeter (1), Réglages (2), Accepter (3) — orden visual izquierda → derecha */
.moove-gdpr-infobar-reject-btn {
    order: 1 !important;
}
.moove-gdpr-infobar-settings-btn {
    order: 2 !important;
}
.moove-gdpr-infobar-allow-all {
    order: 3 !important;
    background-color: #50008c !important;
    border: 1px solid #50008c !important;
    color: #fff !important;
}

/* Rejeter + Réglages: outline negro sobre blanco */
.moove-gdpr-infobar-reject-btn,
.moove-gdpr-infobar-settings-btn {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #000 !important;
}

/* Hover: Rejeter + Réglages → fondo negro, texto blanco */
.moove-gdpr-infobar-reject-btn:hover,
.moove-gdpr-infobar-settings-btn:hover {
    color: #fff !important;
    background-color: #000 !important;
    box-shadow: none !important;
}

/* Hover Accepter: invertido (verde texto, fondo blanco, borde verde) */
.moove-gdpr-infobar-allow-all:hover {
    color: #50008c !important;
    background-color: #fff !important;
    border: 1px solid #50008c !important;
}

/* Logo arriba con offset negativo (sale del borde superior del modal) */
#moove_gdpr_cookie_info_bar .imagen-logo {
    margin-top: -75px !important;
    height: 60px !important;
    width: auto !important;
    max-width: 90% !important;
}

/* =============================================================
   [FDT] Banner cookies GDPR — responsive móvil (CONSOLIDADO 2026-06-11).
   Modal centrado; en móvil/landscape: ancho seguro (cabe), alto por contenido
   (clave bottom:auto: si no, top:50%+bottom:10px lo estiraba y cortaba "Accepter"),
   botones en columna táctiles. Sustituye los parches iterativos previos.
   ============================================================= */
#moove_gdpr_cookie_info_bar {
    width: min(700px, calc(100vw - 32px)) !important;
}
@media (max-width: 767px), (max-height: 620px) {
    #moove_gdpr_cookie_info_bar {
        top: 50% !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 88dvh !important;
        overflow-y: auto !important;
        content-visibility: visible !important;
        padding: 14px 14px 18px !important;
    }
    #moove_gdpr_cookie_info_bar .imagen-logo { margin-top: 4px !important; height: 46px !important; }
    #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content { margin-top: 10px !important; }
    #moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice p { margin-top: 6px !important; }
    #moove_gdpr_cookie_info_bar .moove-gdpr-button-holder {
        flex-direction: column !important; align-items: center !important; gap: 8px !important; margin: 12px 0 0 !important;
    }
    #moove_gdpr_cookie_info_bar .moove-gdpr-button-holder .mgbutton {
        width: 90% !important; min-height: 44px !important; margin: 0 !important;
        display: flex !important; align-items: center !important; justify-content: center !important;
    }
}
