/* Zeus site popups: six designs across six layouts. Every selector is prefixed .zp- and nothing depends on theme Bootstrap or jQuery.
   All brand colours arrive as --zp- variables on the root; there are no hex values in this file.
   Structure: a modal popup is as tall as its content. When that is taller than the window, the overlay (.zp-popup) scrolls and the box moves with it.
   Only slide_in and bar are capped; their .zp-content scrolls inside the box. */

/* ---------- Root ---------- */
.zp-popup[hidden] { display: none !important; }
.zp-popup, .zp-popup *, .zp-popup *::before, .zp-popup *::after { box-sizing: border-box; }
.zp-popup {
    --zp-scale: 1;
    --zp-heading-boost: 1;
    --zp-inset: 0px;
    --zp-frame-at: 10px;
    --zp-radius: 0px;
    --zp-button-radius: 0px;
    --zp-box-shadow: none;
    --zp-width: 560px;
    --zp-split-height: 500px;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
    pointer-events: none;
    font-family: var(--zp-body-font);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}
.zp-popup > style { display: none; }

.zp-size-small { --zp-width: 380px; --zp-split-height: 440px; }
.zp-size-medium { --zp-width: 560px; --zp-split-height: 500px; }
.zp-size-large { --zp-width: 820px; --zp-split-height: 600px; }
.zp-corner-square { --zp-radius: 0px; }
.zp-corner-slight { --zp-radius: 4px; }
.zp-corner-rounded { --zp-radius: 16px; }
.zp-button-shape-square { --zp-button-radius: 0px; }
.zp-button-shape-slight { --zp-button-radius: 4px; }
.zp-button-shape-pill { --zp-button-radius: 999px; }
.zp-btn-small { --zp-btn-y: 8px; --zp-btn-x: 16px; }
.zp-btn-medium { --zp-btn-y: 13px; --zp-btn-x: 26px; }
.zp-btn-large { --zp-btn-y: 18px; --zp-btn-x: 40px; }
.zp-shadow-none { --zp-box-shadow: none; }
.zp-shadow-soft { --zp-box-shadow: 0 24px 60px rgba(15, 20, 35, .3); }
.zp-shadow-strong { --zp-box-shadow: 0 36px 96px rgba(8, 12, 24, .55); }

/* ---------- Isolation: a theme's element styles stop here ---------- */
.zp-popup .zp-box h2, .zp-popup .zp-box h3, .zp-popup .zp-box h4, .zp-popup .zp-box p, .zp-popup .zp-box a,
.zp-popup .zp-box button, .zp-popup .zp-box img, .zp-popup .zp-box input, .zp-popup .zp-box select, .zp-popup .zp-box textarea,
.zp-popup .zp-box label, .zp-popup .zp-box ul, .zp-popup .zp-box ol, .zp-popup .zp-box li, .zp-popup .zp-box small, .zp-popup .zp-box form {
    float: none;
    width: auto; min-width: 0; max-width: none;
    height: auto; min-height: 0; max-height: none;
    margin: 0; padding: 0;
    border: 0; border-radius: 0; outline: 0;
    background: none;
    box-shadow: none; text-shadow: none;
    color: inherit;
    font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit;
    letter-spacing: normal; line-height: inherit; text-align: inherit; text-decoration: none; text-transform: none;
    opacity: 1; transform: none; transition: none;
}
/* The family is reset apart, so "the site's own font" leaves the theme's own heading rule in charge. */
.zp-popup .zp-box p, .zp-popup .zp-box a, .zp-popup .zp-box button, .zp-popup .zp-box img, .zp-popup .zp-box input, .zp-popup .zp-box select, .zp-popup .zp-box textarea,
.zp-popup .zp-box label, .zp-popup .zp-box ul, .zp-popup .zp-box ol, .zp-popup .zp-box li, .zp-popup .zp-box small, .zp-popup .zp-box form,
.zp-popup:not(.zp-heading-site) .zp-box h2, .zp-popup:not(.zp-heading-site) .zp-box h3, .zp-popup:not(.zp-heading-site) .zp-box h4 { font-family: inherit; }
.zp-popup .zp-box h2::before, .zp-popup .zp-box h2::after, .zp-popup .zp-box p::before, .zp-popup .zp-box p::after,
.zp-popup .zp-box a::before, .zp-popup .zp-box a::after, .zp-popup .zp-box button::before, .zp-popup .zp-box button::after,
.zp-popup .zp-box label::before, .zp-popup .zp-box label::after { content: none; }
.zp-popup .zp-box button, .zp-popup .zp-box input, .zp-popup .zp-box select, .zp-popup .zp-box textarea { -webkit-appearance: none; appearance: none; }
.zp-popup .zp-box img { display: block; max-width: 100%; border: 0; }

/* ---------- The box and its parts ---------- */
.zp-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--zp-overlay); pointer-events: auto; }
.zp-popup .zp-box {
    position: absolute;
    display: flex; flex-direction: column;
    padding: var(--zp-inset);
    border-radius: var(--zp-radius);
    background: var(--zp-surface);
    color: var(--zp-ink);
    box-shadow: var(--zp-box-shadow);
    pointer-events: auto;
}
.zp-popup .zp-box:focus { outline: 0; } /* It takes focus on opening; the controls inside show the ring. */

/* Positioned against the box, so on a capped layout it stays in view however far the text scrolls. */
.zp-popup .zp-box .zp-close {
    position: absolute; top: calc(var(--zp-inset) + 8px); right: calc(var(--zp-inset) + 8px); z-index: 5;
    display: block; width: 34px; height: 34px;
    background: var(--zp-close-bg);
    color: var(--zp-close-ink);
    font: 400 21px/34px Arial, Helvetica, sans-serif;
    text-align: center;
    cursor: pointer;
}
.zp-popup .zp-box .zp-close:hover, .zp-popup .zp-box .zp-close:focus { background: var(--zp-close-bg); color: var(--zp-close-ink); }
.zp-popup .zp-box .zp-close:hover { opacity: .75; }
.zp-popup .zp-box .zp-close:focus-visible { outline: 1px solid currentColor; outline-offset: 1px; }
.zp-close-circle .zp-box .zp-close { border-radius: 50%; }
.zp-close-square .zp-box .zp-close { border-radius: 0; }
.zp-popup.zp-close-plain .zp-box .zp-close { background: none; }

.zp-popup .zp-box .zp-content {
    position: relative; z-index: 1;
    flex: 1 1 auto;
    min-width: 0; min-height: 0;
    padding: var(--zp-padding);
    text-align: var(--zp-button-align);
}
.zp-popup .zp-box .zp-image { flex: none; width: 100%; object-fit: cover; object-position: var(--zp-focal); }
.zp-popup .zp-box .zp-logo { display: inline-block; vertical-align: top; width: auto; max-width: 160px; max-height: 40px; margin: 0 0 20px; }

/* ---------- Type ---------- */
.zp-popup .zp-box .zp-label {
    margin: 0 0 12px; padding-right: 28px;
    color: var(--zp-label-ink);
    font-size: calc(var(--zp-label-set, var(--zp-label-size)) * var(--zp-scale));
    font-weight: var(--zp-label-weight);
    line-height: 1.4; letter-spacing: .22em; text-align: var(--zp-label-align); text-transform: uppercase;
}
.zp-popup .zp-box .zp-heading {
    margin: 0 0 14px; padding-right: 28px;
    color: var(--zp-ink);
    font-size: calc(var(--zp-heading-set, calc(var(--zp-heading-size) * var(--zp-heading-boost))) * var(--zp-scale));
    font-weight: var(--zp-heading-weight);
    line-height: 1.18; letter-spacing: -.01em; text-align: var(--zp-heading-align);
}
.zp-popup:not(.zp-heading-site) .zp-box .zp-heading, .zp-popup:not(.zp-heading-site) .zp-box .zp-body h2, .zp-popup:not(.zp-heading-site) .zp-box .zp-body h3, .zp-popup:not(.zp-heading-site) .zp-box .zp-body h4 { font-family: var(--zp-heading-font); }
.zp-popup .zp-box .zp-rule { display: none; }
.zp-popup .zp-box .zp-body {
    margin: 0 0 24px;
    color: var(--zp-ink-soft);
    font-size: calc(var(--zp-body-set, var(--zp-body-size)) * var(--zp-scale));
    font-weight: var(--zp-body-weight);
    line-height: 1.6; text-align: var(--zp-body-align);
}
.zp-popup .zp-box .zp-body p, .zp-popup .zp-box .zp-body ul, .zp-popup .zp-box .zp-body ol { margin: 0 0 .8em; }
.zp-popup .zp-box .zp-body ul, .zp-popup .zp-box .zp-body ol { padding-left: 1.25em; }
.zp-popup .zp-box .zp-body ul { list-style: disc; }
.zp-popup .zp-box .zp-body ol { list-style: decimal; }
.zp-popup .zp-box .zp-body li { display: list-item; margin: 0 0 .3em; }
.zp-popup .zp-box .zp-body strong, .zp-popup .zp-box .zp-body b { color: var(--zp-ink); font-weight: 600; }
.zp-popup .zp-box .zp-body h2, .zp-popup .zp-box .zp-body h3, .zp-popup .zp-box .zp-body h4 { margin: 0 0 .5em; color: var(--zp-ink); font-size: 1.15em; font-weight: 600; line-height: 1.3; }
.zp-popup .zp-box .zp-body > :last-child { margin-bottom: 0; }
.zp-popup .zp-box .zp-body a, .zp-popup .zp-box .zp-body a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.zp-popup .zp-box .zp-content > :last-child { margin-bottom: 0; }

.zp-popup .zp-box .zp-button, .zp-popup .zp-box .zp-form button, .zp-popup .zp-box .zp-form input[type="submit"] {
    display: inline-block;
    padding: var(--zp-btn-y) var(--zp-btn-x);
    border-radius: var(--zp-button-radius);
    background: var(--zp-button);
    color: var(--zp-button-text);
    font-size: calc(var(--zp-button-set, var(--zp-button-size)) * var(--zp-scale));
    font-weight: var(--zp-button-weight);
    line-height: 1.3; letter-spacing: .04em; text-align: center;
    cursor: pointer;
    transition: opacity .2s ease;
}
.zp-popup .zp-box .zp-button:hover, .zp-popup .zp-box .zp-button:focus, .zp-popup .zp-box .zp-form button:hover, .zp-popup .zp-box .zp-form input[type="submit"]:hover { background: var(--zp-button); color: var(--zp-button-text); opacity: .86; text-decoration: none; }
.zp-popup .zp-box .zp-button:focus-visible, .zp-popup .zp-box .zp-second-link:focus-visible, .zp-popup .zp-box .zp-form button:focus-visible { outline: 2px solid var(--zp-link-ink); outline-offset: 3px; }
.zp-popup .zp-box .zp-second-link {
    display: inline-block;
    margin: 0 0 0 18px; padding: 6px 0;
    color: var(--zp-link-ink);
    font-size: calc(14px * var(--zp-scale));
    text-decoration: underline; text-underline-offset: 3px;
}
.zp-popup .zp-box .zp-second-link:hover { color: var(--zp-link-ink); opacity: .75; }
.zp-popup .zp-box .zp-button + .zp-second-link { vertical-align: middle; }

/* ---------- Forms: the Form Builder's markup, whichever theme it lands in ---------- */
.zp-popup .zp-box .zp-form { margin: 0 0 20px; color: var(--zp-ink); text-align: left; }
.zp-popup .zp-box .zp-form .p-3, .zp-popup .zp-box .zp-form .row, .zp-popup .zp-box .zp-form [class*="col-"], .zp-popup .zp-box .zp-form .btn-block, .zp-popup .zp-box .zp-form .form-group { display: block; flex: none; width: auto; max-width: none; margin: 0; padding: 0; }
.zp-popup .zp-box .zp-form .p-3 { padding: 0 !important; } /* Bootstrap marks its spacing utilities !important. */
.zp-popup .zp-box .zp-form .zeus-form-section-title { display: none; }
.zp-popup .zp-box .zp-form .zeus-form-section-fields > div { margin: 0 0 14px; }
.zp-popup .zp-box .zp-form label {
    display: block;
    margin: 0 0 6px;
    color: var(--zp-ink);
    font-size: calc(13px * var(--zp-scale)); font-weight: 500; line-height: 1.35;
}
.zp-popup .zp-box .zp-form input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .zp-popup .zp-box .zp-form select, .zp-popup .zp-box .zp-form textarea {
    display: block; width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--zp-field-line);
    border-radius: min(var(--zp-button-radius), 8px);
    background-color: var(--zp-field-bg);
    color: var(--zp-ink);
    font-size: 16px; /* Below 16px iOS zooms the page on focus. */
    line-height: 1.35;
}
.zp-popup .zp-box .zp-form input[type="checkbox"], .zp-popup .zp-box .zp-form input[type="radio"] { -webkit-appearance: auto; appearance: auto; display: inline-block; margin-right: 8px; }
.zp-popup .zp-box .zp-form textarea { min-height: 96px; resize: vertical; }
.zp-popup .zp-box .zp-form input[type="text"], .zp-popup .zp-box .zp-form input[type="email"], .zp-popup .zp-box .zp-form input[type="tel"], .zp-popup .zp-box .zp-form textarea { border: 1px solid var(--zp-field-line); background-color: var(--zp-field-bg); color: var(--zp-ink); }
.zp-popup .zp-box .zp-form input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--zp-accent); cursor: pointer; }
.zp-popup .zp-box .zp-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--zp-accent); outline-offset: 2px; }
.zp-popup .zp-box .zp-form .zp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.zp-popup .zp-box .zp-form .zp-files-field { margin: 0 0 14px; }
.zp-popup .zp-box .zp-form .zp-required { color: var(--zp-accent); }
/* The files to send: a tick per file, the whole row clickable. */
.zp-popup .zp-box .zp-form .zp-files { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.zp-popup .zp-box .zp-form .zp-files ul { margin: 0; padding: 0; list-style: none; }
.zp-popup .zp-box .zp-form .zp-files li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.zp-popup .zp-box .zp-form .zp-files li:last-child { margin-bottom: 0; }
.zp-popup .zp-box .zp-form .zp-files li label { margin: 0; cursor: pointer; }
.zp-popup .zp-box .zp-form .form-group label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.zp-popup .zp-box .zp-form .form-group label small { margin: 0; }
/* The reCAPTCHA notice is a label inside a small: it is one line of text with links, not a row of flex items. */
.zp-popup .zp-box .zp-form .form-group small label { display: block; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; cursor: auto; }
.zp-popup .zp-box .zp-form .form-group > small { margin-top: 6px; }
.zp-popup .zp-box .zp-form select {
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right 18px center, right 13px center;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
/* The open list is drawn by the browser, on its own light surface. */
.zp-popup .zp-box .zp-form select option { background: white; color: black; }
.zp-popup .zp-box .zp-form input::placeholder, .zp-popup .zp-box .zp-form textarea::placeholder { color: var(--zp-ink-soft); opacity: .8; }
.zp-popup .zp-box .zp-form input:not([type="submit"]):focus, .zp-popup .zp-box .zp-form select:focus, .zp-popup .zp-box .zp-form textarea:focus { border-color: var(--zp-accent); outline: 1px solid var(--zp-accent); outline-offset: 0; }
.zp-popup .zp-box .zp-form button, .zp-popup .zp-box .zp-form input[type="submit"] { display: block; width: 100%; margin-top: 4px; }
.zp-popup .zp-box .zp-form small { display: block; margin-top: 4px; color: var(--zp-ink-soft); font-size: 12px; }
.zp-popup .zp-box .zp-form .alert { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--zp-field-line); border-radius: 0; border-left: 2px solid var(--zp-accent); background: var(--zp-field-bg); color: var(--zp-ink); font-size: 14px; }
.zp-popup .zp-box .zp-form .alert ul { margin: 0; padding-left: 1.1em; list-style: disc; }
/* Sent: the message replaces the form, so nothing looks ready to fill in again. A form with errors keeps its fields. */
.zp-popup.zp-form-sent .zp-box .zp-form form, .zp-popup.zp-form-sent .zp-box .zp-form .zeus-form-anchor { display: none; }
.zp-popup.zp-form-sent .zp-box .zp-form { margin: 0; }
.zp-popup.zp-form-sent .zp-box .zp-form .alert { margin: 0; padding: 14px 0 0; border: 0; border-radius: 0; border-top: 1px solid var(--zp-accent); background: none; color: var(--zp-ink); font-family: var(--zp-heading-font); font-size: calc(20px * var(--zp-scale)); font-weight: 500; line-height: 1.35; text-align: var(--zp-body-align); }

/* ---------- Layouts ---------- */

/* Modal layouts: the overlay is the scroll container and the box is as tall as its content. The box centres while it fits and
   scrolls with the overlay once it doesn't (margin: auto never pushes the top out of reach). Page scroll is locked by the script. */
.zp-popup.zp-layout-centred, .zp-popup.zp-layout-image-top, .zp-popup.zp-layout-image-text, .zp-popup.zp-layout-full-screen {
    display: flex; flex-direction: column;
    padding: 16px;
    overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}
.zp-popup.zp-layout-centred .zp-overlay, .zp-popup.zp-layout-image-top .zp-overlay, .zp-popup.zp-layout-image-text .zp-overlay, .zp-popup.zp-layout-full-screen .zp-overlay { position: fixed; }
.zp-popup.zp-layout-centred .zp-box, .zp-popup.zp-layout-image-top .zp-box, .zp-popup.zp-layout-image-text .zp-box, .zp-popup.zp-layout-full-screen .zp-box {
    position: relative; top: auto; right: auto; bottom: auto; left: auto;
    flex: none; width: 100%; max-height: none; margin: auto;
    overflow: visible; overflow: clip;
}

/* Centred */
.zp-layout-centred .zp-box, .zp-layout-image-top .zp-box { max-width: var(--zp-width); }
.zp-popup.zp-layout-centred .zp-box .zp-image { width: calc(100% - var(--zp-padding) * 2); height: min(210px, 26vh); margin: var(--zp-padding) var(--zp-padding) 0; }

/* Image on top: the photo runs edge to edge */
.zp-popup.zp-layout-image-top .zp-box .zp-image { height: min(270px, 32vh); }

/* Image and text */
.zp-layout-image-text .zp-box { flex-direction: row; max-width: calc(var(--zp-width) + 240px); min-height: min(var(--zp-split-height), 100%); }
.zp-layout-image-text .zp-box:not(:has(.zp-media)) { flex-direction: column; min-height: 0; max-width: var(--zp-width); }
.zp-popup.zp-layout-image-text .zp-box .zp-media { position: relative; flex: 0 0 42%; min-height: 0; overflow: hidden; }
.zp-popup.zp-layout-image-text .zp-box .zp-media .zp-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.zp-popup.zp-layout-image-text .zp-box .zp-media ~ .zp-content { flex: 1 1 0; align-self: center; }

/* Slide-in */
.zp-layout-slide-in.zp-size-small { --zp-width: 340px; }
.zp-layout-slide-in.zp-size-medium { --zp-width: 400px; }
.zp-layout-slide-in.zp-size-large { --zp-width: 480px; }
.zp-layout-slide-in { --zp-frame-at: 8px; }
.zp-layout-slide-in .zp-box { right: 16px; bottom: 16px; width: calc(100% - 32px); max-width: var(--zp-width); max-height: min(660px, calc(100% - 32px)); overflow: hidden; }
.zp-popup.zp-layout-slide-in .zp-box .zp-content, .zp-popup.zp-layout-bar .zp-box .zp-content { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.zp-layout-slide-in.zp-pos-bottom-left .zp-box, .zp-layout-slide-in.zp-pos-top-left .zp-box, .zp-layout-slide-in.zp-pos-left .zp-box { right: auto; left: 16px; }
.zp-layout-slide-in.zp-pos-top-right .zp-box, .zp-layout-slide-in.zp-pos-top-left .zp-box, .zp-layout-slide-in.zp-pos-top .zp-box { top: 16px; bottom: auto; }
.zp-popup.zp-layout-slide-in .zp-box .zp-content { padding: min(var(--zp-padding), 28px); }
.zp-popup.zp-layout-slide-in .zp-box .zp-image { height: min(170px, 24vh); }

/* Bar: one calm line across the page */
.zp-popup.zp-layout-bar .zp-box { right: 0; left: 0; flex-direction: row; gap: 18px; max-height: 70%; overflow: hidden; padding: 14px 60px 14px min(var(--zp-padding), 28px); border-radius: 0; }
.zp-layout-bar.zp-pos-bottom .zp-box { bottom: 0; }
.zp-layout-bar:not(.zp-pos-bottom) .zp-box { top: 0; }
/* A photo runs the bar's full height on its left edge, as a panel rather than a thumbnail. Phones drop it. */
.zp-popup.zp-layout-bar .zp-box .zp-image { position: absolute; top: 0; left: 0; width: 132px; height: 100%; }
.zp-popup.zp-layout-bar .zp-box .zp-image ~ .zp-content { margin-left: 132px; }
/* Words stacked on the left, actions on the right, so long text makes a taller column rather than squeezing beside the heading. */
.zp-popup.zp-layout-bar .zp-box .zp-content { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-content: safe center; align-items: center; gap: 3px 20px; padding: 0; }
.zp-popup.zp-layout-bar .zp-box .zp-logo { grid-column: 1; margin: 0 0 4px; max-height: 32px; }
.zp-popup.zp-layout-bar .zp-box .zp-label { grid-column: 1; margin: 0; padding: 0; font-size: calc(var(--zp-label-set, min(var(--zp-label-size), 11px)) * var(--zp-scale)); }
.zp-popup.zp-layout-bar .zp-box .zp-heading { grid-column: 1; margin: 0; padding: 0; font-size: calc(var(--zp-heading-set, min(var(--zp-heading-size), 20px)) * var(--zp-scale)); line-height: 1.25; }
.zp-popup.zp-layout-bar .zp-box .zp-rule { display: none; }
.zp-popup.zp-layout-bar .zp-box .zp-body { grid-column: 1; margin: 0; font-size: calc(var(--zp-body-set, min(var(--zp-body-size), 15px)) * var(--zp-scale)); line-height: 1.45; }
.zp-popup.zp-layout-bar .zp-box .zp-button { grid-column: 2; grid-row: 1 / span 4; padding: calc(var(--zp-btn-y) * .77) calc(var(--zp-btn-x) * .77); white-space: nowrap; }
.zp-popup.zp-layout-bar .zp-box .zp-second-link { grid-column: 3; grid-row: 1 / span 4; margin: 0; white-space: nowrap; }
.zp-popup.zp-layout-bar .zp-box .zp-close { top: 50%; right: 14px; margin-top: -17px; }
.zp-popup.zp-layout-bar .zp-box .zp-form { grid-column: 1 / -1; margin: 6px 0 0; }
.zp-popup.zp-layout-bar .zp-box .zp-form form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.zp-popup.zp-layout-bar .zp-box .zp-form .slot-wrapper { flex: 1 1 320px; }
.zp-popup.zp-layout-bar .zp-box .zp-form .zeus-form-section-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.zp-popup.zp-layout-bar .zp-box .zp-form .zeus-form-section-fields > div { flex: 1 1 150px; margin: 0; }
.zp-popup.zp-layout-bar .zp-box .zp-form textarea { min-height: 44px; height: 44px; }
.zp-popup.zp-layout-bar .zp-box .zp-form .btn-block { flex: none; }
.zp-popup.zp-layout-bar .zp-box .zp-form button { margin: 0; padding: calc(var(--zp-btn-y) * .85) calc(var(--zp-btn-x) * .85); }

/* Full screen */
.zp-layout-full-screen { --zp-heading-boost: 1.35; --zp-frame-at: 20px; }
.zp-popup.zp-layout-full-screen .zp-box { top: 0; right: 0; bottom: 0; left: 0; flex-direction: row; min-height: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.zp-popup.zp-layout-full-screen { padding: 0; }
/* The photo is as tall as the window and stays put while a taller panel scrolls beside it. */
.zp-popup.zp-layout-full-screen .zp-box .zp-image { position: sticky; top: 0; flex: 0 0 50%; align-self: flex-start; width: 50%; height: 100vh; height: 100dvh; }
.zp-popup.zp-layout-full-screen .zp-box .zp-content { flex: 0 1 calc(var(--zp-width) + var(--zp-padding) * 2); margin: auto; }

@media (max-width: 600px) {
    .zp-popup { --zp-scale: var(--zp-phone-scale); }
    .zp-layout-full-screen { --zp-heading-boost: 1.1; --zp-frame-at: 10px; }
    .zp-popup .zp-box .zp-content { padding: min(var(--zp-padding), 24px); }
    .zp-popup .zp-box .zp-close { top: calc(var(--zp-inset) + 6px); right: calc(var(--zp-inset) + 6px); }

    /* Keep the photo from pushing the words off a phone */
    .zp-popup.zp-layout-centred .zp-box .zp-image { width: calc(100% - min(var(--zp-padding), 24px) * 2); height: min(170px, 22vh); margin: min(var(--zp-padding), 24px) min(var(--zp-padding), 24px) 0; }
    .zp-popup.zp-layout-image-top .zp-box .zp-image { height: min(190px, 24vh); }
    .zp-layout-image-text .zp-box { flex-direction: column; min-height: 0; }
    .zp-popup.zp-layout-image-text .zp-box .zp-media { flex: 0 0 min(180px, 24vh); }
    .zp-popup.zp-layout-image-text .zp-box .zp-media ~ .zp-content { flex: 1 1 auto; align-self: stretch; }
    .zp-popup.zp-layout-slide-in .zp-box .zp-image { height: min(130px, 18vh); }

    .zp-popup.zp-layout-bar .zp-box { gap: 12px; padding: 12px 48px 14px 16px; }
    .zp-popup.zp-layout-bar .zp-box .zp-image { display: none; }
    .zp-popup.zp-layout-bar .zp-box .zp-image ~ .zp-content { margin-left: 0; }
    .zp-popup.zp-layout-bar .zp-box .zp-content { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px 14px; }
    .zp-popup.zp-layout-bar .zp-box .zp-label, .zp-popup.zp-layout-bar .zp-box .zp-heading, .zp-popup.zp-layout-bar .zp-box .zp-body, .zp-popup.zp-layout-bar .zp-box .zp-form { flex: 0 0 100%; }
    .zp-popup.zp-layout-bar .zp-box .zp-close { top: 8px; right: 8px; margin-top: 0; }
    .zp-popup.zp-layout-bar .zp-box .zp-form .slot-wrapper { flex: 1 1 100%; }
    .zp-popup.zp-layout-bar .zp-box .zp-form .zeus-form-section-fields > div { flex: 1 1 100%; }
    .zp-popup.zp-layout-bar .zp-box .zp-form .btn-block { flex: 1 1 100%; }

    .zp-popup.zp-layout-full-screen .zp-box { flex-direction: column; }
    .zp-popup.zp-layout-full-screen .zp-box .zp-image { position: relative; flex: none; align-self: auto; width: 100%; height: 30vh; }
    .zp-popup.zp-layout-full-screen .zp-box .zp-content { flex: 0 1 auto; width: 100%; margin: auto 0; }

    .zp-popup.zp-phone-no-image .zp-box .zp-image, .zp-popup.zp-phone-no-image .zp-box .zp-media, .zp-popup.zp-phone-no-image .zp-box .zp-fade { display: none; }
    .zp-popup.zp-phone-no-image.zp-layout-image-text .zp-box .zp-content { flex: 1 1 auto; align-self: stretch; }
}

/* Full screen with no image: a centred column with big type, so the screen looks intended rather than empty. */
.zp-no-image.zp-layout-full-screen { --zp-heading-boost: 1.9; }
.zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-content { flex-basis: calc(max(var(--zp-width), 720px) + var(--zp-padding) * 2); }
.zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-label { margin-bottom: 20px; padding: 0; }
.zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-heading { margin-bottom: 22px; padding: 0; line-height: 1.08; letter-spacing: -.015em; }
.zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-rule { margin-bottom: 24px; }
.zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-body { margin: 0 auto 32px; max-width: 34em; font-size: calc(var(--zp-body-set, calc(var(--zp-body-size) * 1.2)) * var(--zp-scale)); }
.zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-form { margin-right: auto; margin-left: auto; max-width: 440px; }
@media (max-width: 600px) {
    .zp-no-image.zp-layout-full-screen { --zp-heading-boost: 1.3; }
    .zp-popup.zp-no-image.zp-layout-full-screen .zp-box .zp-content { flex-basis: auto; }
}

/* ---------- Soft editorial: a calm page from a magazine ---------- */
.zp-design-soft-editorial {
    --zp-surface: var(--zp-bg);
    --zp-ink: var(--zp-text);
    --zp-ink-soft: var(--zp-text);
    --zp-label-ink: var(--zp-accent);
    --zp-link-ink: var(--zp-text);
    --zp-field-bg: var(--zp-bg);
    --zp-field-line: var(--zp-text);
    --zp-close-bg: var(--zp-bg);
    --zp-close-ink: var(--zp-text);
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    /* A small line of accent on a pale surface needs a little of the text colour to stay readable. */
    .zp-design-soft-editorial { --zp-label-ink: color-mix(in srgb, var(--zp-accent) 72%, var(--zp-text)); --zp-ink-soft: color-mix(in srgb, var(--zp-text) 82%, var(--zp-bg)); --zp-field-bg: color-mix(in srgb, var(--zp-text) 4%, var(--zp-bg)); --zp-field-line: color-mix(in srgb, var(--zp-text) 30%, var(--zp-bg)); }
}
.zp-popup.zp-design-soft-editorial .zp-box .zp-rule { display: block; margin: 0 0 18px; line-height: 0; text-align: var(--zp-heading-align); }
.zp-popup.zp-design-soft-editorial .zp-box .zp-rule::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--zp-accent); }
.zp-popup.zp-design-soft-editorial.zp-layout-bar .zp-box .zp-rule { display: none; }
.zp-popup.zp-design-soft-editorial.zp-frame:not(.zp-layout-bar) .zp-box .zp-close, .zp-popup.zp-design-full-image.zp-frame:not(.zp-layout-bar) .zp-box .zp-close { top: calc(var(--zp-frame-at) + 6px); right: calc(var(--zp-frame-at) + 6px); }

/* ---------- Solid colour and frame: formal, and complete with no image ---------- */
.zp-design-solid-frame {
    --zp-surface: var(--zp-main);
    --zp-ink: var(--zp-on-main);
    --zp-ink-soft: var(--zp-on-main);
    --zp-label-ink: var(--zp-accent);
    --zp-link-ink: var(--zp-on-main);
    --zp-field-bg: transparent;
    --zp-field-line: var(--zp-on-main);
    --zp-close-bg: var(--zp-main);
    --zp-close-ink: var(--zp-on-main);
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .zp-design-solid-frame {
        --zp-ink-soft: color-mix(in srgb, var(--zp-on-main) 84%, transparent);
        --zp-field-bg: color-mix(in srgb, var(--zp-on-main) 10%, transparent);
        --zp-field-line: color-mix(in srgb, var(--zp-on-main) 38%, transparent);
    }
}
/* Room for the frame, so nothing touches it. With the frame turned off, the content runs to the edge. */
.zp-design-solid-frame.zp-frame { --zp-inset: 16px; }
.zp-design-solid-frame.zp-frame.zp-layout-slide-in { --zp-inset: 14px; }
.zp-design-solid-frame.zp-frame.zp-layout-full-screen { --zp-inset: 28px; }
.zp-popup.zp-design-solid-frame .zp-box .zp-content { padding-top: max(var(--zp-padding), 44px); padding-bottom: max(var(--zp-padding), 32px); }
.zp-popup.zp-design-solid-frame .zp-box .zp-label, .zp-popup.zp-design-solid-frame .zp-box .zp-heading { padding: 0; }
.zp-popup.zp-design-solid-frame .zp-box .zp-body ul, .zp-popup.zp-design-solid-frame .zp-box .zp-body ol { padding: 0; list-style-position: inside; }
.zp-popup.zp-design-solid-frame .zp-box .zp-form { text-align: left; }
.zp-popup.zp-design-solid-frame.zp-layout-centred .zp-box .zp-image { width: 100%; margin: 0; }
.zp-popup.zp-design-solid-frame .zp-box .zp-image + .zp-content, .zp-popup.zp-design-solid-frame .zp-box .zp-image ~ .zp-content { padding-top: 28px; }
.zp-popup.zp-design-solid-frame.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: max(var(--zp-padding), 44px); }
.zp-popup.zp-design-solid-frame.zp-layout-full-screen .zp-box .zp-image { flex-basis: 46%; width: 46%; }

/* The frame sits above everything and never scrolls. */
.zp-frame:not(.zp-layout-bar) .zp-box::after {
    content: "";
    position: absolute; top: var(--zp-frame-at); right: var(--zp-frame-at); bottom: var(--zp-frame-at); left: var(--zp-frame-at); z-index: 4;
    border: 1px solid var(--zp-accent);
    border-radius: max(0px, calc(var(--zp-radius) - var(--zp-frame-at)));
    pointer-events: none;
}
/* No room for a frame on a bar: a thin line on the edge facing the page. */
.zp-popup.zp-frame.zp-layout-bar .zp-box { border-bottom: 2px solid var(--zp-accent); }
.zp-popup.zp-frame.zp-layout-bar.zp-pos-bottom .zp-box { border-top: 2px solid var(--zp-accent); border-bottom: 0; }
.zp-popup.zp-design-solid-frame.zp-layout-bar .zp-box .zp-content { padding: 0; }
.zp-popup.zp-design-solid-frame.zp-layout-bar .zp-box .zp-label, .zp-popup.zp-design-solid-frame.zp-layout-bar .zp-box .zp-heading, .zp-popup.zp-design-solid-frame.zp-layout-bar .zp-box .zp-body { padding: 0; }

/* ---------- Full image: the photo is the popup ---------- */
.zp-design-full-image {
    --zp-surface: var(--zp-main);
    --zp-ink: var(--zp-on-main);
    --zp-ink-soft: var(--zp-on-main);
    --zp-label-ink: var(--zp-accent);
    --zp-link-ink: var(--zp-on-main);
    --zp-field-bg: transparent;
    --zp-field-line: var(--zp-on-main);
    --zp-close-bg: var(--zp-main);
    --zp-close-ink: var(--zp-on-main);
    /* Strength of the colour directly behind the words. Readable with no browser support for colour mixing, then lighter where it is supported. */
    --zp-backing: var(--zp-main);
    --zp-fade-reach: 96px;
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .zp-design-full-image {
        --zp-backing: color-mix(in srgb, var(--zp-main) calc(72% + var(--zp-fade) * .28), transparent);
        --zp-ink-soft: color-mix(in srgb, var(--zp-on-main) 90%, transparent);
        --zp-field-bg: color-mix(in srgb, var(--zp-on-main) 12%, transparent);
        --zp-field-line: color-mix(in srgb, var(--zp-on-main) 50%, transparent);
        --zp-label-ink: color-mix(in srgb, var(--zp-accent) 62%, var(--zp-on-main));
        --zp-close-bg: color-mix(in srgb, var(--zp-main) 70%, transparent);
    }
}

/* The image and the wash fill the box, whatever the layout does with its own image area. */
.zp-popup.zp-design-full-image .zp-box { flex-direction: column; justify-content: flex-end; }
.zp-popup.zp-design-full-image .zp-box .zp-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; flex: none; height: auto; overflow: hidden; }
.zp-popup.zp-design-full-image .zp-box .zp-image { position: absolute; top: 0; left: 0; flex: none; width: 100%; height: 100%; max-height: none; margin: 0; }
.zp-popup.zp-design-full-image .zp-box .zp-fade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, var(--zp-main) 0%, transparent 90%); opacity: var(--zp-fade-opacity); pointer-events: none; }

/* With no circle behind it, the close button still has to show on a pale photo. */
.zp-popup.zp-design-full-image.zp-close-plain .zp-box .zp-close { text-shadow: 0 0 3px var(--zp-main), 0 1px 8px var(--zp-main); }

/* The backing belongs to the text, so it grows with it, and the mask dissolves its top edge. Scrolled text dissolves there too, rather than running over the photo. */
.zp-popup.zp-design-full-image .zp-box .zp-content {
    flex: 0 1 auto;
    width: 100%;
    margin: 0;
    padding-top: calc(var(--zp-fade-reach) + 12px);
    background: var(--zp-backing);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .55) calc(var(--zp-fade-reach) * .5), black var(--zp-fade-reach));
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .55) calc(var(--zp-fade-reach) * .5), black var(--zp-fade-reach));
}
.zp-popup.zp-design-full-image.zp-layout-centred .zp-box, .zp-popup.zp-design-full-image.zp-layout-image-top .zp-box { min-height: min(540px, calc(100% - 32px)); }
.zp-popup.zp-design-full-image.zp-layout-slide-in .zp-box { min-height: min(400px, calc(100% - 32px)); }
.zp-popup.zp-design-full-image.zp-layout-image-text .zp-box { flex-direction: column; }
.zp-popup.zp-design-full-image.zp-layout-image-text .zp-box .zp-media ~ .zp-content { flex: 0 1 auto; align-self: stretch; padding-right: max(var(--zp-padding), 28%); }
.zp-popup.zp-design-full-image.zp-layout-full-screen .zp-box { flex-direction: column; }
.zp-popup.zp-design-full-image.zp-layout-full-screen .zp-box .zp-image { flex: none; width: 100%; height: 100%; }
.zp-popup.zp-design-full-image.zp-layout-full-screen .zp-box .zp-content { flex: 0 1 auto; padding-right: max(var(--zp-padding), calc(50% - var(--zp-width) / 2)); padding-left: max(var(--zp-padding), calc(50% - var(--zp-width) / 2)); padding-bottom: max(var(--zp-padding), 56px); }

/* A strip has no height to fade across: the photo holds the left of the bar and melts into the colour the words sit on. */
.zp-layout-bar.zp-design-full-image { --zp-bar-photo: min(34%, 420px); }
.zp-popup.zp-design-full-image.zp-layout-bar .zp-box { flex-direction: row; justify-content: flex-start; min-height: 96px; padding: 0 0 0 var(--zp-bar-photo); }
.zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-image { width: var(--zp-bar-photo); height: 100%; }
.zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-fade { right: auto; left: calc(var(--zp-bar-photo) - 96px); width: 96px; background: linear-gradient(to left, var(--zp-main), transparent); opacity: 1; }
.zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-content, .zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-image ~ .zp-content { flex: 1 1 auto; width: auto; margin: 0; padding: 16px 60px 16px 24px; background: none; -webkit-mask-image: none; mask-image: none; }

/* Long text or a form: the words get a solid panel and the photo stays clear above or beside them. */
.zp-full-dense { --zp-photo: min(230px, 28vh); --zp-melt: 56px; }
.zp-full-dense.zp-layout-slide-in { --zp-photo: min(150px, 22vh); }
.zp-popup.zp-design-full-image.zp-full-dense:not(.zp-layout-bar) .zp-box { min-height: 0; justify-content: flex-start; }
.zp-popup.zp-design-full-image.zp-full-dense:not(.zp-layout-bar) .zp-box .zp-image { position: relative; height: var(--zp-photo); }
.zp-popup.zp-design-full-image.zp-full-dense:not(.zp-layout-bar) .zp-box .zp-fade { top: calc(var(--zp-photo) - var(--zp-melt)); bottom: auto; height: var(--zp-melt); background: linear-gradient(to top, var(--zp-main), transparent); opacity: 1; }
.zp-popup.zp-design-full-image.zp-full-dense:not(.zp-layout-bar) .zp-box .zp-content { flex: 1 1 auto; min-height: 0; padding: 12px var(--zp-padding) var(--zp-padding); background: var(--zp-main); -webkit-mask-image: none; mask-image: none; }

/* Beside the photo, where the layout has room. */
.zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box { flex-direction: row; height: auto; min-height: min(420px, calc(100% - 32px)); }
.zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-media { position: relative; top: auto; right: auto; bottom: auto; left: auto; flex: 0 0 42%; height: auto; }
.zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-image { position: absolute; height: 100%; }
.zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-fade { top: 0; right: 0; bottom: 0; left: auto; width: var(--zp-melt); height: auto; background: linear-gradient(to left, var(--zp-main), transparent); }
.zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-media ~ .zp-content { flex: 1 1 0; padding: max(var(--zp-padding), 44px) var(--zp-padding) var(--zp-padding); }
.zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box { flex-direction: row; min-height: 100%; }
.zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box .zp-image { flex: 0 0 50%; width: 50%; height: 100%; }
.zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box .zp-fade { top: 0; right: auto; bottom: 0; left: calc(50% - var(--zp-melt)); width: var(--zp-melt); height: auto; background: linear-gradient(to left, var(--zp-main), transparent); }
.zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box .zp-content { flex: 0 1 calc(var(--zp-width) + var(--zp-padding) * 2); margin: auto; padding: var(--zp-padding); }

@media (max-width: 600px) {
    .zp-popup.zp-design-solid-frame.zp-frame:not(.zp-layout-bar) { --zp-inset: 12px; --zp-frame-at: 7px; }
    .zp-popup.zp-design-solid-frame .zp-box .zp-content { padding-top: 40px; padding-bottom: 28px; padding-right: 16px; padding-left: 16px; }
    .zp-popup.zp-design-solid-frame .zp-box .zp-image ~ .zp-content { padding-top: 22px; }
    .zp-popup.zp-design-solid-frame.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: 22px; }
    .zp-popup.zp-design-solid-frame.zp-layout-bar .zp-box .zp-content { padding: 0; }
    .zp-popup.zp-design-solid-frame.zp-layout-full-screen .zp-box .zp-image { flex-basis: auto; width: 100%; }

    .zp-popup.zp-design-full-image.zp-layout-centred .zp-box, .zp-popup.zp-design-full-image.zp-layout-image-top .zp-box, .zp-popup.zp-design-full-image.zp-layout-image-text .zp-box { min-height: min(500px, calc(100% - 32px)); }
    .zp-popup.zp-design-full-image.zp-layout-slide-in .zp-box { min-height: min(340px, calc(100% - 32px)); }
    .zp-popup.zp-design-full-image.zp-layout-image-text .zp-box { height: auto; }
    .zp-popup.zp-design-full-image.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-right: min(var(--zp-padding), 24px); }
    .zp-popup.zp-design-full-image.zp-layout-full-screen .zp-box .zp-content { padding-right: 24px; padding-left: 24px; padding-bottom: 36px; }
    /* A narrow band of photo above the words. */
    .zp-popup.zp-design-full-image.zp-layout-bar .zp-box { flex-direction: column; min-height: 0; padding: 0; }
    .zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-image { display: block; position: relative; flex: none; width: 100%; height: 72px; }
    .zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-fade { top: 32px; bottom: auto; left: 0; width: 100%; height: 40px; background: linear-gradient(to top, var(--zp-main), transparent); }
    .zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-content, .zp-popup.zp-design-full-image.zp-layout-bar .zp-box .zp-image ~ .zp-content { flex: 1 1 auto; padding: 6px 16px 16px; }
    .zp-popup.zp-design-full-image.zp-phone-no-image.zp-layout-bar .zp-box .zp-image { display: none; }
    .zp-popup.zp-design-full-image.zp-phone-no-image.zp-layout-bar .zp-box .zp-content { padding-right: 48px; padding-top: 14px; }

    .zp-full-dense { --zp-photo: min(170px, 24vh); --zp-melt: 40px; }
    .zp-full-dense.zp-layout-slide-in { --zp-photo: min(120px, 18vh); }
    .zp-popup.zp-design-full-image.zp-full-dense:not(.zp-layout-bar) .zp-box .zp-content { padding: 8px min(var(--zp-padding), 24px) min(var(--zp-padding), 24px); }
    .zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box { flex-direction: column; min-height: 0; }
    .zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-media { flex: 0 0 var(--zp-photo); }
    .zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-fade { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: var(--zp-melt); background: linear-gradient(to top, var(--zp-main), transparent); }
    .zp-popup.zp-design-full-image.zp-layout-image-text.zp-full-dense .zp-box .zp-media ~ .zp-content { flex: 1 1 auto; padding: 8px min(var(--zp-padding), 24px) min(var(--zp-padding), 24px); }
    .zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box { flex-direction: column; }
    .zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box .zp-image { flex: none; width: 100%; height: var(--zp-photo); }
    .zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box .zp-fade { top: calc(var(--zp-photo) - var(--zp-melt)); bottom: auto; left: 0; width: 100%; height: var(--zp-melt); background: linear-gradient(to top, var(--zp-main), transparent); }
    .zp-popup.zp-design-full-image.zp-layout-full-screen.zp-full-dense .zp-box .zp-content { flex: 1 1 auto; width: 100%; margin: 0; padding: 8px 24px 28px; }
    /* With the photo switched off on phones, the box is its plain colour and needs no fade room. */
    .zp-popup.zp-design-full-image.zp-phone-no-image .zp-box { min-height: 0; }
    .zp-popup.zp-design-full-image.zp-phone-no-image .zp-box .zp-content { padding-top: 44px; -webkit-mask-image: none; mask-image: none; }
    /* Dense text has its own, smaller top padding: without the photo it would sit under the close button. */
    .zp-popup.zp-design-full-image.zp-phone-no-image.zp-full-dense:not(.zp-layout-bar) .zp-box .zp-content,
    .zp-popup.zp-design-full-image.zp-phone-no-image.zp-layout-image-text.zp-full-dense .zp-box .zp-media ~ .zp-content { padding-top: 44px; }
}

/* ---------- The three newer designs ---------- */
/* Some themes force heading and label colours with !important (Finesse: h1-h6 and label). These designs are new, so no saved popup
   relies on overriding them: they force their own colours too. The older designs leave them as they were, so a saved popup's
   custom CSS still wins there. Body content is never forced, so colours set in the body text editor always win. */
.zp-popup.zp-design-tinted-photo .zp-box .zp-heading, .zp-popup.zp-design-clean-split .zp-box .zp-heading { color: var(--zp-ink) !important; }
.zp-popup.zp-design-tinted-photo .zp-box .zp-form label, .zp-popup.zp-design-clean-split .zp-box .zp-form label,
.zp-popup.zp-design-light-card .zp-box .zp-form label { color: var(--zp-ink) !important; }

/* On the tinted photo and the clean split, a form sits on a light card of the background colour. */
.zp-popup.zp-design-tinted-photo .zp-box .zp-form, .zp-popup.zp-design-clean-split .zp-box .zp-form {
    --zp-ink: var(--zp-text);
    --zp-ink-soft: var(--zp-text);
    --zp-link-ink: var(--zp-text);
    --zp-field-bg: var(--zp-bg);
    --zp-field-line: var(--zp-text);
    padding: 18px 20px;
    border-radius: min(var(--zp-radius), 8px);
    background: var(--zp-bg);
    color: var(--zp-text);
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .zp-popup.zp-design-tinted-photo .zp-box .zp-form, .zp-popup.zp-design-clean-split .zp-box .zp-form { --zp-ink-soft: color-mix(in srgb, var(--zp-text) 82%, var(--zp-bg)); --zp-field-line: color-mix(in srgb, var(--zp-text) 30%, var(--zp-bg)); }
}
.zp-popup.zp-design-tinted-photo.zp-form-sent .zp-box .zp-form, .zp-popup.zp-design-clean-split.zp-form-sent .zp-box .zp-form { padding: 4px 20px 18px; }
.zp-popup.zp-design-tinted-photo.zp-layout-bar .zp-box .zp-form, .zp-popup.zp-design-clean-split.zp-layout-bar .zp-box .zp-form { padding: 10px 12px; }
/* Centred words: no room is kept beside the heading for the close button, which the top padding clears instead. */
.zp-popup.zp-design-tinted-photo .zp-box .zp-label, .zp-popup.zp-design-tinted-photo .zp-box .zp-heading,
.zp-popup.zp-design-clean-split .zp-box .zp-label, .zp-popup.zp-design-clean-split .zp-box .zp-heading { padding-right: 0; }
.zp-popup.zp-design-tinted-photo:not(.zp-layout-bar) .zp-box .zp-content, .zp-popup.zp-design-clean-split.zp-layout-image-text .zp-box .zp-content,
.zp-popup.zp-design-clean-split.zp-no-image .zp-box .zp-content { padding-top: max(var(--zp-padding), 44px); }
.zp-popup.zp-design-tinted-photo.zp-layout-centred .zp-box .zp-image ~ .zp-content, .zp-popup.zp-design-tinted-photo.zp-layout-image-top .zp-box .zp-image ~ .zp-content,
.zp-popup.zp-design-tinted-photo.zp-layout-slide-in .zp-box .zp-image ~ .zp-content { padding-top: 24px; }

/* ---------- Tinted photo: the photo behind everything under a tint, and again as a panel beside the words ---------- */
.zp-design-tinted-photo {
    --zp-surface: var(--zp-main);
    --zp-ink: var(--zp-on-tint);
    --zp-ink-soft: var(--zp-on-tint);
    --zp-label-ink: var(--zp-on-tint);
    --zp-link-ink: var(--zp-on-tint);
    --zp-field-bg: var(--zp-bg);
    --zp-field-line: var(--zp-text);
    --zp-close-bg: var(--zp-bg);
    --zp-close-ink: var(--zp-text);
}
.zp-design-tinted-photo:not(.zp-layout-bar):not(.zp-layout-full-screen) { --zp-inset: 20px; }
.zp-design-tinted-photo.zp-layout-slide-in { --zp-inset: 14px; }
.zp-popup.zp-design-tinted-photo .zp-box .zp-tint { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.zp-popup.zp-design-tinted-photo .zp-box .zp-tint img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--zp-focal); }
.zp-popup.zp-design-tinted-photo .zp-box .zp-tint::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--zp-tint); }
/* The photo panel sits above the tint. */
.zp-popup.zp-design-tinted-photo .zp-box > .zp-image, .zp-popup.zp-design-tinted-photo .zp-box > .zp-media { z-index: 1; }
.zp-popup.zp-design-tinted-photo.zp-layout-centred .zp-box > .zp-image, .zp-popup.zp-design-tinted-photo.zp-layout-image-top .zp-box > .zp-image,
.zp-popup.zp-design-tinted-photo.zp-layout-slide-in .zp-box > .zp-image { position: relative; }
.zp-popup.zp-design-tinted-photo:not(.zp-layout-bar):not(.zp-layout-full-screen) .zp-box .zp-image, .zp-popup.zp-design-tinted-photo .zp-box .zp-media { border-radius: max(2px, calc(var(--zp-radius) - 4px)); }
.zp-popup.zp-design-tinted-photo.zp-layout-centred .zp-box .zp-image { width: 100%; margin: 0; }
.zp-popup.zp-design-tinted-photo .zp-box .zp-label { opacity: .9; }
.zp-popup.zp-design-tinted-photo .zp-box .zp-rule { display: block; margin: 0 0 18px; line-height: 0; text-align: var(--zp-heading-align); }
.zp-popup.zp-design-tinted-photo .zp-box .zp-rule::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--zp-accent); }
.zp-popup.zp-design-tinted-photo.zp-layout-bar .zp-box .zp-rule { display: none; }

/* ---------- Clean split: the photo edge to edge on one side, the main colour on the other ---------- */
.zp-design-clean-split {
    --zp-surface: var(--zp-main);
    --zp-ink: var(--zp-on-main);
    --zp-ink-soft: var(--zp-on-main);
    --zp-label-ink: var(--zp-accent);
    --zp-link-ink: var(--zp-on-main);
    --zp-field-bg: var(--zp-bg);
    --zp-field-line: var(--zp-text);
    --zp-close-bg: var(--zp-main);
    --zp-close-ink: var(--zp-on-main);
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .zp-design-clean-split { --zp-ink-soft: color-mix(in srgb, var(--zp-on-main) 88%, transparent); }
}
.zp-popup.zp-design-clean-split.zp-layout-image-text .zp-box .zp-media { flex-basis: 40%; }
.zp-popup.zp-design-clean-split.zp-layout-centred .zp-box .zp-image { width: 100%; margin: 0; }
.zp-popup.zp-design-clean-split .zp-box .zp-image ~ .zp-content { padding-top: 28px; }
.zp-popup.zp-design-clean-split.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: max(var(--zp-padding), 44px); }

/* ---------- Light card: the photo on top and a light card below ---------- */
.zp-design-light-card {
    --zp-surface: var(--zp-bg);
    --zp-ink: var(--zp-text);
    --zp-ink-soft: var(--zp-text);
    --zp-label-ink: var(--zp-accent);
    --zp-link-ink: var(--zp-text);
    --zp-field-bg: var(--zp-bg);
    --zp-field-line: var(--zp-text);
    --zp-close-bg: var(--zp-bg);
    --zp-close-ink: var(--zp-text);
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .zp-design-light-card { --zp-label-ink: color-mix(in srgb, var(--zp-accent) 72%, var(--zp-text)); --zp-ink-soft: color-mix(in srgb, var(--zp-text) 82%, var(--zp-bg)); --zp-field-bg: color-mix(in srgb, var(--zp-text) 3%, var(--zp-bg)); --zp-field-line: color-mix(in srgb, var(--zp-text) 26%, var(--zp-bg)); }
}
.zp-popup.zp-design-light-card .zp-box .zp-heading { color: var(--zp-heading-ink, var(--zp-ink)) !important; }
.zp-popup.zp-design-light-card.zp-layout-centred .zp-box .zp-image { width: 100%; margin: 0; }
.zp-popup.zp-design-light-card .zp-box .zp-image ~ .zp-content { padding-top: 26px; }

/* ---------- Light split: the photo edge to edge on one side, a clean light panel with cover cards and floating labels on the other ---------- */
.zp-design-light-split {
    --zp-surface: var(--zp-bg);
    --zp-ink: var(--zp-text);
    --zp-ink-soft: var(--zp-text);
    --zp-label-ink: var(--zp-accent);
    --zp-link-ink: var(--zp-text);
    --zp-field-bg: var(--zp-bg);
    --zp-field-line: var(--zp-text);
    --zp-close-bg: var(--zp-bg);
    --zp-close-ink: var(--zp-text);
    /* Card outline, the outline of an unticked badge, a ticked card's wash and the focus halo. Plain values first, softer where mixing works. */
    --zp-ls-card-line: var(--zp-field-line);
    --zp-ls-badge-line: var(--zp-field-line);
    --zp-ls-tint: var(--zp-bg);
    --zp-ls-ring: transparent;
}
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .zp-design-light-split {
        /* The eyebrow leans toward the text colour (as on Light card), so a pale accent still reads. */
        --zp-label-ink: color-mix(in srgb, var(--zp-accent) 72%, var(--zp-text));
        /* Small print (floating labels, privacy line, reCAPTCHA note, "No, thank you"): 84% keeps #555 text at 4.9:1 on white. */
        --zp-ink-soft: color-mix(in srgb, var(--zp-text) 84%, var(--zp-bg));
        /* At least 3:1 against the panel, so a field's edge reads as a control. */
        --zp-field-line: color-mix(in srgb, var(--zp-text) 55%, var(--zp-bg));
        --zp-ls-card-line: color-mix(in srgb, var(--zp-text) 13%, var(--zp-bg));
        --zp-ls-badge-line: color-mix(in srgb, var(--zp-text) 25%, var(--zp-bg));
        --zp-ls-tint: color-mix(in srgb, var(--zp-main) 6%, var(--zp-bg));
        --zp-ls-ring: color-mix(in srgb, var(--zp-main) 15%, transparent);
    }
}
.zp-popup.zp-design-light-split.zp-layout-image-text .zp-box .zp-media { flex-basis: 40%; }
.zp-popup.zp-design-light-split .zp-box .zp-content, .zp-popup.zp-design-light-split.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding: 34px 38px 24px; }
.zp-popup.zp-design-light-split .zp-box .zp-close { top: calc(var(--zp-inset) + 14px); right: calc(var(--zp-inset) + 14px); font-size: 18px; }
/* Some themes strip every shadow with !important (Finesse: * { box-shadow: none !important }); this design's shadows are part of it. */
.zp-popup.zp-design-light-split .zp-box { box-shadow: var(--zp-box-shadow) !important; }
.zp-popup.zp-design-light-split:not(.zp-close-plain) .zp-box .zp-close { box-shadow: 0 2px 8px rgba(0, 0, 0, .15) !important; }

/* Type: a small gold line, a serif heading in the main colour (the text colour if the main colour is too pale to read), muted body text. */
.zp-popup.zp-design-light-split .zp-box .zp-logo { height: 30px; max-height: none; margin: 0 0 18px; }
.zp-popup.zp-design-light-split .zp-box .zp-label { margin: 0 0 10px; font-size: calc(var(--zp-label-set, 11px) * var(--zp-scale)); font-weight: 700; letter-spacing: .18em; }
.zp-popup.zp-design-light-split .zp-box .zp-heading { margin: 0 0 8px; color: var(--zp-heading-ink, var(--zp-main)) !important; font-size: calc(var(--zp-heading-set, 31px) * var(--zp-scale)); line-height: 1.12; letter-spacing: normal; }
/* Themes can force the family on every heading (Finesse: Lato, !important). With no heading font chosen this design is serif;
   a chosen heading font is forced the same way, so the brand's choice still wins over the theme. */
.zp-popup.zp-design-light-split.zp-heading-site .zp-box .zp-heading { font-family: Georgia, "Times New Roman", serif !important; font-weight: 400; }
.zp-popup.zp-design-light-split:not(.zp-heading-site) .zp-box .zp-heading { font-family: var(--zp-heading-font) !important; }
.zp-popup.zp-design-light-split .zp-box .zp-rule { display: none; }
.zp-popup.zp-design-light-split .zp-box .zp-body { margin: 0 0 18px; font-size: calc(var(--zp-body-set, 14px) * var(--zp-scale)); line-height: 1.5; }
.zp-popup.zp-design-light-split .zp-box .zp-form { margin: 0; }

/* Cover cards: the whole card is the checkbox's label. The box itself is hidden but still takes focus, so the ring shows on the card. */
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-cards { margin: 0 0 18px; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-cards ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Up to three covers share one row; four or more go two to a row. */
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-cards ul:has(li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card { display: block; position: relative; margin: 0; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card input[type="checkbox"] { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; opacity: 0; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card label {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%;
    margin: 0; padding: 8px 6px 9px;
    border: 1.5px solid var(--zp-ls-card-line);
    border-radius: 10px;
    background: var(--zp-bg);
    color: var(--zp-ink) !important;
    font-size: calc(12px * var(--zp-scale)); font-weight: 600; line-height: 1.25; text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card label:hover { border-color: var(--zp-main); }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card input:checked + label { border-color: var(--zp-main); background: var(--zp-ls-tint); }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card input:focus-visible + label { outline: 2px solid var(--zp-main); outline-offset: 2px; box-shadow: 0 0 0 5px var(--zp-ls-ring) !important; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card .zp-file-cover { width: 100%; height: 84px; object-fit: contain; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card .zp-file-name { display: block; max-width: 100%; margin-top: 4px; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card-plain label { min-height: 60px; padding-right: 26px; padding-left: 26px; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card .zp-file-badge {
    position: absolute; top: 6px; right: 6px;
    width: 18px; height: 18px;
    border: 1.5px solid var(--zp-ls-badge-line);
    border-radius: 50%;
    background: var(--zp-bg);
}
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card input:checked + label .zp-file-badge { border-color: var(--zp-main); background: var(--zp-main); }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card input:checked + label .zp-file-badge::after {
    content: "";
    position: absolute; top: 2px; left: 4.5px;
    width: 4px; height: 8px;
    border: solid var(--zp-on-main); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Fields: two to a row, each label sitting inside its box until there is something to make room for. */
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float { position: relative; margin: 0; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float:has(textarea) { grid-column: 1 / -1; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float input[type], .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea {
    display: block; width: 100%;
    height: 48px;
    padding: 19px 14px 5px;
    border: 1px solid var(--zp-field-line);
    border-radius: 8px;
    background-color: var(--zp-field-bg);
    color: var(--zp-ink);
    font-size: 14px !important; line-height: 1.3; /* !important: themes force a size on textareas (Finesse: 12px). */
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea { height: auto; min-height: 96px; padding-top: 22px; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float input[type]:focus, .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea:focus { border-color: var(--zp-main); outline: 0; box-shadow: 0 0 0 3px var(--zp-ls-ring) !important; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float label {
    position: absolute; top: 24px; left: 15px; right: 15px;
    margin: 0;
    overflow: hidden;
    color: var(--zp-ink-soft) !important;
    font-size: 14px; font-weight: 400; line-height: 1.1;
    white-space: nowrap; text-overflow: ellipsis;
    transform: translateY(-50%);
    pointer-events: none;
    transition: top .15s ease, font-size .15s ease, transform .15s ease;
}
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea + label { top: 16px; transform: none; }
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float input:focus + label, .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float input:not(:placeholder-shown) + label,
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea:focus + label, .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea:not(:placeholder-shown) + label { top: 7px; font-size: 10.5px; transform: none; }
/* Its own rule: a browser that does not know the autofill selector drops only this one. */
.zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float input:-webkit-autofill + label { top: 7px; font-size: 10.5px; transform: none; }

/* The privacy tick: box first, then the words. The reCAPTCHA notice is quiet small print. */
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group { margin: 2px 0 14px; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group br { display: none; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > label { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 8px; margin: 0; color: var(--zp-ink-soft) !important; font-size: calc(12px * var(--zp-scale)); font-weight: 400; line-height: 1.4; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > label small { margin: 0; color: inherit; font-size: inherit; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > label input[type="checkbox"] { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--zp-main); }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > label input[type="checkbox"]:focus-visible { outline: 2px solid var(--zp-main); }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group a { color: var(--zp-main); text-decoration: underline; text-underline-offset: 2px; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > small { margin-top: 10px; color: var(--zp-ink-soft); font-size: 10.5px; line-height: 1.4; text-align: center; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > small a { color: inherit; }
.zp-popup.zp-design-light-split .zp-box .zp-form .form-group > small label { color: inherit !important; } /* Themes force label colours (Finesse: #333). */

/* The send button runs the full width, its corners following the button shape setting; "No, thank you" sits centred under it. */
.zp-popup.zp-design-light-split .zp-box .zp-form button, .zp-popup.zp-design-light-split .zp-box .zp-form input[type="submit"] { margin-top: 0; padding: 15px; font-size: calc(var(--zp-button-set, 15px) * var(--zp-scale)); font-weight: 600; letter-spacing: .02em; }
/* Themes force their own button colours (Finesse: .btn gold with purple text and a 2px border, all !important); this design's button is the brand button. */
.zp-popup.zp-design-light-split .zp-box .zp-form button, .zp-popup.zp-design-light-split .zp-box .zp-form button:hover, .zp-popup.zp-design-light-split .zp-box .zp-form button:focus, .zp-popup.zp-design-light-split .zp-box .zp-form button:active,
.zp-popup.zp-design-light-split .zp-box .zp-form input[type="submit"], .zp-popup.zp-design-light-split .zp-box .zp-form input[type="submit"]:hover {
    border: 0 !important;
    background-color: var(--zp-button) !important;
    background-image: none !important;
    color: var(--zp-button-text) !important;
}
.zp-popup.zp-design-light-split .zp-box .zp-second-link { display: block; margin: 12px 0 0; padding: 0; color: var(--zp-ink-soft); font-size: calc(13px * var(--zp-scale)); text-align: center; }
.zp-popup.zp-design-light-split .zp-box .zp-second-link:hover { color: var(--zp-ink); opacity: 1; }
.zp-popup.zp-design-light-split .zp-box .zp-second-link:focus-visible { outline: 2px solid var(--zp-main); outline-offset: 2px; }

@media (max-width: 600px) {
    .zp-design-tinted-photo:not(.zp-layout-bar):not(.zp-layout-full-screen) { --zp-inset: 12px; }
    .zp-popup.zp-design-tinted-photo .zp-box .zp-form, .zp-popup.zp-design-clean-split .zp-box .zp-form { padding: 14px; }
    .zp-popup.zp-design-tinted-photo:not(.zp-layout-bar) .zp-box .zp-content { padding-top: 40px; }
    .zp-popup.zp-design-tinted-photo .zp-box .zp-image ~ .zp-content, .zp-popup.zp-design-tinted-photo.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: 20px; }
    .zp-popup.zp-design-clean-split.zp-layout-image-text .zp-box .zp-media { flex-basis: min(180px, 24vh); }
    .zp-popup.zp-design-clean-split.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: 22px; }
    .zp-popup.zp-design-light-card .zp-box .zp-image ~ .zp-content, .zp-popup.zp-design-light-card.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: 20px; }
    /* With the photo off on phones, only the tinted background shows; the words clear the close button. */
    .zp-popup.zp-design-tinted-photo.zp-phone-no-image:not(.zp-layout-bar) .zp-box .zp-content,
    .zp-popup.zp-design-tinted-photo.zp-phone-no-image.zp-layout-image-text .zp-box .zp-media ~ .zp-content,
    .zp-popup.zp-design-clean-split.zp-phone-no-image.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: 44px; }
    /* Light split: a 150px strip of photo on top (or none, with the phone image off), cards two to a row, fields one to a row. */
    .zp-popup.zp-design-light-split.zp-layout-image-text .zp-box .zp-media { flex-basis: 150px; }
    .zp-popup.zp-design-light-split.zp-phone-no-image .zp-box .zp-media { display: none; }
    .zp-popup.zp-design-light-split .zp-box .zp-content, .zp-popup.zp-design-light-split.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding: 28px 22px 20px; }
    .zp-popup.zp-design-light-split .zp-box .zp-close { top: calc(var(--zp-inset) + 10px); right: calc(var(--zp-inset) + 10px); }
    /* With no photo strip the logo would sit under the close button. */
    .zp-popup.zp-design-light-split.zp-phone-no-image .zp-box .zp-content, .zp-popup.zp-design-light-split.zp-phone-no-image.zp-layout-image-text .zp-box .zp-media ~ .zp-content { padding-top: 44px; }
    .zp-popup.zp-design-light-split .zp-box .zp-logo { height: 26px; margin-bottom: 16px; }
    .zp-popup.zp-design-light-split .zp-box .zp-heading { font-size: calc(var(--zp-heading-set, 26px) * var(--zp-scale)); }
    .zp-popup.zp-design-light-split .zp-box .zp-body { font-size: calc(var(--zp-body-set, 13.5px) * var(--zp-scale)); }
    /* Three covers fit one row, as designed; four or more go two to a row, so four make a tidy square. */
    .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-cards ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-cards ul:has(li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* A narrow card without a cover keeps its words clear of the badge by starting below it, not beside it. */
    .zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card-plain label { padding: 24px 6px 9px; }
    .zp-popup.zp-design-light-split .zp-box .zp-form .zp-file-card .zp-file-cover { height: 64px; }
    .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    /* Below 16px iOS zooms the page on focus. */
    .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float input[type], .zp-popup.zp-design-light-split .zp-box .zp-form .zp-files-field.zp-float textarea { font-size: 16px !important; }
}

/* ---------- Motion (the script adds .zp-open when it shows the popup) ---------- */
.zp-popup .zp-overlay { opacity: 0; transition: opacity var(--zp-speed) ease; }
.zp-popup.zp-open .zp-overlay { opacity: 1; }
.zp-popup .zp-box { opacity: 0; transition: opacity var(--zp-speed) ease, transform var(--zp-speed) cubic-bezier(.22, .61, .36, 1); }
.zp-popup.zp-open .zp-box { opacity: 1; }
.zp-anim-slide .zp-box { transform: translateY(32px); }
.zp-anim-slide.zp-open .zp-box { transform: none; }
.zp-anim-slide.zp-pos-top-right .zp-box, .zp-anim-slide.zp-pos-top-left .zp-box, .zp-anim-slide.zp-pos-top .zp-box, .zp-anim-slide.zp-layout-bar:not(.zp-pos-bottom) .zp-box { transform: translateY(-32px); }
.zp-anim-slide.zp-open.zp-pos-top-right .zp-box, .zp-anim-slide.zp-open.zp-pos-top-left .zp-box, .zp-anim-slide.zp-open.zp-pos-top .zp-box, .zp-anim-slide.zp-open.zp-layout-bar:not(.zp-pos-bottom) .zp-box { transform: none; }
.zp-anim-none .zp-overlay, .zp-anim-none .zp-box { transition: none; }

@media (prefers-reduced-motion: reduce) {
    .zp-popup .zp-overlay, .zp-popup .zp-box { transition: none !important; animation: none !important; }
}
