.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2200;
    border: 1px solid var(--panel-border, #2b3a68);
    border-radius: 12px;
    background: var(--surface-elevated, color-mix(in srgb, var(--panel, #131a31) 94%, black));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.cookie-consent-inner {
    display: grid;
    gap: .65rem;
    padding: .9rem 1rem;
}

.cookie-consent-title {
    margin: 0;
    font-size: .95rem;
}

.cookie-consent-copy {
    margin: 0;
    font-size: .86rem;
    line-height: 1.4;
    color: var(--muted, #96a5d4);
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
}

.cookie-consent-btn {
    border: 1px solid var(--panel-border, #2b3a68);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-btn-primary {
    border-color: var(--accent, #5d8bff);
    background: var(--accent, #5d8bff);
    color: #fff;
}

.cookie-consent-btn-primary:hover {
    filter: brightness(0.95);
}

.cookie-consent-btn-ghost {
    background: transparent;
    color: var(--text, #eef2ff);
}

.cookie-consent-btn-ghost:hover {
    background: rgba(93, 139, 255, 0.12);
}

.cookie-consent-details {
    display: none;
    margin: .15rem 0 0 0;
    padding: .6rem .7rem;
    border: 1px dashed var(--panel-border, #2b3a68);
    border-radius: 8px;
    background: var(--surface-soft, rgba(0, 0, 0, 0.2));
    color: var(--muted, #96a5d4);
    font-size: .8rem;
    line-height: 1.35;
}

.cookie-consent-details.open {
    display: block;
}

@media (max-width: 640px) {
    .cookie-consent {
        left: .65rem;
        right: .65rem;
        bottom: .65rem;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1;
    }
}
