:root {
    --wiza-consent-accent: #9D257D;
    --wiza-consent-dark: #20242A;
    --wiza-consent-muted: #666D75;
    --wiza-consent-surface: #FFFDF9;
    --wiza-consent-border: #E5E5E5;
}

.wiza-consent[hidden],
.wiza-consent-noscript[hidden] {
    display: none !important;
}

html.wiza-consent-pending,
html.wiza-consent-pending body {
    overflow: hidden !important;
}

html.wiza-consent-pending .wrapper {
    pointer-events: none;
    user-select: none;
}

html.wiza-consent-legal-pending .wrapper > header,
html.wiza-consent-legal-pending .wrapper > footer,
html.wiza-consent-legal-pending .wrapper > .top-footer {
    pointer-events: none;
    user-select: none;
}

.wiza-consent {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wiza-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 25, .68);
    backdrop-filter: blur(4px);
}

.wiza-consent__dialog {
    position: relative;
    width: min(100%, 650px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 34px;
    color: var(--wiza-consent-dark);
    background: var(--wiza-consent-surface);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    outline: none;
}

.wiza-consent__eyebrow {
    margin: 0 0 9px;
    color: var(--wiza-consent-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wiza-consent__dialog h2 {
    margin: 0 0 16px;
    color: var(--wiza-consent-dark);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.wiza-consent__copy,
.wiza-consent__links {
    color: var(--wiza-consent-muted);
    font-size: 16px;
    line-height: 1.55;
}

.wiza-consent__copy p,
.wiza-consent__links {
    margin: 0 0 12px;
}

.wiza-consent__error {
    margin: 16px 0 0;
    padding: 12px 14px;
    color: #7B1524;
    background: #FFF0F2;
    border: 1px solid #D79AA3;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.wiza-consent__error[hidden] {
    display: none;
}

.wiza-consent__links a {
    color: var(--wiza-consent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--wiza-consent-accent);
    text-underline-offset: 3px;
}

.wiza-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.wiza-consent__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 20px;
    border: 2px solid var(--wiza-consent-accent);
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.wiza-consent__button:hover {
    transform: translateY(-1px);
}

.wiza-consent__button:focus-visible,
.wiza-consent__links a:focus-visible,
.consent-settings-link:focus-visible,
[data-consent-open]:focus-visible {
    outline: 3px solid #FFF;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--wiza-consent-accent);
}

.wiza-consent__button:disabled {
    cursor: wait;
    opacity: .6;
}

.wiza-consent__button--accept {
    color: #fff;
    background: var(--wiza-consent-accent);
}

.wiza-consent__button--reject,
.wiza-consent__button--settings {
    color: var(--wiza-consent-dark);
    background: transparent;
}

.wiza-consent__button--settings {
    border-color: var(--wiza-consent-border);
}

.wiza-consent--legal {
    align-items: flex-end;
    padding: 16px;
    pointer-events: none;
}

.wiza-consent--legal .wiza-consent__backdrop {
    display: none;
}

.wiza-consent--legal .wiza-consent__dialog {
    width: min(100%, 940px);
    padding: 22px 26px;
    pointer-events: auto;
    border-color: var(--wiza-consent-border);
    border-radius: 18px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, .22);
}

.wiza-consent--legal .wiza-consent__dialog h2 {
    font-size: 25px;
    margin-bottom: 9px;
}

.wiza-consent--legal .wiza-consent__eyebrow,
.wiza-consent--legal .wiza-consent__copy p + p {
    display: none;
}

.wiza-consent--legal .wiza-consent__copy,
.wiza-consent--legal .wiza-consent__links {
    font-size: 14px;
}

.wiza-consent--legal .wiza-consent__actions {
    margin-top: 14px;
}

html.wiza-consent-legal-pending .legal-page {
    padding-bottom: 360px;
}

.menu-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 16px;
}

.menu-footer__legal .menu-footer__item,
.consent-settings-link {
    appearance: none;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 16px 0 20px;
    color: inherit;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.form-consent input {
    width: 19px;
    min-width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--wiza-consent-accent);
}

.form-consent a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-consent--error {
    color: #B00020;
}

.form-consent--error input {
    outline: 2px solid #B00020;
    outline-offset: 2px;
}

.consent-embed {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    background: #F4F1F3;
}

.consent-embed iframe {
    display: block;
    width: 100%;
    min-height: 490px;
    border: 0;
}

.consent-embed__placeholder {
    display: flex;
    min-height: 490px;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    text-align: center;
}

.consent-embed__placeholder[hidden] {
    display: none;
}

.consent-embed__content {
    max-width: 520px;
}

.consent-embed__content h2 {
    margin: 0 0 10px;
    color: var(--wiza-consent-dark);
    font-size: 28px;
}

.consent-embed__content p {
    margin: 0 0 20px;
    color: var(--wiza-consent-muted);
    line-height: 1.55;
}

.consent-embed__button {
    min-height: 46px;
    padding: 10px 20px;
    color: #fff;
    background: var(--wiza-consent-accent);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wiza-consent-noscript {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--wiza-consent-dark);
    background: rgba(20, 22, 25, .75);
}

.wiza-consent-noscript__dialog {
    width: min(100%, 620px);
    padding: 32px;
    background: var(--wiza-consent-surface);
    border-radius: 22px;
}

.wiza-consent-noscript__dialog h2 {
    margin: 0 0 14px;
}

.wiza-consent-noscript__dialog p {
    margin: 0 0 12px;
    line-height: 1.55;
}

.wiza-consent-noscript__dialog a {
    color: var(--wiza-consent-dark);
    text-decoration: underline;
    text-decoration-color: var(--wiza-consent-accent);
}

.wiza-consent-noscript--legal {
    inset: auto 0 0;
    padding: 12px;
    background: transparent;
    pointer-events: none;
}

.wiza-consent-noscript--legal .wiza-consent-noscript__dialog {
    padding: 20px 24px;
    border: 1px solid var(--wiza-consent-border);
    border-radius: 16px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .2);
    pointer-events: auto;
}

.wiza-consent-save-warning {
    position: fixed;
    z-index: 2147483646;
    right: 16px;
    bottom: 16px;
    width: min(calc(100% - 32px), 520px);
    padding: 15px 18px;
    color: #7B1524;
    background: #FFF0F2;
    border: 1px solid #D79AA3;
    border-radius: 12px;
    box-shadow: 0 12px 42px rgba(0, 0, 0, .2);
    font-size: 14px;
    line-height: 1.5;
}

.wiza-consent-noscript--legal ~ .wrapper > header,
.wiza-consent-noscript--legal ~ .wrapper > footer,
.wiza-consent-noscript--legal ~ .wrapper > .top-footer {
    pointer-events: none;
}

@media (max-width: 640px) {
    .wiza-consent {
        align-items: flex-end;
        padding: 10px;
    }

    .wiza-consent__dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 24px 20px;
        border-radius: 18px;
    }

    .wiza-consent__actions {
        grid-template-columns: 1fr;
    }

    .wiza-consent__button {
        min-height: 50px;
    }

    .wiza-consent--legal {
        padding: 8px;
    }

    .wiza-consent--legal .wiza-consent__dialog {
        max-height: min(58dvh, 460px);
        padding: 18px;
    }

    html.wiza-consent-legal-pending .legal-page {
        padding-bottom: 470px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wiza-consent__button {
        transition: none;
    }
}
