/* ---------------------------------------------------------------
   cookie.css - полоса согласия на cookie

   Разметка: cookie-consent.tpl.html, логика: js/cookie.js.
   Свои классы с префиксом cc-, ни от чего в проекте не зависит.
   --------------------------------------------------------------- */

.cc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #cfe6f3;
    box-shadow: 0 -8px 26px rgba(18, 63, 99, .14);
    transform: translateY(110%);
    transition: transform .25s ease;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.cc * {
    box-sizing: border-box;
}

.cc--on {
    transform: translateY(0);
}

.cc__in {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.cc__ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f2f9fc;
    color: #1b6f9c;
}

.cc__text {
    flex: 1 1 auto;
    min-width: 0;
}

.cc__title {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #123f63;
}

.cc__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #4a7d9c;
}

.cc__desc a {
    color: #1b6f9c;
    text-decoration: underline;
}

.cc__btns {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.cc__btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}

.cc__btn--main {
    border: 1px solid #1b6f9c;
    background: #1b6f9c;
    color: #fff;
    font-weight: bold;
}

.cc__btn--main:hover {
    background: #12507d;
    border-color: #12507d;
}

.cc__btn--ghost {
    border: 1px solid #a0d3eb;
    background: #fff;
    color: #1b6f9c;
}

.cc__btn--ghost:hover {
    background: #f2f9fc;
    border-color: #1b6f9c;
}

@media only screen and (max-width: 985px) {

    .cc__in {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cc__btns {
        width: 100%;
    }

    .cc__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media only screen and (max-width: 640px) {

    .cc {
        padding: 12px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .cc__ico {
        display: none;
    }

    .cc__desc {
        font-size: 12.5px;
    }

    .cc__btn {
        flex: 1 1 100%;
        padding: 13px 16px;
    }
}
