/* InCloud — уведомление об использовании cookies.
   Подключается после site.css: правило подъёма кнопки связи
   переопределяет :root .site-callback-position. */

.site-cookie-notice {
    position: fixed;
    left: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 24px;
    border-radius: 14px;
    background: #1a252f;
    box-shadow: 0 18px 44px #0f172a40;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

/* На 404 нет правила [hidden]{display:none!important} из site.css,
   а display:flex авторского стиля перебил бы стиль браузера. */
.site-cookie-notice[hidden] {
    display: none;
}

.site-cookie-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-cookie-notice-body {
    max-width: 520px;
}

.site-cookie-notice-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.site-cookie-notice-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #9fb1c4;
}

.site-cookie-notice-text a {
    color: #bcd4e8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-cookie-notice-text a:hover {
    color: #fff;
}

.site-cookie-notice-accept {
    flex: none;
    padding: 13px 30px;
    border: 0;
    border-radius: 8px;
    background: var(--color-secondary, #3498db);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.site-cookie-notice-accept:hover {
    background: #2c87c5;
}

.site-cookie-notice-accept:focus-visible {
    outline: 2px solid #bcd4e8;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .site-cookie-notice { transition: none; }
}

/* Плавающая кнопка связи поднимается над плашкой, пока та видна. */
html[data-cookie-notice] .site-callback-position {
    bottom: calc(40px + var(--cookie-notice-height, 0px));
    transition: bottom .3s ease;
}

@media (max-width: 767px) {
    .site-cookie-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        align-items: center;
        gap: 12px;
        padding: 14px;
    }

    .site-cookie-notice-text { font-size: 13px; line-height: 1.45; }

    .site-cookie-notice-accept {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }

    html[data-cookie-notice] .site-callback-position {
        bottom: calc(28px + var(--cookie-notice-height, 0px));
    }
}
