/* Фиксация снизу экрана — задаём здесь, чтобы не зависеть от утилит Bootstrap в purged CSS */
.cookie-agreement {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    z-index: 1040;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
    padding: .5rem 0;
    font-size: .8125rem;
    line-height: 1.4;
    color: #6c757d;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear 0s;
}

.cookie-agreement[hidden] {
    display: block !important;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
}

.cookie-agreement__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "icon text    button"
        "icon links   button";
    column-gap: .75rem;
    row-gap: .25rem;
    align-items: center;
}

.cookie-agreement__icon {
    grid-area: icon;
    align-self: center;
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-agreement__text {
    grid-area: text;
    margin: 0;
    min-width: 0;
}

.cookie-agreement__links {
    grid-area: links;
    min-width: 0;
    line-height: 1.2;
}

.cookie-agreement__links a {
    padding: .125rem 0;
}

.cookie-agreement__sep {
    margin: 0 .25rem;
    color: #adb5bd;
}

.cookie-agreement__button {
    grid-area: button;
    align-self: center;
    flex: 0 0 auto;
    padding: .5rem .875rem;
    font-size: .8125rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .cookie-agreement {
        padding: .5rem .75rem;
    }
    .cookie-agreement__inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon    text"
            "icon    links"
            "button  button";
        row-gap: .375rem;
    }
    .cookie-agreement__button {
        width: 100%;
        margin-top: .25rem;
        padding: .5rem .75rem;
    }
}