/*
  Cookie consent banner. Shown by scripts/consent.js until the visitor accepts or
  rejects analytics. Styling mirrors the site's dark theme. No inline styles are
  used so the strict Content-Security-Policy stays intact.
*/
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.35rem;
    background: rgba(15, 26, 46, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color: #e8eef7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: cookie-rise 0.35s ease;
}

@keyframes cookie-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.cookie-banner-text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #c4d0e0;
}

.cookie-banner-text a {
    color: #6fb0e6;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex: 0 0 auto;
}

.cookie-btn {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: 9px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cookie-btn-accept {
    background: #1e5a9e;
    color: #fff;
}

.cookie-btn-accept:hover { background: #2a6cb8; }

.cookie-btn-reject {
    background: transparent;
    color: #c4d0e0;
    border-color: rgba(255, 255, 255, 0.18);
}

.cookie-btn-reject:hover { background: rgba(255, 255, 255, 0.06); }

@media (max-width: 560px) {
    .cookie-banner { flex-direction: column; align-items: stretch; gap: 0.9rem; }
    .cookie-banner-actions { justify-content: flex-end; }
}
