#mpc-cookie-banner{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: rgb(255 255 255 / 85%);
    border-radius: 8px;
    border: solid 1px #dfdfdf;
    padding: 15px;
    max-width: 240px;
    box-shadow: 1px 6px 8px hsl(0deg 0% 0% / 0.15);
    mix-blend-mode: normal;
    animation: fadeIn 1s ease-in-out;
    font-family: "Gilmer", sans-serif;
    
    p{
        display: block;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.3em;
        margin-bottom: 15px;
        color: #000;
    }

    a{
        display: block;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.3em;
        color: #0d6efd;
        text-decoration: none;
    }

    .content-buttons{
        margin-top: 15px;
    }

    /* Accept y Reject con idéntica prominencia (requisito AEPD:
       rechazar debe ser tan fácil y visible como aceptar) */
    button{
        display: block;
        font-size: 12px;
        border: solid 1px #dfdfdf;
        background: #fff;
        border-radius: 4px;
        margin-bottom: 5px;
        padding: 4px;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease-in-out;
        color: #000;
        cursor: pointer;
        &:hover{
            background: #000000;
            color: #fff;
        }
    }
}

/* Botón flotante para reabrir el banner y cambiar/retirar el consentimiento */
#mpc-reopen{
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    font-family: "Gilmer", sans-serif;
    font-size: 12px;
    background: rgb(255 255 255 / 85%);
    border: solid 1px #dfdfdf;
    border-radius: 20px;
    padding: 6px 12px;
    color: #000;
    cursor: pointer;
    box-shadow: 1px 6px 8px hsl(0deg 0% 0% / 0.15);
    transition: all 0.3s ease-in-out;
}

#mpc-reopen:hover{
    background: #000;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Superposición sobre los Pipedrive Web Forms bloqueados hasta aceptar cookies */
.mpc-pd-wrap{
    position: relative;
    min-height: 400px; /* ajustar si el formulario real es más alto/bajo */
}

.mpc-pd-wrap.mpc-pd-active{
    min-height: 0;
}

/* El script inline solo marca esta clase en el wrap (el overlay puede no
   existir aún en el DOM cuando se ejecuta, por ir después en el HTML); el
   propio CSS se encarga de ocultarlo en cuanto aparezca. */
.mpc-pd-wrap.mpc-pd-active .mpc-pd-overlay{
    display: none;
}

.mpc-pd-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
    background: rgb(255 255 255 / 92%);
    border: solid 1px #dfdfdf;
    border-radius: 8px;
    font-family: "Gilmer", sans-serif;
}

.mpc-pd-overlay p{
    margin: 0;
    color: #000;
}

.mpc-pd-overlay .mpc-pd-message{
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3em;
    max-width: 480px;
}

.mpc-pd-overlay .mpc-pd-alt{
    font-size: 14px;
}

.mpc-pd-overlay a{
    color: #2C0062;
    text-decoration: underline;
}

.mpc-pd-accept{
    font-size: 15px;
    font-family: "Gilmer", sans-serif;
    border: none;
    background: #2C0062;
    border-radius: 100px;
    padding: 12px 32px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

.mpc-pd-accept:hover{
    background: #1d0041;
}