/*
 * Popup frame. The two plugin controls (close button, CTA) are reset with `all: unset` and
 * key properties are !important, because themes (e.g. Avada) style every button/link globally,
 * often with !important and high-specificity selectors. Editor content inside the popup keeps
 * the theme's styling on purpose.
 */
.cvsp-root[hidden]{display:none!important}
.cvsp-root{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.cvsp-root *{box-sizing:border-box}
.cvsp-backdrop{position:absolute;inset:0;background:var(--cvsp-overlay,#000);opacity:var(--cvsp-opacity,.65);backdrop-filter:blur(var(--cvsp-blur,0px));-webkit-backdrop-filter:blur(var(--cvsp-blur,0px))}
.cvsp-root .cvsp-dialog{position:relative;z-index:1;width:min(var(--cvsp-width,600px),100%);max-height:calc(100dvh - 48px);overflow:auto;border-radius:12px;background:#fff;box-shadow:0 18px 65px rgba(0,0,0,.25);color:#222}
/* The dialog only receives focus so screen readers start inside it; it needs no visible ring. */
.cvsp-root .cvsp-dialog:focus,.cvsp-root .cvsp-dialog:focus-visible{outline:none!important;box-shadow:0 18px 65px rgba(0,0,0,.25)!important}
.cvsp-root .cvsp-dialog :focus-visible{outline:3px solid #bf0039;outline-offset:2px}

/* Close button */
.cvsp-root .cvsp-dialog .cvsp-close{all:unset;box-sizing:border-box!important;position:absolute!important;top:12px!important;right:12px!important;z-index:5!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.92)!important;color:#2b2b2b!important;box-shadow:0 1px 4px rgba(0,0,0,.16)!important;cursor:pointer!important;transition:background-color .15s,color .15s}
.cvsp-root .cvsp-dialog .cvsp-close:hover{background:#ececec!important;color:#000!important}
.cvsp-root .cvsp-dialog .cvsp-close:focus-visible{outline:3px solid #bf0039!important;outline-offset:2px!important}
.cvsp-root .cvsp-dialog .cvsp-close svg{display:block!important;width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;pointer-events:none}

/* Call-to-action button; colors come from the campaign via --cvsp-cta-bg / --cvsp-cta-fg. */
.cvsp-root .cvsp-dialog a.cvsp-cta,.cvsp-root .cvsp-dialog a.cvsp-cta:visited{all:unset;box-sizing:border-box!important;display:inline-block!important;margin:18px 0 0!important;padding:12px 22px!important;border:0!important;border-radius:6px!important;background:var(--cvsp-cta-bg,#bf0039)!important;color:var(--cvsp-cta-fg,#fff)!important;font-family:inherit!important;font-size:16px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:normal!important;text-align:center!important;text-transform:none!important;text-decoration:none!important;text-shadow:none!important;box-shadow:none!important;cursor:pointer!important;transition:filter .15s}
.cvsp-root .cvsp-dialog a.cvsp-cta:hover,.cvsp-root .cvsp-dialog a.cvsp-cta:active{background:var(--cvsp-cta-bg,#bf0039)!important;color:var(--cvsp-cta-fg,#fff)!important;filter:brightness(.88)}
.cvsp-root .cvsp-dialog a.cvsp-cta:focus-visible{outline:3px solid var(--cvsp-cta-bg,#bf0039)!important;outline-offset:3px!important}
.cvsp-root .cvsp-dialog .cvsp-image-only a.cvsp-cta{margin:16px!important}

/* Layouts */
.cvsp-copy{padding:32px 60px 32px 32px}
.cvsp-content img{max-width:100%;height:auto}
.cvsp-art{display:block;width:100%;object-fit:cover}
.cvsp-image-text{min-height:280px;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center}
.cvsp-over-image{width:100%;padding:36px;color:white;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.24));text-shadow:0 1px 3px #222}
.cvsp-split{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
.cvsp-split .cvsp-art{height:100%;min-height:250px}
.cvsp-split .cvsp-copy{padding:32px}

/* Animations */
.cvsp-anim-fade{animation:cvspFade .25s ease-out}
.cvsp-anim-slide{animation:cvspSlide .3s ease-out}
.cvsp-anim-zoom{animation:cvspZoom .3s ease-out}
@keyframes cvspFade{from{opacity:0}to{opacity:1}}
@keyframes cvspSlide{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:translateY(0)}}
@keyframes cvspZoom{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}

@media(max-width:767px){.cvsp-root{padding:12px}.cvsp-root .cvsp-dialog{max-height:calc(100dvh - 24px)}.cvsp-copy{padding:24px 56px 24px 24px}.cvsp-split{grid-template-columns:1fr}.cvsp-split .cvsp-art{max-height:200px;min-height:0}.cvsp-split .cvsp-copy{padding:24px}.cvsp-over-image{padding:28px}}
@media(prefers-reduced-motion:reduce){.cvsp-root .cvsp-dialog{animation:none!important}.cvsp-root .cvsp-dialog .cvsp-close,.cvsp-root .cvsp-dialog a.cvsp-cta{transition:none!important}}
