.cms-modal-block{display:block}
.cms-modal-open{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:46px;padding:0 22px;border:0;border-radius:999px;
  background:#0054ff;color:#fff;font-weight:900;cursor:pointer;
  box-shadow:0 12px 32px rgba(0,84,255,.22);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease
}
.cms-modal-open:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(0,84,255,.28)}
.cms-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:20px}
.cms-modal.is-open{display:flex}
.cms-modal__overlay{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(8px)}
.cms-modal__dialog{
  position:relative;width: 90%;
    max-width: 476px;
    max-height: 90vh;
	overflow:auto;
  background:#fff;border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(15,23,42,.36);
  animation:cmsModalIn .2s ease both
}
.cms-modal__dialog--lg{width:min(860px,100%)}
.cms-modal__dialog--xl{width:min(1120px,100%)}
.cms-modal__close{
  position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:999px;
  background:transparent;color:#111827;font-size:28px;line-height:1;cursor:pointer
}

.cms-modal__title{
  margin:12px 48px 8px 20px;font-size:28px;line-height:1;letter-spacing:-.04em;color:#111827
}
.cms-modal__content{color:#111827;line-height:1.55}
.cms-modal__content img,.cms-modal__content video{max-width:100%;height:auto;border-radius:18px}
.cms-modal__empty{padding:14px;border-radius:14px;background:#fef2f2;color:#991b1b;font-weight:800}
body.cms-modal-locked{overflow:hidden}
@keyframes cmsModalIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:640px){
  .cms-modal{padding:10px;align-items:flex-end}
  .cms-modal__dialog{width:100%;max-height:88vh;border-radius:24px 24px 0 0;padding:22px 18px}
}
