.analytics-banner[hidden] {
    display: none !important;
}
.analytics-banner {
    position: fixed;
    z-index: 10000;
    bottom: 16px;
    left: 16px;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    box-sizing: border-box;
    padding: 20px;
    background: #fff;
    color: #182e3b;
    border: 1px solid #718c9e;
    border-radius: 8px;
    box-shadow: 0 8px 32px #0004;
    font:
        15px/1.5 Arial,
        sans-serif;
}
.analytics-banner p {
    margin: 10px 0;
}
.analytics-banner strong {
    font-size: 19px;
}
.analytics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.analytics-actions button,
.analytics-details button {
    padding: 11px 16px;
    border: 1px solid #245571;
    background: #fff;
    color: #183d54;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}
.analytics-actions button:first-child {
    background: #245571;
    color: #fff;
}
.analytics-link {
    display: inline;
    border: 0;
    padding: 0;
    background: transparent;
    color: #245571;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.analytics-settings {
    text-align: center;
    padding: 12px 16px;
    background: #fff;
}
.analytics-banner a,
.analytics-details a {
    color: #245571;
    text-decoration: underline;
}
.analytics-banner button:focus-visible,
.analytics-details button:focus-visible,
.analytics-settings button:focus-visible {
    outline: 3px solid #d58512;
    outline-offset: 3px;
}
#analytics-status:empty {
    display: none;
}
.analytics-details {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #718c9e;
    border-radius: 8px;
    color: #182e3b;
    background: #fff;
    font:
        16px/1.55 Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.analytics-details::backdrop {
    background: #0009;
}
.analytics-details h2 {
    font-size: 23px;
    line-height: 1.3;
    margin-top: 0;
}
.analytics-details h3 {
    font-size: 18px;
}
@media (max-width: 480px) {
    .analytics-banner {
        padding: 15px;
        bottom: 8px;
        left: 8px;
        width: calc(100vw - 16px);
    }
    .analytics-actions button {
        flex: 1 1 120px;
    }
    .analytics-details {
        padding: 18px;
    }
}
