/* psexitintentpopup 3.2.1 – Compact Sweet Experience */
.pseip-root {
  --pseip-primary: #1a4f8c;
  --pseip-accent: #ff8fb8;
  --pseip-cream: #fff9f4;
  --pseip-sky: #eef6ff;
  --pseip-ink: #243247;
  --pseip-muted: #6b7c93;
  --pseip-space-1: 4px;
  --pseip-space-2: 8px;
  --pseip-space-3: 12px;
  --pseip-space-4: 16px;
  --pseip-space-5: 24px;
  --pseip-space-6: 28px;
  --pseip-radius-card: 14px;
  --pseip-radius-dialog: 24px;
  align-items: center;
  display: none;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100000;
}
.pseip-root.pseip-root--visible { display: flex; }
.pseip-root *,
.pseip-root *::before,
.pseip-root *::after {
  box-sizing: border-box;
}

/* Kill PrestaShop / theme pseudo decorations (blue squares, icons) */
.pseip-root button::before,
.pseip-root button::after,
.pseip-root a::before,
.pseip-root a::after,
.pseip-root .pseip-card::before,
.pseip-root .pseip-card::after,
.pseip-root .pseip-card__icon::before,
.pseip-root .pseip-card__icon::after,
.pseip-root .pseip-other-link::before,
.pseip-root .pseip-other-link::after,
.pseip-root .pseip-btn::before,
.pseip-root .pseip-btn::after {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
  height: 0 !important;
  mask: none !important;
  -webkit-mask: none !important;
  width: 0 !important;
}

.pseip-overlay {
  background: rgba(18, 36, 64, 0.46);
  inset: 0;
  position: absolute;
  backdrop-filter: blur(3px);
}

.pseip-dialog {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 183, 214, 0.28), transparent 48%),
    radial-gradient(90% 60% at 100% 10%, rgba(158, 210, 255, 0.28), transparent 42%),
    linear-gradient(180deg, var(--pseip-cream) 0%, #fff 52%, var(--pseip-sky) 100%);
  border: 1px solid rgba(26, 79, 140, 0.1);
  border-radius: var(--pseip-radius-dialog);
  box-shadow: 0 24px 56px rgba(18, 40, 90, 0.24);
  color: var(--pseip-ink);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 720px);
  max-width: 680px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: translateY(12px) scale(0.98);
  width: calc(100% - 16px);
  z-index: 1;
}
.pseip-root--visible .pseip-dialog {
  animation: pseip-pop 0.36s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes pseip-pop {
  to { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pseip-root--visible .pseip-dialog,
  .pseip-root--reduced .pseip-dialog,
  .pseip-card,
  .pseip-confetti span { animation: none !important; transition: none !important; }
}

.pseip-close {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 79, 140, 0.14);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(18, 50, 95, 0.1);
  color: var(--pseip-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 500;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  transition: transform 0.18s ease, background 0.18s ease;
  width: 40px;
  z-index: 8;
}
.pseip-close:hover,
.pseip-close:focus {
  background: #eef6ff;
  outline: none;
  transform: rotate(90deg);
}

.pseip-dialog__scroll {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0; /* critical for flex child scrolling */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 14px;
}

.pseip-preview-banner {
  background: #fff3c4;
  border: 1px solid #f0d27a;
  border-radius: 999px;
  color: #7a5b00;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 auto 8px;
  max-width: 260px;
  padding: 3px 10px;
  text-align: center;
  text-transform: uppercase;
}

/* Centered marketing header – tightened for 12 answers */
.pseip-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  text-align: center;
}
.pseip-hero__media {
  margin: 0 auto 2px;
  position: relative;
  width: 64px;
}
.pseip-hero__img {
  background: #fff;
  border: 1px solid rgba(26, 79, 140, 0.1);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(26, 79, 140, 0.12);
  display: block;
  height: 64px;
  object-fit: cover;
  width: 64px;
}
.pseip-hero__img--fallback {
  align-items: center;
  display: flex;
  font-size: 1.7rem;
  justify-content: center;
}
.pseip-hero__price {
  background: linear-gradient(135deg, var(--pseip-primary), #0f3a6d);
  border-radius: 999px;
  bottom: -5px;
  box-shadow: 0 4px 10px rgba(26, 79, 140, 0.22);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  position: absolute;
  right: -8px;
}

.pseip-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem); /* ~20–24px */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 28ch;
  text-align: center;
}
.pseip-intro {
  color: var(--pseip-muted);
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 44ch;
  text-align: center;
}
.pseip-terms-mini {
  color: #8090a5;
  font-size: 0.7rem;
  font-weight: 450;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 48ch;
  text-align: center;
}

.pseip-ask {
  margin: 0 0 8px;
  text-align: center;
}
.pseip-question {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 2px;
}
.pseip-hint {
  color: var(--pseip-muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

/* Compact 2-col grid for 12 answers */
.pseip-grid {
  display: grid;
  gap: 6px;
  grid-auto-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.pseip-card {
  align-items: center;
  appearance: none;
  background: #fff6fb;
  border: 1px solid rgba(26, 79, 140, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(18, 50, 95, 0.04);
  color: var(--pseip-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  height: 100%;
  min-height: 44px;
  padding: 7px 10px;
  text-align: left;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  width: 100%;
}
.pseip-card:nth-child(8n+1) { background: #fff0f5; }
.pseip-card:nth-child(8n+2) { background: #eef6ff; }
.pseip-card:nth-child(8n+3) { background: #fff8e8; }
.pseip-card:nth-child(8n+4) { background: #f0fff4; }
.pseip-card:nth-child(8n+5) { background: #f5f0ff; }
.pseip-card:nth-child(8n+6) { background: #fff5eb; }
.pseip-card:nth-child(8n+7) { background: #e8fbff; }
.pseip-card:nth-child(8n+8) { background: #fdf2ff; }

.pseip-card:hover,
.pseip-card:focus {
  border-color: rgba(26, 79, 140, 0.28);
  box-shadow: 0 6px 16px rgba(18, 50, 95, 0.08);
  outline: none;
  transform: translateY(-2px);
}
.pseip-card:active,
.pseip-card.is-selected {
  border-color: var(--pseip-primary);
  box-shadow: 0 2px 8px rgba(26, 79, 140, 0.12);
  transform: scale(0.985);
}
.pseip-card.is-busy { opacity: 0.6; pointer-events: none; }

.pseip-card__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: none !important;
  display: inline-flex !important;
  flex: 0 0 24px;
  font-size: 1.15rem;
  height: 24px;
  justify-content: center;
  line-height: 1;
  min-width: 24px;
  padding: 0 !important;
  width: 24px;
}
.pseip-card__label {
  flex: 1 1 auto;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.pseip-other-wrap {
  margin-top: 8px;
  text-align: center;
}
.pseip-other-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--pseip-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  gap: 6px;
  padding: 6px 8px;
  text-decoration: underline;
  text-decoration-color: rgba(26, 79, 140, 0.28);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.pseip-other-link:hover,
.pseip-other-link:focus {
  color: #0f3a6d;
  outline: none;
  text-decoration-color: rgba(15, 58, 109, 0.55);
}
.pseip-other-link.is-busy,
.pseip-other__submit.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.pseip-other {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(26, 79, 140, 0.2);
  border-radius: 14px;
  margin-top: var(--pseip-space-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 12px;
  text-align: left;
  transform: translateY(-4px);
  transition: max-height 0.32s ease, opacity 0.24s ease, transform 0.24s ease, padding 0.24s ease;
}
.pseip-other.is-open {
  max-height: 340px;
  opacity: 1;
  padding: 12px;
  transform: none;
}
.pseip-other__title {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 8px;
  text-align: center;
}
.pseip-other__label { display: none; }
.pseip-other__input {
  border: 1px solid rgba(26, 79, 140, 0.16);
  border-radius: 12px;
  font: inherit;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}
.pseip-other__meta {
  color: var(--pseip-muted);
  display: flex;
  font-size: 0.72rem;
  justify-content: flex-end;
  margin-top: 4px;
}
.pseip-other__privacy {
  background: #fff8e8;
  border: 1px solid #ffe2a8;
  border-radius: 10px;
  color: #7a5b00;
  font-size: 0.74rem;
  line-height: 1.35;
  margin: 8px 0;
  padding: 8px 10px;
}
.pseip-other__submit,
.pseip-coupon__copy,
.pseip-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  text-decoration: none !important;
}
.pseip-other__submit {
  background: linear-gradient(135deg, var(--pseip-primary), #0f3a6d);
  color: #fff;
  margin-top: 6px;
  padding: 11px 16px;
  width: 100%;
}

.pseip-thanks {
  color: var(--pseip-muted);
  font-size: 0.72rem;
  font-weight: 450;
  margin: 8px 0 0;
  text-align: center;
}
.pseip-msg {
  font-size: 0.82rem;
  margin: 6px 0 0;
  min-height: 1.1em;
  text-align: center;
}
.pseip-msg.is-error { color: #b42318; }
.pseip-msg.is-ok { color: #067647; }

/* Reward screen */
.pseip-step--reward { text-align: center; }
.pseip-reward-hero {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--pseip-space-2);
}
.pseip-reward-hero__img {
  background: #fff;
  border: 1px solid rgba(26, 79, 140, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(26, 79, 140, 0.1);
  height: 72px;
  object-fit: cover;
  width: 72px;
}
.pseip-product {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 79, 140, 0.1);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  margin: 12px auto;
  max-width: 360px;
  padding: 10px 12px;
  text-align: left;
}
.pseip-product__img {
  border-radius: 12px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}
.pseip-product__placeholder {
  align-items: center;
  background: #fff3c4;
  border-radius: 12px;
  display: flex;
  font-size: 1.5rem;
  height: 64px;
  justify-content: center;
  width: 64px;
}
.pseip-product__meta { display: flex; flex-direction: column; gap: 2px; }
.pseip-product__prices { align-items: baseline; display: flex; gap: 8px; }
.pseip-price-old {
  color: var(--pseip-muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}
.pseip-price-new {
  color: var(--pseip-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.pseip-coupon {
  background: linear-gradient(135deg, #12325f, #1d5fa8);
  border-radius: 18px;
  color: #fff;
  margin: 12px auto;
  max-width: 380px;
  padding: 16px;
  position: relative;
}
.pseip-coupon__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: uppercase;
}
.pseip-coupon__code {
  color: #fff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 8px 0 10px;
  opacity: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.pseip-coupon__code.is-revealed {
  animation: pseip-reveal 0.4s ease forwards;
  opacity: 1;
}
@keyframes pseip-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.pseip-coupon__copy {
  background: #fff;
  color: #12325f;
  padding: 9px 14px;
}
.pseip-coupon__copied { font-size: 0.78rem; margin: 6px 0 0; }

.pseip-howto {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
  text-align: left;
}
.pseip-howto li {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  display: flex;
  font-size: 0.84rem;
  gap: 10px;
  padding: 8px 10px;
}
.pseip-howto__n {
  align-items: center;
  background: var(--pseip-primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.pseip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.pseip-btn--primary {
  background: linear-gradient(135deg, var(--pseip-primary), #0f3a6d);
  color: #fff !important;
  padding: 11px 16px;
}
.pseip-btn--ghost {
  background: #fff;
  border: 1px solid rgba(26, 79, 140, 0.18) !important;
  color: var(--pseip-primary) !important;
  padding: 11px 16px;
}

.pseip-confetti {
  height: 0;
  overflow: visible;
  pointer-events: none;
  position: relative;
}
.pseip-confetti span {
  animation: pseip-fall 1.4s ease-in forwards;
  border-radius: 2px;
  height: 8px;
  position: absolute;
  top: -8px;
  width: 8px;
}
@keyframes pseip-fall {
  to { opacity: 0; transform: translateY(120vh) rotate(420deg); }
}

.pseip-gate {
  background: #fff4e5;
  border-radius: 10px;
  color: #8a5a00;
  font-size: 0.8rem;
  margin: 8px auto;
  max-width: 380px;
  padding: 8px 10px;
}

.pseip-gift {
  align-items: center;
  background: linear-gradient(135deg, #ff8fb8, #ff6ea0);
  border: 0;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 10px 24px rgba(200, 60, 110, 0.35);
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 1.25rem;
  height: 52px;
  justify-content: center;
  position: fixed;
  right: 18px;
  transition: transform 0.15s ease;
  width: 52px;
  z-index: 99990;
}
.pseip-gift.is-visible { display: inline-flex; }
.pseip-gift:hover { transform: scale(1.06); }

/* Tablet / small desktop: keep 2 cols */
@media (max-width: 720px) {
  .pseip-dialog { max-width: 560px; max-height: 92vh; }
  .pseip-dialog__scroll { padding: 14px 12px 12px; }
  .pseip-title { font-size: 1.2rem; }
  .pseip-intro { font-size: 0.8rem; }
  .pseip-grid { gap: 5px; }
  .pseip-card { min-height: 42px; padding: 6px 8px; }
  .pseip-card__label { font-size: 0.74rem; }
  .pseip-hero__media { width: 56px; }
  .pseip-hero__img { height: 56px; width: 56px; }
}

/* Short viewports: squeeze header further */
@media (max-height: 760px) {
  .pseip-dialog { max-height: 92vh; }
  .pseip-hero { margin-bottom: 6px; gap: 2px; }
  .pseip-hero__media { width: 52px; margin-bottom: 0; }
  .pseip-hero__img { height: 52px; width: 52px; border-radius: 14px; }
  .pseip-title { font-size: 1.2rem; }
  .pseip-intro { font-size: 0.78rem; }
  .pseip-terms-mini { font-size: 0.66rem; }
  .pseip-card { min-height: 40px; padding: 5px 8px; }
  .pseip-grid { gap: 5px; }
}

/* Narrow phones: stay 2-col while readable; collapse only when too tight */
@media (max-width: 360px) {
  .pseip-grid { grid-template-columns: 1fr; }
  .pseip-dialog__scroll { padding: 12px 10px 10px; }
}
