.site-analytics-consent {
    position: fixed;
    z-index: 90;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(31rem, calc(100vw - 2rem));
    padding: 1.2rem;
    border: 1px solid var(--pv-color-border, #d9e1ec);
    border-radius: 8px;
    background: var(--pv-color-surface, #ffffff);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
    color: var(--pv-color-text, #0b2436);
}

.site-analytics-consent h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-serif, Lora, Georgia, serif);
    font-size: 1.2rem;
}

.site-analytics-consent p {
    margin: 0;
    color: var(--pv-color-muted, #53657c);
    font-size: 0.94rem;
    line-height: 1.55;
}

.site-analytics-consent a {
    color: var(--pv-color-accent, #2563eb);
}

.site-analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.site-analytics-consent-actions form {
    margin: 0;
}

.site-analytics-consent-actions button {
    min-height: 2.65rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--pv-color-border-strong, #b8c5d6);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-analytics-consent-actions form:first-child button {
    border-color: var(--pv-color-action, #0b2436);
    background: var(--pv-color-action, #0b2436);
    color: var(--pv-color-on-action, #ffffff);
}

.site-analytics-consent-actions button:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb, 37, 99, 235), 0.3);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .site-analytics-consent {
        right: 1rem;
        bottom: 1rem;
        padding: 1rem;
    }

    .site-analytics-consent-actions,
    .site-analytics-consent-actions form,
    .site-analytics-consent-actions button {
        width: 100%;
    }
}
