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

.analytics-consent {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid #d5e5f3;
    border-radius: 14px;
    background: #fff;
    color: #0b2d4d;
    box-shadow: 0 4px 20px #0b2d4d14;
    font:
        14px/1.6 "Manrope",
        Arial,
        sans-serif;
}

.analytics-consent-copy {
    flex: 1;
    min-width: 0;
}
.analytics-consent h2 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
}
.analytics-consent p {
    margin: 0 0 6px;
}
.analytics-consent a {
    color: #076acb;
    font-size: 13px;
}
.analytics-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 0 0 220px;
}
.analytics-consent button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0b2d4d;
    border-radius: 8px;
    background: #fff;
    color: #0b2d4d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.analytics-consent button:hover {
    background: #f7faff;
}

.analytics-consent [data-consent-close] {
    grid-column: 1 / -1;
    border-color: transparent;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 400;
    text-decoration: underline;
}

.analytics-preferences {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.analytics-consent :focus-visible,
.analytics-preferences:focus-visible {
    outline: 3px solid #076acb;
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .analytics-consent {
        inset: auto 10px 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .analytics-consent-actions {
        flex: auto;
    }
}
