.counsent-banner {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: #0B1C2F;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    padding: 0.7rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 50rem;
    height: 25rem;

    .consent-icon {
        position: absolute;
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        left: 22%;
        top: -15%;

        > .consent-banner-icon {
            width: 15%;
            height: 15%;
            margin-bottom: 10px;
        }
    }

    > .counsent-banner-container {
        display: flex;
        gap: 2%;
        height: 100% !important;
        width: 100% !important;

        > .consent-banner-content {
            display: flex;
            height: 100%;
            width: 60% !important;
            padding: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            align-content: center;
            flex-direction: column;
            gap: 2rem;

            > .consent-banner-title {
                margin-top: 2rem;
                color: white;
            }

            > .consent-banner-text {
                font-size: 1rem;
                text-align: justify;
                font-weight: 500;
                color: #ffffff;
                padding: 0px 18px;

                .consent-policy-link {
                    color: var(--secondary-color);
                    text-decoration: underline;
                }

                .consent-policy-link:hover {
                    color: var(--primary-color);
                }
            }

            > .button-section {
                display: flex;
                justify-content: center;
                gap: 30px;

                > .consent-banner-button {
                    padding: 10px 50px;
                    transition: background-color 0.3s ease;
                }
            }

            > .consent-banner-link {
                font-weight: 600;
                color: #00B5E5;
                text-decoration: none;

                &:hover {
                    color: var(--secondary-color);
                    text-decoration: underline;
                }
            }
        }

        .img-consent-container {
            background: url(/portal/global/resources/assets/cookies/fondo_cookies.webp) no-repeat center center;
            background-size: auto 100%;
            width: 40% !important;
            height: 100%;
            order: 2;
        }
    }
}

.counsent-banner.activo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 45px;
}

.consent-banner-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1f4167a5;
    z-index: 3;
}

.consent-banner-bg.activo {
    display: block;
}

@media screen and (max-width: 1024px) {
    .counsent-banner {
        transform: translate(-50%, -50%);
        width: 30rem;
        height: 43rem;
    
        .consent-icon {
            position: absolute;
            justify-content: center;
            z-index: 3;
            top: 35%;
            left: 0;
    
            .consent-banner-icon {
                width: 22%;
                height: 22%;
            }
        }
    
        .counsent-banner-container {
            display: flex;
            flex-direction: column;
            gap: 2%;
    
            > .consent-banner-content {
                height: 60%;
                width: 100% !important;
                padding: 0.5rem;
                flex-wrap: wrap;
                justify-content: center;
                align-content: center;
                flex-direction: column;
                order: 2;
    
                > .consent-banner-title {
                    margin-top: 0;
                }
    
                .consent-banner-text {
                    padding: 0px 20px;
                    font-weight: 500;
                    color: white;
    
                    .consent-policy-link {
                        color: var(--secondary-color);
                        text-decoration: underline;
                    }
    
                    .consent-policy-link:hover {
                        color: var(--primary-color);
                    }
                }
    
                > .button-section {
                    width: auto;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 20px;
    
                    > .consent-banner-button {
                        padding: 10px 55px;
                        transition: background-color 0.3s ease;
                        margin: 0;
                        width: auto;
                    }
                }
            }
    
            > .img-consent-container {
                background: url(/portal/global/resources/assets/cookies/fondo_cookies_tablet.webp) no-repeat center / cover;
                border-radius: 10px;
                display: flex;
                justify-content: center;
                width: 100% !important;
                height: 50%;
                order: 1;
                z-index: 2;
            }
        }
    }
    
    .counsent-banner.activo {
        display: flex;
        gap: 5px;
    }
    
    .consent-banner-bg {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1f4167a5;
        z-index: 3;
    }
    
    .consent-banner-bg.activo {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .counsent-banner {
        transform: translate(-50%, -50%);
        width: 20rem;
        height: 35rem;
    }
    
    .counsent-banner .consent-icon {
        position: absolute;
        z-index: 3;
        top: 36%;
    }
    
    .counsent-banner .consent-icon .consent-banner-icon {
        width: 20%;
        height: 20%;
    }
    
    .counsent-banner  .counsent-banner-container {
        display: flex;
        flex-direction: column;
        gap: 2%;
        height: 100%;
        width: 100% !important;
    }
    
    .counsent-banner .counsent-banner-container .img-consent-container {
        background: url(/portal/global/resources/assets/cookies/fondo_cookies_tablet.webp) no-repeat center / cover;
        border-radius: 10px;
        display: flex;
        width: 100% !important;
        height: 100%;
        order: unset;
        z-index: 2;
    }
    
    .counsent-banner .counsent-banner-container > .consent-banner-content {
        height: 60%;
        gap: 1.3rem;
    }
    
    .counsent-banner .counsent-banner-container .consent-banner-content .consent-banner-title {
        width: 100%;
        margin-top: 0;
        color: white;
    }
    
    .counsent-banner .counsent-banner-container .consent-banner-content .consent-banner-text {
        font-size: 0.9rem;
        font-weight: 500;
        text-align: justify;
        color: #ffffff;
    }
    
    .counsent-banner .counsent-banner-container .consent-banner-content .consent-banner-text .consent-policy-link {
        color: var(--secondary-color);
        text-decoration: underline;
    }
    
    .counsent-banner .counsent-banner-container .consent-banner-content .consent-banner-text .consent-policy-link:hover {
        color: var(--primary-color);
    }
    
    .counsent-banner .counsent-banner-container .consent-banner-content .button-section {
        margin-left: 0;
        flex-direction: row;
        align-items: center;
    }
    
    .counsent-banner .counsent-banner-container .consent-banner-content .button-section .consent-banner-button {
        padding: 10px 25px;
        margin: 0;
        transition: background-color 0.3s ease;
        width: auto;
    }
    
    .counsent-banner.activo {
        display: flex;
        gap: 5px;
    }
    
    .consent-banner-bg {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1f4167a5;
        z-index: 3;
    }
    
    .consent-banner-bg.activo {
        display: flex;
    }
}