.analytics-consent {
    position: fixed;
    z-index: 1000;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 920px;
    margin-left: auto;
    padding: 20px 22px;
    color: #e7eef8;
    background: rgba(11, 24, 43, .98);
    border: 1px solid rgba(94, 234, 212, .26);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(2, 8, 23, .34);
    backdrop-filter: blur(14px);
}

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

.analytics-consent__copy {
    max-width: 610px;
}

.analytics-consent__copy strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 1rem;
}

.analytics-consent__copy p {
    margin: 0;
    color: #b8c6d8;
    font-size: .86rem;
    line-height: 1.55;
}

.analytics-consent__copy a {
    display: inline-block;
    margin-top: 7px;
    color: #5eead4;
    font-size: .8rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.analytics-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.analytics-consent__actions button {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 11px;
    font: inherit;
    font-size: .83rem;
    font-weight: 800;
    cursor: pointer;
}

.analytics-consent__reject {
    color: #d6e0ee;
    background: transparent;
    border: 1px solid rgba(203, 213, 225, .35);
}

.analytics-consent__accept {
    color: #06211e;
    background: #5eead4;
    border: 1px solid #5eead4;
}

.analytics-consent__actions button:focus-visible,
.analytics-consent__copy a:focus-visible {
    outline: 3px solid rgba(94, 234, 212, .45);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .analytics-consent {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        display: block;
        padding: 18px;
        border-radius: 16px;
    }

    .analytics-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        margin-top: 15px;
    }

    .analytics-consent__actions button {
        width: 100%;
        padding: 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analytics-consent {
        backdrop-filter: none;
    }
}
