/* --- ESTILOS PARA EL OVERLAY --- */
#tlc-cookie-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo negro semitransparente */
    z-index: 9999999999; /* Justo por debajo del popup */
}


/* --- ESTILOS DEL POPUP --- */
.tlc-cookie-popup {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    border-radius: 20px;
    background: #f7f7f7;
    color: #000;
    z-index: 99999999999;
}

.tlc-cookie-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    height: 90px;
}

.tlc-cookie-content p {
    margin: 0;
    flex: 1 1 auto;
    font-size: 13px;
    padding: 0px 20px;
    max-width: 222px;
}

.tlc-cookie-content a {
    color: black;
    display: block;
    text-decoration: underline;
}

.tlc-cookie-buttons {
    display: flex;
    gap: 0px;
    flex-shrink: 0;
    height: 100%;
    flex-wrap: wrap;
}

.tlc-cookie-buttons button {
    background: #7f7f7f;
    color: #fff;
    border: none;
    padding: 0 35px;
    cursor: pointer;
    /* border-radius: 4px; */
    font-size: 14px;
    flex-basis: 100%;
}
.tlc-cookie-buttons button:first-child{
    border-radius:0px 10px 0 0;
    background: #4f4f4f;

}

.tlc-cookie-buttons button:nth-child(2){
border-radius: 0 0 10px 0;
background: #f7f7f7;
color: black;
}
/* --- LÓGICA DE BLOQUEO (LA PARTE CLAVE) --- */

/* Cuando el body tiene esta clase, bloqueamos los eventos y el scroll */
body.tlc-cookie-blocked {
    pointer-events: none; /* Deshabilita clics, etc. en el contenido de la web */
    overflow: hidden; /* Evita que se pueda hacer scroll */
}

/* Mostramos el overlay cuando el body está bloqueado */
body.tlc-cookie-blocked #tlc-cookie-overlay {
    display: block;
}

/* IMPORTANTE: Permitimos los eventos SÓLO en el popup para poder interactuar con él */
body.tlc-cookie-blocked #tlc-cookie-popup {
    pointer-events: auto;
}


@media screen and (max-width: 480px) {
    .tlc-cookie-popup{
    display: none;
    position: fixed;
    bottom: 100px;
    left: 10px;
    border-radius: 20px;
    background: #f7f7f7;
    color: #000;
    z-index: 99999999999;
    right: 10px;

        }

    .tlc-cookie-buttons{
            display: flex
;
    gap: 0px;
    flex-shrink: 0;
    height: 100%;
    flex-wrap: wrap;
    flex-basis: 50%;
    }
.tlc-cookie-content p{
        margin: 0;
    flex: 1 1 auto;
    font-size: 11px;
    padding: 0px 20px;
    max-width: 50%;
    flex-basis: 50%;
    display: flex
;
    flex-direction: column;
}

.tlc-cookie-content{
        margin: 0 auto;
    display: flex
;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    height: 100px;
    display: flex
;
}

}
