:root {
    --jnv-consent-bg: #fff;
    --jnv-consent-text: #111;
    --jnv-consent-muted: #6b7280;
    --jnv-consent-border: #e5e7eb;
    --jnv-consent-primary: #111;
    --jnv-consent-primary-text: #fff;
    --jnv-consent-radius: 12px;
    --jnv-consent-shadow: 0 20px 50px rgb(0 0 0 / 18%);
}

.jnv-consent-open {
    overflow: hidden;
}

.jnv-consent {
    box-sizing: border-box;
    font-family: inherit;
    color: var(--jnv-consent-text);
}

.jnv-consent *,
.jnv-consent *::before,
.jnv-consent *::after {
    box-sizing: border-box;
}

.jnv-consent--banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 99990;
    display: none;
    gap: 24px;
    align-items: flex-end;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--jnv-consent-border);
    border-radius: var(--jnv-consent-radius);
    background: var(--jnv-consent-bg);
    box-shadow: var(--jnv-consent-shadow);
}

.jnv-consent--banner.is-visible {
    display: flex;
}

.jnv-consent__content {
    flex: 1;
}

.jnv-consent__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.jnv-consent__description,
.jnv-consent__category p {
    margin: 0;
    color: var(--jnv-consent-muted);
    font-size: 14px;
    line-height: 1.5;
}

.jnv-consent__privacy {
    display: inline-block;
    margin-top: 10px;
    color: inherit;
    font-size: 13px;
}

.jnv-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.jnv-consent__button {
    appearance: none;
    border: 1px solid var(--jnv-consent-border);
    border-radius: 8px;
    padding: 11px 16px;
    background: #fff;
    color: var(--jnv-consent-text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.jnv-consent__button--primary {
    border-color: var(--jnv-consent-primary);
    background: var(--jnv-consent-primary);
    color: var(--jnv-consent-primary-text);
}

.jnv-consent__overlay {
    position: fixed;
    inset: 0;
    z-index: 99991;
    display: none;
    background: rgb(0 0 0 / 55%);
}

.jnv-consent__overlay.is-visible {
    display: block;
}

.jnv-consent--modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99992;
    display: none;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border-radius: var(--jnv-consent-radius);
    background: var(--jnv-consent-bg);
    box-shadow: var(--jnv-consent-shadow);
}

.jnv-consent--modal.is-visible {
    display: block;
}

.jnv-consent__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 0;
}

.jnv-consent__close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.jnv-consent__modal-body {
    padding: 12px 22px;
}

.jnv-consent__category {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--jnv-consent-border);
}

.jnv-consent__category-copy strong {
    display: block;
    margin-bottom: 4px;
}

.jnv-consent__category-control {
    flex: 0 0 auto;
}

.jnv-consent__always {
    color: var(--jnv-consent-muted);
    font-size: 12px;
    font-weight: 600;
}

.jnv-consent__switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.jnv-consent__switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.jnv-consent__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: .2s ease;
}

.jnv-consent__slider::before {
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: '';
    transition: .2s ease;
}

.jnv-consent__switch input:checked + .jnv-consent__slider {
    background: var(--jnv-consent-primary);
}

.jnv-consent__switch input:checked + .jnv-consent__slider::before {
    transform: translateX(20px);
}

.jnv-consent__save {
    width: calc(100% - 44px);
    margin: 10px 22px 22px;
}

.jnv-consent__manage {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99989;
    border: 1px solid var(--jnv-consent-border);
    border-radius: 999px;
    padding: 0;
    width: 44px;
    height: 44px;
    background: var(--jnv-consent-bg);
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
    color: var(--jnv-consent-text);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jnv-consent__manage svg {
    width: 32px;
    height: auto;
}

html body {
    padding-bottom: 55px;
}

@media (max-width: 767px) {
    .jnv-consent--banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: none;
        padding: 18px;
    }

    .jnv-consent--banner.is-visible {
        display: block;
    }

    .jnv-consent__actions {
        margin-top: 18px;
        justify-content: stretch;
    }

    .jnv-consent__button {
        width: 80%;
        flex: inherit;
        margin: 0 auto 10px;
        display: block;
    }
}
