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

.analytics-consent__settings,
.analytics-consent__banner {
    position: fixed;
    font-family: inherit;
}

.analytics-consent__settings {
    z-index: 40;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 8px 12px;
    border: 1px solid #4d738e;
    border-radius: 9px;
    color: #eef7fd;
    background: #102f49;
    cursor: pointer;
    font-size: 11px;
}

.analytics-consent__banner {
    z-index: 2001;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    overflow-y: auto;
    padding: 22px max(24px, env(safe-area-inset-right))
             max(22px, env(safe-area-inset-bottom))
             max(24px, env(safe-area-inset-left));
    border-top: 1px solid #b7cad7;
    color: #102f49;
    background: #eaf2f7;
    box-shadow: 0 -12px 34px rgba(10, 35, 55, .16);
    animation: analytics-consent-slide-up 240ms ease-out both;
}

.analytics-consent__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(160px, 190px);
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
}

.analytics-consent__intro {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

.analytics-consent__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: #087fb8;
    font-size: 18px;
    font-weight: 800;
}

.analytics-consent__banner h2 {
    margin: 0;
    color: #102f49;
    font-size: 17px;
    line-height: 1.3;
}

.analytics-consent__banner p {
    margin: 0;
    color: #34546b;
    font-size: 13px;
    line-height: 1.55;
}

.analytics-consent__intro p {
    grid-column: 2;
    margin-top: 5px;
}

.analytics-consent__banner a {
    display: inline-block;
    margin-top: 7px;
    color: #075c90;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.analytics-consent__banner .analytics-consent__hint {
    margin-top: 7px;
    color: #5b7386;
    font-size: 11px;
}

.analytics-consent__actions {
    display: grid;
    gap: 9px;
}

.analytics-consent__actions button {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid #0874ad;
    border-radius: 7px;
    color: #fff;
    background: #087fb8;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.analytics-consent__actions button:hover {
    background: #086b9b;
}

.analytics-consent__settings:focus-visible,
.analytics-consent__actions button:focus-visible,
.analytics-consent__banner a:focus-visible {
    outline: 2px solid #114b77;
    outline-offset: 2px;
}

@keyframes analytics-consent-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 840px) {
    .analytics-consent__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .analytics-consent__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .analytics-consent__banner {
        padding: 16px max(15px, env(safe-area-inset-right))
                 max(16px, env(safe-area-inset-bottom))
                 max(15px, env(safe-area-inset-left));
    }

    .analytics-consent__banner p,
    .analytics-consent__banner a {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analytics-consent__banner {
        animation: none;
    }
}
