/* Approved banner styles, loaded after legacy chrome at a distinct asset URL. */
.analytics-preferences {
    display: block;
    max-width: none;
    padding: 0;
    position: fixed;
    inset: auto 0 0;
    z-index: 1400;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--global-line);
    background: var(--global-white);
    color: var(--home-navy, #102942);
    font-family: var(--home-sans, system-ui, sans-serif);
    font-size: .9375rem;
    line-height: 1.4;
}

.analytics-preferences,
.analytics-preferences * {
    box-sizing: border-box;
}

.analytics-preferences [hidden],
.analytics-preferences[hidden] {
    display: none !important;
}

.analytics-preferences__content {
    display: flex;
    flex-direction: column;
    background: var(--global-white);
    box-shadow: none;
    max-width: 1480px;
    max-height: inherit;
    margin-inline: auto;
    padding: .5rem max(.75rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
}

.analytics-preferences [data-analytics-initial] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.analytics-preferences__row {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem 1rem;
}

.analytics-preferences__row > p {
    flex: 1 1 17rem;
    margin: 0;
}

.analytics-preferences__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.analytics-preferences button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .35rem .8rem;
    border: 1px solid currentColor;
    border-radius: 0;
    background: var(--global-white);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.analytics-preferences button.analytics-preferences__accept {
    border-color: var(--home-navy, #102942);
    background: var(--home-navy, #102942);
    color: var(--global-white);
}

.analytics-preferences button:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.analytics-preferences :where(button, a, [tabindex]):focus-visible {
    outline: 3px solid #b98a45;
    outline-offset: 2px;
}

.analytics-preferences__details {
    min-height: 0;
    max-height: 45vh;
    max-height: 45dvh;
    margin-bottom: .5rem;
    overflow: auto;
    overflow-wrap: anywhere;
}

.analytics-preferences__details p {
    margin: 0;
}

.analytics-preferences__details a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .15em;
}
