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

.analytics-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    max-height: min(80vh, 420px);
    overflow-y: auto;
    padding: 1.15rem;
    background: var(--webtrix-white);
    border-top: 5px solid var(--webtrix-orange);
    box-shadow: 0 -12px 35px rgba(21, 44, 83, .2);
}

.analytics-consent-inner {
    display: grid;
    width: min(1110px, 100%);
    margin: 0 auto;
    align-items: center;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.analytics-consent-copy h2 {
    margin: 0 0 .35rem;
    color: var(--webtrix-blue-dark);
    font-size: 1.15rem;
}

.analytics-consent-copy p {
    max-width: 760px;
    margin: 0 0 .3rem;
    color: var(--webtrix-muted);
    font-size: .9rem;
}

.analytics-consent-copy a {
    color: var(--webtrix-orange);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.analytics-consent-copy a:hover,
.analytics-consent-copy a:focus {
    color: var(--webtrix-muted);
}

.analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.analytics-settings-button {
    padding: 0;
    color: var(--webtrix-orange);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
}

.analytics-settings-button:hover,
.analytics-settings-button:focus {
    color: var(--webtrix-border);
}

.analytics-settings-button:focus-visible {
    outline: 2px solid var(--webtrix-orange);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .analytics-consent-inner {
        grid-template-columns: 1fr;
    }

    .analytics-consent-actions {
        justify-content: stretch;
    }

    .analytics-consent-actions .btn {
        flex: 1 1 180px;
    }
}
