/* חלון התשלום. השפה של האתר: לבן, פינות רכות, ורוד #D6456E, ליים #E9FF1E. */
.scp {
  --scp-pink: #d6456e;
  --scp-pink-soft: #fbe7ee;
  --scp-lime: #e9ff1e;
  --scp-ink: #494949;
  --scp-muted: #7a7a7a;
  --scp-line: #ececf0;
  --scp-radius: 28px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(40, 24, 32, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  direction: rtl;
  text-align: start;
  font-family: "Almoni ML v5 AAA", "Almoni ML v5", "Assistant", "Rubik", Arial, sans-serif;
  color: var(--scp-ink);
  animation: scp-fade 0.18s ease-out;
}
.scp[hidden] { display: none; }
html.scp-lock, html.scp-lock body { overflow: hidden !important; }
/* כפתורים צפים של האתר (נגישות, וואטסאפ) לא יעלו על שדות הכרטיס בזמן שהחלון פתוח. */
html.scp-lock #ea11y-root, html.scp-lock .pojo-a11y-toolbar-toggle, html.scp-lock #pojo-a11y-toolbar { display: none !important; }

.scp *, .scp *::before, .scp *::after { box-sizing: border-box; }

.scp-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: var(--scp-radius);
  box-shadow: 0 30px 80px rgba(80, 20, 40, 0.28);
  animation: scp-rise 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.scp-box.is-pay { max-width: 560px; }

.scp-x {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--scp-ink);
  font: 400 26px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.scp-x:hover { background: var(--scp-pink-soft); color: var(--scp-pink); }

/* ---------- ראש ---------- */
.scp-head {
  padding: 26px 26px 18px;
  background: linear-gradient(180deg, var(--scp-pink-soft) 0%, #fff 100%);
  border-radius: var(--scp-radius) var(--scp-radius) 0 0;
}
.scp-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--scp-pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.scp-t {
  margin: 0 0 6px;
  padding-inline-end: 44px;
  color: var(--scp-pink);
  font-family: inherit;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}
.scp-line {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--scp-ink);
}
.scp-line b { font-weight: 800; }

.scp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scp-steps li {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--scp-muted);
}
.scp-steps li::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--scp-line);
  transition: background 0.25s;
}
.scp-steps li.on { color: var(--scp-ink); }
.scp-steps li.on::before { background: var(--scp-pink); }

/* ---------- תצוגות ---------- */
.scp-view { display: none; padding: 18px 26px 26px; }
.scp-view.on { display: block; animation: scp-fade 0.2s ease-out; }

.scp-f { display: block; margin: 0; }
.scp-f > span {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}
.scp-f small { font-size: 13px; font-weight: 400; color: var(--scp-muted); }
.scp-f input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--scp-line);
  border-radius: 16px;
  background: #fcfdff;
  color: var(--scp-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.scp-f input[dir="ltr"] { text-align: right; }
.scp-f input:focus {
  border-color: var(--scp-pink);
  box-shadow: 0 0 0 4px rgba(214, 69, 110, 0.15);
}
.scp-f input[aria-invalid="true"] { border-color: #c62828; }
.scp-fe {
  display: block;
  min-height: 18px;
  margin: 4px 0 8px;
  color: #c62828;
  font-size: 14px;
  font-style: normal;
}
.scp-hp { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.scp-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.scp-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--scp-pink); flex: none; }
.scp a { color: var(--scp-pink); text-decoration: underline; }

.scp-err {
  display: none;
  margin: 6px 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdecef;
  color: #a3123a;
  font-size: 15px;
  line-height: 1.4;
}
.scp-err.on { display: block; }

.scp-go {
  display: block;
  width: 100%;
  min-height: 58px;
  margin: 8px 0 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--scp-lime);
  color: var(--scp-ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 0 #c6d900, 0 10px 24px rgba(160, 180, 0, 0.25);
  transition: transform 0.12s, box-shadow 0.12s;
}
.scp-go:hover { transform: translateY(-1px); }
.scp-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #c6d900; }
.scp-go:disabled { opacity: 0.7; cursor: progress; transform: none; }
.scp-go:focus-visible, .scp-x:focus-visible, .scp-back:focus-visible { outline: 3px solid var(--scp-pink); outline-offset: 3px; }

.scp-secure {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0;
  color: var(--scp-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.scp-secure svg { width: 16px; height: 16px; flex: none; fill: currentColor; }

/* ---------- דף התשלום ---------- */
[data-v="pay"] { position: relative; padding-top: 6px; }
.scp-frame {
  display: block;
  width: 100%;
  height: 640px;
  max-height: calc(100dvh - 300px);
  min-height: 460px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}
.scp-load {
  position: absolute;
  inset: 6px 26px auto;
  height: 200px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--scp-muted);
  font-size: 16px;
}
.scp-load i, .scp-wait i {
  width: 18px;
  height: 18px;
  border: 3px solid var(--scp-pink-soft);
  border-top-color: var(--scp-pink);
  border-radius: 50%;
  animation: scp-spin 0.8s linear infinite;
  flex: none;
}
.scp-wait {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  color: var(--scp-muted);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.scp-back {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--scp-muted);
  font-family: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- סיום ---------- */
.scp-done { text-align: center; }
.scp-done-ic {
  width: 84px;
  height: 84px;
  margin: 6px auto 14px;
  border-radius: 50%;
  background: var(--scp-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scp-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.scp-done-ic svg { width: 46px; height: 46px; fill: var(--scp-ink); }
.scp-done h3 {
  margin: 0 0 8px;
  color: var(--scp-pink);
  font-family: inherit;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}
.scp-done p { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.scp-next { color: var(--scp-muted); font-size: 16px !important; }
.scp-done .scp-go { margin-top: 18px; }
.scp-wa { display: inline-block; margin-top: 14px; font-size: 16px; }

/* ---------- נייד: גיליון מלא ---------- */
@media (max-width: 600px) {
  .scp { padding: 0; align-items: flex-end; }
  .scp-box, .scp-box.is-pay {
    max-width: none;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
    animation: scp-up 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .scp-head { padding: 22px 18px 14px; border-radius: 0; }
  .scp-t { font-size: 24px; }
  .scp-line { font-size: 16px; }
  .scp-view { padding: 16px 18px 22px; }
  .scp-load { inset-inline: 18px; }
  .scp-box.is-pay .scp-line { display: none; }
  .scp-box.is-pay .scp-t { font-size: 20px; }
  .scp-frame { height: calc(100dvh - 190px); max-height: none; min-height: 480px; }
  .scp-go { font-size: 20px; }
}

@keyframes scp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scp-rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes scp-up { from { transform: translateY(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes scp-pop { from { transform: scale(0.4); } to { transform: scale(1); } }
@keyframes scp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .scp, .scp-box, .scp-view.on, .scp-done-ic { animation: none !important; }
}
