.analytics-consent {
    position: fixed;
    z-index: 1100;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    width: min(420px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 12px 42px #0002;
}

.analytics-consent h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.analytics-consent p {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
}

.analytics-consent a {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.analytics-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.analytics-consent-actions button {
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--ink);
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.analytics-consent-actions button:hover {
    background: var(--soft);
}

.analytics-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: #515158;
    font: inherit;
    font-size: 13px;
    text-align: start;
    cursor: pointer;
}

.analytics-settings:hover {
    text-decoration: underline;
}

.cookie-list th,
.cookie-list td {
    overflow-wrap: anywhere;
}

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