/* Cookie consent — small, calm card in the corner, no overlay */
.cookie-consent {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1200;
    width: min(380px, calc(100vw - 2rem));
    padding: 1.25rem 1.25rem 1rem;
    background: rgba(22, 24, 28, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(47, 51, 54, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent.visible {
    opacity: 1;
    transform: none;
}

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

.cookie-consent-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.cookie-consent-text {
    color: #a1a1aa;
    font-size: 0.85rem;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid #333;
    color: #d0d0d0;
}

.cookie-btn-secondary:hover {
    border-color: #666;
    color: #fff;
}

.cookie-btn-primary {
    background: #1d9bf0;
    border: 1px solid #1d9bf0;
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #1a8cd8;
}

.cookie-settings-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
}

.cookie-settings-link:hover {
    color: #a1a1aa;
}

@media (max-width: 1000px) {
    .cookie-consent {
        left: 1rem;
        right: 1rem;
        bottom: calc(65px + 1rem);
        width: auto;
    }
}
