/* Cookie-баннер (вариант 2), стили согласованы с футером v5 (#222) */
.cb-cookie-consent {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    background: #222222;
    color: #eeeeee;
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
    border-top: 1px solid #333333;
}

.cb-cookie-consent.cb-cookie-consent--hidden,
.cb-cookie-consent[hidden] {
    display: none !important;
}

.cb-cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.cb-cookie-consent__text {
    margin: 0;
    flex: 1 1 auto;
    min-width: min(100%, 280px);
    max-width: 920px;
}

.cb-cookie-consent__text a {
    color: #7fdc7f;
    text-decoration: underline;
}

.cb-cookie-consent__text a:hover {
    color: #a8f0a8;
}

.cb-cookie-consent__btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 22px;
    border: 0;
    border-radius: 3px;
    background: #008f00;
    color: #ffffff;
    font: bold 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.cb-cookie-consent__btn:hover {
    background: #00a800;
}

.cb-cookie-consent__btn:active {
    background: #007a00;
}

html[data-theme="dark"] .cb-cookie-consent {
    background: #1a1a1a;
    border-top-color: #3a3a3a;
    color: #e8e8e8;
}

@media (max-width: 640px) {
    .cb-cookie-consent {
        height: auto;
        max-height: none;
    }

    .cb-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        height: auto;
        min-height: 0;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .cb-cookie-consent__text {
        flex: 0 1 auto;
        min-width: 0;
    }

    .cb-cookie-consent__btn {
        width: 100%;
        text-align: center;
        flex: 0 0 auto;
    }
}
