/* Cookie Consent — iDLock AuthN 2FA
 * Retângulo compacto flutuante no canto inferior direito
 */

.cookie-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 340px;
    background: rgba(13, 11, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;

    /* inicia oculto, desliza de baixo */
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}

.cookie-bar--show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-bar__txt {
    flex: 1;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.cookie-bar__txt a {
    color: rgba(160, 120, 255, 0.85);
    text-decoration: none;
}

.cookie-bar__txt a:hover {
    color: #a078ff;
    text-decoration: underline;
}

.cookie-bar__btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.cookie-bar__btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

/* Tema claro */
[data-theme="light"] .cookie-bar {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cookie-bar__txt {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .cookie-bar__txt a {
    color: #6c3acf;
}

[data-theme="light"] .cookie-bar__btn {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-bar__btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

/* Mobile: menor e mais baixo */
@media (max-width: 480px) {
    .cookie-bar {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}
