.cookie-modal {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #fff;
    box-shadow: 0 4px 24px rgba(16, 24, 40, .14);
    border-radius: 12px 12px 0 0;
    font-size: 14px;
    padding: 16px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    gap: 16px;
}

.cookie-modal__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cookie-modal .text {
    flex: 1;
    padding-right: 40px;
}

.cookie-modal .text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.cookie-modal .btn-close {
    --ico-size: 12px;
    background-color: transparent;
    border: 1px solid #6f6f6f;
    border-radius: 50%;
    width: var(--btn-size, 30px);
    height: var(--btn-size, 30px);
    flex-shrink: 0;
    user-select: none;
    z-index: 1;
    position: absolute;
    top: 16px;
    right: 16px;
}

.cookie-modal .btn-close::before,
.cookie-modal .btn-close::after {
    content: "";
    position: absolute;
    background-color: var(--ico-color, #000);
    height: var(--ico-size, 16px);
    width: var(--ico-stroke-width, 1px);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.cookie-modal .btn-close::before {
    transform: rotate(45deg);
}

.cookie-modal .btn-close::after {
    transform: rotate(-45deg);
}

.seoc_agreement__cookie-accept {
    color: #fff;
    background-color: #888888;
    box-shadow: 0 2px 3px rgba(34, 34, 34, 0.5);
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    width: 100%;
}

a.seoc_agreement__cookie-accept:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .cookie-modal {
        flex-direction: row; /* Горизонтальное расположение на планшетах и десктопах */
        align-items: center;
        padding: 16px 24px;
    }

    .cookie-modal__buttons {
        flex-direction: row; /* Кнопки в строку */
        width: auto;
        gap: 12px;
    }


    .cookie-modal .text {
        padding-right: 0;
    }

    .seoc_agreement__cookie-accept {
        width: auto;
        flex: 0 0 auto;
    }

    .cookie-modal .btn-close {
        position: relative;
        top: auto;
        right: auto;
        margin-left: 12px;
    }
}


.d-none {
    display: none;
}


/*
@media (max-width: 767px) {
    .cookie-modal {
        display: block;
        padding: 16px 40px 16px 16px;
    }

    .seoc_agreement__cookie-accept {
        margin-top: 20px;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    .cookie-modal .btn-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}*/