.cookie-consent {
    position: fixed;
    right: max(18px, calc((100vw - 1180px) / 2));
    bottom: 18px;
    z-index: 26000;
    display: none;
    width: min(520px, calc(100vw - 28px));
    padding: 18px;
    border: 1px solid rgba(24, 33, 31, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #18211f;
    box-shadow: 0 24px 80px rgba(12, 18, 16, 0.18);
    backdrop-filter: blur(16px);
}

.cookie-consent.is-visible {
    display: block;
    animation: cookieIn 0.24s ease both;
}

.cookie-consent h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
}

.cookie-consent p {
    margin: 0;
    color: #52625d;
    font-size: 14px;
    line-height: 1.55;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cookie-consent button,
.cookie-consent a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.cookie-consent button {
    border: 0;
    background: #008577;
    color: #fff;
    cursor: pointer;
}

.cookie-consent button[data-cookie-action="necessary"] {
    border: 1px solid rgba(24, 33, 31, 0.14);
    background: #fff;
    color: #18211f;
}

.cookie-consent a {
    color: #007c72;
}

@keyframes cookieIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

html.a11y-on .cookie-consent,
html.a11y-on .cookie-consent * {
    background-color: var(--a11y-bg) !important;
    color: var(--a11y-text) !important;
    border-color: var(--a11y-border) !important;
}

html.a11y-on .cookie-consent a,
html.a11y-on .cookie-consent button {
    color: var(--a11y-link) !important;
}

@media (max-width: 760px) {
    .cookie-consent {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 16px;
    }

    .cookie-consent__actions {
        display: grid;
    }
}
