/* ── jpg.now upsell variants ──────────────────────────────────────────────
   Four A/B/C/D designs triggered when a user hits a per-day / per-month
   AI feature limit. Designs share a colour palette but vary in placement
   (full-overlay modal, slide-up drawer, inline replacement, sticky banner).
*/

.upsell-hidden { display: none !important; }

/* Common styles */
.up-card {
  background: #ffffff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  color: #1a1a1a;
}
.up-pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}
.up-title {
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 6px;
  line-height: 1.3;
}
.up-sub {
  font-size: 13.5px;
  color: #4a5160;
  line-height: 1.55;
  margin: 0 0 16px;
}
.up-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.up-price-mo {
  font-size: 13px;
  color: #4a5160;
  font-weight: 500;
}
.up-bullets {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  font-size: 13px;
  color: #4a5160;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.up-bullets li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.up-bullets li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
  width: 14px;
}
.up-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.up-cta:hover { background: #1d4ed8; }
.up-cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: #4a5160 !important;
  font-weight: 500;
  font-size: 12.5px;
  text-decoration: none;
  padding: 8px 12px;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}
.up-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #7a818d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.up-close:hover { background: #f1f3f5; color: #1a1a1a; }

/* ── Variant: MODAL (centered overlay) ────────────────────────────────── */
.up-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: upFade .15s ease-out;
}
@keyframes upFade { from { opacity: 0; } to { opacity: 1; } }
.up-modal-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 26px 22px;
  position: relative;
}

/* ── Variant: DRAWER (mobile bottom sheet) ────────────────────────────── */
.up-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 8500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: upFade .15s ease-out;
}
.up-drawer-card {
  width: 100%;
  max-width: 480px;
  padding: 22px 22px 28px;
  position: relative;
  border-radius: 18px 18px 0 0;
  animation: upSlideUp .22s ease-out;
}
@keyframes upSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.up-drawer-handle {
  width: 38px; height: 4px;
  background: #d1d5db;
  border-radius: 99px;
  margin: 0 auto 16px;
}

/* ── Variant: INLINE (drop-in replacement for output area) ────────────── */
.up-inline-card {
  padding: 24px 22px;
  margin: 16px 0;
  border-style: dashed;
  background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
}

/* ── Variant: BANNER (sticky bottom strip) ────────────────────────────── */
.up-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8400;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  display: flex;
  gap: 14px;
  align-items: center;
  animation: upSlideUpFar .22s ease-out;
}
@keyframes upSlideUpFar { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.up-banner-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.4;
  color: #1a1a1a;
}
.up-banner-text strong { font-weight: 700; }
.up-banner-cta {
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.up-banner-cta:hover { background: #1d4ed8; }
.up-banner-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #7a818d;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.up-banner-close:hover { background: #f1f3f5; color: #1a1a1a; }

@media (max-width: 480px) {
  .up-banner { flex-wrap: wrap; }
  .up-banner-text { flex: 1 1 100%; margin-bottom: 4px; }
}
