.r4t-cookie[hidden],
.r4t-cookie [hidden] {
    display: none !important;
}

.r4t-cookie {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.r4t-cookie__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(4px);
}

.r4t-cookie__panel {
    position: relative;
    width: 100%;
    max-width: 760px;
    overflow: hidden;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    color: #fff;
}

.r4t-cookie__main {
    padding: 26px;
}

.r4t-cookie__eyebrow {
    margin-bottom: 16px;
    font-family: "Archivo", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.r4t-cookie__eyebrow span {
    color: var(--red);
}

.r4t-cookie h2 {
    margin: 0;
    font-family: "Archivo", sans-serif;
    font-size: clamp(25px, 5vw, 34px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.r4t-cookie__main > p {
    max-width: 650px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    line-height: 1.7;
}

.r4t-cookie__settings {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.r4t-cookie__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.r4t-cookie__option strong {
    display: block;
    font-size: 14px;
}

.r4t-cookie__option label > span,
.r4t-cookie__option div > span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
    line-height: 1.5;
}

.r4t-cookie__required {
    flex: 0 0 auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px !important;
    color: #22c55e !important;
}

.r4t-cookie__switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.r4t-cookie__switch input {
    position: absolute;
    opacity: 0;
}

.r4t-cookie__switch > span {
    position: absolute;
    inset: 0;
    margin: 0 !important;
    border-radius: 999px;
    background: #3f3f46;
    transition: background .2s ease;
}

.r4t-cookie__switch > span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.r4t-cookie__switch input:checked + span {
    background: var(--red);
}

.r4t-cookie__switch input:checked + span::after {
    transform: translateX(20px);
}

.r4t-cookie__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
}

.r4t-cookie__button {
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 9px;
    border: 0;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.r4t-cookie__button--primary {
    background: var(--red);
    color: #fff;
}

.r4t-cookie__button--secondary {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
}

.r4t-cookie__button:hover {
    filter: brightness(1.08);
}

@media (min-width: 700px) {
    .r4t-cookie {
        padding: 28px;
    }

    .r4t-cookie__main {
        padding: 32px;
    }

    .r4t-cookie__actions {
        display: flex;
        justify-content: flex-end;
    }
}
