.analytics-consent[hidden],
.analytics-settings[hidden] {
    display: none !important;
}

.analytics-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1160px;
    max-height: calc(100dvh - 40px);
    margin: 0 auto;
    padding: 24px;
    overflow-y: auto;
    color: #343c4d;
    background: #fff;
    border: 1px solid #cfdde2;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(8, 43, 74, 0.22);
}

.analytics-consent__content {
    flex: 1;
}

.analytics-consent h2 {
    margin: 0 0 8px;
    color: #082b4a;
    font-size: 19px;
    line-height: 1.3;
}

.analytics-consent p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
}

.analytics-consent a {
    color: #044d7c;
    font-size: 14px;
    text-decoration: underline;
}

.analytics-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.analytics-consent__actions button {
    min-height: 44px;
    padding: 10px 16px;
    color: #044d7c;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #044d7c;
    border-radius: 6px;
}

.analytics-consent__actions button:hover {
    color: #fff;
    background: #044d7c;
}

.analytics-settings {
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.analytics-consent a:focus-visible,
.analytics-consent button:focus-visible,
.analytics-settings:focus-visible {
    outline: 3px solid #00b2ff;
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .analytics-consent {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .analytics-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-height: calc(100dvh - 24px);
        padding: 18px;
    }

    .analytics-consent__actions button {
        flex: 1 1 100%;
    }
}