@font-face {
    font-family: 'Consent Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Nunito/Nunito-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Consent Nunito';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Nunito/Nunito-SemiBold.woff') format('woff');
}

.zv-consent {
    --zv-primary: #6c1dcc;
    --zv-primary-dark: #4a148c;
    --zv-text: #212b36;
    --zv-text-secondary: #637381;
    --zv-divider: rgba(145, 158, 171, .24);
    font: 400 16px/1.5 'Consent Nunito', 'Public Sans', sans-serif;
    letter-spacing: normal;
    color: var(--zv-text);
}

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

.zv-consent * {
    font-family: inherit;
}

.zv-consent [hidden] {
    display: none !important;
}

.zv-consent button {
    margin: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.zv-consent button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.zv-consent-drawer {
    position: fixed;
    inset: auto 0 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 100%;
    overflow: auto;
    padding: 32px 40px;
    border-top: 1px solid #e5e8eb;
    background: var(--zv-primary);
    background-clip: padding-box;
    color: #fff;
}

.zv-consent .zv-consent-title {
    margin: 0;
    font: inherit;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.zv-consent .zv-consent-copy {
    margin: 0;
    font: inherit;
    color: inherit;
    letter-spacing: normal;
}

.zv-consent-drawer__actions {
    display: flex;
    gap: 24px;
}

.zv-consent .zv-consent-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--zv-primary);
    box-shadow: 0 8px 16px 0 rgba(108, 29, 204, .24);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1.25px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color .25s, color .25s, box-shadow .25s;
}

.zv-consent .zv-consent-pill:hover {
    background: var(--zv-primary-dark);
    box-shadow: none;
}

.zv-consent .zv-consent-pill--underline {
    text-decoration: underline;
}

.zv-consent .zv-consent-pill--accept {
    background: #fff;
    color: var(--zv-primary);
}

.zv-consent .zv-consent-pill--accept:hover {
    background: #dfe3e8;
    color: #39106d;
}

body:has(.zv-consent-dialog[open]) {
    overflow: hidden;
}

.zv-consent-dialog {
    position: fixed;
    inset: 0;
    flex-direction: column;
    width: min(900px, 100% - 64px);
    max-width: none;
    max-height: calc(100% - 64px);
    margin: auto;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px 0 rgba(145, 158, 171, .12);
    color: inherit;
}

.zv-consent-dialog[open] {
    display: flex;
}

.zv-consent-dialog::backdrop {
    background: rgba(69, 79, 91, .16);
}

.zv-consent-dialog__header {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.zv-consent-dialog__header .zv-consent-title:focus {
    outline: none;
}

.zv-consent .zv-consent-dialog__close {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: transparent;
    color: var(--zv-text-secondary);
}

.zv-consent-dialog__close::before {
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url('../images/close-icon.svg') center / contain no-repeat;
    content: '';
}

.zv-consent .zv-consent-dialog__close:hover {
    background: rgba(145, 158, 171, .08);
}

.zv-consent-dialog__content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 24px 24px;
}

.zv-consent-dialog__content::-webkit-scrollbar {
    width: 16px;
}

.zv-consent-dialog__content::-webkit-scrollbar-thumb {
    border: 5px solid transparent;
    border-radius: 8px;
    background: rgba(99, 115, 129, .48) padding-box;
}

.zv-consent-dialog__content > .zv-consent-copy {
    white-space: pre-line;
}

.zv-consent-category {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--zv-divider);
}

.zv-consent-category__header {
    display: flex;
    justify-content: space-between;
    min-height: 24px;
    margin-bottom: 16px;
}

.zv-consent-category__name {
    overflow-wrap: anywhere;
    font-weight: 600;
}

.zv-consent-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 24px;
    margin: 0 -11px 0 16px;
    font: 600 14px/22px 'Consent Nunito', 'Public Sans', sans-serif;
    color: inherit;
    white-space: nowrap;
    cursor: pointer;
}

.zv-consent-switch__control {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 38px;
    padding: 12px;
}

.zv-consent-switch input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: inherit;
}

.zv-consent-switch__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background: #919eab;
    pointer-events: none;
}

.zv-consent-switch__track::after {
    position: absolute;
    top: 9px;
    inset-inline-start: 9px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(224, 224, 224, .16);
    border-radius: 50%;
    background: #f4f6f8;
    box-shadow: 0 1px 2px 0 rgba(145, 158, 171, .12);
    content: '';
    transition: inset-inline-start .15s, background .15s;
}

.zv-consent-switch input:checked + .zv-consent-switch__track {
    background: rgba(0, 171, 85, .5);
}

.zv-consent-switch input:checked + .zv-consent-switch__track::after {
    inset-inline-start: 29px;
    border: 0;
    background: #00ab55;
}

.zv-consent-switch input:focus-visible + .zv-consent-switch__track::after {
    outline: 2px solid var(--zv-primary);
    outline-offset: 2px;
}

.zv-consent-switch--disabled {
    color: #919eab;
    cursor: default;
}

.zv-consent-switch input:disabled + .zv-consent-switch__track {
    background: rgba(0, 171, 85, .12);
}

.zv-consent-switch input:disabled + .zv-consent-switch__track::after {
    background: #9edfbe;
}

.zv-consent-dialog__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 12px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f9fafb;
}

.zv-consent-dialog__error {
    padding: 8px 24px;
}

.zv-consent .zv-consent-text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 40px;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--zv-text-secondary);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1.25px;
    text-align: center;
    text-transform: none;
}

.zv-consent .zv-consent-text-btn:hover {
    color: var(--zv-text);
}

.zv-consent-dialog__spacer {
    flex-grow: 1;
    margin-inline-start: 8px;
}

.zv-consent .zv-consent-dialog__spacer ~ button {
    margin-inline-start: 12px;
}

.zv-consent .zv-consent-text-btn--info {
    color: #36f;
}

.zv-consent .zv-consent-text-btn--info:hover {
    color: #1939b7;
}

@media (max-width: 600px) {
    .zv-consent-dialog {
        width: calc(100% - 32px);
    }
}

@media (width < 600px) {
    .zv-consent .zv-consent-title {
        font-size: 16px !important;
    }

    .zv-consent-category__name {
        font-size: 14px;
    }
}

@media (width < 360px) {
    [data-zv-signup-consent-url] .zv-consent-drawer__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    [data-zv-signup-consent-url] .zv-consent-pill {
        padding-inline: 12px;
    }

    [data-zv-signup-consent-url] .zv-consent-pill--underline {
        flex-basis: 100%;
        justify-content: flex-start;
    }
}
