.hac-notice {
    position: fixed;
    z-index: 1100;
    inset-inline-start: 1rem;
    inset-block-end: 1rem;
    box-sizing: border-box;
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow: auto;
    padding: 1.15rem;
    border: 1px solid #b5c7be;
    border-radius: .75rem;
    box-shadow: 0 6px 24px #172a2430;
    background: #fff;
    color: #172a24;
    text-align: start;
    font: 400 .96rem/1.5 system-ui, sans-serif;
}

.hac-notice[hidden] {
    display: none;
}

.hac-notice h2 {
    margin: 0 0 .4rem;
    color: inherit;
    font: 700 1.12rem/1.3 system-ui, sans-serif;
}

.hac-notice p {
    margin: 0 0 .45rem;
    font: inherit;
}

.hac-notice a {
    color: #185e45;
    text-decoration: underline;
}

.hac-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .9rem;
}

.hac-actions button {
    min-height: 2.75rem;
    padding: .5rem;
    border: 1px solid #185e45;
    border-radius: .45rem;
    background: #edf5f0;
    color: #164633;
    font: 650 .93rem/1.25 system-ui, sans-serif;
    cursor: pointer;
}

.hac-actions button:hover {
    background: #dceee3;
}

.hac-actions button[aria-pressed="true"] {
    background: #dceee3;
    box-shadow: inset 0 0 0 1px #185e45;
}

.hac-notice :is(a, button):focus-visible,
.hac-settings:focus-visible {
    outline: 2px solid #248163;
    outline-offset: 3px;
}

.hac-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.hac-settings-fallback {
    display: block;
    margin: 1rem;
}

.hac-policy {
    max-width: 46rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hac-policy-section {
    margin: 1.5rem 0;
}

.hac-policy-section h2 {
    margin: 0 0 .4rem;
}

.hac-policy-section p {
    margin: .4rem 0 .8rem;
}

@media (max-width: 360px) {
    .hac-notice {
        inset-inline-start: .55rem;
        inset-block-end: .55rem;
        width: calc(100% - 1.1rem);
        padding: .85rem;
    }

    .hac-actions button {
        font-size: .85rem;
    }
}
