.jr-ga4[hidden] {
    display: none !important;
}

.jr-ga4 {
    position: fixed;
    z-index: 9700;
    inset-inline: 0.75rem;
    inset-block-end: 0.75rem;
    width: min(38rem, calc(100% - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    box-sizing: border-box;
    margin-inline: auto;
    padding: clamp(0.85rem, 3vw, 1.25rem);
    border: 1px solid #344b69;
    border-block-start: 3px solid #ffb000;
    border-radius: 0.65rem;
    background: #101b2b;
    color: #e3eaf3;
    box-shadow: 0 0.65rem 2rem #0008;
    font: 0.9375rem/1.5 system-ui, sans-serif;
}

.jr-ga4 .jr-ga4-title {
    margin: 0 0 0.35rem;
    color: #ffb000;
    font: inherit;
    font-weight: 700;
}

.jr-ga4 .jr-ga4-message {
    margin: 0 0 0.8rem;
    color: inherit;
    font: inherit;
}

.jr-ga4-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.jr-ga4 .jr-ga4-action {
    min-height: 2.75rem;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border: 1px solid #ffb000;
    border-radius: 0.38rem;
    background: #252932;
    color: #ffb000;
    font: inherit;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.jr-ga4 .jr-ga4-action:hover {
    background: #ffb000;
    color: #101b2b;
}

.jr-ga4 .jr-ga4-action:focus-visible {
    outline: 2px solid #e3eaf3;
    outline-offset: 2px;
}

.jr-ga4-footer-link {
    display: inline-block;
    margin: 0.35rem 0.65rem;
    color: inherit;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.jr-ga4-footer-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.jr-ga4-footer {
    padding: 0.5rem 1rem;
    background: #101b2b;
    color: #e3eaf3;
    text-align: center;
}
