/* Popups (v1.16) */
.wmpb-pop{position:fixed;z-index:99990;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:none}
.wmpb-pop[hidden]{display:none!important}
.wmpb-pop-back{position:absolute;inset:0;background:rgba(15,18,25,.6);opacity:0;transition:opacity .2s ease;pointer-events:auto}
.wmpb-pop-box{position:relative;pointer-events:auto;width:100%;max-height:calc(100vh - 32px);overflow:auto;background:var(--wp--preset--color--paper,#fff);color:var(--wp--preset--color--ink,#1d1f24);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);transform:translateY(14px) scale(.98);opacity:0;transition:transform .22s ease,opacity .22s ease;overscroll-behavior:contain}
.wmpb-pop.is-open .wmpb-pop-back{opacity:1}
.wmpb-pop.is-open .wmpb-pop-box{transform:none;opacity:1}
.wmpb-pop--sm .wmpb-pop-box{max-width:440px}
.wmpb-pop--md .wmpb-pop-box{max-width:640px}
.wmpb-pop--lg .wmpb-pop-box{max-width:920px}
.wmpb-pop-x{position:absolute;top:10px;right:10px;z-index:3;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#1d1f24;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.wmpb-pop-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.wmpb-pop-x:focus-visible{outline:3px solid var(--wp--preset--color--accent,#2563eb);outline-offset:2px}
.wmpb-pop-body .wmpb-section{padding-top:clamp(1.5rem,4vw,2.5rem)!important;padding-bottom:clamp(1.5rem,4vw,2.5rem)!important;margin:0!important}
.wmpb-pop-body > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}
/* Bar across the top */
.wmpb-pop--bar{inset:0 0 auto 0;padding:0;align-items:flex-start}
.wmpb-pop--bar .wmpb-pop-box{max-width:none;border-radius:0;transform:translateY(-100%);box-shadow:0 6px 20px rgba(0,0,0,.15);max-height:none}
.wmpb-pop--bar .wmpb-pop-body .wmpb-section{padding-top:.75rem!important;padding-bottom:.75rem!important}
.wmpb-pop--bar .wmpb-pop-body p{margin:0}
.wmpb-pop--bar .wmpb-pop-x{top:50%;transform:translateY(-50%);width:32px;height:32px;box-shadow:none;background:transparent}
/* Card in the bottom corner */
.wmpb-pop--corner{inset:auto 16px 16px auto;padding:0;width:min(400px,calc(100vw - 32px))}
.wmpb-pop--corner .wmpb-pop-box{max-width:none;max-height:70vh}
html.wmpb-pop-lock{overflow:hidden}
@media (max-width:600px){.wmpb-pop--corner{inset:auto 8px 8px 8px;width:auto}}
@media (prefers-reduced-motion:reduce){.wmpb-pop-box,.wmpb-pop-back{transition:none}}
