/* Cookie consent banner (built by js/ga-init.js). Site palette: background #0f172a, card #1e293b,
   accent #38bdf8. Fixed to the bottom corner so it never shifts the page (no CLS), small enough not
   to hide the content behind it. */

.pq-consent {
    --pq-bg: rgba(15, 23, 42, 0.96);
    --pq-border: #334155;
    --pq-text: #e2e8f0;
    --pq-muted: #94a3b8;
    --pq-accent: #38bdf8;

    position: fixed;
    z-index: 60;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 420px;
    padding: 18px 18px 16px;
    border: 1px solid var(--pq-border);
    border-radius: 16px;
    background: var(--pq-bg);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.55), 0 0 24px rgba(56, 189, 248, 0.08);
    color: var(--pq-text);
    font-family: Inter, system-ui, sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.pq-consent--in {
    opacity: 1;
    transform: none;
}

@media (min-width: 640px) {
    .pq-consent {
        left: 24px;
        right: auto;
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pq-consent {
        transition: none;
        transform: none;
    }
}

.pq-consent__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pq-consent__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--pq-accent);
    font-size: 15px;
}

.pq-consent__title {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.pq-consent__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--pq-muted);
    cursor: pointer;
}

.pq-consent__close:hover {
    background: #1e293b;
    color: #fff;
}

.pq-consent__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--pq-muted);
}

.pq-consent__link {
    color: var(--pq-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pq-consent__status {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--pq-muted);
}

.pq-consent__status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    vertical-align: 1px;
    background: #64748b;
}

.pq-consent__status[data-state="granted"]::before {
    background: #22c55e;
}

.pq-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

/* Both choices are the same size and equally easy to pick. */
.pq-consent__btn {
    padding: 10px 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pq-consent__btn--reject {
    border: 1px solid #475569;
    background: #1e293b;
    color: var(--pq-text);
}

.pq-consent__btn--reject:hover {
    border-color: #64748b;
    background: #334155;
}

.pq-consent__btn--accept {
    border: 1px solid var(--pq-accent);
    background: var(--pq-accent);
    color: #0f172a;
}

.pq-consent__btn--accept:hover {
    background: #7dd3fc;
    border-color: #7dd3fc;
}

.pq-consent__btn:focus-visible,
.pq-consent__close:focus-visible,
.pq-consent__link:focus-visible {
    outline: 2px solid var(--pq-accent);
    outline-offset: 2px;
}
