:root {
    --cookie-periwinkle: #8f96ff;
    --cookie-periwinkle-dark: #5159c9;
    --cookie-ink: #1f2937;
    --cookie-muted: #64748b;
    --cookie-border: rgba(143, 150, 255, 0.18);
    --cookie-surface: #ffffff;
    --cookie-soft: #f4f5ff;
}
.cookie-consent,
.cookie-panel {
    font-family: inherit;
}
.cookie-consent[hidden],
.cookie-panel[hidden] { display: none !important; }
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    justify-content: center;
    padding: 0 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .24s ease, transform .24s ease;
}
.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cookie-consent__card {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--cookie-border);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}
.cookie-consent__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--cookie-soft);
    color: var(--cookie-periwinkle);
    font-size: 1.65rem;
    border: 1px solid var(--cookie-border);
}
.cookie-consent__eyebrow {
    margin: 0 0 4px;
    color: var(--cookie-periwinkle-dark);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.cookie-consent h2,
.cookie-panel h2 {
    margin: 0 0 6px;
    color: var(--cookie-ink);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.25;
}
.cookie-consent p,
.cookie-panel p {
    margin: 0;
    color: var(--cookie-muted);
    line-height: 1.65;
    font-size: .95rem;
}
.cookie-consent__actions,
.cookie-panel__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.cookie-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--primary {
    color: #fff;
    background: var(--cookie-periwinkle);
    box-shadow: 0 12px 28px rgba(143, 150, 255, .24);
}
.cookie-btn--primary:hover { background: var(--cookie-periwinkle-dark); }
.cookie-btn--light {
    color: var(--cookie-periwinkle-dark);
    background: var(--cookie-soft);
    border: 1px solid var(--cookie-border);
}
.cookie-btn--ghost {
    color: var(--cookie-ink);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
}
.cookie-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.cookie-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.cookie-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(4px);
}
.cookie-panel__dialog {
    position: absolute;
    right: 24px;
    top: 50%;
    width: min(520px, calc(100% - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translateY(-48%) scale(.98);
    background: #fff;
    border-radius: 28px;
    border: 1px solid var(--cookie-border);
    box-shadow: 0 34px 100px rgba(15, 23, 42, .26);
    padding: 28px;
    transition: transform .22s ease;
}
.cookie-panel.is-visible .cookie-panel__dialog { transform: translateY(-50%) scale(1); }
.cookie-panel__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 50%;
    background: #fff;
    color: var(--cookie-ink);
    font-size: 1.35rem;
    cursor: pointer;
}
.cookie-panel__intro { margin-bottom: 18px !important; }
.cookie-option {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 18px;
    background: #fff;
}
.cookie-option strong {
    display: block;
    color: var(--cookie-ink);
    margin-bottom: 4px;
    font-size: 1rem;
}
.cookie-option p { font-size: .9rem; }
.cookie-option.is-required { background: var(--cookie-soft); border-color: var(--cookie-border); }
.cookie-option__required {
    color: var(--cookie-periwinkle-dark);
    font-weight: 800;
    font-size: .85rem;
    white-space: nowrap;
}
.cookie-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cookie-switch {
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #dbe2ea;
    position: relative;
    transition: background .2s ease;
}
.cookie-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}
.cookie-option input:checked + .cookie-switch { background: var(--cookie-periwinkle); }
.cookie-option input:checked + .cookie-switch::after { transform: translateX(24px); }
.cookie-panel__actions {
    margin-top: 18px;
}
.footer__links a[data-open-cookie-preferences] {
    cursor: pointer;
}
@media (max-width: 860px) {
    .cookie-consent__card {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .cookie-consent__actions,
    .cookie-panel__actions {
        justify-content: stretch;
    }
    .cookie-btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
    .cookie-consent { bottom: 12px; padding: 0 12px; }
    .cookie-consent__card { border-radius: 20px; padding: 16px; }
    .cookie-panel__dialog {
        right: 12px;
        width: calc(100% - 24px);
        padding: 22px;
        border-radius: 22px;
    }
}
