.popup-editor-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.popup-editor-intro .status-pill{margin-left:5px}.popup-editor-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(350px,.72fr);align-items:start;gap:22px}.popup-editor-main,.popup-editor-side{display:grid;gap:20px}.popup-editor-side{position:sticky;top:20px}.popup-editor-section{padding:28px}.popup-section-heading,.popup-preview-heading{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:20px}.popup-section-heading>div>span,.popup-preview-heading span{display:block;margin-bottom:4px;color:var(--theme-primary,#087f70);font-size:.63rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.popup-section-heading h2,.popup-preview-heading h2{margin:0;font-size:1.15rem}.popup-section-heading>p{max-width:290px;margin:2px 0 0;color:var(--theme-muted,#71858b);font-size:.72rem;text-align:right}.popup-section-heading.compact{margin-bottom:16px}.popup-subsection{margin-top:25px;padding-top:21px;border-top:1px solid var(--theme-border,var(--line))}.popup-subsection h3{margin:0;font-size:.93rem}.popup-subsection>div:first-child>p{margin:4px 0 2px;color:var(--theme-muted,#76898e);font-size:.7rem}
.popup-message-editor .terms-editor-surface{min-height:220px;max-height:380px}.popup-message-editor .terms-editor-toolbar{gap:5px}.popup-message-editor .terms-editor-toolbar .btn{font-size:.68rem}.popup-message-editor .col-12>.form-label{margin-top:0}
.popup-option-fieldset{margin:0 0 22px;padding:0;border:0}.popup-option-fieldset legend{margin-bottom:10px;font-size:.78rem;font-weight:750}.popup-tone-options{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.popup-tone-option,.popup-skin-option{position:relative;cursor:pointer}.popup-tone-option input,.popup-skin-option input{position:absolute;opacity:0;pointer-events:none}.popup-tone-option>span{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--theme-border,#dfe8e6);border-radius:11px;background:var(--theme-surface,#fff);transition:.18s ease}.popup-tone-option b{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--theme-hero,#e7f2fb);color:var(--theme-primary,#17658c)}.popup-tone-neutral b{background:var(--theme-hero,#edf1f1);color:var(--theme-primary,#596a70)}.popup-tone-success b{background:#e4f6ec;color:#087f70}.popup-tone-warning b{background:#fff3d6;color:#8a6111}.popup-tone-danger b{background:#fae9e9;color:#a33131}.popup-tone-option strong{font-size:.7rem}.popup-tone-option input:checked+span{border-color:var(--theme-primary,#087f70);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary,#087f70) 10%,transparent)}.popup-tone-option input:focus-visible+span,.popup-skin-option input:focus-visible+.skin-swatch{outline:3px solid color-mix(in srgb,var(--theme-primary,#5b9cff) 48%,transparent);outline-offset:2px}
.popup-skin-options{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.popup-skin-option{display:grid;gap:7px;text-align:center}.popup-skin-option>strong{font-size:.67rem}.skin-swatch{display:grid;grid-template-columns:8px 1fr;grid-template-rows:10px 1fr 8px;gap:4px;height:62px;padding:7px;border:2px solid transparent;border-radius:11px;background:var(--theme-surface,#fff);box-shadow:inset 0 0 0 1px var(--theme-border,#dfe7e5)}.skin-swatch i{grid-row:1/-1;border-radius:3px;background:var(--theme-primary,#2b829e)}.skin-swatch b,.skin-swatch em{border-radius:3px;background:var(--theme-border,#dce8e7)}.skin-swatch em{width:60%;background:var(--theme-surface-muted,#edf3f2)}.skin-swatch-gradient{background:linear-gradient(140deg,var(--theme-primary-hover,#17658c),var(--theme-primary,#0b8879))}.skin-swatch-gradient b,.skin-swatch-gradient em{background:#ffffff7d}.skin-swatch-glass{background:linear-gradient(140deg,var(--theme-hero,#d8f1ef),color-mix(in srgb,var(--theme-accent,#e8e1f7) 22%,var(--theme-surface,#fff)))}.skin-swatch-glass b,.skin-swatch-glass em{background:#ffffffbc}.skin-swatch-minimal{box-shadow:inset 4px 0 var(--theme-primary,#2b829e),inset 0 0 0 1px var(--theme-border,#dfe7e5)}.skin-swatch-bold{grid-template-columns:1fr;grid-template-rows:20px 1fr 8px;padding:0 7px 7px;overflow:hidden}.skin-swatch-bold i{grid-row:auto;margin:0 -7px;border-radius:0;background:var(--theme-primary,#2b829e)}.popup-skin-option input:checked+.skin-swatch{border-color:var(--theme-primary,#087f70);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary,#087f70) 10%,transparent)}
.popup-switch{display:flex;align-items:center;gap:10px;width:max-content;cursor:pointer}.popup-switch input{position:absolute;opacity:0}.popup-switch>span{position:relative;width:38px;height:22px;border-radius:999px;background:var(--theme-border,#c9d5d2);transition:.2s}.popup-switch>span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--theme-surface,#fff);box-shadow:0 1px 4px #18363033;transition:.2s}.popup-switch input:checked+span{background:var(--theme-primary,#087f70)}.popup-switch input:checked+span:after{transform:translateX(16px)}.popup-switch input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--theme-primary,#5b9cff) 48%,transparent);outline-offset:2px}.popup-switch strong{font-size:.75rem}
.popup-preview-card{padding:20px}.popup-preview-heading{align-items:center;margin-bottom:14px}.popup-preview-heading small{padding:5px 8px;border-radius:999px;background:var(--theme-hero,#e8f4ef);color:var(--theme-primary,#087f70);font-size:.58rem;font-weight:800;text-transform:uppercase}.popup-preview-stage{display:flex;align-items:center;justify-content:center;min-height:315px;padding:18px;border:1px dashed var(--theme-border,#cbded9);border-radius:14px;background:radial-gradient(circle at top right,var(--theme-hero,#dff3ec),var(--theme-page,#eff4f3) 60%)}.popup-preview{--popup-tone:var(--theme-primary,#17658c);--popup-soft:var(--theme-hero,#e7f2fb);width:100%;overflow:hidden;border:1px solid var(--theme-border,#ffffff80);border-radius:16px;background:var(--theme-surface,#fff);color:var(--theme-text,#203d45);font-family:var(--theme-font-body,inherit);box-shadow:0 16px 38px #183b3330}.popup-preview .customer-popup-accent{height:5px;background:var(--popup-tone)}.popup-preview header{display:flex;align-items:flex-start;gap:10px;padding:16px 16px 8px}.popup-preview header>div:nth-child(2){min-width:0;flex:1}.popup-preview h3{margin:2px 0 0;color:var(--theme-text,#203d45);font-family:var(--theme-font-heading,inherit);font-size:.9rem;font-weight:var(--theme-heading-weight,750)}.popup-preview-message{padding:7px 16px 15px;color:var(--theme-muted,#587077);font-size:.67rem;line-height:1.55;white-space:pre-line}.popup-preview footer{display:flex;justify-content:flex-end;gap:6px;padding:10px 16px 14px;background:var(--theme-surface-muted,#f8faf9)}.popup-preview footer .btn{padding:.4rem .65rem;font-size:.62rem}.popup-preview.popup-size-compact{max-width:290px}.popup-preview.popup-size-standard{max-width:350px}.popup-preview.popup-size-large{max-width:410px}
.popup-scope-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.popup-scope-options label{position:relative;cursor:pointer}.popup-scope-options input{position:absolute;opacity:0}.popup-scope-options span{display:block;height:100%;padding:12px;border:1px solid var(--theme-border,#dce6e4);border-radius:10px;background:var(--theme-surface,#fff)}.popup-scope-options strong,.popup-scope-options small{display:block}.popup-scope-options strong{font-size:.72rem}.popup-scope-options small{margin-top:3px;color:var(--theme-muted,#7a8c91);font-size:.6rem}.popup-scope-options input:checked+span{border-color:var(--theme-primary,#087f70);background:var(--theme-hero,#edf8f3);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-primary,#087f70) 8%,transparent)}.popup-scope-options input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--theme-primary,#5b9cff) 48%,transparent);outline-offset:2px}.popup-page-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-height:310px;overflow:auto;padding:14px;border:1px solid var(--theme-border,var(--line));border-radius:10px;background:var(--theme-surface-muted,#f8faf9)}.popup-page-picker fieldset{display:grid;align-content:start;gap:9px;min-width:0;margin:0;padding:0;border:0}.popup-page-picker fieldset[hidden]{display:none!important}.popup-page-picker legend{margin:0 0 2px;color:var(--theme-muted,#60757b);font-size:.65rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.popup-save-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:10px}.notification-style-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:.7rem;font-weight:750}.notification-style-neutral,.notification-style-info{background:var(--theme-hero,#e7f2fb);color:var(--theme-primary,#17658c)}.notification-style-success{background:#e4f6ec;color:#087f70}.notification-style-warning{background:#fff3d6;color:#8a6111}.notification-style-danger{background:#fae9e9;color:#a33131}
.customer-popup-neutral,.popup-preview.customer-popup-neutral,.customer-popup-info,.popup-preview.customer-popup-info{--popup-tone:var(--theme-primary,#17658c);--popup-tone-dark:var(--theme-primary-hover,#104e70);--popup-soft:var(--theme-hero,#e7f2fb)}.customer-popup-success,.popup-preview.customer-popup-success{--popup-tone:#087f70;--popup-tone-dark:#056357;--popup-soft:#e4f6ec}.customer-popup-warning,.popup-preview.customer-popup-warning{--popup-tone:#c58412;--popup-tone-dark:#8a5a08;--popup-soft:#fff3d6}.customer-popup-danger,.popup-preview.customer-popup-danger{--popup-tone:#bd3f48;--popup-tone-dark:#8f2932;--popup-soft:#fae9e9}
.customer-popup .modal-content{overflow:hidden;border:1px solid var(--theme-border,#ffffff80);border-radius:22px;background:var(--theme-surface,#fff);color:var(--theme-text,#203d45);font-family:var(--theme-font-body,inherit);box-shadow:0 28px 90px #102d3547}.customer-popup-accent{height:7px;background:var(--popup-tone)}.customer-popup .modal-header{align-items:flex-start;gap:14px;padding:26px 27px 12px;border:0}.customer-popup .modal-header>div:not(.customer-popup-icon){min-width:0;flex:1}.customer-popup-icon{display:grid;flex:0 0 44px;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--popup-soft);color:var(--popup-tone);font-size:1.1rem;font-weight:850}.customer-popup-label{display:block;margin-bottom:4px;color:var(--popup-tone);font-size:.64rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.customer-popup .modal-title{margin:0;color:var(--theme-text,#203d45);font-family:var(--theme-font-heading,inherit);font-size:1.3rem;font-weight:var(--theme-heading-weight,750);line-height:1.3}.customer-popup .modal-body{padding:10px 27px 21px}.customer-popup .modal-body,.customer-popup .modal-body p,.customer-popup .modal-body li{color:var(--theme-muted,#566f76);font-size:.86rem;line-height:1.75;overflow-wrap:anywhere}.customer-popup .modal-body p:last-child,.customer-popup .modal-body ul:last-child,.customer-popup .modal-body ol:last-child{margin-bottom:0}.customer-popup .modal-body h2,.customer-popup .modal-body h3,.customer-popup .modal-body h4{margin:0 0 8px;color:var(--theme-text,inherit);font-family:var(--theme-font-heading,inherit);font-size:1rem}.customer-popup .modal-body a{color:var(--popup-tone);font-weight:700}.customer-popup .modal-footer{padding:17px 27px 25px;border:0;background:var(--theme-surface-muted,#f8faf9)}.customer-popup .modal-footer .btn{min-width:108px}.customer-popup .btn-primary{--bs-btn-bg:var(--popup-tone);--bs-btn-border-color:var(--popup-tone);--bs-btn-hover-bg:var(--popup-tone-dark);--bs-btn-hover-border-color:var(--popup-tone-dark)}.customer-popup .btn-outline-primary{--bs-btn-color:var(--popup-tone);--bs-btn-border-color:var(--popup-tone);--bs-btn-hover-bg:var(--popup-tone);--bs-btn-hover-border-color:var(--popup-tone)}
.popup-skin-gradient .modal-content,.popup-preview.popup-skin-gradient{border:0;background:linear-gradient(145deg,var(--popup-tone-dark),var(--popup-tone));color:#fff}.popup-skin-gradient .customer-popup-accent{background:#ffffff55}.popup-skin-gradient .customer-popup-icon{background:#ffffff20;color:#fff}.popup-skin-gradient .customer-popup-label,.popup-skin-gradient .modal-title,.popup-skin-gradient .modal-body,.popup-skin-gradient .modal-body p,.popup-skin-gradient .modal-body li,.popup-preview.popup-skin-gradient .customer-popup-label,.popup-preview.popup-skin-gradient h3,.popup-preview.popup-skin-gradient .popup-preview-message{color:#fff}.popup-skin-gradient .modal-body a{color:#fff}.popup-skin-gradient .modal-footer,.popup-preview.popup-skin-gradient footer{background:#061d1d24}.popup-skin-gradient .btn-primary,.popup-preview.popup-skin-gradient .btn-primary{background:#fff!important;border-color:#fff!important;color:var(--popup-tone-dark)!important}.popup-skin-gradient .btn-light,.popup-preview.popup-skin-gradient .btn-light{border-color:#ffffff55;background:#ffffff17;color:#fff}
.popup-skin-glass .modal-content,.popup-preview.popup-skin-glass{border:1px solid color-mix(in srgb,var(--theme-border,#fff) 55%,#fff);background:color-mix(in srgb,var(--theme-surface,#f8ffff) 86%,transparent);box-shadow:0 28px 90px #102d3540;backdrop-filter:blur(18px)}.popup-skin-glass .customer-popup-accent{height:4px}.popup-skin-glass .modal-footer,.popup-preview.popup-skin-glass footer{background:color-mix(in srgb,var(--theme-surface-muted,#fff) 70%,transparent)}
.popup-skin-minimal .modal-content,.popup-preview.popup-skin-minimal{border:0;border-left:6px solid var(--popup-tone);border-radius:8px}.popup-skin-minimal .customer-popup-accent{display:none}.popup-skin-minimal .customer-popup-icon{border-radius:50%}.popup-skin-minimal .modal-footer,.popup-preview.popup-skin-minimal footer{background:var(--theme-surface,#fff)}
.popup-skin-bold .modal-content,.popup-preview.popup-skin-bold{border:0}.popup-skin-bold .customer-popup-accent{height:12px}.popup-skin-bold .modal-header,.popup-preview.popup-skin-bold header{background:var(--popup-tone);color:#fff}.popup-skin-bold .modal-header{padding-top:24px;padding-bottom:22px}.popup-skin-bold .customer-popup-icon{background:#ffffff22;color:#fff}.popup-skin-bold .customer-popup-label,.popup-skin-bold .modal-title,.popup-preview.popup-skin-bold .customer-popup-label,.popup-preview.popup-skin-bold h3{color:#fff}.popup-skin-bold .btn-close{filter:brightness(0) invert(1)}
.popup-size-compact .modal-dialog{max-width:420px}.popup-size-compact .modal-header{padding:21px 22px 10px}.popup-size-compact .modal-body{padding:8px 22px 17px}.popup-size-compact .modal-footer{padding:14px 22px 20px}.popup-size-standard .modal-dialog{max-width:560px}.popup-size-large .modal-dialog{max-width:720px}.popup-size-large .modal-title{font-size:1.55rem}.popup-size-large .modal-body,.popup-size-large .modal-body p,.popup-size-large .modal-body li{font-size:.94rem}
.popup-position-center .modal-dialog{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin)*2)}.popup-position-top .modal-dialog{margin-top:clamp(20px,7vh,80px)}.popup-position-bottom .modal-dialog{display:flex;align-items:flex-end;min-height:calc(100% - var(--bs-modal-margin)*2)}.popup-animation-zoom.fade .modal-dialog{transform:scale(.88)}.popup-animation-zoom.show .modal-dialog{transform:none}.popup-animation-slide.fade .modal-dialog{transform:translateY(70px)}.popup-animation-slide.show .modal-dialog{transform:none}
@media(max-width:1199px){.popup-editor-grid{grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr)}.popup-tone-options{grid-template-columns:repeat(2,1fr)}.popup-skin-options{grid-template-columns:repeat(3,1fr)}}
@media(max-width:991px){.popup-editor-grid{grid-template-columns:1fr}.popup-editor-side{position:static}.popup-skin-options{grid-template-columns:repeat(5,1fr)}}
@media(max-width:650px){.popup-editor-intro{align-items:stretch;flex-direction:column}.popup-editor-section{padding:19px}.popup-section-heading{display:block}.popup-section-heading>p{margin-top:6px;text-align:left}.popup-tone-options{grid-template-columns:1fr 1fr}.popup-skin-options{grid-template-columns:repeat(3,1fr)}.popup-page-picker{grid-template-columns:1fr}.popup-save-actions{grid-template-columns:1fr}.customer-popup .modal-header{padding:21px 18px 10px}.customer-popup .modal-body{padding:8px 18px 18px}.customer-popup .modal-footer{padding:14px 18px 20px}.customer-popup .modal-footer .btn{width:100%}.popup-position-top .modal-dialog{margin-top:12px}.popup-position-bottom .modal-dialog{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.customer-popup .modal-dialog{transform:none!important}}
.popup-preview-stage.preview-position-top{align-items:flex-start}.popup-preview-stage.preview-position-bottom{align-items:flex-end}
.popup-preview [hidden]{display:none!important}
.popup-editor-main .popup-preview-stage{min-height:390px}.popup-editor-main .popup-preview.popup-size-compact{max-width:390px}.popup-editor-main .popup-preview.popup-size-standard{max-width:540px}.popup-editor-main .popup-preview.popup-size-large{max-width:680px}
