/* ND Donation Panel (scroll-triggered; no heart button) */

#nd-donation-panel {
  --nd-panel-bg: #c7e9f5;
  --nd-text-color: #20252a;
  --nd-button-bg: #d25b79;
  --nd-button-bg-hover: #f1b53d;

  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9998;

  width: min(320px, 90vw);
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--nd-panel-bg);
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  color: var(--nd-text-color);
  box-sizing: border-box;
}

/* Start hidden until JS shows it */
#nd-donation-panel.is-pending {
  display: none;
}

/* Dismissed for session */
#nd-donation-panel.is-dismissed {
  display: none;
}

#nd-donation-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: none;
  color: var(--nd-text-color);
}

#nd-donation-panel .nd-donation-text {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--nd-text-color);
}

#nd-donation-panel .nd-donation-button {
  display: inline-block;
  padding: 0.875rem;
  background: var(--nd-button-bg);
  border-radius: 0.1875rem;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

#nd-donation-panel .nd-donation-button:hover,
#nd-donation-panel .nd-donation-button:focus {
  background: var(--nd-button-bg-hover);
  color: #fff;
}

#nd-donation-panel .nd-donation-close {
  position: absolute;
  z-index: 9999;
  top: 0.4rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--nd-text-color);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

#nd-donation-panel .nd-donation-close:hover {
  background: rgba(0,0,0,0.06);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  #nd-donation-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}