/* Floating tip button — append after tip.css.
 * Bottom-right black gift button; click opens the tip card as a popover.
 * Black/white minimal to match the tip card. */
#tip-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 9000;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 1px solid #e5e5e5; color: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit; padding: 0;
}
#tip-fab:hover { transform: scale(1.06); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
#tip-fab svg { display: block; }
#tip-popover {
  position: fixed; right: 24px; bottom: 88px; z-index: 9001;
  width: 340px; max-width: calc(100vw - 48px);
  background: #fff; border: 1px solid var(--border, #e5e5e5);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 8px 8px 4px;
}
#tip-popover[hidden] { display: none; }
#tip-popover .tip-jar { margin: 0; border: none; box-shadow: none; max-width: none; }
#tip-popover-close {
  position: absolute; top: 6px; right: 10px; z-index: 2;
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--muted, #6e6e73); cursor: pointer; padding: 4px;
  font-family: inherit;
}
#tip-popover-close:hover { color: #111; }
@media (max-width: 480px) {
  #tip-fab { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  #tip-popover { right: 16px; bottom: 76px; }
}
/* Tip card is ALWAYS light — pin the light-theme tokens inside the card so
 * the dark site theme can never leak in. The PayPal button area is white by
 * design; the card around it now stays white in both site themes.
 * (Values = this snippet's own light design fallbacks; a host site whose
 * light theme defines different tokens should pin its own light values.) */
#tip-popover, .tip-jar {
  color-scheme: light;
  --border: #e5e5e5;
  --muted: #6e6e73;
}
