.site-consent {
    bottom: 0;
    color: #f3f4f4;
    font-family: Onest, sans-serif;
    left: 0;
    padding: 0 16px max(10px, env(safe-area-inset-bottom));
    pointer-events: none;
    position: fixed;
    right: 0;
    width: 100%;
    z-index: 30;
}

.site-consent[hidden] {
    display: none !important;
}

.site-consent,
.site-consent * {
    box-sizing: border-box;
}

.site-consent__panel {
    background: rgba(17, 21, 29, .96);
    border: 1px solid rgba(199, 211, 224, .14);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -10px 34px rgba(0, 0, 0, .22);
    margin: 0 auto;
    max-width: 1240px;
    overflow: visible;
    padding: 12px 14px;
    pointer-events: auto;
}

.site-consent__form {
    align-items: center;
    display: grid;
    gap: 8px 18px;
    grid-template-areas:
        "title checks actions"
        "text checks actions";
    grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.55fr) max-content;
}

.site-consent__title {
    color: #fff;
    font-family: Onest, sans-serif;
    font-size: 13px;
    font-weight: 700;
    grid-area: title;
    line-height: 1.35;
    margin: 0;
}

.site-consent__text {
    color: #c5c7de;
    font-size: 11px;
    font-weight: 400;
    grid-area: text;
    line-height: 1.45;
    margin: 0;
}

.site-consent__link {
    color: #a8ff64;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.site-consent__link:hover,
.site-consent__link:active {
    color: #c1ff90;
}

.site-consent__checks {
    display: grid;
    gap: 7px;
    grid-area: checks;
    margin-top: 0;
    max-height: 98px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.site-consent__check {
    align-items: flex-start;
    color: #d8dbe7;
    cursor: pointer;
    display: grid;
    font-size: 10.5px;
    font-weight: 400;
    gap: 8px;
    grid-template-columns: 16px 1fr;
    line-height: 1.32;
}

.site-consent__checkbox {
    accent-color: #6def40;
    cursor: pointer;
    height: 16px;
    margin: 1px 0 0;
    width: 16px;
}

.site-consent__checkbox:focus-visible,
.site-consent__button:focus-visible,
.site-consent__link:focus-visible {
    outline: 2px solid #a8ff64;
    outline-offset: 3px;
}

.site-consent__actions {
    align-items: center;
    display: flex;
    grid-area: actions;
    height: 100%;
    justify-content: flex-end;
    margin-top: 0;
}

.site-consent__button {
    background: #6def40;
    border: 0;
    border-radius: 8px;
    color: #202c2a;
    cursor: pointer;
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    min-width: 104px;
    padding: 9px 16px;
    text-align: center;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
    white-space: nowrap;
}

.site-consent__button:hover {
    background: #b6ff7c;
}

.site-consent__button:active {
    background: #c1ff90;
}

.site-consent__button:disabled {
    background: #415b56;
    color: #c5c7de;
    cursor: not-allowed;
    opacity: .72;
}

@media (max-width: 1159.98px) {
    .site-consent__form {
        grid-template-areas:
            "title actions"
            "text actions"
            "checks checks";
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    .site-consent__actions {
        align-self: center;
    }

    .site-consent__checks {
        max-height: 90px;
    }
}

@media (max-width: 735.98px) {
    .site-consent {
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        padding: 0;
        right: 12px;
        width: auto;
    }

    .site-consent__panel {
        border-radius: 8px;
        max-height: min(72vh, 560px);
        overflow: hidden;
        padding: 14px;
    }

    .site-consent__form {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 100%;
    }

    .site-consent__title {
        font-size: 15px;
    }

    .site-consent__text {
        font-size: 12px;
    }

    .site-consent__check {
        font-size: 11px;
    }

    .site-consent__checks {
        max-height: min(30vh, 180px);
        overflow-y: auto;
    }

    .site-consent__actions {
        align-self: stretch;
        height: auto;
        justify-content: stretch;
        width: 100%;
    }

    .site-consent__button {
        width: 100%;
    }
}
