/* ── ONJJEM Shared Cartoonify Styles ─────────────────────────────────────── */
/* Include on any product page with: <link rel="stylesheet" href="/cartoonify-shared.css"> */

.cartoon-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,7,25,0.92);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cartoon-preview-card {
  background: #2a2a2a;
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}
.cartoon-preview-title {
  font-weight: 700;
  font-size: 19px;
  color: #F3E2BC;
  margin-bottom: 16px;
}
.cartoon-email-note {
  color: rgba(243,234,255,0.75);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.cartoon-preview-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #1A1206;
  min-height: 200px;
  object-fit: contain;
}
.cartoon-preview-loading {
  color: rgba(243,234,255,0.7);
  font-size: 14px;
  padding: 60px 0;
}
.cartoon-preview-loading::after {
  content: "⏳";
  font-size: 32px;
  display: block;
  animation: cartoonSpin 1.2s linear infinite;
}
@keyframes cartoonSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cartoon-btn-primary {
  background: #D4B14A;
  color: #1A1206;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cartoon-btn-secondary {
  background: transparent;
  color: rgba(243,234,255,0.7);
  border: 1px solid rgba(243,234,255,0.3);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.cartoon-sparkle-badge {
  display: inline-block;
  background: linear-gradient(135deg,#B8892A,#D4B14A,#F3E2BC,#B8892A);
  color: #1A1206;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  animation: cartoonSparklePulse 1.3s ease-in-out infinite;
}
@keyframes cartoonSparklePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
.cartoon-highlight {
  color: #F3D078 !important;
  font-weight: 700;
  font-size: 15px !important;
}
.cartoon-btn-glow {
  animation: cartoonBtnGlow 1.4s ease-in-out infinite;
}
@keyframes cartoonBtnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,177,74,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(212,177,74,0); }
}
