@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

.cookie-consent {
    --cc-ink: #071f48;
    --cc-muted: #4a6280;
    --cc-surface: #ffffff;
    --cc-accent: #1a73ff;
    --cc-accent-hover: #0f63e8;
    --cc-accent-soft: #4d94ff;
    --cc-ghost: #eef3f8;
    --cc-ghost-ink: #0b2a4a;
    --cc-shadow: 0 -10px 36px rgba(5, 22, 45, 0.12);

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12000;
    padding: 0;
    margin: 0;
    width: 100%;
    pointer-events: none;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

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

.cookie-consent.is-visible {
    animation: cookie-consent-in 0.38s ease both;
}

.cookie-consent__inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: var(--cc-surface);
    border: 0;
    border-radius: 0;
    box-shadow: var(--cc-shadow);
    color: var(--cc-ink);
    position: relative;
}

.cookie-consent__inner::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a4db8 0%, #1a73ff 45%, #4d94ff 100%);
    pointer-events: none;
}

.cookie-consent__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.cookie-consent__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cookie-consent__text {
    margin: 0;
    max-width: 720px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--cc-muted);
}

.cookie-consent__text a {
    color: var(--cc-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
    color: var(--cc-accent-hover);
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-consent__btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
}

.cookie-consent__btn--ghost {
    background: var(--cc-ghost);
    color: var(--cc-ghost-ink);
}

.cookie-consent__btn--ghost:hover {
    background: #e2eaf3;
}

.cookie-consent__btn--primary {
    background: var(--cc-accent);
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: var(--cc-accent-hover);
}

.cookie-consent.is-hiding {
    animation: cookie-consent-out 0.28s ease both;
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cookie-consent-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

@media (max-width: 720px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

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

    .cookie-consent__text {
        font-size: 13px;
        max-width: none;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cookie-consent__btn {
        width: 100%;
        padding: 12px 10px;
        text-align: center;
    }
}

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