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

.analytics-consent {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #172b45;
    box-shadow: 0 4px 24px #172b4533;
    text-align: left;
    font: 1rem/1.5 Arial, sans-serif;
}

.analytics-consent h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.analytics-consent p {
    margin: 0;
    max-width: 760px;
}

.analytics-consent a {
    color: #125486;
    text-decoration: underline;
}

.analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.analytics-consent-actions button,
.analytics-settings {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #125486;
    border-radius: 6px;
    background: #fff;
    color: #125486;
    font: 600 .9rem/1.4 Arial, sans-serif;
    cursor: pointer;
}

.analytics-consent-actions button:hover,
.analytics-settings:hover {
    background: #eef4fa;
}

.analytics-consent-actions button:focus-visible,
.analytics-settings:focus-visible {
    outline: 3px solid #1769aa;
    outline-offset: 3px;
}

.analytics-consent-actions button:disabled {
    opacity: .6;
    cursor: default;
}

.analytics-settings {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    box-shadow: 0 2px 8px #172b4526;
}

@media (max-width: 760px) {
    .analytics-consent {
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
    }

    .analytics-consent-actions button {
        flex: 1;
    }
}
