body .magic-cookie {
    display: block;
    width: 560px;
    max-width: calc(100vw - 40px);
    padding: 18px 22px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 200;
    color: #635f59;
    font-size: 13px;
    line-height: 1.34;
    box-sizing: border-box;
}

body .magic-cookie_left,
body .magic-cookie_right,
body .magic-cookie.magic-cookie_left,
body .magic-cookie.magic-cookie_right {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

body .magic-cookie__close {
    position: absolute;
    display: block;
    right: 10px;
    top: 10px;
    width: 12px;
    height: 10px;
    border-radius: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #017ABB;
}

body .magic-cookie__close:before, body .magic-cookie__close:after {
    content: '';
    display: block;
    width: 10px;
    height: 1px;
    background-color:  var(--magic-cookie-color);
    position: absolute;
    top: 50%;
    left: 50%;
}

body .magic-cookie__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

body .magic-cookie__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body .magic-cookie .magic-cookie__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-right: 16px;
}

body .magic-cookie .magic-cookie__content > div {
    flex: 1 1 auto;
}

body .magic-cookie .magic-cookie__content a {
    color: var(--magic-cookie-color);
}

body .magic-cookie button {
    border: 1px solid var(--magic-cookie-color);
    outline: none;
    display: block;
    background-color: var(--magic-cookie-color);
    color: #ffffff;
    height: 38px;
    min-width: 116px;
    padding: 0 18px;
    font-size: 13px;
    line-height: 36px;
    border-radius: 0;
    font-weight: bold;
    transition: all ease 0.3s;
    cursor: pointer;
    text-transform: none;
    margin: 0;
}

body .magic-cookie button:hover {
    color: var(--magic-cookie-color);
    background-color: #ffffff;
}

@media screen and (max-width: 640px) {
    body .magic-cookie,
    body .magic-cookie_left,
    body .magic-cookie_right,
    body .magic-cookie.magic-cookie_left,
    body .magic-cookie.magic-cookie_right {
        width: auto;
        max-width: none;
        left: 15px;
        right: 15px;
        bottom: 15px;
        transform: none;
        padding: 16px 18px;
    }

    body .magic-cookie .magic-cookie__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-right: 12px;
    }

    body .magic-cookie button {
        width: auto;
        min-width: 116px;
    }
}
