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

.cookie-consent {
    position: fixed;
    z-index: 10000;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 24px;
    color: #1d2737;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(14, 73, 140, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(17, 40, 73, 0.22);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__eyebrow {
    margin: 0 0 4px;
    color: #0b70e0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cookie-consent h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.25;
}

.cookie-consent p:last-child {
    max-width: 760px;
    margin: 0;
    color: #5a6473;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-consent p:last-child a {
    color: #0b70e0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.cookie-consent__button,
.cookie-manage-link {
    font: inherit;
    cursor: pointer;
}

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-size: 12px;
}

.footer-policy-links a,
.footer-policy-links .cookie-manage-link {
    color: inherit;
    font-size: inherit;
    line-height: 1.5;
}

.footer-policy-links a:hover,
.footer-policy-links .cookie-manage-link:hover {
    color: #0b70e0;
}

.form-privacy-note a {
    color: #0b70e0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__button {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #0b70e0;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.cookie-consent__button:focus-visible,
.cookie-manage-link:focus-visible {
    outline: 3px solid rgba(11, 112, 224, 0.35);
    outline-offset: 3px;
}

.cookie-consent__button--primary {
    color: #fff;
    background: #0b70e0;
    box-shadow: 0 8px 20px rgba(11, 112, 224, 0.24);
}

.cookie-consent__button--secondary {
    color: #0b70e0;
    background: #fff;
}

.cookie-manage-link {
    padding: 2px 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
        border-radius: 18px;
    }

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

    .cookie-consent__button {
        width: 100%;
    }

    .footer-policy-links {
        width: 100%;
        justify-content: flex-start;
    }
}

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