
.kgjpm-popup,
.kgjpm-popup *{box-sizing:border-box}

.kgjpm-popup{
  --kgjpm-ink:#0c3441;
  --kgjpm-teal:#0f6c7a;
  --kgjpm-teal-dark:#0a5260;
  --kgjpm-gold:#c9a35b;
  --kgjpm-gold-soft:#e7d1aa;
  --kgjpm-paper:#fffdfa;
  --kgjpm-paper-soft:#fcf8f1;
  --kgjpm-warm:#efe6d7;
  --kgjpm-line:#e7dccd;
  --kgjpm-muted:#5f767b;
  position:fixed;
  inset:0;
  z-index:1000005;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease,visibility .24s ease;
  font-family:"Noto Sans Hebrew",Arial,sans-serif;
}

.kgjpm-popup.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}

.kgjpm-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,34,42,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.kgjpm-card{
  position:relative;
  z-index:1;
  width:min(920px,calc(100% - 36px));
  max-height:min(650px,88dvh);
  display:grid;
  grid-template-columns:minmax(320px,1.06fr) minmax(360px,.94fr);
  overflow:hidden;
  border:1px solid rgba(201,163,91,.55);
  border-radius:26px;
  background:linear-gradient(180deg,#fffefb 0%,#fffaf3 100%);
  box-shadow:0 36px 100px rgba(3,33,41,.30);
  transform:translateY(14px) scale(.985);
  transition:transform .24s ease;
}

.kgjpm-popup.is-open .kgjpm-card{
  transform:translateY(0) scale(1);
}

/* When the image is disabled, collapse to a compact one-column popup. */
.kgjpm-card.no-image{
  width:min(560px,calc(100% - 36px));
  grid-template-columns:minmax(0,1fr);
}

.kgjpm-card.no-image .kgjpm-content{
  min-height:500px;
  padding:44px 46px 40px;
}

.kgjpm-card.no-image .kgjpm-content h2{
  max-width:13ch;
}

.kgjpm-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:6;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0 0 2px;
  border:1px solid rgba(12,52,65,.12);
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--kgjpm-ink);
  box-shadow:0 10px 24px rgba(6,43,52,.12);
  font:400 26px/1 Arial,sans-serif;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}

.kgjpm-close:hover,
.kgjpm-close:focus-visible{
  background:#fff;
  border-color:rgba(201,163,91,.68);
  transform:scale(1.05);
  outline:none;
}

.kgjpm-visual{
  position:relative;
  min-height:100%;
  overflow:hidden;
  background:linear-gradient(180deg,#f2eadf 0%,#eadfcd 100%);
}

.kgjpm-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(7,41,50,0) 55%,rgba(7,41,50,.10) 100%);
  pointer-events:none;
}

.kgjpm-visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:var(--kgjpm-desktop-fit,cover);
  object-position:var(--kgjpm-desktop-pos,center center);
}

.kgjpm-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:36px 34px 32px;
  color:var(--kgjpm-ink);
  background:
    radial-gradient(circle at 100% 0,rgba(201,163,91,.13),transparent 30%),
    radial-gradient(circle at 0 100%,rgba(15,108,122,.05),transparent 28%),
    linear-gradient(180deg,#fffdf9 0%,#fff9f1 100%);
}

.kgjpm-kicker{
  max-width:calc(100% - 56px);
  margin:0 0 10px;
  color:#aa7f36;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.kgjpm-content h2{
  margin:0;
  max-width:14ch;
  color:var(--kgjpm-ink);
  font-family:"Noto Sans Hebrew",Arial,sans-serif;
  font-size:clamp(31px,2.8vw,40px);
  line-height:1.03;
  font-weight:900;
  letter-spacing:-.02em;
}

.kgjpm-lead{
  margin:14px 0 18px;
  color:var(--kgjpm-muted);
  font-size:15px;
  line-height:1.72;
}

.kgjpm-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
}

.kgjpm-benefits span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 12px;
  border:1px solid rgba(201,163,91,.34);
  border-radius:999px;
  background:#fff8ed;
  color:var(--kgjpm-ink);
  font-size:12px;
  font-weight:800;
  line-height:1.2;
}

.kgjpm-error{
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #efc8cb;
  border-radius:14px;
  background:#fff4f5;
  color:#8f3038;
  font-size:13px;
  line-height:1.5;
  font-weight:800;
}

.kgjpm-form{
  display:grid;
  gap:12px;
}

.kgjpm-form>label:not(.kgjpm-consent){
  margin-bottom:-3px;
  color:#20434d;
  font-size:12px;
  font-weight:900;
}

.kgjpm-form input[type="email"]{
  width:100%;
  min-height:52px;
  padding:14px 16px;
  border:1px solid #d7e2df;
  border-radius:14px;
  background:#fff;
  color:#173f49;
  font:inherit;
  font-size:16px;
  text-align:left;
  direction:ltr;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.kgjpm-form input[type="email"]::placeholder{
  color:#8ca0a4;
}

.kgjpm-form input[type="email"]:focus{
  border-color:var(--kgjpm-teal);
  box-shadow:0 0 0 4px rgba(15,108,122,.10);
}

.kgjpm-consent{
  display:grid;
  grid-template-columns:18px 1fr;
  gap:9px;
  align-items:start;
  margin:2px 0 4px;
  color:#64797d;
  font-size:11.5px;
  line-height:1.55;
  cursor:pointer;
}

.kgjpm-consent input{
  width:16px;
  height:16px;
  margin:2px 0 0;
  accent-color:var(--kgjpm-teal);
}

.kgjpm-submit,
.kgjpm-shop{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border:1px solid var(--kgjpm-teal);
  border-radius:14px;
  background:linear-gradient(180deg,var(--kgjpm-teal) 0%,var(--kgjpm-teal-dark) 100%);
  color:#fff;
  text-decoration:none;
  text-align:center;
  font:inherit;
  font-size:15px;
  font-weight:900;
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(15,108,122,.18);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}

.kgjpm-submit:hover,
.kgjpm-submit:focus-visible,
.kgjpm-shop:hover,
.kgjpm-shop:focus-visible{
  background:linear-gradient(180deg,#126f7e 0%,#0a5260 100%);
  border-color:#0a5260;
  transform:translateY(-1px);
  box-shadow:0 18px 32px rgba(15,108,122,.22);
  outline:none;
}

.kgjpm-privacy{
  margin:12px 0 0;
  color:#84979b;
  font-size:10.5px;
  line-height:1.55;
}

.kgjpm-auto-benefit{
  display:grid;
  gap:7px;
  margin:2px 0 18px;
  padding:15px 16px;
  border:1px solid rgba(201,163,91,.36);
  border-radius:15px;
  background:linear-gradient(180deg,#fffaf1 0%,#fcf4e8 100%);
  text-align:right;
}

.kgjpm-auto-benefit strong{
  color:var(--kgjpm-ink);
  font-size:14px;
}

.kgjpm-auto-benefit span{
  color:#62787d;
  font-size:13px;
  line-height:1.55;
}

.kgjpm-hp{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media(max-width:760px){
  .kgjpm-popup{
    align-items:center;
    padding:14px;
  }

  .kgjpm-card{
    width:min(390px,calc(100vw - 28px));
    max-height:92dvh;
    display:flex;
    flex-direction:column;
    overflow:auto;
    border-radius:20px;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }

  .kgjpm-close{
    top:10px;
    right:10px;
    width:34px;
    height:34px;
    font-size:20px;
  }

  .kgjpm-visual{
    flex:0 0 auto;
    width:100%;
    min-height:0;
    height:auto;
    aspect-ratio:4/3;
  }

  .kgjpm-visual::after{
    background:linear-gradient(180deg,rgba(7,41,50,0) 72%,rgba(7,41,50,.08) 100%);
  }

  .kgjpm-visual img{
    width:100%;
    height:100%;
    object-fit:var(--kgjpm-mobile-fit,cover);
    object-position:var(--kgjpm-mobile-pos,center center);
  }

  .kgjpm-content{
    flex:0 0 auto;
    padding:20px 18px 18px;
  }


  .kgjpm-card.no-image{
    width:min(390px,calc(100vw - 28px));
  }

  .kgjpm-card.no-image .kgjpm-content{
    min-height:0;
    padding:30px 22px 22px;
  }

  .kgjpm-card.no-image .kgjpm-content h2{
    max-width:none;
  }

  .kgjpm-kicker{
    max-width:calc(100% - 40px);
    margin-bottom:7px;
    font-size:9px;
    letter-spacing:.18em;
  }

  .kgjpm-content h2{
    max-width:none;
    font-size:30px;
    line-height:1.05;
  }

  .kgjpm-lead{
    margin:10px 0 14px;
    font-size:13px;
    line-height:1.58;
  }

  .kgjpm-benefits{
    gap:6px;
    margin-bottom:14px;
  }

  .kgjpm-benefits span{
    min-height:28px;
    padding:5px 10px;
    font-size:10.5px;
  }

  .kgjpm-form{gap:8px}

  .kgjpm-form>label:not(.kgjpm-consent){font-size:11px}

  .kgjpm-form input[type="email"]{
    min-height:46px;
    padding:11px 12px;
    font-size:15px;
    border-radius:12px;
  }

  .kgjpm-consent{
    grid-template-columns:16px 1fr;
    gap:8px;
    margin:1px 0 2px;
    font-size:10.5px;
    line-height:1.4;
  }

  .kgjpm-consent input{
    width:14px;
    height:14px;
    margin-top:1px;
  }

  .kgjpm-submit,
  .kgjpm-shop{
    min-height:46px;
    padding:10px 14px;
    border-radius:12px;
    font-size:14px;
  }

  .kgjpm-privacy{
    margin-top:8px;
    font-size:9.5px;
  }

  .kgjpm-auto-benefit{
    gap:5px;
    margin-bottom:14px;
    padding:12px 13px;
    border-radius:12px;
  }

  .kgjpm-auto-benefit strong{font-size:13px}
  .kgjpm-auto-benefit span{font-size:12px}
}

@media(prefers-reduced-motion:reduce){
  .kgjpm-popup,
  .kgjpm-card,
  .kgjpm-close,
  .kgjpm-submit,
  .kgjpm-shop,
  .kgjpm-form input[type="email"]{
    transition:none!important;
  }
}
