/* =========================================================
   RILITY COOKIE CONSENT
   ========================================================= */

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);

    width: min(760px, calc(100vw - 32px));
    box-sizing: border-box;

    padding: 18px 20px;

    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.16),
        0 3px 12px rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 30000;

    font-family: "Inter", sans-serif;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(14px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.cookie-consent.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}

.cookie-consent-text {
    color: #333;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.cookie-consent-text a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent button {
    border: none;
    border-radius: 999px;
    padding: 10px 15px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}

.cookie-consent button:hover {
    transform: translateY(-1px);
}

.cookie-necessary {
    background: #f3f3f3;
    color: #222;
}

.cookie-settings {
    background: transparent;
    color: #222;
    border: 1px solid rgba(0,0,0,.12) !important;
}

.cookie-accept {
    background: #111;
    color: white;
}

.cookie-necessary:hover,
.cookie-settings:hover {
    background: #e9e9e9;
}

.cookie-accept:hover {
    background: #292929;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .cookie-consent {
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 16px;
        border-radius: 16px;
    }

    .cookie-consent-text {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .cookie-consent button {
        width: 100%;
        padding: 10px 12px;
    }
}
