/* Cookie consent banner (js/consent.js). Colors follow the site theme tokens. */
.iqr-consent {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 60;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

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

.iqr-consent__card {
    width: 100%;
    max-width: 40rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    color: var(--color-ink, #0b1526);
    box-shadow: 0 20px 40px -12px rgb(11 21 38 / 0.25);
    pointer-events: auto;
}

.iqr-consent__title {
    font-family: var(--font-display, inherit);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    outline: none;
}

.iqr-consent__text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

.iqr-consent__text a {
    font-weight: 500;
    color: var(--color-cobalt, #1d4ed8);
    text-decoration: underline;
}

.iqr-consent__settings {
    margin-top: 1rem;
    display: grid;
    gap: 0.625rem;
}

.iqr-consent__settings[hidden] {
    display: none;
}

.iqr-consent__option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.iqr-consent__option input {
    margin-top: 0.125rem;
    border-radius: 0.25rem;
    color: var(--color-cobalt, #1d4ed8);
}

.iqr-consent__option input:disabled {
    opacity: 0.6;
}

.iqr-consent__option strong {
    font-weight: 600;
    color: var(--color-ink, #0b1526);
}

/* The three choices carry equal visual weight on purpose. */
.iqr-consent__actions {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.iqr-consent__button {
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-ink, #0b1526);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-ink, #0b1526);
    cursor: pointer;
    transition: background-color 150ms, color 150ms;
}

.iqr-consent__button:hover {
    background: var(--color-ink, #0b1526);
    color: #fff;
}

.iqr-consent__button:focus-visible {
    outline: 2px solid var(--color-cobalt, #1d4ed8);
    outline-offset: 2px;
}

@media (max-width: 30rem) {
    .iqr-consent__actions {
        grid-template-columns: 1fr;
    }
}
