/* HGL Referral Kit — referral code box + centred thank-you block.
   Re-colour per landing page with the custom properties (or the --pink modifier).
   Child rules are scoped under .hgl-ref so typical page rules like ".thanks p { margin: 0 }" don't override them. */
.hgl-ref {
  --hgl-ref-bg: #FFF6DE;
  --hgl-ref-accent: #F5C242;
  --hgl-ref-ink: #14234B;
  --hgl-ref-label: #4A5578;
  --hgl-ref-note: #3D4870;
  box-sizing: border-box;
  padding: 18px 16px 20px;
  border-radius: 18px;
  background: var(--hgl-ref-bg);
  border: 2px dashed var(--hgl-ref-accent);
  text-align: center;
}
.hgl-ref--pink { --hgl-ref-bg: #FFE8EE; --hgl-ref-accent: #E8436E; }
.hgl-ref[hidden], .hgl-ref .hgl-ref__note[hidden] { display: none; }
.hgl-ref .hgl-ref__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--hgl-ref-label); }
.hgl-ref .hgl-ref__code { display: block; margin-top: 6px; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: 2px; color: var(--hgl-ref-ink); }
.hgl-ref .hgl-ref__note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--hgl-ref-note); }

@media (min-width: 1024px) {
  .hgl-ref { padding: 26px 24px 28px; border-radius: 22px; }
  .hgl-ref .hgl-ref__label { font-size: 13px; letter-spacing: 2px; }
  .hgl-ref .hgl-ref__code { margin-top: 8px; font-size: 52px; line-height: 1.05; letter-spacing: 3px; }
  .hgl-ref .hgl-ref__note { margin-top: 10px; font-size: 15px; line-height: 1.5; }
}

/* Added to the box's parent (the thank-you block) by HGLReferral.show():
   the block is centred, its first child (tick icon) and heading are centred; lists below stay left-aligned. */
.hgl-celebrate { margin-left: auto; margin-right: auto; }
.hgl-celebrate > :first-child { align-self: center; }
.hgl-celebrate > h2, .hgl-celebrate > h3 { text-align: center; }

.hgl-ref:not([hidden]) { animation: hgl-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes hgl-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hgl-ref:not([hidden]) { animation: none; } }
