:root {
    --consent-bg: #ffffff;
    --consent-text: var(--text-primary, #1f2937);
    --consent-muted: var(--text-muted, #667085);
    --consent-border: #e5e7eb;
    --consent-accent: var(--enob-yellow, #f6c600);
    --consent-accent-hover: #dfb400;
    --consent-shadow: 0 18px 55px rgba(15, 23, 42, 0.16);
}

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

.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 24px;
    background: var(--consent-bg);
    color: var(--consent-text);
    border: 1px solid var(--consent-border);
    border-radius: 16px;
    box-shadow: var(--consent-shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent__content { display: grid; gap: 16px; }

.cookie-consent__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
}

.cookie-consent__text {
    margin: 0;
    color: var(--consent-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.cookie-consent__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.cookie-consent__button {
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

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

.cookie-consent__button:focus-visible,
.cookie-settings:focus-visible {
    outline: 3px solid rgba(246, 198, 0, 0.34);
    outline-offset: 3px;
}

.cookie-consent__button--primary {
    background: var(--consent-accent);
    color: #111827;
}

.cookie-consent__button--primary:hover { background: var(--consent-accent-hover); }

.cookie-consent__button--secondary {
    background: #ffffff;
    color: var(--consent-text);
    border-color: var(--consent-border);
}

.cookie-consent__button--secondary:hover { background: #f8fafc; }

.cookie-settings {
    appearance: none;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
        border-radius: 14px;
    }

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

    .cookie-consent__button { width: 100%; }
}

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