@media (max-width:1200px) {
    .cookiealert {
        z-index: 9998 !important;
        border-radius: 0.2rem;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.7);
        transition: all 1;
        display: flex;
        position: fixed;
        width: 100%;
        opacity: 1;
        justify-content: center;
        height: 100%;
        align-items: center;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        transform: translateY(-1500px);
        overflow-x: auto;
        overflow-y: auto;

        .cookiealert-container {
            margin: 0.5rem;
            background-color: #ffffff;
            padding: 1rem;
            border-radius: 0.3rem;
            width: 800px;
            height: auto;
            color: #000000;
            font-family: 'Lexend', sans-serif;
            position: relative;
            box-sizing: border-box;
            float: none;
            overflow-x: auto;
            overflow-y: hidden;
            box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 10px 1px;
            z-index: 9999;
            display: inline-block;
            text-align: left;
            max-width: none;

            .grupo-botones {
                display: flex;
                justify-content: center;
                align-items: flex-end;
                height: 15%;
                margin-top: 3rem;

                .acceptcookies {
                    border-radius: 0.2rem;
                    background-color: #00711a;
                    border-style: none;
                    margin-left: 0.2rem;
                    margin-right: 0.2rem;
                    height: 50px;
                    font-size: 12px;
                    width: 150px;
                    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
                }

                .privacidad {
                    border-radius: 0.2rem;
                    color: #000000;
                    border-style: none;
                    margin-left: 0.2rrem;
                    margin-right: 0.2rem;
                    height: 50px;
                    padding-top: 0;
                    padding-bottom: 0;
                    font-size: 14px;
                    width: 180px;
                    background-color: #ececec;
                    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
                }
            }

            .texto-cookies {
                font-size: 14px;

                .texto {
                    margin-bottom: 0;
                    font-size: 12px;
                }
            }
        }
    }
}

@media (min-width:1200px) {
    .cookiealert {
        z-index: 9998 !important;
        border-radius: 0.2rem;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.7);
        transition: all 1;
        display: flex;
        position: fixed;
        width: 100%;
        opacity: 1;
        justify-content: center;
        height: 100%;
        align-items: center;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        transform: translateY(-1500px);

        .cookiealert-container {
            margin: 0.5rem;
            background-color: #ffffff;
            padding: 2rem;
            border-radius: 0.3rem;
            width: 40%;
            color: #000000;
            font-family: 'Lexend', sans-serif;
            position: relative;
            box-sizing: border-box;
            float: none;
            height: auto;
            z-index: 9999;
            max-width: none;

            .grupo-botones {
                display: flex;
                justify-content: center;
                align-items: flex-end;
                margin-top: 4rem;

                .acceptcookies {
                    border-radius: 0.2rem;
                    background-color: #00711a;
                    border-style: none;
                    margin-left: 0.2rem;
                    margin-right: 0.2rem;
                    height: 50px;
                    font-size: 12px;
                    width: 150px;
                    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
                }

                .privacidad {
                    border-radius: 0.2rem;
                    color: #000000;
                    border-style: none;
                    margin-left: 0.2rrem;
                    margin-right: 0.2rem;
                    height: 50px;
                    padding-top: 0;
                    padding-bottom: 0;
                    font-size: 12px;
                    width: 180px;
                    background-color: #ececec;
                    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
                }
            }

            .texto-cookies {
                font-size: 14px;

                .texto {
                    margin-bottom: 0;
                    font-size: 14px;
                }
            }
        }
    }
}

body.no-scroll {
    overflow: hidden;

    /* Evita el scroll en toda la página */
}

/* El overlay que cubre el contenido debajo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);

    /* Capa semi-transparente */
    z-index: 9990;

    /* Asegura que esté debajo del aviso de cookies */
    pointer-events: none;

    /* No bloquea clics, pero hace que se vea */
}

/* Hacer que el contenido debajo sea no interactuable */
.overlay.active {
    pointer-events: all;
}

/* Bloquear scroll */
.cookiealert.show {
    opacity: 1;
    transform: translateY(0px);
    transition: all 1;
}

.cookiealert.show:hover {
    transform: translateY(0px);
    transition: all 1;
}

.cookiealert a {
    text-decoration: underline;
}

.cookiealert .acceptcookies {
    margin-left: 10px;
    vertical-align: baseline;
}