/* SupaPop Storefront Popup Styles
   Scoped to prevent leaking into the store's styles.
   Uses CSS custom properties for merchant theming. */

#supapop-root {
  /* Design tokens (overridable per template) */
  --supapop-bg: #FFFFFF;
  --supapop-text: #1C1C2E;
  --supapop-text-secondary: #4A4A5A;
  --supapop-accent: #FF1493;
  --supapop-accent-hover: #E0117F;
  --supapop-surface: #FFD6E8;
  --supapop-border: #E5E5E5;
  --supapop-radius-sm: 8px;
  --supapop-radius-md: 12px;
  --supapop-radius-lg: 16px;
  --supapop-font-display: 'Space Grotesk', system-ui, sans-serif;
  --supapop-font-body: 'DM Sans', system-ui, sans-serif;
  --supapop-overlay: rgba(0, 0, 0, 0.6);
}

/* Overlay */
.supapop-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: var(--supapop-overlay);
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.supapop-overlay.supapop-visible {
  opacity: 1;
}

/* Full-screen popup container */
.supapop-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  background: var(--supapop-bg);
  font-family: var(--supapop-font-body);
  color: var(--supapop-text);
  transform: translateY(100%);
  transition: transform 300ms ease-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.supapop-popup.supapop-visible {
  transform: translateY(0);
}

.supapop-popup.supapop-exiting {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

/* Close button */
.supapop-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--supapop-text);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 150ms ease;
}

.supapop-close:hover {
  background: var(--supapop-border);
}

/* Content area */
.supapop-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* Step transitions */
.supapop-step {
  width: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: transform 250ms ease-in-out, opacity 250ms ease-in-out;
}

.supapop-step.supapop-step-exit {
  opacity: 0;
  transform: translateX(-100%);
  position: absolute;
}

.supapop-step.supapop-step-enter {
  opacity: 0;
  transform: translateX(100%);
}

/* Typography */
.supapop-headline {
  font-family: var(--supapop-font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: center;
}

.supapop-subtext {
  font-size: 16px;
  color: var(--supapop-text-secondary);
  margin: 0 0 32px;
  text-align: center;
  line-height: 1.5;
}

/* Form elements */
.supapop-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--supapop-border);
  border-radius: var(--supapop-radius-sm);
  font-family: var(--supapop-font-body);
  font-size: 16px;
  color: var(--supapop-text);
  background: var(--supapop-bg);
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.supapop-input:focus {
  border-color: var(--supapop-accent);
}

.supapop-input::placeholder {
  color: var(--supapop-text-secondary);
  opacity: 0.6;
}

/* CTA button */
.supapop-cta {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--supapop-radius-lg);
  background: var(--supapop-accent);
  color: #FFFFFF;
  font-family: var(--supapop-font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 150ms ease, transform 50ms ease;
  margin-top: 8px;
}

.supapop-cta:hover {
  background: var(--supapop-accent-hover);
}

.supapop-cta:active {
  transform: scale(0.98);
}

.supapop-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Survey answer options */
.supapop-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.supapop-answer {
  padding: 16px;
  border: 2px solid var(--supapop-border);
  border-radius: var(--supapop-radius-sm);
  background: var(--supapop-bg);
  cursor: pointer;
  font-family: var(--supapop-font-body);
  font-size: 16px;
  color: var(--supapop-text);
  text-align: left;
  transition: border-color 150ms ease, border-width 150ms ease, background 150ms ease, color 150ms ease;
}

@media (hover: hover) {
  .supapop-answer:hover {
    border-color: var(--supapop-hover-border, var(--supapop-hover-bg, var(--supapop-accent)));
    border-width: var(--supapop-hover-border-width, 2px);
    background: var(--supapop-hover-bg, var(--supapop-surface)) !important;
    color: var(--supapop-hover-text) !important;
  }
}

.supapop-answer.supapop-selected {
  border-color: var(--supapop-hover-border, var(--supapop-hover-bg, var(--supapop-accent)));
  border-width: var(--supapop-hover-border-width, 2px);
  background: var(--supapop-hover-bg, var(--supapop-surface)) !important;
  color: var(--supapop-hover-text) !important;
}

/* SMS consent */
.supapop-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--supapop-text-secondary);
  line-height: 1.4;
}

.supapop-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--supapop-accent);
}

/* Discount code display */
.supapop-discount {
  padding: 16px 24px;
  background: var(--supapop-surface);
  border-radius: var(--supapop-radius-sm);
  font-family: var(--supapop-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-align: center;
  margin: 16px 0;
  user-select: all;
}

/* Error state */
.supapop-error {
  color: #FF4444;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* Loading spinner */
.supapop-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: supapop-spin 0.6s linear infinite;
}

@keyframes supapop-spin {
  to { transform: rotate(360deg); }
}

@keyframes supapop-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* V2 Section-based layout */
.supapop-section {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.supapop-section:last-child {
  margin-bottom: 0;
}

.supapop-section-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.supapop-img-overlay {
  line-height: 1;
  letter-spacing: 0.02em;
}

.supapop-section-text {
  word-break: break-word;
}

.supapop-section-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.supapop-section-button {
  width: 100%;
}

.supapop-section-spacer {
  width: 100%;
}

.supapop-section-logo {
  text-align: center;
}

.supapop-section-logo img {
  display: inline-block;
  height: auto;
}

.supapop-section-dismiss-link a {
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--supapop-font-body);
}

.supapop-section-dismiss-link a:hover {
  opacity: 0.7;
}

/* International Phone Input */
.supapop-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #E4E5E7;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #FFFFFF;
  overflow: visible;
}

.supapop-phone-wrap:focus-within {
  border-color: var(--supapop-accent, #2C6ECB);
}

.supapop-phone-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 12px 14px;
  background: none;
  border: none;
  border-right: 1px solid #E4E5E7;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

.supapop-phone-flag-arrow {
  font-size: 10px;
  color: #999;
}

.supapop-phone-input {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  flex: 1;
  min-width: 0;
}

.supapop-phone-input:focus {
  outline: none;
}

.supapop-phone-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  border: 1px solid #E4E5E7;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

.supapop-phone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #303030;
}

.supapop-phone-option:hover {
  background: #F6F6F7;
}

/* Desktop split layout */
.supapop-split-layout {
  display: flex;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.supapop-split-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
}

.supapop-split-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.supapop-content-split {
  max-width: 100%;
  padding: 0;
}

/* Responsive */
@media (min-width: 768px) {
  .supapop-headline {
    font-size: 40px;
  }

  .supapop-content {
    padding: 64px 32px;
    max-width: 520px;
  }

  .supapop-content-split {
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .supapop-split-layout {
    flex-direction: column;
  }

  .supapop-split-left,
  .supapop-split-right {
    width: 100% !important;
  }

  .supapop-content-split {
    max-width: 480px;
    padding: 48px 24px;
  }

  .supapop-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Quiz Mode ────────────────────────────────────────── */

#supapop-root.supapop-quiz-mode {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow: hidden;
}

.supapop-quiz-popup {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: none;
  border-radius: 0;
  box-shadow: none;
}

#supapop-root.supapop-quiz-mode .supapop-content {
  width: 100%;
  max-width: 600px;
  padding: 32px 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #supapop-root.supapop-quiz-mode .supapop-content {
    max-width: 800px;
    padding: 48px 32px;
  }
}

/* Progress bar (standalone, no navbar) */
.supapop-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 100000;
  transition: width 0.3s ease;
}

/* ── Navbar ─────────────────────────────────────────── */

.supapop-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  flex-shrink: 0;
}

/* Progress bar inside navbar needs explicit height and positioning */
.supapop-progress-bar.supapop-progress-bar-navbar {
  position: relative;
  bottom: auto;
  top: auto;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 1;
  display: block;
  margin-top: 10px;
}

.supapop-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.supapop-navbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.supapop-navbar-center img {
  display: block;
}

.supapop-navbar-brand {
  font-weight: 700;
  font-size: 16px;
}

.supapop-navbar-back {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  color: inherit;
  flex-shrink: 0;
  width: 36px;
}

.supapop-navbar-back:hover {
  opacity: 0.7;
}

.supapop-navbar-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* ── Container Footer ──────────────────────────────── */

.supapop-container-footer {
  padding: 16px 24px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.supapop-container-footer a {
  text-decoration: underline;
}

.supapop-container-footer a:hover {
  opacity: 0.7;
}

/* ── Footer Section ────────────────────────────────── */

.supapop-section-footer {
  padding: 16px 0;
  line-height: 1.5;
  margin-top: 16px;
}

.supapop-section-footer a {
  text-decoration: underline;
}

.supapop-section-footer a:hover {
  opacity: 0.7;
}

/* ── Quiz Option Section ────────────────────────────── */

.supapop-quiz-option {
  display: block;
  width: 100%;
  padding: 16px;
  border: 2px solid var(--supapop-border, #E5E5E5);
  cursor: pointer;
  font-family: var(--supapop-font-body);
  text-align: left;
  transition: border-color 150ms ease, border-width 150ms ease, background 150ms ease, color 150ms ease, transform 50ms ease;
  margin-bottom: 8px;
}

@media (hover: hover) {
  .supapop-quiz-option:hover {
    border-color: var(--supapop-hover-border, var(--supapop-hover-bg, var(--supapop-accent, #FF5600)));
    border-width: var(--supapop-hover-border-width, 2px);
    background: var(--supapop-hover-bg, #FFF4EE) !important;
    color: var(--supapop-hover-text) !important;
  }
}

.supapop-quiz-option.supapop-selected {
  border-color: var(--supapop-hover-border, var(--supapop-hover-bg, var(--supapop-accent, #FF5600)));
  border-width: var(--supapop-hover-border-width, 2px);
  background: var(--supapop-hover-bg, #FFF4EE) !important;
  color: var(--supapop-hover-text) !important;
}

.supapop-quiz-option:active {
  transform: scale(0.98);
}

.supapop-quiz-option-emoji {
  margin-right: 8px;
}

/* ── Loader Section ─────────────────────────────────── */

.supapop-section-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  min-height: 200px;
}

.supapop-loader-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--supapop-text, #303030);
}

.supapop-loader-spinner {
  margin-bottom: 24px;
}

.supapop-loader-spinner .supapop-loading {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--supapop-accent, #FF5600);
}

.supapop-loader-body {
  font-size: 14px;
  color: var(--supapop-text-secondary, #4A4A5A);
  line-height: 1.5;
}

.supapop-progress-list {
  text-align: center;
  margin: 0 auto 16px;
}

.supapop-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--supapop-text, #303030);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.supapop-progress-icon {
  font-size: 24px;
  line-height: 1;
}

/* ── Expander Section ───────────────────────────────── */

.supapop-section-expander {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.supapop-expander-label {
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.supapop-expander-label::-webkit-details-marker {
  display: none;
}

.supapop-expander-label::before {
  content: "+ ";
  font-weight: 700;
}

.supapop-section-expander[open] .supapop-expander-label::before {
  content: "- ";
}

.supapop-expander-body {
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Embedded Mode ──────────────────────────────────── */

#supapop-root.supapop-embed-mode {
  position: relative;
  z-index: auto;
  display: block;
}

.supapop-embed-popup {
  position: relative;
  width: 100%;
  max-width: inherit;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.supapop-embed-popup.supapop-visible {
  transform: none;
  opacity: 1;
}

#supapop-root.supapop-embed-mode .supapop-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

/* ── Loader circular progress ring ────────────────────── */
.supapop-loader-ring {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 12px auto 0;
}
.supapop-ring-svg {
  width: 130px;
  height: 130px;
  display: block;
}
.supapop-ring-progress {
  stroke-dashoffset: 339.292;
  animation-name: supapop-ring-fill;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes supapop-ring-fill {
  to { stroke-dashoffset: 0; }
}
.supapop-ring-dotg {
  transform-origin: 60px 60px;
  animation-name: supapop-ring-spin;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes supapop-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.supapop-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.supapop-ring-label {
  text-align: center;
  letter-spacing: 4px;
  font-size: 13px;
  margin-top: 16px;
  color: var(--supapop-text-secondary, #9A949A);
}

/* ── Quiz option checkbox (optional multi-select affordance) ── */
.supapop-quiz-option.supapop-quiz-option-checkbox {
  display: flex;
  align-items: center;
  gap: 14px;
}
.supapop-quiz-option-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease;
}
.supapop-quiz-option.supapop-selected .supapop-quiz-option-check {
  background: var(--supapop-check-fill, #92278F);
  border-color: var(--supapop-check-fill, #92278F);
}
.supapop-quiz-option.supapop-selected .supapop-quiz-option-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Meter / gauge section ────────────────────────────── */
.supapop-section-meter {
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-sizing: border-box;
  text-align: left;
}
.supapop-meter-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.supapop-meter-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.supapop-meter-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.supapop-meter-bar {
  position: relative;
  width: 100%;
  border-radius: 999px;
}
.supapop-meter-marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}
.supapop-meter-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Media section ────────────────────────────────────── */
.supapop-section-media { box-sizing: border-box; }
.supapop-media-video,
.supapop-media-embed { width: 100%; }
.supapop-media-el { width: 100%; display: block; border-radius: 10px; }
.supapop-media-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.supapop-media-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.supapop-media-audio { display: flex; }
.supapop-media-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #1C1C2E;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.supapop-media-audio-icon { font-size: 12px; line-height: 1; }

/* ── Testimonial section ──────────────────────────────── */
.supapop-section-testimonial {
  display: flex;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
}
.supapop-testimonial-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.supapop-testimonial-body { flex: 1; }
.supapop-testimonial-stars { font-size: 14px; letter-spacing: 1px; }
.supapop-testimonial-quote { font-size: 14px; margin-top: 4px; font-style: italic; }
.supapop-testimonial-attrib { margin-top: 6px; font-size: 12px; }

/* ── Chips section ────────────────────────────────────── */
.supapop-section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}
.supapop-chip { padding: 6px 12px; white-space: nowrap; line-height: 1.3; }

/* ── Comparison section ───────────────────────────────── */
.supapop-section-comparison { display: flex; gap: 10px; box-sizing: border-box; }
.supapop-cmp-col { flex: 1; border-radius: 10px; padding: 12px; box-sizing: border-box; }
.supapop-cmp-title { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.supapop-cmp-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-size: 13px; }
.supapop-cmp-icon { flex-shrink: 0; font-weight: 700; }

/* ── Chart section ────────────────────────────────────── */
.supapop-section-chart { box-sizing: border-box; }
.supapop-chart-title { font-weight: 700; margin-bottom: 12px; font-size: 14px; }
.supapop-chart-bars { display: flex; flex-direction: column; gap: 8px; }
.supapop-chart-bar-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 2px; }
.supapop-chart-track { height: 10px; border-radius: 999px; overflow: hidden; }
.supapop-chart-fill { height: 100%; border-radius: 999px; }
.supapop-chart-donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.supapop-chart-donut { position: relative; width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; }
.supapop-chart-donut-hole { position: absolute; inset: 22%; border-radius: 50%; }
.supapop-chart-legend { display: flex; flex-direction: column; gap: 4px; }
.supapop-chart-legend-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.supapop-chart-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.supapop-chart-line-svg { display: block; width: 100%; height: auto; overflow: visible; }
.supapop-chart-line-area { opacity: 0; animation: supapop-chart-area-in 500ms ease-out 250ms forwards; }
.supapop-chart-line-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: supapop-chart-line-in 700ms ease-out forwards;
}
.supapop-chart-line-labels { display: grid; gap: 4px; margin-top: 4px; }
.supapop-chart-line-label { min-width: 0; font-size: 11px; line-height: 1.25; }
.supapop-chart-line-label span,
.supapop-chart-line-label strong { display: block; overflow-wrap: anywhere; }
.supapop-chart-empty { font-size: 12px; }
@keyframes supapop-chart-line-in { to { stroke-dashoffset: 0; } }
@keyframes supapop-chart-area-in { to { opacity: 0.13; } }

@media (prefers-reduced-motion: reduce) {
  .supapop-chart-line-area { opacity: 0.13; animation: none; }
  .supapop-chart-line-path { stroke-dashoffset: 0; animation: none; }
}

/* Stack the comparison columns on mobile (matches the popup single-column net). */
@media (max-width: 767px) {
  .supapop-section-comparison { flex-direction: column; }
}
