.analytics-consent {
    color-scheme: light dark;
    position: fixed;
    z-index: 1000;
    inset-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    margin-inline-start: auto;
    max-inline-size: 35rem;
    max-block-size: calc(100dvh - 2rem);
    overflow: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid light-dark(#c4cac6, #565e58);
    border-radius: .875rem;
    background: light-dark(#fff, #202522);
    color: light-dark(#19231d, #f1f5f2);
    box-shadow: 0 .5rem 2rem #0004;
}

.analytics-consent h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
}

.analytics-consent p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.analytics-consent a {
    color: inherit;
    text-decoration: underline;
}

.analytics-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.analytics-consent__actions button {
    flex: 1 1 11rem;
    padding: .55rem .75rem;
    min-block-size: 44px;
    border: 1px solid currentColor;
    border-radius: .5rem;
    background: light-dark(#eaf2ed, #303d35);
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.analytics-consent__actions button:hover {
    background: light-dark(#d6e9dc, #425649);
}

.analytics-consent :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.analytics-consent [data-consent-error] {
    margin: .75rem 0 0;
}

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