/* neo-credit 0.4.0: signup referral code field + fine print. Theme tokens with fallbacks. */
.neo-fon-code { margin: 4px 0 14px; }
.neo-fon-code__toggle {
  appearance: none; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: var(--neo-label-size, 13.5px); color: var(--neo-blue, #1E5BD8);
  text-decoration: underline; text-underline-offset: 3px;
}
.neo-fon-code__toggle:focus-visible { outline: 2px solid var(--neo-blue, #1E5BD8); outline-offset: 2px; border-radius: 4px; }
.neo-fon-code__label {
  display: block; margin: 0 0 6px; font-size: var(--neo-label-size, 13.5px); font-weight: 600; color: var(--neo-ink, #0B1A30);
}
.neo-fon-code__row { display: flex; gap: 8px; align-items: stretch; }
.neo-fon-code__row .neo-fon-code__input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; text-transform: uppercase; letter-spacing: 0.04em;
  font-family: var(--neo-font-mono, ui-monospace, monospace);
}
.neo-fon-code__row .neo-fon-code__input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--neo-font, system-ui, sans-serif); }
.neo-fon-code__row .neo-fon-code__apply { flex: 0 0 auto; min-height: 48px; min-width: 88px; margin: 0; }
.neo-fon-code__field { position: relative; flex: 1 1 auto; min-width: 0; }
.woocommerce-account .woocommerce form .neo-fon-code__field .input-text.neo-fon-code__input,
.neo-auth .neo-fon-code__field .input-text.neo-fon-code__input,
.neo-fon-code__field .input-text.neo-fon-code__input,
.woocommerce-account .woocommerce form .neo-fon-code__field .input-text.neo-fon-code__input:focus,
.neo-auth .neo-fon-code__field .input-text.neo-fon-code__input:focus,
.neo-fon-code__field .input-text.neo-fon-code__input:focus,
.woocommerce-account .woocommerce form .neo-fon-code__field .input-text.neo-fon-code__input:focus-visible,
.neo-auth .neo-fon-code__field .input-text.neo-fon-code__input:focus-visible,
.neo-fon-code__field .input-text.neo-fon-code__input:focus-visible,
.woocommerce-account .woocommerce form .neo-fon-code.is-invalid .neo-fon-code__field .input-text.neo-fon-code__input,
.neo-auth .neo-fon-code.is-invalid .neo-fon-code__field .input-text.neo-fon-code__input,
.neo-fon-code.is-invalid .neo-fon-code__field .input-text.neo-fon-code__input {
  width: 100%;
  height: var(--neo-input-h, 50px);
  box-sizing: border-box;
  padding-right: 44px;
  border: 2px solid #0E1B2E !important;
  box-shadow: none !important;
  outline: none !important;
}
.woocommerce-account .woocommerce form .neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input,
.neo-auth .neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input,
.neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input,
.woocommerce-account .woocommerce form .neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input:focus,
.neo-auth .neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input:focus,
.neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input:focus,
.woocommerce-account .woocommerce form .neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input:focus-visible,
.neo-auth .neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input:focus-visible,
.neo-fon-code.is-valid .neo-fon-code__field .input-text.neo-fon-code__input:focus-visible {
  border: 2px solid #2DFC02 !important;
  box-shadow: none !important;
  outline: none !important;
}
.neo-fon-code__check {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: #2DFC02;
  pointer-events: none;
}
.neo-fon-code.is-valid .neo-fon-code__check { display: block; }
.neo-fon-code__check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 4px;
  height: 9px;
  border: solid #0E1B2E;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.neo-fon-code__msg { margin: 6px 0 0; font-size: var(--neo-fine-size, 13px); line-height: 1.45; color: var(--neo-muted, #4A5A70); }
.neo-fon-code.is-valid .neo-fon-code__msg { display: none; }
.neo-fon-code.is-invalid .neo-fon-code__msg { color: #B3261E; font-weight: 600; }
.neo-fon-code.is-valid { margin-bottom: 0; }
.neo-fon-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin: 12px 0 28px;
  padding: 16px;
  background: #0E1B2E;
  border-radius: 16px;
  color: #FFFFFF;
  overflow: hidden;
  animation: neo-fon-banner-in 300ms ease-out both;
}
.neo-fon-banner[hidden] { display: none; }
.neo-fon-banner__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2DFC02;
  position: relative;
}
.neo-fon-banner__icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 7px;
  width: 7px;
  height: 14px;
  border: solid #0E1B2E;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.neo-fon-banner__copy { flex: 1 1 auto; min-width: 0; padding-right: 36px; }
.neo-fon-banner__heading {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
}
.neo-fon-banner__body {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  color: #FFFFFF;
}
.neo-fon-banner__amount { font-weight: 800; color: #2DFC02; }
.neo-fon-banner__confetti {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 72px;
  pointer-events: none;
}
.neo-fon-banner__confetti i {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.neo-fon-banner__confetti i:nth-child(1) { top: 14px; right: 42px; width: 3px; height: 3px; background: #7FA8FF; }
.neo-fon-banner__confetti i:nth-child(2) { top: 16px; right: 22px; width: 3px; height: 3px; background: #2DFC02; }
.neo-fon-banner__confetti i:nth-child(3) { top: 18px; right: 8px; width: 3px; height: 3px; background: #2DFC02; }
.neo-fon-banner__confetti i:nth-child(4) { top: 36px; right: 16px; width: 2px; height: 2px; background: #7FA8FF; }
.neo-fon-banner__confetti i:nth-child(5) { top: 52px; right: 20px; width: 2px; height: 2px; background: #2DFC02; }
@keyframes neo-fon-banner-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .neo-fon-banner { animation: none; }
}
/* Option B Friend Cash box (0.4.10). div.neo-fon-gift is used so theme promo.css
   p.neo-fon-fine[data-neo-fon-fine] (pale-green 1px callout) does not apply.
   The p.neo-fon-fine rules below neutralize that callout if the theme selector ever matches. */
.woocommerce-account .neo-fon-gift,
.neo-auth .neo-fon-gift,
div.neo-fon-gift[data-neo-fon-gift],
.woocommerce-account p.neo-fon-fine[data-neo-fon-fine],
.neo-auth p.neo-fon-fine[data-neo-fon-fine],
p.neo-fon-fine[data-neo-fon-fine] {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0 0;
  padding: 20px !important;
  background: #EAF0FF !important;
  border: 2px solid #1B3AE0 !important;
  border-radius: 16px !important;
  color: #0E1B2E;
  font-family: var(--neo-font, system-ui, sans-serif);
  box-shadow: none !important;
  position: relative;
}
.woocommerce-account .neo-fon-gift[hidden],
.neo-auth .neo-fon-gift[hidden],
div.neo-fon-gift[data-neo-fon-gift][hidden],
p.neo-fon-fine[data-neo-fon-fine][hidden] {
  display: none !important;
}
.woocommerce-account p.neo-fon-fine[data-neo-fon-fine]::before,
.neo-auth p.neo-fon-fine[data-neo-fon-fine]::before,
p.neo-fon-fine[data-neo-fon-fine]::before,
div.neo-fon-gift[data-neo-fon-gift]::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.neo-fon-gift__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: no-repeat center / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231B3AE0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='14' height='9' rx='1.5'/%3E%3Cpath d='M2 5.5h16V8H2zM10 5.5V17M10 5.5C8.6 3 5.8 2.6 5.8 4.3 5.8 5.5 10 5.5 10 5.5zM10 5.5c1.4-2.5 4.2-2.9 4.2-1.2 0 1.2-4.2 1.2-4.2 1.2z'/%3E%3C/svg%3E");
}
.neo-fon-gift__content { flex: 1 1 auto; min-width: 0; }
.neo-fon-gift__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #0E1B2E;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.neo-fon-gift__title[hidden],
.neo-fon-gift__lead[hidden],
.neo-fon-gift__tail[hidden],
.neo-fon-gift__body[hidden],
.neo-fon-gift__fine[hidden] { display: none !important; }
.neo-fon-gift__badge {
  display: inline-block;
  padding: 2px 6px;
  background: #2DFC02;
  color: #0E1B2E;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}
.neo-fon-gift__body {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: #0E1B2E;
}
.woocommerce-account .neo-fon-gift [data-neo-fon-fine-text],
.neo-fon-gift [data-neo-fon-fine-text] { font-weight: 500; }
.neo-fon-gift__meta {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #4A5568;
}
.neo-fon-gift__link,
.neo-fon-gift .neo-fon-fine__link,
.neo-fon-fine__link {
  display: inline;
  margin-left: 4px;
  color: #1B3AE0;
  font-weight: 600;
  text-underline-offset: 3px;
}
