.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 32px));
    background: #FBFBFB;
    color: #000;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    /*padding: 1.25rem;*/
    z-index: 99999;
}

.cookie-consent[hidden] {
    display: none !important;
}

/*.cookie-consent h2 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
}*/

.cookie-consent p {
    margin-bottom: 1rem;
    line-height: 1.5;
    padding: 1.25rem;
}

.cookie-consent a {
    text-decoration: underline;
    text-decoration-color: goldenrod;
    text-underline-offset: .2em;        
    color: black;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 1.25rem;
}

.cookie-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #000;
    padding: .7rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.cookie-btn:hover,
.cookie-btn:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

.cookie-btn-primary,
.cookie-btn-secondary {
    background: #212529;
    color: #fff;
}

/* Aceptar y Rechazar tienen el mismo peso visual */
.cookie-btn-primary,
.cookie-btn-secondary {
    min-width: 150px;
}

.cookie-preferences {
    border-top: 1px solid rgba(0, 0, 0, .2);
    margin-top: 1rem;    
    padding: 1rem 1.25rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.cookie-option small {
    display: block;
    color: #111;
    margin-top: .25rem;
}

@media (max-width: 576px) {
    .cookie-consent {
        width: calc(100% - 16px);
        bottom: 8px;        
    }

    .cookie-consent p {
        padding: 1rem;
    }

    .cookie-actions {
        flex-direction: column;
        padding: 1rem;
    }

    .cookie-btn {
        width: 100%;
    }
}
