/* Devanosi currency switch (₦ NGN / £ GBP / $ USD) and the amounts that follow it (public/currency/currency.js).
   A pill glides under the chosen currency on a soft spring; an amount drops its new symbol in and rolls its digits.
   Colours come from the brand tokens (public/brand/tokens.css) with plain fallbacks, so it sits on any host page. */
.cur-sw {
  --cur-ink: var(--ink, #0C112A); --cur-line: var(--line, rgba(26, 35, 96, .14)); --cur-pill: var(--wine, #1A2360); --cur-on: var(--on-wine, #F4F0E7);
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch;
  padding: 3px; border-radius: 999px; border: 1px solid var(--cur-line); background: rgb(var(--card-rgb, 251 249 244) / .7);
  font: 600 12px/1 var(--label, system-ui, sans-serif); letter-spacing: .02em; isolation: isolate; vertical-align: middle;
}
.cur-sw::before {
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3);
  border-radius: 999px; background: var(--cur-pill); box-shadow: 0 6px 14px -8px rgb(var(--shade, 12 17 42) / .55);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .52s cubic-bezier(.34, 1.36, .5, 1);
}
.cur-sw__b {
  appearance: none; border: 0; background: none; cursor: pointer; color: var(--cur-ink); font: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 58px; min-height: 44px; padding: 0 10px; border-radius: 999px; box-sizing: border-box;
  transition: color .3s ease, transform .18s ease;
}
.cur-sw__b b { font: 600 15px/1 var(--display, Georgia, serif); }
.cur-sw__b span { opacity: .72; }
.cur-sw__b[aria-pressed="true"] { color: var(--cur-on); }
.cur-sw__b[aria-pressed="true"] span { opacity: .9; }
.cur-sw__b:active { transform: scale(.94); }
.cur-sw__b:focus-visible { outline: 2px solid var(--thread, #DD3858); outline-offset: 2px; }
.cur-sw--sm .cur-sw__b { min-width: 48px; min-height: 44px; padding: 0 8px; } /* 44 px: the smallest tap target */
.cur-sw--sm .cur-sw__b span { display: none; }

/* an amount changing currency: the new symbol drops in, the digits roll (the roll itself is in currency.js) */
[data-money] { font-variant-numeric: tabular-nums; display: inline-block; }
[data-money].is-rolling { animation: cur-drop .46s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes cur-drop { 0% { opacity: .2; transform: translateY(-.32em); filter: blur(2px); } 60% { opacity: 1; filter: none; } 100% { transform: none; } }

/* the "why this is in naira" line under a price */
.cur-note { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font: 13px/1.45 var(--body, system-ui, sans-serif); color: var(--ink-2, #555A74); }
.cur-note::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--thread, #DD3858); }
.cur-note[hidden] { display: none; }
.cur-note.is-new { animation: cur-note .5s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes cur-note { from { opacity: 0; transform: translateY(-4px); } }

/* "charged as ₦13,500": a price that Paystack cannot charge as shown says what is charged, right beside it (src/pricing.js chargeRow) */
.cur-charged { display: block; margin-top: 4px; font: 600 13px/1.3 var(--body, system-ui, sans-serif); letter-spacing: .01em; color: var(--ink-2, #555A74); font-variant-numeric: tabular-nums; }
.cur-charged[hidden] { display: none; }
.cur-charged.is-new { animation: cur-note .5s cubic-bezier(.2, .9, .3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .cur-sw::before, .cur-sw__b { transition: none; }
  [data-money].is-rolling, .cur-note.is-new, .cur-charged.is-new { animation: none; }
}

/* where the switch sits on the Share page's pay step */
.ss-cur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 2px; }
.ss-cur .cur-note { margin: 0; flex: 1 1 220px; }

/* the studio's Publish tab */
.pub__currow { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.pub__curl { font: 600 12px/1 var(--label, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2, #555A74); }
