:root {
    --z-cookie-consent: 100000;
}

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: var(--z-cookie-consent);
    width: min(960px, calc(100% - 24px));
    transform: translateX(-50%);
}

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

.cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: #14181f;
    color: #f4f6f9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-consent__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent__link {
    color: #9bc0ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-consent__link:hover {
    color: #c4d9ff;
}

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

.cookie-consent__button {
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.cookie-consent__button--primary {
    background: #ffffff;
    color: #14181f;
}

.cookie-consent__button--primary:hover {
    opacity: 0.9;
}

.cookie-consent__button--secondary {
    border-color: rgba(255, 255, 255, 0.32);
    background: transparent;
    color: #f4f6f9;
}

.cookie-consent__button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-consent__button:focus-visible,
.cookie-consent__link:focus-visible {
    outline: 3px solid #8fb7ff;
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .cookie-consent {
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__button {
        flex: 1;
    }
}

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