.gr-promo-frame{position:relative}
.gr-promo{
  --promo-width:min(800px,calc(100vw - 38px));
  --promo-height:min(450px,calc(100dvh - 42px));
  position:fixed;inset:0;box-sizing:border-box;
  width:max-content;max-width:var(--promo-width);max-height:calc(100dvh - 36px);margin:auto;padding:0;border:0;
  color:#152238;background:none;overflow:visible;
}
.gr-promo:has(.gr-promo-art[hidden]){width:min(490px,calc(100vw - 38px))}
.gr-promo[open]{animation:popup-enter .2s ease-out}
body:has(.gr-promo[open]){overflow:hidden}
.gr-promo::backdrop{background:#101827b3;backdrop-filter:blur(7px)}
@keyframes popup-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.gr-promo-card{
  display:grid;position:relative;isolation:isolate;overflow:hidden;border-radius:16px;
  background:#f5f8fe;color:#152238;text-decoration:none;box-shadow:0 24px 70px #08142766;
}
.gr-promo-card:has(.gr-promo-art:not([hidden])){background:transparent}
.gr-promo-art{display:block}
.gr-promo-art>.gr-promo-image{
  display:block;width:auto;height:auto;max-width:var(--promo-width,100%);
  max-height:var(--promo-height,240px);margin:0;object-fit:contain;
}
.gr-promo-close{
  position:absolute;top:-10px;right:-10px;z-index:2;display:grid;place-items:center;
  width:46px;height:46px;padding:0;border:1px solid #dce3ed;border-radius:50%;
  background:#fff;color:#131e30;box-shadow:none;
}
button.gr-promo-close{cursor:pointer}
.gr-promo-close .ui-icon{width:23px;height:23px}
.gr-promo-action{
  display:flex;align-items:center;justify-content:center;gap:.6em;
  width:max-content;max-width:calc(100% - 26px);min-height:42px;padding:8px 17px;
  margin:0 auto 24px;border:1px solid #ffffff75;border-radius:10px;
  background:#104ec0;color:white;box-shadow:0 4px 16px #102b6d40;
  font-size:clamp(.8rem,1.9vw,.95rem);font-weight:750;line-height:1.3;text-align:center;text-decoration:none;overflow-wrap:anywhere;
}
.gr-promo-action .ui-icon{width:17px;height:17px;flex:none}
.gr-promo-cta-icon{display:none;flex:none}
.gr-promo-cta-icon[data-default]{display:inline-flex}
.gr-promo-art:not([hidden])~.gr-promo-action{position:absolute;z-index:1;inset:auto auto 14px 50%;transform:translateX(-50%);margin:0}
a.gr-promo-action:hover,a.gr-promo-art:hover~.gr-promo-action{background:#0b3991;color:#fff}
.gr-promo-art[hidden]~.gr-promo-action{background:var(--promo-cta-bg,#104ec0);color:var(--promo-cta-color,#fff)}
.gr-promo-art[hidden]~a.gr-promo-action:hover{filter:brightness(.94)}
.gr-promo-art[hidden]~.gr-promo-action .gr-promo-cta-icon{display:none}
.gr-promo-art[hidden]~.gr-promo-action .gr-promo-cta-icon[data-active]{display:inline-flex}
a.gr-promo-action:focus-visible,a.gr-promo-art:focus-visible{outline:2px solid #354862;outline-offset:-3px}
.gr-promo-close:focus-visible{outline:1px solid #354862;outline-offset:-4px}
.gr-promo-fallback{
  padding:clamp(22px,4vw,38px) clamp(16px,4vw,34px) 20px;text-align:center;
  max-height:calc(100dvh - 110px);overflow:auto;overflow-wrap:anywhere;
}
.gr-promo-fallback img{
  display:block;width:min(152px,60%);height:clamp(84px,12vw,116px);
  margin:0 auto 14px;object-fit:contain;object-position:center;
}
.gr-promo-fallback h2{font-size:clamp(1.35rem,4vw,2rem);line-height:1.18;margin:0;color:#152238}
.gr-promo-fallback p{white-space:pre-line;margin:12px 0 0;color:#41516a;line-height:1.55}
.gr-promo-card [hidden]{display:none!important}
@media(max-width:600px){
  .gr-promo{--promo-width:min(calc(100vw - 38px),calc(100dvh - 42px));--promo-height:var(--promo-width)}
  .gr-promo-card{border-radius:12px}
  .gr-promo-art:not([hidden])~.gr-promo-action{bottom:10px}
  .gr-promo-close{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){.gr-promo[open]{animation:none}}

.popup-settings .admin-panel-head{align-items:center;gap:12px}
.popup-status{
  display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:30px;
  color:#536174;background:#eff2f6;font-size:.78rem;font-weight:750;white-space:nowrap;
}
.popup-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.popup-status[data-active="1"]{color:#156249;background:#e8f7ef}
.popup-editor-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:18px}
.popup-editor-fields{min-width:0;display:grid;gap:14px}
.popup-editor-group,.popup-editor-preview{min-width:0;border:1px solid #dce4ee;border-radius:15px;background:#f8fafc;padding:clamp(12px,2vw,18px)}
.popup-editor-group h3,.popup-editor-preview h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:1rem;color:#24344c}
.popup-editor-group h3 .ui-icon{width:17px;height:17px;color:#c9570e}
.popup-settings .popup-editor-group .admin-form-grid{gap:12px}
.popup-settings .popup-editor-group .form-group{min-width:0}
.popup-button-style-grid{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:10px;margin-top:12px}
.popup-settings .popup-button-style-grid input[type="color"]{width:100%;min-height:42px;padding:4px 8px;cursor:pointer}
.popup-settings .popup-editor-group .popup-remove-image{display:flex;align-items:center;gap:7px;margin:7px 0 0;font-size:.85rem}
.popup-settings .popup-remove-image input{width:16px!important;min-height:0!important;height:16px!important;padding:0!important;margin:0;accent-color:#e4620c}
.popup-editor-note,.popup-preview-caption,.popup-editor-preview small{font-size:.8rem;color:#536174}
.popup-editor-note{margin:12px 0 0}
.popup-editor-note a{color:#104ec0;text-decoration:underline}
.popup-editor-preview{position:sticky;top:14px}
.popup-preview-head h3{margin-bottom:4px}
.popup-preview-modes{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 10px}
.popup-preview-modes button{border:1px solid #d6e0eb;border-radius:8px;background:white;color:#344761;padding:6px 12px;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.popup-preview-modes button[aria-pressed="true"]{border-color:#e27a38;color:#913c08;background:#fff2e7}
.popup-preview-modes [data-popup-preview-text]{margin-left:auto}
.popup-preview-stage{
  container-type:inline-size;display:grid;place-items:center;min-height:clamp(190px,22vw,290px);padding:20px;
  border-radius:11px;background:linear-gradient(140deg,#3e506d,#222c43);
}
.popup-preview-window{
  --promo-width:min(100cqw,430px);--promo-height:min(56.25cqw,242px);
  width:max-content;max-width:100%;
}
.popup-preview-stage[data-device="mobile"] .popup-preview-window{--promo-width:min(100cqw,230px);--promo-height:var(--promo-width)}
.popup-preview-window:has(.gr-promo-art[hidden]){width:var(--promo-width)}
.popup-preview-stage .gr-promo-close{width:30px;height:30px;top:-7px;right:-7px}
.popup-preview-stage .gr-promo-close .ui-icon{width:16px;height:16px}
.popup-preview-stage .gr-promo-fallback{padding:18px 12px 14px;max-height:340px}
.popup-preview-stage .gr-promo-fallback img{width:min(125px,65%);height:92px;margin-bottom:10px}
.popup-preview-stage[data-device="mobile"] .gr-promo-fallback img{height:76px}
.popup-preview-stage .gr-promo-fallback h2{font-size:1.05rem}
.popup-preview-stage .gr-promo-fallback p{font-size:.8rem}
.popup-preview-stage .gr-promo-action{min-height:0;padding:5px 8px;font-size:.75rem;margin-bottom:12px}
.popup-preview-stage .gr-promo-art:not([hidden])~.gr-promo-action{bottom:7px;margin:0}
.popup-preview-caption{margin:8px 0 0}
.popup-settings [data-popup-file-status]:empty{display:none}
@media(max-width:1150px){.popup-editor-grid{grid-template-columns:minmax(0,1fr)}.popup-editor-preview{position:static}}
@media(max-width:480px){.popup-button-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.popup-button-style-grid .form-group:last-child{grid-column:1/-1}}
