/* Sweet Hub tip jar styles — append to the site's stylesheet.
 * OpenAI-style minimal: white card, hairline border, black accents. */
.tip-jar {
  max-width: 440px; margin: 40px auto; padding: 28px 28px 24px;
  border: 1px solid var(--border, #e5e5e5); border-radius: 16px;
  text-align: center; background: #fff;
}
.tip-title { font-size: 18px; font-weight: 650; margin: 0 0 6px; color: #111; }
.tip-sub { font-size: 14px; color: var(--muted, #6e6e73); margin: 0 0 18px; line-height: 1.5; }
.tip-amounts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.tip-pill {
  border: 1px solid var(--border, #e5e5e5); background: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; color: #333;
  cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s;
}
.tip-pill:hover { border-color: #111; }
.tip-pill.on { background: #111; border-color: #111; color: #fff; }
.tip-custom { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
.tip-cur { font-size: 16px; font-weight: 600; color: #111; }
.tip-amount {
  width: 100px; padding: 9px 12px; font-size: 16px; text-align: center;
  border: 1px solid var(--border, #e5e5e5); border-radius: 10px;
  font-family: inherit; color: #111; background: #fff;
}
.tip-amount:focus { outline: none; border-color: #111; }
#tip-paypal-btn { max-width: 320px; margin: 0 auto; }
.tip-thanks { font-size: 15px; font-weight: 600; color: #111; margin: 14px 0 0; }
/* 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;
}
