/* Cookie / аналитика: баннер согласия (152-ФЗ, прозрачность обработки) */
/* overflow-x на #cookie-consent-bar — иначе дети с переполнением раздувают scrollWidth (iOS / WebKit) */
#cookie-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    overflow-x: hidden;
    padding: 20px 24px 22px;
    background: rgba(10, 11, 20, 0.97);
    border-top: 1px solid rgba(120, 100, 220, 0.28);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #e2e8f0;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

#cookie-consent-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
}

.cookie-consent-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    color: #94a3b8;
}

.cookie-consent-text strong {
    color: #e2e8f0;
    font-weight: 600;
}

.cookie-consent-text a {
    color: #2dd4bf;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent-text a:hover {
    color: #5eead4;
}

.cookie-consent-actions {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.cookie-consent-actions button {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #7c3aed 0%, #2dd4bf 100%);
    color: #0a0b14;
}

.cookie-btn-accept:hover {
    filter: brightness(1.08);
}

.cookie-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.cookie-btn-reject:hover {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.55) !important;
}

@media (max-width: 640px) {
    #cookie-consent-bar {
        padding: 16px max(12px, env(safe-area-inset-left, 0px)) 18px max(12px, env(safe-area-inset-right, 0px));
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-actions button {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}
