/* Consent banner — loaded only when the Ads tag is configured. Tokens come from tokens.css. */
.consent {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: var(--z-overlay);
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    background: var(--surface-elevated);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-family);
}

/* Author-origin display beats the UA [hidden] rule, so the attribute needs its own. */
.consent[hidden] {
    display: none;
}

.consent__text {
    flex: 1 1 260px;
    margin: 0;
    color: var(--neutral-700);
    font-size: 0.85rem;
    line-height: 1.5;
}

.consent__link {
    color: var(--primary-600);
    text-decoration: underline;
}

.consent__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.consent__btn {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--primary-600);
    border-radius: var(--radius-md);
    background: var(--primary-600);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.consent__btn:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
}

.consent__btn--ghost {
    background: transparent;
    border-color: var(--neutral-300);
    color: var(--neutral-700);
}

.consent__btn--ghost:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-400);
}

@media (max-width: 600px) {
    .consent__actions {
        width: 100%;
    }

    .consent__btn {
        flex: 1;
    }
}
