.ch-cookie-consent {
    --ch-cookie-bg: #0f1528;
    --ch-cookie-edge: #1e2a45;
    --ch-cookie-text: #eef2ff;
    --ch-cookie-muted: #8b9dc3;
    --ch-cookie-accent: #ffc400;

    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    padding: 14px var(--ch-layout-gutter, 20px) calc(14px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ch-cookie-consent--visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.ch-cookie-consent__inner {
    width: min(1120px, 100%);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 18px;
    border: 1px solid var(--ch-cookie-edge);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ch-cookie-bg) 92%, #000);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.ch-cookie-consent__text {
    margin: 0;
    flex: 1 1 240px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ch-cookie-muted);
}

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

.ch-cookie-consent__text a:hover {
    color: var(--ch-cookie-text);
}

.ch-cookie-consent__accept {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0a0f1a;
    background: linear-gradient(135deg, var(--ch-cookie-accent) 0%, #ff9f1a 100%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ch-cookie-consent__accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 196, 0, 0.28);
}

@media (max-width: 520px) {
    .ch-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ch-cookie-consent__accept {
        width: 100%;
    }
}
