/*---------------------------
** Cookie consent
---------------------------*/

.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 10000000000;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    color: #f8fafc;
    background-color: #060a12;
    background-image:
        radial-gradient(820px 340px at 84% -30%, rgba(34, 62, 108, 0.55), transparent 70%),
        linear-gradient(180deg, #0a1220 0%, #060a12 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -20px 50px rgba(3, 6, 12, 0.4);
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    animation: cookie-consent-rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cookie-consent .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.cookie-consent .cookie-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.cookie-consent .cookie-consent__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(248, 250, 252, 0.75);
}

.cookie-consent .cookie-consent__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cookie-consent .cookie-consent__message {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    background: transparent !important;
    color: rgba(248, 250, 252, 0.74);
    font-size: 13.5px;
    line-height: 1.6;
}

.cookie-consent .cookie-consent__message a {
    color: #f8fafc;
    text-decoration: underline;
    text-decoration-color: rgba(248, 250, 252, 0.4);
    text-underline-offset: 3px;
}

.cookie-consent .cookie-consent__message a:hover,
.cookie-consent .cookie-consent__message a:focus-visible {
    text-decoration-color: #f8fafc;
}

.cookie-consent .cookie-consent__agree {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #f8fafc;
    border-radius: 6px;
    background-color: #f8fafc;
    box-shadow: none;
    color: #0a1220;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.cookie-consent .cookie-consent__agree:hover {
    border-color: #fff;
    background-color: #fff;
    color: #0a1220;
}

.cookie-consent .cookie-consent__agree:active {
    background-color: #e8edf5;
    border-color: #e8edf5;
}

.cookie-consent .cookie-consent__agree:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@keyframes cookie-consent-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .cookie-consent .container {
        padding-inline: 16px;
    }

    .cookie-consent .cookie-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0 16px;
    }

    .cookie-consent .cookie-consent__icon {
        display: none;
    }

    .cookie-consent .cookie-consent__message {
        flex-basis: 100%;
        font-size: 13px;
        line-height: 1.55;
    }

    .cookie-consent .cookie-consent__agree {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }

    .cookie-consent .cookie-consent__agree {
        transition: none;
    }
}
