/* Cookie-баннер и окно «Настройки cookie» - общие для лендинга и кабинета (user/views/inc/cookieBanner.php) */
.vfCookieBanner{
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99990;/* ниже модалки регистрации лендинга (99999) */
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 20px;
    background: #16233d;
    border: 2px solid #DEC463;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}
.vfCookieBanner[hidden],
.vfCookieModal[hidden]{
    display: none;
}
.vfCookieBannerText{
    flex: 1;
    margin: 0;
}
.vfCookieBanner a{
    color: #DEC463;
    font-weight: 700;
    text-decoration: underline;
}
.vfCookieButtons{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Все кнопки одинаково заметные: «Отклонить» не прячем (ТЗ §5) */
.vfCookieButton{
    padding: 9px 16px;
    border: 2px solid #DEC463;
    border-radius: 8px;
    background: #DEC463;
    color: #1e1f29;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.vfCookieButton:hover{
    background: #f0d773;
    border-color: #f0d773;
}
.vfCookieButton:focus-visible,
.vfCookieModalClose:focus-visible{
    outline: 3px solid #fff;
    outline-offset: 2px;
}

html.vfCookieModalOpen{
    overflow: hidden;
}
.vfCookieModal{
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(11, 15, 24, .75);
}
.vfCookieModalBox{
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 28px 24px;
    background: #fff;
    border-top: 6px solid #DEC463;
    border-radius: 14px;
    color: #1e1f29;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.vfCookieModalBox p{
    margin: 0 0 12px;
}
.vfCookieModalBox a{
    color: #16233d;
    font-weight: 700;
    text-decoration: underline;
}
.vfCookieModalClose{
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #16233d;
    color: #DEC463;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}
.vfCookieModalTitle{
    margin: 0 40px 12px 0;
    color: #1e1f29;
    font-size: 22px;
    font-weight: 700;
    outline: none;
}
.vfCookieCategory{
    margin: 0 0 12px;
    padding: 14px 16px;
    background: #faf4dc;
    border-radius: 10px;
}
.vfCookieCategoryHead{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 15px;
}
.vfCookieAlwaysOn{
    padding: 2px 10px;
    border-radius: 12px;
    background: #16233d;
    color: #DEC463;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.vfCookieTable{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.vfCookieTable th,
.vfCookieTable td{
    padding: 7px 8px;
    border-bottom: 1px solid #e7dcb0;
    text-align: left;
    vertical-align: top;
}
.vfCookieTable th{
    font-weight: 700;
}
.vfCookieTable code{
    padding: 0;
    background: none;
    color: #16233d;
    font-size: 12px;
    word-break: break-word;
}
.vfCookieNote{
    color: #555;
    font-size: 13px;
}
.vfCookieModalBox .vfCookieButtons{
    justify-content: flex-end;
}

@media (max-width: 760px){
    .vfCookieBanner{
        flex-direction: column;
        align-items: stretch;
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 14px;
        font-size: 13px;
    }
    .vfCookieButtons{
        flex-direction: column;
    }
    .vfCookieButton{
        width: 100%;
    }
    .vfCookieModalBox{
        padding: 22px 16px 16px;
    }
    /* Таблица на телефоне - карточками */
    .vfCookieTable thead{
        display: none;
    }
    .vfCookieTable tr{
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #e7dcb0;
    }
    .vfCookieTable td{
        display: block;
        padding: 2px 0;
        border: none;
    }
    .vfCookieTable td::before{
        content: attr(data-label) ': ';
        font-weight: 700;
    }
}
