:where(.wmp-ui, .wmp-center) {
    --wmp-accent: #c06a3f;
    --wmp-accent-ink: #000;
    --wmp-text: #211d1c;
    --wmp-muted: #554d49;
    --wmp-paper: #fffcf9;
    --wmp-line: #d3c5bc;
    --wmp-link: #703b25;
    --wmp-body-font: inherit;
    --wmp-heading-font: inherit;
    --wmp-body-size: 16px;
    --wmp-heading-size: 20px;
    --wmp-radius: 12px;
    --wmp-secondary: #fffcf9;
    --wmp-secondary-ink: #211d1c;
    --wmp-hover: #000;
    --wmp-hover-ink: #fff;
    --wmp-launch-bg: #282322;
    --wmp-launch-ink: #f5d6c7;
    --wmp-tooltip-bg: #282322;
    --wmp-tooltip-ink: #fff;
    --wmp-launch-size: 50px;
    --wmp-launch-x: 14px;
    --wmp-launch-y: 86px;
    --wmp-launch-mobile-x: 14px;
    --wmp-launch-mobile-y: 86px;
    color: var(--wmp-text);
    font-family: var(--wmp-body-font);
    font-size: var(--wmp-body-size);
    line-height: 1.45;
}

:where(.wmp-ui, .wmp-center) *,
:where(.wmp-ui, .wmp-center) *::before,
:where(.wmp-ui, .wmp-center) *::after {
    box-sizing: border-box;
}

.wmp-ui [hidden], .wmp-center [hidden],
[data-wmp-defer-purposes]:is(iframe, img, embed, object, video, audio) {
    display: none !important;
}

.wmp-ui .wmp-links a, .wmp-center .wmp-links a, .wmp-preview-policy {
    color: var(--wmp-link);
    text-decoration: underline;
    text-underline-offset: .17em;
}

:is(.wmp-ui, .wmp-center) :is(button, a, input, select, summary):focus-visible {
    outline: 3px solid var(--wmp-link);
    outline-offset: 3px;
}

:is(.wmp-ui, .wmp-center) :is(.wmp-choice, .wmp-outline, .wmp-launch) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .64rem .92rem;
    border: 1px solid var(--wmp-button-border);
    border-radius: 8px;
    color: var(--wmp-button-ink);
    background: var(--wmp-button-bg);
    font: inherit;
    font-size: var(--wmp-body-size);
    font-weight: 650;
    line-height: 1.24;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

:is(.wmp-ui, .wmp-center) .wmp-choice {
    --wmp-button-bg: var(--wmp-accent);
    --wmp-button-ink: var(--wmp-accent-ink);
    --wmp-button-border: #292120;
    --wmp-button-focus-bg: var(--wmp-accent-focus-bg, var(--wmp-button-bg));
    --wmp-button-focus-ink: var(--wmp-accent-focus-ink, var(--wmp-button-ink));
}

:is(.wmp-ui, .wmp-center) .wmp-outline {
    --wmp-button-bg: var(--wmp-secondary);
    --wmp-button-ink: var(--wmp-secondary-ink);
    --wmp-button-border: #85736a;
    --wmp-button-focus-bg: var(--wmp-secondary-focus-bg, var(--wmp-button-bg));
    --wmp-button-focus-ink: var(--wmp-secondary-focus-ink, var(--wmp-button-ink));
}

.wmp-ui .wmp-customize {
    --wmp-button-bg: var(--wmp-customize-bg, var(--wmp-secondary));
    --wmp-button-ink: var(--wmp-customize-ink, var(--wmp-secondary-ink));
    --wmp-button-focus-bg: var(--wmp-customize-focus-bg, var(--wmp-button-bg));
    --wmp-button-focus-ink: var(--wmp-customize-focus-ink, var(--wmp-button-ink));
    --wmp-button-hover-bg: var(--wmp-customize-hover-bg, var(--wmp-hover));
    --wmp-button-hover-ink: var(--wmp-customize-hover-ink, var(--wmp-hover-ink));
}

:is(.wmp-ui, .wmp-center) button:is(.wmp-choice, .wmp-outline, .wmp-launch):focus {
    color: var(--wmp-button-focus-ink, var(--wmp-button-ink));
    background: var(--wmp-button-focus-bg, var(--wmp-button-bg));
    border-color: var(--wmp-button-border);
}

:is(.wmp-ui, .wmp-center) button:is(.wmp-choice, .wmp-outline, .wmp-launch):is(:hover, :active):enabled {
    color: var(--wmp-button-hover-ink, var(--wmp-hover-ink));
    background: var(--wmp-button-hover-bg, var(--wmp-hover));
    border-color: var(--wmp-button-hover-bg, var(--wmp-hover));
}

:is(.wmp-ui, .wmp-center) button:is(.wmp-choice, .wmp-outline, .wmp-launch):disabled {
    color: var(--wmp-button-ink);
    background: var(--wmp-button-bg);
    border-color: var(--wmp-button-border);
    opacity: .62;
    cursor: wait;
}

.wmp-ui .wmp-launch {
    --wmp-button-bg: var(--wmp-launch-bg);
    --wmp-button-ink: var(--wmp-launch-ink);
    --wmp-button-border: #58473d;
    --wmp-button-focus-bg: var(--wmp-launch-focus-bg, var(--wmp-button-bg));
    --wmp-button-focus-ink: var(--wmp-launch-focus-ink, var(--wmp-button-ink));
    --wmp-button-hover-bg: var(--wmp-launch-hover-bg, var(--wmp-hover));
    --wmp-button-hover-ink: var(--wmp-launch-hover-ink, var(--wmp-hover-ink));
    --wmp-effective-x: var(--wmp-launch-x);
    --wmp-effective-y: var(--wmp-launch-y);
    --wmp-inset-x: min(var(--wmp-effective-x), max(0px, calc(var(--wmp-launch-frame-width, 100vw) - var(--wmp-launch-size))));
    --wmp-inset-y: min(var(--wmp-effective-y), max(0px, calc(var(--wmp-launch-frame-height, 100dvh) - var(--wmp-launch-size))));
    position: fixed;
    z-index: 1999999;
    width: var(--wmp-launch-size);
    height: var(--wmp-launch-size);
    min-height: var(--wmp-launch-size);
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 5px 24px #1710102b;
}
.wmp-ui[data-launcher-corner$="-left"] .wmp-launch { left: max(env(safe-area-inset-left, 0px), var(--wmp-inset-x)); }
.wmp-ui[data-launcher-corner$="-right"] .wmp-launch { right: max(env(safe-area-inset-right, 0px), var(--wmp-inset-x)); }
.wmp-ui[data-launcher-corner^="top-"] .wmp-launch { top: max(env(safe-area-inset-top, 0px), var(--wmp-inset-y)); }
.wmp-ui[data-launcher-corner^="bottom-"] .wmp-launch { bottom: max(env(safe-area-inset-bottom, 0px), var(--wmp-inset-y)); }
.wmp-fingerprint {
    width: 60%;
    height: 60%;
    flex: 0 0 auto;
}
.wmp-tooltip {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: calc(100% + 9px);
    transform: translateY(-50%);
    width: max-content;
    max-width: min(220px, 42vw);
    border-radius: 7px;
    padding: .46rem .64rem;
    color: var(--wmp-tooltip-ink);
    background: var(--wmp-tooltip-bg);
    background: color-mix(in srgb, var(--wmp-tooltip-bg) 88%, transparent);
    backdrop-filter: blur(4px);
    font-size: .88em;
    font-weight: 600;
    line-height: 1.25;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.wmp-ui[data-launcher-corner$="-right"] .wmp-tooltip { left: auto; right: calc(100% + 9px); }
.wmp-launch:is(:hover, :focus-visible) .wmp-tooltip { visibility: visible; opacity: 1; }

.wmp-banner {
    position: fixed;
    z-index: 2000000;
    inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    width: min(880px, calc(100% - 32px));
    margin-inline: auto;
    padding: clamp(16px, 3vw, 25px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    max-height: 85vh;
    overflow: auto;
    color: var(--wmp-text);
    background: var(--wmp-paper);
    border: 1px solid var(--wmp-line);
    border-top: 4px solid var(--wmp-accent);
    border-radius: var(--wmp-radius);
    box-shadow: 0 12px 60px #2417103b;
}

.wmp-bottom-left .wmp-banner,
.wmp-bottom-right .wmp-banner {
    width: min(470px, calc(100% - 32px));
}
.wmp-bottom-left .wmp-banner { margin-left: 0; }
.wmp-bottom-right .wmp-banner { margin-right: 0; }
.wmp-top-center .wmp-banner {
    top: calc(max(16px, env(safe-area-inset-top)) + var(--wp-admin--admin-bar--height, 0px));
    bottom: auto;
}

.wmp-banner-text { flex: 1 1 310px; }
.wmp-ui .wmp-banner h2, .wmp-ui .wmp-dialog h2 {
    margin: 0 0 5px;
    color: var(--wmp-text);
    font: inherit;
    font-family: var(--wmp-heading-font);
    font-size: var(--wmp-heading-size);
    font-weight: 750;
    line-height: 1.25;
}
.wmp-banner p, .wmp-dialog p { margin: 0; color: var(--wmp-muted); }
.wmp-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.wmp-banner .wmp-links, .wmp-dialog .wmp-links { margin-top: 8px; font-size: .94rem; }
.wmp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wmp-status { min-width: 100%; padding: .45rem 0 0; font-weight: 600; }

.wmp-dialog {
    width: min(610px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 24px));
    max-height: min(720px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    color: var(--wmp-text);
    background: var(--wmp-paper);
    border: 1px solid var(--wmp-line);
    border-top: 4px solid var(--wmp-accent);
    border-radius: var(--wmp-radius);
    box-shadow: 0 12px 60px #24171055;
}
.wmp-dialog:not([open]) { display: none; }
.wmp-dialog[open] { display: flex; flex-direction: column; }
.wmp-dialog[role="dialog"][open] { position: fixed; inset: 0; z-index: 2000001; }
.wmp-dialog::backdrop { background: #160f0d8a; }
.wmp-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wmp-line);
}
.wmp-dialog-header h2 { margin: 0; }
.wmp-ui .wmp-close {
    --wmp-button-bg: var(--wmp-close-bg, var(--wmp-secondary));
    --wmp-button-ink: var(--wmp-close-ink, var(--wmp-secondary-ink));
    --wmp-button-focus-bg: var(--wmp-close-focus-bg, var(--wmp-button-bg));
    --wmp-button-focus-ink: var(--wmp-close-focus-ink, var(--wmp-button-ink));
    --wmp-button-hover-bg: var(--wmp-close-hover-bg, var(--wmp-hover));
    --wmp-button-hover-ink: var(--wmp-close-hover-ink, var(--wmp-hover-ink));
    min-width: 44px;
    flex: 0 0 auto;
    font-size: 1.4rem;
}
.wmp-dialog-content { padding: 15px 20px; overflow-y: auto; }
.wmp-dialog-actions { padding: 14px 20px; border-top: 1px solid var(--wmp-line); }
.wmp-purposes { display: grid; gap: 8px; padding: 0; margin: 14px 0; list-style: none; }
.wmp-purpose {
    border: 1px solid var(--wmp-line);
    border-radius: 8px;
    padding: 9px 12px;
}
.wmp-purpose:first-child, .wmp-purpose label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.wmp-purpose label { margin: 0; cursor: pointer; }
.wmp-purpose strong, .wmp-description { display: block; }
.wmp-description, .wmp-purpose p { color: var(--wmp-muted); font-size: .95em; }
.wmp-necessary { font-size: .86em; color: var(--wmp-muted); text-align: right; }
.wmp-purpose .wmp-toggle {
    width: 22px;
    height: 22px;
    margin: 5px;
    flex: 0 0 22px;
    accent-color: #754229;
}
.wmp-dialog [data-wmp-gpc-note], .wmp-dialog [data-wmp-receipt] {
    margin-top: 8px;
    overflow-wrap: anywhere;
    font-size: .91rem;
}

.wmp-placeholder {
    min-height: 132px;
    padding: 20px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--wmp-text);
    background: #f5eeea;
    border: 1px solid #d3c5bc;
    border-radius: 10px;
    text-align: center;
}
.wmp-placeholder p { margin: 0; }
.wmp-embedded-video { display: grid; width: 100%; aspect-ratio: 16 / 9; }
.wmp-embedded-video iframe { width: 100%; height: 100%; border: 0; }
.wmp-center { max-width: 72rem; }
.wmp-center h2 { margin-top: 1.65em; }
.wmp-table { overflow-x: auto; }
.wmp-table table { width: 100%; border-collapse: collapse; text-align: left; }
.wmp-table :is(th, td) { padding: .6em; border: 1px solid var(--wmp-line); }
.wmp-inventory { margin-top: 12px; }
.wmp-inventory summary { color: var(--wmp-link); cursor: pointer; font-weight: 650; }
.wmp-inventory .wmp-table { margin-top: 8px; }
.wmp-ui .wmp-inventory table { font-size: .88em; margin: 0; }
.wmp-rights {
    display: grid;
    gap: 10px;
    margin-block: 20px;
    padding: 16px;
    max-width: 620px;
    border: 1px solid var(--wmp-line);
    border-radius: 8px;
    background: var(--wmp-paper);
}
.wmp-rights :is(h3, p) { margin: 0; }
.wmp-rights :is(select, input) { display: block; width: 100%; color: var(--wmp-text); background: #fff; }
.wmp-rights button { justify-self: start; }
.wmp-sr, .wmp-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wmp-no-js { padding: 8px 16px; background: var(--wmp-paper); }
.wmp-sample {
    position: fixed;
    z-index: 2000002;
    top: calc(var(--wp-admin--admin-bar--height, 32px) + 8px);
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 8px;
    border: 1px solid #b8a499;
    border-radius: 8px;
    background: #fffcf9;
    box-shadow: 0 4px 12px #211d1c38;
}
.wmp-sample .wmp-outline {
    --wmp-button-bg: #282322;
    --wmp-button-ink: #fff;
    --wmp-button-border: #282322;
    padding: 8px 12px;
}
.wmp-sample a { color: var(--wmp-link); text-decoration: underline; }

@media (max-width: 560px) {
    .wmp-ui:not(.wmp-preview-ui) .wmp-launch {
        --wmp-effective-x: var(--wmp-launch-mobile-x);
        --wmp-effective-y: var(--wmp-launch-mobile-y);
    }
    .wmp-banner { padding: 14px; }
    .wmp-banner .wmp-actions, .wmp-dialog-actions { flex: 1 1 100%; }
    .wmp-actions button { flex: 1 1 106px; }
    .wmp-dialog :is(.wmp-dialog-header, .wmp-dialog-content, .wmp-dialog-actions) { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .wmp-tooltip,
    :is(.wmp-ui, .wmp-center) :is(.wmp-choice, .wmp-outline, .wmp-launch) { transition: none; }
}
