/* Назначение файла: Стили панели выбора необязательных cookie. */
.cookie-notice[hidden] { display: none; }
.analytics-badges[hidden] { display: none; }
.analytics-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px auto;
}
.analytics-badges img {
    display: block;
    border: 0;
}
.cookie-notice {
    position: fixed;
    z-index: 10000;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
    padding: 13px 14px;
    box-sizing: border-box;
    color: #17212b;
    background: #fff;
    border: 1px solid #b7dced;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    text-align: left;
}
.cookie-notice__text {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}
.cookie-notice__text strong,
.cookie-notice__text span { display: block; margin-bottom: 2px; }
.cookie-notice__text strong { font-size: 14px; }
.cookie-notice__button {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 104px;
    padding: 9px 13px;
    color: #fff;
    background: #267dc1;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}
.cookie-notice__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-notice__button--secondary {
    color: #1768a7;
    background: #fff;
    border: 1px solid #267dc1;
}
.cookie-notice__button--secondary:hover,
.cookie-notice__button--secondary:focus { color: #fff; }
.cookie-notice__button:hover,
.cookie-notice__button:focus { background: #1768a7; }
@media (max-width: 640px) {
    .cookie-notice {
        right: auto;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 50%;
        display: block;
        width: min(330px, calc(100% - 16px));
        max-width: none;
        max-height: calc(100dvh - 16px);
        margin: 0;
        padding: 11px;
        overflow-y: auto;
        transform: translateX(-50%);
    }
    .cookie-notice__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        margin-top: 8px;
    }
    .cookie-notice__button {
        width: 100%;
        min-width: 0;
        padding: 8px 6px;
        font-size: 13px;
    }
}
