#cookieConsent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card, #fff);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary, #0b1220);
    border: 1px solid var(--border-color, rgba(0, 0, 0, .1))
}

#cookieConsent .text h4 {
    margin: 0 0 .25rem;
    font-size: 1rem;
    color: var(--text-primary, #0b1220);
    font-family: var(--font-heading)
}

#cookieConsent .text p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-secondary, #555);
    font-family: var(--font-body)
}

#cookieConsent .actions {
    display: flex;
    gap: .5rem
}

#cookieConsent .btn {
    padding: .5rem .75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    background: #0b84ff;
    color: #fff;
    transition: .3s
}

#cookieConsent .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 132, 255, .3)
}

#cookieConsent .btn.secondary {
    background: 0 0;
    border: 1px solid var(--border-color, #ccc);
    color: var(--text-primary, #0b1220)
}

#cookieConsent .btn.secondary:hover {
    background: var(--bg-hover, rgba(0, 0, 0, .05));
    box-shadow: none
}

#cookieConsent .btn.link {
    background: 0 0;
    color: var(--text-secondary, #555);
    font-weight: 600
}

#cookieConsent .btn.link:hover {
    color: var(--color-primary, #0b84ff);
    box-shadow: none
}

.dark-mode #cookieConsent {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4)
}

.dark-mode #cookieConsent .text h4 {
    color: var(--text-primary)
}

.dark-mode #cookieConsent .btn.link,
.dark-mode #cookieConsent .text p {
    color: var(--text-secondary)
}

.dark-mode #cookieConsent .btn.secondary {
    border-color: rgba(255, 255, 255, .2);
    color: var(--text-primary)
}

.dark-mode #cookieConsent .btn.secondary:hover {
    background: var(--bg-hover)
}

.dark-mode #cookieConsent .btn.link:hover {
    color: var(--color-primary)
}

@media (max-width:768px) {
    #cookieConsent {
        bottom: .75rem;
        left: .75rem;
        right: .75rem;
        padding: .9rem 1rem
    }

    #cookieConsent .text h4 {
        font-size: .95rem
    }

    #cookieConsent .text p {
        font-size: .85rem
    }

    #cookieConsent .actions {
        gap: .4rem
    }

    #cookieConsent .btn {
        padding: .45rem .65rem;
        font-size: .9rem
    }
}

@media (max-width:520px) {
    #cookieConsent {
        flex-direction: column;
        align-items: stretch;
        bottom: .5rem;
        left: .5rem;
        right: .5rem;
        padding: .8rem;
        gap: .8rem
    }

    #cookieConsent .text h4 {
        font-size: .9rem;
        margin-bottom: .2rem
    }

    #cookieConsent .text p {
        font-size: .8rem
    }

    #cookieConsent .actions {
        justify-content: stretch;
        flex-direction: column;
        gap: .5rem
    }

    #cookieConsent .actions button {
        width: 100%;
        padding: .6rem;
        font-size: .9rem
    }
}

@media (max-width:360px) {
    #cookieConsent {
        bottom: .3rem;
        left: .3rem;
        right: .3rem;
        padding: .7rem
    }

    #cookieConsent .text h4 {
        font-size: .85rem
    }

    #cookieConsent .text p {
        font-size: .75rem
    }
}
