.cookie-consent {
    position: fixed;
    right: 10px;
    bottom: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 4;
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 20px 0;
    width: 704px;
    max-width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 20px 20px 20px 0;
    border-radius: 30px;
    background: #f6f6f6;
    color: #000;
    font-family: var(--main-font, 'TT Norms', sans-serif);
    font-size: 17px;
    line-height: 20px;
    font-feature-settings: 'liga' 0;
    box-sizing: border-box;
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 165px;
    height: 165px;
    margin: -20px 0;
}

.cookie-consent__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cookie-consent .cookie-consent__text {
    grid-column: 2;
    margin: 0;
    padding: 0 0 0 20px;
    font: inherit;
}

.cookie-consent__text strong { font-weight: 500; }

.cookie-consent__actions {
    grid-column: 2;
    display: flex;
    gap: 5px;
    padding-left: 20px;
}

.cookie-consent .cookie-consent__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 132px;
    min-width: 0;
    margin: 0;
    padding: 12px 20px 13px;
    border: 0;
    border-radius: 100px;
    background: var(--button-bg-1, rgba(0, 0, 0, .05));
    color: #000;
    font: inherit;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease;
    box-sizing: border-box;
}

.cookie-consent .cookie-consent__button--accept {
    margin-right: auto;
    background: #000;
    color: #fff;
}

.cookie-consent__button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

@media (hover: hover) {
    .cookie-consent .cookie-consent__button:hover { background: var(--button-bg-1_hover, rgba(0, 0, 0, .1)); }
    .cookie-consent .cookie-consent__button--accept:hover { background: #333; }
}

@media (max-width: 767px) {
    .cookie-consent {
        grid-template-columns: minmax(0, 1fr) 100px;
        width: calc(100% - 20px);
        padding: 20px;
        border-radius: 20px;
        font-size: 15px;
    }

    .cookie-consent__image {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        width: 100px;
        height: 100px;
        margin: 0;
    }

    .cookie-consent .cookie-consent__text {
        grid-column: 1;
        grid-row: 1;
        padding: 0;
    }

    .cookie-consent__actions {
        grid-column: 1 / 3;
        padding: 0;
    }

    .cookie-consent .cookie-consent__button {
        flex: 1 1 0;
        padding: 9px 0 11px;
    }

    .cookie-consent__button--details { order: 0; }
    .cookie-consent__button--reject { order: 1; }
    .cookie-consent .cookie-consent__button--accept { order: 2; margin: 0; }
}
