/* Triple S Solar – lead popup (1.1.4.1). Light card, ~20px radius, red→orange capsule buttons, Heebo, logo on light.
   Mobile: bottom sheet, 44px close button on the left, no horizontal scroll. Always light (also in dark mode). */
#ts-pop[hidden] { display: none !important; }
#ts-pop {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px;
  direction: rtl; font-family: "Heebo", var(--ts-font-body, system-ui), sans-serif; box-sizing: border-box;
}
#ts-pop *, #ts-pop *::before, #ts-pop *::after { box-sizing: border-box; }
html.ts-pop-open, html.ts-pop-open body { overflow: hidden !important; }
#ts-pop .ts-pop-bd { position: absolute; inset: 0; background: rgba(17, 18, 22, .52); opacity: 0; transition: opacity .2s; }
#ts-pop .ts-pop-dlg {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overflow-x: hidden;
  background: #fff; color: #1d1d1f; border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .2s, transform .2s;
}
#ts-pop.is-on .ts-pop-bd { opacity: 1; }
#ts-pop.is-on .ts-pop-dlg { opacity: 1; transform: none; }
#ts-pop .ts-pop-dlg:focus { outline: none; }
#ts-pop .ts-pop-body { padding: 30px 30px 22px; text-align: center; }

#ts-pop .ts-pop-x {
  position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: #f1efec; color: #2b2b2e; z-index: 1;
}
#ts-pop .ts-pop-x:hover { background: #e7e3de; }
#ts-pop .ts-pop-x:focus-visible, #ts-pop button:focus-visible, #ts-pop a:focus-visible, #ts-pop input:focus-visible + span { outline: 3px solid #E2601E; outline-offset: 2px; }

#ts-pop .ts-pop-logo { display: block; height: 40px; width: auto; max-width: 170px; margin: 0 auto 14px; object-fit: contain; }
#ts-pop .ts-pop-k {
  display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1.3;
  color: #fff; background: linear-gradient(90deg, #C81E12, #C44715);
}
#ts-pop .ts-pop-t { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.3; font-family: inherit; color: #1d1d1f; letter-spacing: normal; text-wrap: balance; }
#ts-pop .ts-pop-t span { color: #C03017; }
#ts-pop .ts-pop-s { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #55555a; }

#ts-pop .ts-pop-f { margin: 18px 0 0; text-align: right; }
#ts-pop .ts-pop-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#ts-pop .ts-pop-sw { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border: 0; border-radius: 999px; background: #f1efec; min-width: 0; }
#ts-pop .ts-pop-sw legend { position: absolute; }
#ts-pop .ts-pop-sw label { flex: 1 1 0; position: relative; margin: 0; cursor: pointer; }
#ts-pop .ts-pop-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
#ts-pop .ts-pop-sw span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #55555a;
  transition: background .15s, color .15s, box-shadow .15s;
}
#ts-pop .ts-pop-sw input:checked + span { background: #fff; color: #C03017; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

#ts-pop .ts-pop-l { display: block; margin: 0 0 10px; }
#ts-pop .ts-pop-l input {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: 12px; border: 1px solid #e6e1db; background: #faf8f6;
  font-size: 16px; font-weight: 400; line-height: 1.2; font-family: inherit; color: #1d1d1f; text-align: right; box-shadow: none; -webkit-appearance: none; appearance: none;
}
#ts-pop .ts-pop-l input::placeholder { color: #8a8a90; opacity: 1; }
#ts-pop .ts-pop-l input:focus { outline: none; border-color: #E2601E; background: #fff; box-shadow: 0 0 0 3px rgba(226, 96, 30, .18); }
#ts-pop .ts-pop-l.is-bad input { border-color: #C03017; background: #fff6f4; }
#ts-pop .ts-pop-err { margin: 2px 0 10px; font-size: 14px; font-weight: 600; color: #B42318; }
#ts-pop .ts-pop-err[hidden] { display: none; }

#ts-pop .ts-pop-b { display: flex; gap: 10px; margin-top: 6px; }
#ts-pop .ts-pop-send, #ts-pop .ts-pop-wa {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 18px;
  border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1; font-family: inherit; text-decoration: none !important; cursor: pointer;
  transition: filter .15s, transform .15s;
}
#ts-pop .ts-pop-send { flex-grow: 1.4; color: #fff !important; background: linear-gradient(90deg, #C81E12, #C44715); box-shadow: 0 8px 20px rgba(200, 30, 18, .22); }
#ts-pop .ts-pop-wa { color: #062B16 !important; background: #25D366; }
#ts-pop .ts-pop-wa-i { width: 18px; height: 18px; }
#ts-pop .ts-pop-send:hover, #ts-pop .ts-pop-wa:hover { filter: brightness(1.06); transform: translateY(-1px); }
#ts-pop .ts-pop-send[disabled] { opacity: .7; cursor: progress; transform: none; }
#ts-pop .ts-pop-n { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #6b6b70; text-align: center; }

#ts-pop .ts-pop-ok { margin: 20px 0 4px; }
#ts-pop .ts-pop-ok[hidden], #ts-pop .ts-pop-f[hidden] { display: none; }
#ts-pop .ts-pop-ok:focus { outline: none; }
#ts-pop .ts-pop-ok-t { margin: 0 0 16px; padding: 14px; border-radius: 12px; background: #eef8f0; color: #14532d; font-size: 16px; font-weight: 700; line-height: 1.5; }
#ts-pop .ts-pop-ok .ts-pop-send { width: 100%; }
#ts-pop .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (max-width: 640px) {
  #ts-pop { align-items: flex-end; padding: 0; }
  #ts-pop .ts-pop-dlg { width: 100%; max-width: 100vw; border-radius: 20px 20px 0 0; max-height: 92vh; max-height: 92dvh; transform: translateY(24px); }
  #ts-pop .ts-pop-body { padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  #ts-pop .ts-pop-x { top: 10px; left: 10px; }
  #ts-pop .ts-pop-logo { height: 34px; margin-bottom: 10px; }
  #ts-pop .ts-pop-t { font-size: 21px; }
  #ts-pop .ts-pop-s { font-size: 14px; }
  #ts-pop .ts-pop-f { margin-top: 14px; }
}
@media (max-width: 360px) {
  #ts-pop .ts-pop-b { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { #ts-pop .ts-pop-bd, #ts-pop .ts-pop-dlg { transition: none; } }
