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

.eg-analytics-notice {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10000;
    display: flex;
    width: min(44rem, calc(100% - 2rem));
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: #231942;
    color: #fff;
    box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 24%);
    font-size: 0.875rem;
    line-height: 1.45;
}

.eg-analytics-notice__text {
    flex: 1;
    margin: 0;
}

.eg-analytics-notice a,
.eg-analytics-notice a:hover {
    color: #fff;
}

.eg-analytics-button {
    flex-shrink: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid #ffd166;
    border-radius: 0.3rem;
    background: #ffd166;
    color: #231942;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.eg-analytics-button:focus-visible,
.eg-analytics-notice a:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .eg-analytics-notice {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
        flex-direction: column;
        align-items: stretch;
    }

    .eg-analytics-button {
        width: 100%;
    }
}
