:root {
    --crc-ink:      var(--ink, #111111);
    --crc-ink-soft: var(--ink-soft, #333333);
    --crc-line:     var(--line, rgba(17, 17, 17, .12));
    --crc-pink:     var(--pink, #ff3b82);
    --crc-pink-ink: var(--white, #ffffff);

    --crc-bg:       #faf6ef;
    --crc-bg-alt:   #f3ede2;
    --crc-shadow:   0 -6px 24px rgba(0, 0, 0, .12);
    --crc-radius:   16px;
    --crc-radius-s: 10px;
    --crc-z:        2147483600;
}

.cr-cookies[hidden] { display: none !important; }

.cr-cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--crc-z);
    padding: 16px;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--crc-ink);
    animation: crcSlideUp .35s ease-out both;
}

@keyframes crcSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cr-cookies__inner {
    max-width: 1160px;
    margin: 0 auto;
    background: var(--crc-bg);
    border: 1px solid var(--crc-line);
    border-radius: var(--crc-radius);
    box-shadow: var(--crc-shadow);
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.cr-cookies__copy { min-width: 0; }

.cr-cookies__eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--crc-ink);
    background: var(--crc-bg-alt);
    border: 1px solid var(--crc-line);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.cr-cookies__title {
    font-family: 'Boldonse', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.cr-cookies__pink { color: var(--crc-pink); }

.cr-cookies__text {
    font-size: .95rem;
    line-height: 1.55;
    color: var(--crc-ink-soft);
    margin: 0;
    max-width: 70ch;
}

.cr-cookies__text a {
    color: var(--crc-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.cr-cookies__text a:hover { color: var(--crc-pink); }

.cr-cookies__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cr-cookies__btn {
    font-family: inherit;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid var(--crc-ink);
    background: transparent;
    color: var(--crc-ink);
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
    line-height: 1;
    white-space: nowrap;
}
.cr-cookies__btn:hover {
    transform: translateY(-1px);
    background: var(--crc-ink);
    color: #fff;
}
.cr-cookies__btn:focus-visible {
    outline: 3px solid var(--crc-pink);
    outline-offset: 2px;
}

.cr-cookies__btn--pink {
    background: var(--crc-pink);
    border-color: var(--crc-pink);
    color: var(--crc-pink-ink);
}
.cr-cookies__btn--pink:hover {
    background: #e7316f;
    border-color: #e7316f;
    color: #fff;
}

.cr-cookies__btn--ghost {
    background: transparent;
}

.cr-cookies-modal[hidden] { display: none !important; }

.cr-cookies-modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--crc-z) + 10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--crc-ink);
}

.cr-cookies-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .55);
    backdrop-filter: blur(3px);
    animation: crcFade .25s ease-out both;
}

@keyframes crcFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cr-cookies-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--crc-bg);
    border: 1px solid var(--crc-line);
    border-radius: var(--crc-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 32px;
    animation: crcPop .3s cubic-bezier(.2, .9, .3, 1.2) both;
}

@keyframes crcPop {
    from { transform: translateY(12px) scale(.98); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.cr-cookies-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--crc-line);
    background: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--crc-ink);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cr-cookies-modal__close:hover {
    background: var(--crc-ink);
    color: #fff;
    transform: rotate(90deg);
}
.cr-cookies-modal__close:focus-visible {
    outline: 3px solid var(--crc-pink);
    outline-offset: 2px;
}

.cr-cookies-modal__head { margin-bottom: 18px; }

.cr-cookies-modal__title {
    font-family: 'Boldonse', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.25;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 10px 0 10px;
}

.cr-cookies-modal__intro {
    font-size: .95rem;
    line-height: 1.55;
    color: var(--crc-ink-soft);
    margin: 0;
}

.cr-cookies-modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 24px;
}

.cr-cookies-cat {
    border: 1px solid var(--crc-line);
    border-radius: var(--crc-radius-s);
    padding: 16px 18px;
    background: #fff;
    transition: border-color .2s ease;
}
.cr-cookies-cat:hover { border-color: rgba(17, 17, 17, .25); }

.cr-cookies-cat--locked { background: var(--crc-bg-alt); }

.cr-cookies-cat__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.cr-cookies-cat h3 {
    font-family: 'Boldonse', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0;
}

.cr-cookies-cat p {
    font-size: .88rem;
    line-height: 1.5;
    color: var(--crc-ink-soft);
    margin: 0;
}

.cr-cookies-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.cr-cookies-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cr-cookies-switch__slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 999px;
    transition: background .25s ease;
    flex-shrink: 0;
}
.cr-cookies-switch__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 999px;
    transition: transform .25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.cr-cookies-switch input:checked + .cr-cookies-switch__slider {
    background: var(--crc-pink);
}
.cr-cookies-switch input:checked + .cr-cookies-switch__slider::before {
    transform: translateX(20px);
}
.cr-cookies-switch input:focus-visible + .cr-cookies-switch__slider {
    outline: 3px solid var(--crc-pink);
    outline-offset: 2px;
}

.cr-cookies-switch__txt {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--crc-ink-soft);
}

.cr-cookies-switch--locked { cursor: not-allowed; }
.cr-cookies-switch--locked .cr-cookies-switch__slider {
    background: var(--crc-ink);
    opacity: .85;
}

.cr-cookies-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.cr-cookies-modal__foot {
    font-size: .82rem;
    color: var(--crc-ink-soft);
    margin: 0;
    text-align: center;
}
.cr-cookies-modal__foot a {
    color: var(--crc-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.cr-cookies-modal__foot a:hover { color: var(--crc-pink); }

.cr-cookies-link {
    cursor: pointer;
}

@media (max-width: 880px) {
    .cr-cookies__inner {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    .cr-cookies__actions {
        justify-content: stretch;
    }
    .cr-cookies__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .cr-cookies { padding: 10px; }
    .cr-cookies__inner {
        padding: 18px;
        border-radius: 14px;
    }
    .cr-cookies__btn {
        font-size: .82rem;
        padding: 11px 14px;
    }
    .cr-cookies-modal { padding: 12px; }
    .cr-cookies-modal__dialog {
        padding: 24px 20px;
        max-height: calc(100vh - 24px);
    }
    .cr-cookies-modal__actions {
        flex-direction: column-reverse;
    }
    .cr-cookies-modal__actions .cr-cookies__btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cr-cookies,
    .cr-cookies-modal__backdrop,
    .cr-cookies-modal__dialog {
        animation: none !important;
    }
    .cr-cookies-modal__close:hover { transform: none; }
}
