/* overlay & modal */
.cpv2-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  z-index:2147483000
}
.cpv2-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2147483001
}
.cpv2-open{display:flex !important}
.cpv2-open-overlay{display:block !important}

/* контейнер */
.cpv2-card{
  background:transparent;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  width:min(92vw,560px);
  font-family:'Russia', system-ui,-apple-system,Segoe UI,Roboto,Arial
}

/* круглый баннер — НОВОГОДНИЙ */
.cpv2-balloon{
  position:relative;
  margin:0 auto;
  width:clamp(260px,80vw,380px);
  aspect-ratio:1/1;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  /* icy / new year gradient */
  background:
    radial-gradient(130% 130% at 20% 0%,
      #ffffff 0%,
      #e6f7ff 30%,
      #9bd5ff 55%,
      #2a6fbe 85%,
      #0b2b5a 100%
    );

  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.8),
    0 16px 32px rgba(0,0,0,.3);
}

/* мягкие "снежинки" поверх */
.cpv2-balloon::before{
  content:'';
  position:absolute;
  inset:-10%;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 35%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,.8) 0, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 15% 75%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 70% 85%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 35%);
  opacity:.9;
}

/* лёгкий "блик" снизу */
.cpv2-balloon::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-5%;
  width:140%;
  height:40%;
  transform:translateX(-50%);
  background:radial-gradient(circle at 50% 0,
    rgba(255,255,255,.45) 0,
    rgba(255,255,255,0) 70%);
  pointer-events:none;
}

/* контент */
.cpv2-content{
  width:82%;
  max-width:280px;
  padding:9% 2%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  position:relative;
  z-index:1;
}

/* заголовок */
.cpv2-title{
  color:#0e3159;
  font-weight:700;
  font-family:'Russia';
  font-size:clamp(15px,2vw,18px);
  line-height:1.25;
  margin:0;
  text-shadow:0 1px 2px rgba(255,255,255,.8);
  white-space: pre-line; /* перенос строк по \n в JS */
}

/* подзаголовок */
.cpv2-sub{
  color:#17456e;
  font-weight:500;
  font-family:'Russia';
  font-size:clamp(12px,1.8vw,14px);
  line-height:1.3;
  margin:0;
  text-shadow:0 1px 1px rgba(255,255,255,.7);
}

/* промокод — снежный бейдж */
.cpv2-code{
  display:inline-block;
  background:rgba(255,255,255,.96);
  color:#0e3159;
  font-weight:700;
  font-family:'Russia';
  letter-spacing:.08em;
  font-size:clamp(13px,1.9vw,16px);
  padding:8px 14px;
  border-radius:999px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,1),
    0 6px 16px rgba(0,0,0,.25);
  user-select:all;
  border:1px solid rgba(255,255,255,.85);
}

/* кнопки */
.cpv2-actions{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}
.cpv2-btn{
  width:100%;
  appearance:none;
  border:0;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:800;
  text-decoration:none;
  text-align:center;
  font-size:clamp(11px,1.6vw,13px)
}
.cpv2-wa{background:#25D366;color:#fff}
.cpv2-tg{background:#229ED9;color:#fff}

/* маленькая кнопка X внутри */
.cpv2-small-close{
  background:#fff;
  color:#222;
  width:32px;
  height:32px;
  border:1px solid rgba(0,0,0,.2);
  border-radius:50%;
  font-weight:700;
  font-size:16px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  margin-top:6px;
  box-shadow:0 3px 10px rgba(0,0,0,.2)
}
.cpv2-small-close:hover{ background:#f2f2f2 }

/* большой крестик вверху справа */
.cpv2-close{
  position:absolute;
  top:8px;
  right:8px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  box-shadow:0 3px 12px rgba(0,0,0,.25);
  z-index:2147483647;
}
.cpv2-close svg{
  width:18px;
  height:18px;
  display:block
}
.cpv2-close:focus{
  outline:2px solid #2e6fd6;
  outline-offset:2px
}
