/* Exact converter: an organic travel-money sorting table. */
.exact-converter,
.exact-converter * {
  box-sizing: border-box;
}

.exact-converter .exact-converter-heading > div,
.exact-converter .bill-result-main {
  display: grid;
}

.exact-converter .eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.exact-converter .exact-converter-heading h2,
.exact-converter .exact-converter-heading p {
  margin: 0;
}

.exact-converter .amount-input-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
}

.exact-converter .amount-code {
  display: grid;
  min-width: 72px;
  padding: 0 12px;
  align-self: stretch;
  place-items: center;
  font-weight: 850;
  text-transform: uppercase;
}

.exact-converter .amount-control input {
  width: 100%;
  min-width: 0;
  font-family: inherit;
}

.exact-converter .amount-control input:focus {
  outline: 0;
}

.exact-converter .swap-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
}

.exact-converter .swap-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.exact-converter .bill-stack-item,
.exact-converter .bill-coin-item {
  display: grid;
  min-width: 0;
  place-items: center;
}

.exact-converter .bill-stack-visual {
  position: relative;
  width: 168px;
  height: 110px;
  justify-self: center;
}

.exact-converter .stacked-note {
  position: absolute;
  left: 8px;
  bottom: 12px;
  z-index: var(--stack-z);
  display: grid;
  width: 116px;
  height: 64px;
  padding: 6px;
  align-content: space-between;
  overflow: hidden;
  border: 2px solid rgba(24, 25, 31, 0.78);
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 3px, transparent 3px 11px),
    linear-gradient(115deg, var(--note-a), var(--note-b) 58%, var(--note-c));
  box-shadow: 4px 4px 0 rgba(24, 25, 31, 0.84);
  transform: translate(var(--stack-x), var(--stack-y)) rotate(var(--tilt));
}

.exact-converter .stacked-note::before,
.exact-converter .stacked-note::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.exact-converter .stacked-note::before {
  inset: 7px;
  border: 2px dashed rgba(255, 255, 255, 0.58);
  border-radius: 5px;
}

.exact-converter .stacked-note::after {
  top: -14px;
  right: -12px;
  width: 38px;
  height: 38px;
  border: 7px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.exact-converter .stacked-note.is-illustrated-stack {
  padding: 0;
  background: var(--note-b);
}

.exact-converter .stacked-note.is-illustrated-stack::before,
.exact-converter .stacked-note.is-illustrated-stack::after {
  display: none;
}

.exact-converter .stacked-note.is-illustrated-stack > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--note-image-position, 50% 50%);
}

.exact-converter .bill-stack-item.is-portrait-bill .bill-stack-visual {
  width: 112px;
  height: 154px;
}

.exact-converter .stacked-note.is-portrait-stack {
  width: auto;
  height: 116px;
  aspect-ratio: var(--note-aspect-ratio, 0.5);
}

.exact-converter .stacked-note-identity {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  display: grid;
  min-width: 42px;
  padding: 4px 5px;
  gap: 1px;
  border: 1px solid rgba(24, 25, 31, 0.72);
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 2px 2px 0 rgba(24, 25, 31, 0.34);
}

.exact-converter .stacked-note-identity strong {
  font-size: 0.82rem;
  line-height: 0.9;
}

.exact-converter .stacked-note-identity small {
  padding: 0;
  background: transparent;
  font-size: 0.48rem;
}

.exact-converter .bill-count-badge {
  position: absolute;
  z-index: 12;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.exact-converter .bill-coin-pile {
  position: relative;
  width: 116px;
  height: 84px;
}

.exact-converter .bill-stacked-coin {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: var(--coin-stack-z);
  display: flex;
  width: var(--stacked-coin-size, 60px);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  border: 3px solid rgba(24, 25, 31, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, var(--coin-c), var(--coin-a) 45%, var(--coin-b));
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.2),
    4px 4px 0 rgba(24, 25, 31, 0.8);
  clip-path: var(--coin-clip, none);
  transform: translate(var(--coin-stack-x), var(--coin-stack-y));
}

.exact-converter .bill-stacked-coin.is-shaped {
  border-radius: 0;
  filter: drop-shadow(4px 4px 0 rgba(24, 25, 31, 0.8));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.exact-converter .bill-stacked-coin::before {
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.exact-converter .bill-stacked-coin.is-shaped::before {
  border-radius: 0;
  clip-path: var(--coin-clip);
}

.exact-converter .bill-stacked-coin.has-landing-shape::before {
  inset: 12px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 2px rgba(24, 25, 31, 0.32);
  clip-path: var(--coin-landing-clip);
}

.exact-converter .bill-stacked-coin.is-bimetal {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(
      circle,
      var(--coin-core, #e8eef0) 0 38%,
      var(--coin-core-dark, #89989d) 42%,
      var(--coin-ring, var(--coin-a, #d8b448)) 44% 72%,
      var(--coin-ring-dark, var(--coin-b, #927540)) 100%
    );
}

.exact-converter .bill-stacked-coin-hole {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 20%;
  aspect-ratio: 1;
  border: 2px solid rgba(24, 25, 31, 0.78);
  border-radius: 50%;
  background: #f7f3e9;
  box-shadow: inset 1px 1px 0 rgba(24, 25, 31, 0.2);
  transform: translate(-50%, -50%);
}

.exact-converter .bill-stacked-coin.has-hole strong {
  position: absolute;
  top: 8%;
}

.exact-converter .bill-stacked-coin.has-hole small {
  position: absolute;
  bottom: 10%;
}

.exact-converter .bill-stacked-coin strong,
.exact-converter .bill-stacked-coin small {
  position: relative;
  z-index: 1;
}

.exact-converter .bill-stacked-coin strong {
  color: #10121a;
  font-size: 1.03rem;
  font-weight: 850;
  line-height: 0.9;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.48);
}

.exact-converter .bill-stacked-coin strong.is-wide {
  font-size: 0.78rem;
}

.exact-converter .bill-stacked-coin small {
  max-width: 78%;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.42rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.exact-converter .bill-stacked-coin small.is-long {
  max-width: 84%;
  font-size: 0.36rem;
}

.exact-converter .bill-stacked-coin small.is-extra-long {
  max-width: 88%;
  font-size: 0.31rem;
}

.exact-converter .empty-bill-stack {
  padding: 10px 0;
  color: #214c4e;
  line-height: 1.45;
}

.country-cash-converter-section {
  padding-top: 12px;
}

.country-cash-converter-frame {
  position: relative;
}

.country-cash-converter .cash-fixed-currency {
  position: relative;
  cursor: default;
}

.country-cash-converter .cash-fixed-badge {
  position: absolute;
  right: 7px;
  bottom: 5px;
  color: #2b5c5a;
  font-size: 0.48rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-redesign .exact-converter {
  --converter-table: #5d9693;
  --converter-table-deep: #174a4d;
  --converter-ink: #10292c;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 430px;
  margin-top: 24px;
  padding: 34px 32px 30px;
  overflow: hidden;
  border: 1px solid #244f51;
  border-radius: 7px;
  background: var(--converter-table);
  box-shadow: 0 20px 44px rgba(23, 53, 53, 0.2);
  color: var(--converter-ink);
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
  grid-template-rows: auto auto 1fr;
  transition: min-height 420ms cubic-bezier(0.23, 1, 0.32, 1);
}

.home-redesign .exact-converter::before {
  display: none;
}

.home-redesign .exact-converter.is-active {
  min-height: 650px;
}

.home-redesign .exact-converter > * {
  z-index: 2;
}

.home-redesign .exact-converter .exact-converter-heading {
  display: grid;
  max-width: 430px;
  padding: 0;
  align-items: start;
  gap: 9px;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr;
}

.home-redesign .exact-converter .exact-converter-heading > div {
  gap: 7px;
}

.home-redesign .exact-converter .eyebrow,
.home-redesign .exact-converter .exact-converter-heading h2,
.home-redesign .exact-converter .exact-converter-heading p {
  color: var(--converter-ink);
}

.home-redesign .exact-converter .exact-converter-heading h2 {
  max-width: 390px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.96;
}

.home-redesign .exact-converter .exact-converter-heading p {
  max-width: 390px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-redesign .exact-converter .counter-console {
  position: relative;
  z-index: 20;
  display: grid;
  width: min(100%, 420px);
  margin-top: 24px;
  gap: 14px;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.home-redesign .exact-converter:has(.calculator-route-controls .currency-picker.is-open) {
  z-index: 30;
  overflow: visible;
}

.home-redesign .exact-converter .calculator-route-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.home-redesign .exact-converter .calculator-route-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.home-redesign .exact-converter .calculator-route-field > span {
  color: #123f42;
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.home-redesign .exact-converter .calculator-route-field .currency-trigger {
  min-height: 58px;
  padding: 7px 28px 7px 8px;
  gap: 7px;
  border-color: rgba(16, 41, 44, 0.58);
  border-radius: 5px;
  background: #fffdf6;
  box-shadow: 3px 4px 0 rgba(16, 41, 44, 0.25);
}

.home-redesign .exact-converter .calculator-route-field .flag-icon {
  width: 32px;
  height: 22px;
  flex-basis: 32px;
  border-radius: 4px;
}

.home-redesign .exact-converter .calculator-route-field .currency-option-text strong {
  font-size: 0.86rem;
}

.home-redesign .exact-converter .calculator-route-field .currency-option-text span {
  font-size: 0.74rem;
}

.home-redesign .exact-converter .calculator-route-field .currency-option-text small {
  font-size: 0.66rem;
}

.home-redesign .exact-converter .calculator-route-field .dropdown-caret {
  right: 10px;
}

.home-redesign .exact-converter .calculator-route-field .currency-menu {
  right: auto;
  left: 0;
  width: min(320px, calc(100vw - 48px));
}

.home-redesign .exact-converter .calculator-route-field:last-child .currency-menu {
  right: 0;
  left: auto;
}

.home-redesign .exact-converter .calculator-swap-button {
  display: inline-grid;
  width: 48px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(16, 41, 44, 0.68);
  border-radius: 5px;
  background: #ffe36e;
  color: #123f42;
  box-shadow: 3px 4px 0 rgba(16, 41, 44, 0.34);
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-redesign .exact-converter .calculator-swap-button:hover {
  background: #ffec99;
  box-shadow: 4px 6px 0 rgba(16, 41, 44, 0.32);
  transform: translateY(-2px);
}

.home-redesign .exact-converter .calculator-swap-button:active {
  box-shadow: 1px 2px 0 rgba(16, 41, 44, 0.36);
  transform: translateY(1px);
}

.home-redesign .exact-converter .calculator-swap-button:focus-visible {
  outline: 3px solid #fffdf6;
  outline-offset: 3px;
}

.home-redesign .exact-converter .calculator-swap-button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.home-redesign .exact-converter .calculator-swap-button .swap-icon {
  width: 24px;
  height: 24px;
  color: inherit;
}

.home-redesign .exact-converter .amount-control {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(16, 41, 44, 0.6);
  border-radius: 5px;
  background: #fffdf6;
  box-shadow: 7px 8px 0 rgba(16, 41, 44, 0.3);
  transform: rotate(-0.7deg);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.home-redesign .exact-converter .amount-control:focus-within {
  box-shadow:
    7px 8px 0 rgba(16, 41, 44, 0.34),
    0 0 0 4px rgba(255, 227, 110, 0.68);
  transform: rotate(0deg) translateY(-2px);
}

.home-redesign .exact-converter .amount-control > .amount-control-label {
  position: static;
  z-index: auto;
  display: flex;
  width: auto;
  padding: 0;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #123f42;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: none;
  text-transform: uppercase;
  transform: none;
}

.home-redesign .exact-converter .amount-control > .amount-control-label::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid #123f42;
  background: #ffe36e;
  content: "";
}

.home-redesign .exact-converter .amount-input-shell {
  overflow: hidden;
  border: 1px solid rgba(16, 41, 44, 0.58);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-redesign .exact-converter .amount-control input {
  min-height: 64px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  color: var(--converter-ink);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 850;
}

.home-redesign .exact-converter .amount-control input::placeholder {
  color: #758483;
  font-size: 1rem;
  font-weight: 650;
}

.home-redesign .exact-converter .amount-code {
  min-width: 76px;
  border: 0;
  border-left: 1px solid rgba(16, 41, 44, 0.32);
  background: #e9f2ed;
  color: #23645f;
  font-size: 0.92rem;
}

.home-redesign .exact-converter .calculator-input-rate {
  display: block;
  margin: -2px 2px 0;
  color: #173f42;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.home-redesign .exact-converter .bill-result {
  display: grid;
  width: min(100%, 430px);
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  grid-column: 1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr);
  transform: translateY(12px);
  transition:
    max-height 360ms cubic-bezier(0.23, 1, 0.32, 1),
    margin 240ms ease,
    opacity 200ms ease,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.home-redesign .exact-converter.is-active .bill-result {
  max-height: 280px;
  margin-top: 32px;
  padding: 0;
  border: 0;
  opacity: 1;
  transform: translateY(0);
}

.home-redesign .exact-converter .bill-result-main {
  display: grid;
  padding: 0;
  border: 0;
  gap: 8px;
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr);
}

.home-redesign .exact-converter .bill-result-main span {
  color: #174f51;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.home-redesign .exact-converter .bill-result-main strong {
  max-width: 420px;
  color: #0b282b;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.home-redesign .exact-converter .bill-result-main small {
  color: #183f42;
  font-size: 0.84rem;
  font-weight: 700;
}

.home-redesign .exact-converter .bill-remainder {
  max-width: 390px;
  margin: 2px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(16, 41, 44, 0.28);
  color: #214c4e;
  font-size: 0.8rem;
  font-weight: 700;
  grid-column: auto;
  line-height: 1.45;
  opacity: 1;
}

.cash-wallet-stage {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  min-width: 0;
  overflow: hidden;
}

.cash-wallet-stage .cash-tray-label {
  position: absolute;
  z-index: 8;
  top: 24px;
  left: 24px;
  display: block;
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(16, 41, 44, 0.72);
  border-radius: 4px;
  background: #ffe36e;
  color: #10292c;
  box-shadow: 4px 4px 0 rgba(16, 41, 44, 0.36);
  font-size: 0.66rem;
  font-weight: 900;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(-8px) rotate(-1deg);
  transition:
    opacity 180ms ease 120ms,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 120ms;
}

.exact-converter.is-active .cash-wallet-stage .cash-tray-label {
  opacity: 1;
  transform: translateY(0) rotate(-1deg);
}

.converter-wallet {
  position: absolute;
  z-index: 6;
  right: -8%;
  bottom: -14%;
  width: min(56%, 480px);
  height: auto;
  filter: drop-shadow(0 22px 22px rgba(8, 31, 35, 0.34));
  pointer-events: none;
  transform: translateY(5%) rotate(-2deg) scale(0.96);
  transform-origin: 70% 100%;
  transition: transform 520ms cubic-bezier(0.23, 1, 0.32, 1);
}

.exact-converter.is-active .converter-wallet {
  transform: translateY(0) rotate(-1deg) scale(1);
}

.converter-coin-tray {
  position: absolute;
  z-index: 2;
  left: 3%;
  bottom: 14px;
  width: min(48%, 240px);
  height: auto;
  filter: drop-shadow(0 11px 9px rgba(8, 31, 35, 0.25));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) rotate(-1.2deg) scale(0.965);
  transform-origin: 50% 60%;
  transition:
    opacity 180ms ease,
    transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
  visibility: hidden;
}

.exact-converter.has-coins .converter-coin-tray {
  opacity: 1;
  transform: translateY(0) rotate(-1.2deg) scale(1);
  visibility: visible;
}

.cash-wallet-stage .bill-stack {
  position: absolute;
  z-index: 3;
  inset: 64px 2% 142px 0;
  display: block;
  overflow: visible;
  opacity: 1;
  pointer-events: none;
  transform: scale(1);
  transform-origin: 50% 55%;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  visibility: hidden;
}

.exact-converter.is-active .cash-wallet-stage .bill-stack {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.exact-converter.is-cash-pending .cash-wallet-stage .bill-stack {
  opacity: 0.24;
  transform: scale(0.985);
}

.cash-wallet-stage .cash-stack-group,
.cash-wallet-stage .cash-stack-group-grid {
  display: contents;
}

.cash-wallet-stage .cash-stack-group-heading {
  display: none;
}

.cash-wallet-stage .bill-stack-item {
  --cash-rotation: -3deg;
  position: absolute;
  z-index: 4;
  display: block;
  width: 270px;
  min-height: 170px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(var(--cash-rotation));
  transform-origin: center;
  transition:
    filter 180ms ease,
    transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.cash-wallet-stage .bill-stack-item:nth-child(1) { --cash-rotation: -4deg; top: 2%; left: 4%; }
.cash-wallet-stage .bill-stack-item:nth-child(2) { --cash-rotation: 3deg; top: 18%; left: 44%; }
.cash-wallet-stage .bill-stack-item:nth-child(3) { --cash-rotation: -1.5deg; top: 38%; left: 13%; }
.cash-wallet-stage .bill-stack-item:nth-child(4) { --cash-rotation: 4deg; top: 48%; left: 50%; }
.cash-wallet-stage .bill-stack-item:nth-child(5) { --cash-rotation: -3deg; top: 62%; left: 27%; }
.cash-wallet-stage .bill-stack-item:nth-child(6) { --cash-rotation: 2deg; top: 6%; left: 61%; }
.cash-wallet-stage .bill-stack-item:nth-child(n + 7) { --cash-rotation: -1deg; top: 70%; left: 5%; }

/* When coins are present, keep the notes in their own upper composition. */
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(1) { top: 0; }
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(2) { top: 11%; }
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(3) { top: 22%; }
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(4) { top: 28%; }
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(5) { top: 34%; }
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(6) { top: 3%; }
.exact-converter.has-coins .cash-wallet-stage .bill-stack-item:nth-child(n + 7) { top: 40%; }

/* Dense results need a wider vertical rhythm so every denomination tab stays legible. */
.exact-converter.has-coins[data-note-count="4"] .cash-wallet-stage .bill-stack-item:nth-child(3) { top: 27%; }
.exact-converter.has-coins[data-note-count="4"] .cash-wallet-stage .bill-stack-item:nth-child(4) { top: 43%; }

.exact-converter.has-coins[data-note-count="5"] .cash-wallet-stage .bill-stack-item:nth-child(4),
.exact-converter.has-coins[data-note-count="6"] .cash-wallet-stage .bill-stack-item:nth-child(4) {
  top: 38%;
}

.exact-converter.has-coins[data-note-count="5"] .cash-wallet-stage .bill-stack-item:nth-child(5),
.exact-converter.has-coins[data-note-count="6"] .cash-wallet-stage .bill-stack-item:nth-child(5) {
  top: 55%;
  left: 38%;
}

.cash-wallet-stage .bill-stack-visual {
  width: 270px;
  height: 170px;
}

.cash-wallet-stage .stacked-note {
  left: 10px;
  bottom: 13px;
  width: 218px;
  height: 116px;
  border-width: 2px;
  border-radius: 5px;
  box-shadow: 7px 8px 0 rgba(8, 31, 35, 0.52);
}

.cash-wallet-stage .bill-stack-item.is-portrait-bill {
  width: 178px;
  min-height: 188px;
}

.cash-wallet-stage .bill-stack-item.is-portrait-bill .bill-stack-visual {
  width: 162px;
  height: 188px;
}

.cash-wallet-stage .stacked-note.is-portrait-stack {
  left: 18px;
  bottom: 10px;
  width: auto;
  height: 166px;
  aspect-ratio: var(--note-aspect-ratio, 0.5);
}

.cash-wallet-stage .stacked-note.is-portrait-stack .stacked-note-identity {
  top: 7px;
  left: 7px;
  min-width: 0;
}

.cash-wallet-stage .stacked-note-identity {
  top: 7px;
  left: 7px;
  min-width: 55px;
  padding: 6px 7px;
  background: rgba(255, 253, 247, 0.94);
}

.cash-wallet-stage .stacked-note-identity strong {
  font-size: 1rem;
}

.cash-wallet-stage .stacked-note-identity small {
  font-size: 0.55rem;
}

.cash-wallet-stage .bill-count-badge {
  top: 5px;
  right: 2px;
  min-width: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(16, 41, 44, 0.76);
  border-radius: 4px;
  background: #ffe36e;
  color: #10292c;
  box-shadow: 4px 4px 0 rgba(16, 41, 44, 0.44);
  font-size: 0.9rem;
  text-shadow: none;
  transform: rotate(2deg);
}

.cash-wallet-stage .cash-stack-group-coins .bill-coin-item {
  position: absolute;
  z-index: 7;
  display: block;
  width: 48px;
  min-height: 52px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(var(--coin-rest-turn, 0deg));
  transform-origin: 50% 78%;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.cash-wallet-stage .cash-stack-group-coins .bill-coin-item::after {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: -1;
  width: 38px;
  height: 9px;
  border-radius: 50%;
  background: rgba(8, 31, 35, 0.24);
  content: "";
  filter: blur(2px);
  opacity: 0.72;
  transform: scaleX(1);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.cash-wallet-stage .cash-stack-group-coins .bill-coin-pile {
  width: 88px;
  height: 54px;
  transform: scale(0.48);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.cash-wallet-stage .cash-stack-group-coins .bill-stacked-coin {
  transition: box-shadow 180ms ease;
}

.exact-converter.is-updating .cash-wallet-stage .bill-stack-item {
  animation: bill-pull-from-wallet 840ms cubic-bezier(0.22, 0.82, 0.2, 1) backwards;
  animation-delay: var(--cash-delay, 0ms);
}

.exact-converter.is-updating .cash-wallet-stage .bill-coin-item {
  animation: coin-jump-from-wallet 920ms cubic-bezier(0.22, 0.82, 0.24, 1) backwards;
  animation-delay: var(--cash-delay, 140ms);
}

.exact-converter.is-updating .cash-wallet-stage .bill-coin-item::after {
  animation: coin-contact-shadow 920ms cubic-bezier(0.22, 0.82, 0.24, 1) backwards;
  animation-delay: var(--cash-delay, 140ms);
}

@keyframes bill-pull-from-wallet {
  0% {
    opacity: 0.12;
    transform: translate(var(--wallet-origin-x, 230px), var(--wallet-origin-y, 280px)) rotate(12deg) scale(0.58);
  }
  17% {
    opacity: 0.86;
  }
  61% {
    opacity: 1;
    transform: translate(var(--wallet-glide-x, 28px), var(--wallet-glide-y, 8px)) rotate(calc(var(--cash-rotation, 0deg) - 1.5deg)) scale(0.965);
  }
  80% {
    transform: translateY(-7px) rotate(calc(var(--cash-rotation, 0deg) + 0.6deg)) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--cash-rotation, 0deg)) scale(1);
  }
}

@keyframes coin-jump-from-wallet {
  0% {
    z-index: 5;
    opacity: 0.12;
    transform: translate(var(--wallet-origin-x, 220px), var(--wallet-origin-y, 90px)) rotate(0deg) scale(0.72);
  }
  16% {
    z-index: 5;
    opacity: 1;
  }
  24% {
    z-index: 7;
  }
  52% {
    z-index: 7;
    transform: translate(var(--coin-apex-x, 90px), var(--coin-apex-y, -96px)) rotate(var(--coin-flight-turn, 140deg)) scale(1.02);
  }
  77% {
    transform: translate(0, 2px) rotate(var(--coin-rest-turn, 0deg)) scaleX(1.08) scaleY(0.9);
  }
  88% {
    transform: translate(0, -6px) rotate(var(--coin-rest-turn, 0deg)) scaleX(0.97) scaleY(1.04);
  }
  100% {
    z-index: 7;
    opacity: 1;
    transform: translate(0, 0) rotate(var(--coin-rest-turn, 0deg)) scale(1);
  }
}

@keyframes coin-contact-shadow {
  0%, 55% {
    opacity: 0;
    transform: scaleX(0.32);
  }
  77% {
    opacity: 0.92;
    transform: scaleX(1.18);
  }
  88% {
    opacity: 0.5;
    transform: scaleX(0.88);
  }
  100% {
    opacity: 0.72;
    transform: scaleX(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .cash-wallet-stage .bill-stack-item:hover {
    z-index: 12;
    filter: saturate(1.08) contrast(1.03);
    transform: translateY(-9px) rotate(var(--cash-rotation)) scale(1.025);
  }

  .exact-converter:not(.is-updating) .cash-wallet-stage .bill-coin-item:hover {
    z-index: 12;
    transform: translateY(-10px) rotate(calc(var(--coin-rest-turn, 0deg) + 5deg));
  }

  .exact-converter:not(.is-updating) .cash-wallet-stage .bill-coin-item:hover .bill-coin-pile {
    transform: scale(0.55) rotate(-5deg);
  }

  .exact-converter:not(.is-updating) .cash-wallet-stage .bill-coin-item:hover .bill-stacked-coin.is-top {
    box-shadow:
      inset 0 0 0 4px rgba(255, 255, 255, 0.34),
      6px 7px 0 rgba(24, 25, 31, 0.82);
  }

  .exact-converter:not(.is-updating) .cash-wallet-stage .bill-coin-item:hover::after {
    opacity: 0.48;
    transform: translateY(7px) scaleX(0.82);
  }
}

@media (max-width: 900px) {
  .home-redesign .exact-converter,
  .home-redesign .exact-converter.is-active {
    display: block;
    min-height: 0;
    padding: 30px 26px 0;
  }

  .home-redesign .exact-converter .exact-converter-heading,
  .home-redesign .exact-converter .counter-console,
  .home-redesign .exact-converter .bill-result {
    width: min(100%, 620px);
    max-width: none;
  }

  .cash-wallet-stage {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% + 52px);
    height: 260px;
    margin: 24px -26px 0;
    transition: height 420ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .exact-converter.is-active .cash-wallet-stage { height: 570px; }

  .cash-wallet-stage .bill-stack { inset: 60px 3% 130px; }
  .converter-coin-tray {
    left: 4%;
    bottom: 12px;
    width: min(42%, 240px);
  }
  .converter-wallet { right: -7%; width: min(60%, 470px); }
}

@media (max-width: 560px) {
  .home-redesign .exact-converter,
  .home-redesign .exact-converter.is-active {
    padding: 24px 18px 0;
  }

  .home-redesign .exact-converter .exact-converter-heading h2 { font-size: 2.15rem; }
  .home-redesign .exact-converter .exact-converter-heading p { font-size: 0.82rem; }
  .home-redesign .exact-converter .counter-console { margin-top: 20px; }

  .home-redesign .exact-converter .calculator-route-controls {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 6px;
  }

  .home-redesign .exact-converter .calculator-swap-button {
    width: 44px;
    height: 54px;
  }

  .home-redesign .exact-converter .calculator-route-field .currency-trigger {
    min-height: 54px;
    padding: 7px 25px 7px 7px;
  }

  .home-redesign .exact-converter .calculator-route-field .currency-trigger .currency-option-text span,
  .home-redesign .exact-converter .calculator-route-field .currency-trigger .currency-option-text small {
    display: none;
  }

  .home-redesign .exact-converter .calculator-route-field .currency-menu {
    width: min(320px, calc(100vw - 36px));
  }

  .home-redesign .exact-converter .amount-control {
    padding: 11px;
    box-shadow: 5px 6px 0 rgba(16, 41, 44, 0.3);
  }

  .home-redesign .exact-converter .amount-control input {
    min-height: 56px;
    font-size: 1.7rem;
  }

  .home-redesign .exact-converter.is-active .bill-result {
    max-height: 310px;
    margin-top: 27px;
  }

  .home-redesign .exact-converter .bill-result-main strong {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }

  .cash-wallet-stage {
    width: calc(100% + 36px);
    height: 240px;
    margin: 22px -18px 0;
  }

  .exact-converter.is-active .cash-wallet-stage { height: 620px; }

  .cash-wallet-stage .cash-tray-label { top: 16px; left: 18px; }
  .cash-wallet-stage .bill-stack { inset: 58px 1% 128px; }

  .converter-coin-tray {
    left: 4%;
    bottom: 4px;
    width: min(66%, 220px);
  }

  .cash-wallet-stage .cash-stack-group-coins .bill-coin-item {
    z-index: 7;
    width: 44px;
    min-height: 48px;
  }

  .cash-wallet-stage .cash-stack-group-coins .bill-coin-item::after {
    left: 5px;
    width: 36px;
  }

  .cash-wallet-stage .cash-stack-group-coins .bill-coin-pile {
    width: 84px;
    height: 52px;
    transform: scale(0.46);
  }

  .cash-wallet-stage .bill-stack-item {
    width: 225px;
    min-height: 144px;
  }

  .cash-wallet-stage .bill-stack-visual { width: 225px; height: 144px; }
  .cash-wallet-stage .stacked-note { width: 184px; height: 98px; }

  .cash-wallet-stage .bill-stack-item.is-portrait-bill {
    width: 150px;
    min-height: 164px;
  }

  .cash-wallet-stage .bill-stack-item.is-portrait-bill .bill-stack-visual {
    width: 138px;
    height: 164px;
  }

  .cash-wallet-stage .stacked-note.is-portrait-stack {
    left: 15px;
    width: auto;
    height: 144px;
  }

  .cash-wallet-stage .bill-stack-item:nth-child(1) { top: 0; left: 0; }
  .cash-wallet-stage .bill-stack-item:nth-child(2) { top: 18%; left: 34%; }
  .cash-wallet-stage .bill-stack-item:nth-child(3) { top: 37%; left: 3%; }
  .cash-wallet-stage .bill-stack-item:nth-child(4) { top: 51%; left: 38%; }
  .cash-wallet-stage .bill-stack-item:nth-child(5) { top: 66%; left: 12%; }

  .converter-wallet {
    z-index: 2;
    right: -38%;
    bottom: -18%;
    width: min(88%, 430px);
  }
}

/* Country guides use the same converter engine in a tighter editorial frame. */
.country-cash-converter-section {
  padding-block: 0;
}

.cbc-guide-page .country-cash-converter-frame {
  padding-block: 32px;
}

.home-redesign .exact-converter.country-cash-converter {
  min-height: 360px;
  margin-top: 0;
  padding: 24px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
}

.home-redesign .exact-converter.country-cash-converter.is-active {
  min-height: 580px;
}

.home-redesign .exact-converter.country-cash-converter.is-active.has-coins[data-note-count="5"],
.home-redesign .exact-converter.country-cash-converter.is-active.has-coins[data-note-count="6"] {
  min-height: 650px;
}

.home-redesign .country-cash-converter .exact-converter-heading {
  gap: 6px;
}

.home-redesign .country-cash-converter .exact-converter-heading > div {
  gap: 4px;
}

.home-redesign .country-cash-converter .exact-converter-heading h2 {
  max-width: 360px;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1;
}

.home-redesign .country-cash-converter .exact-converter-heading p {
  max-width: 360px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.home-redesign .country-cash-converter .counter-console {
  width: min(100%, 390px);
  margin-top: 16px;
  gap: 10px;
}

.home-redesign .country-cash-converter .calculator-route-field .currency-trigger,
.home-redesign .country-cash-converter .calculator-swap-button {
  min-height: 52px;
  height: 52px;
}

.home-redesign .country-cash-converter .amount-control {
  padding: 10px;
  gap: 5px;
  box-shadow: 5px 6px 0 rgba(16, 41, 44, 0.28);
}

.home-redesign .country-cash-converter .amount-control input {
  min-height: 52px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.home-redesign .country-cash-converter .bill-result {
  width: min(100%, 390px);
}

.home-redesign .country-cash-converter.is-active .bill-result {
  margin-top: 20px;
}

.home-redesign .country-cash-converter .bill-result-main strong {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.country-cash-converter .cash-wallet-stage {
  width: 58%;
}

@media (max-width: 900px) {
  .country-cash-converter-section {
    padding-block: 0;
  }

  .cbc-guide-page .country-cash-converter-frame {
    padding-block: 28px;
  }

  .home-redesign .exact-converter.country-cash-converter,
  .home-redesign .exact-converter.country-cash-converter.is-active {
    display: block;
    min-height: 0;
    padding: 24px 22px 0;
  }

  .country-cash-converter .cash-wallet-stage {
    position: relative;
    width: calc(100% + 44px);
    height: 190px;
    margin: 18px -22px 0;
  }

  .country-cash-converter.is-active .cash-wallet-stage {
    height: 570px;
  }

  .country-cash-converter.is-active.has-coins[data-note-count="5"] .cash-wallet-stage,
  .country-cash-converter.is-active.has-coins[data-note-count="6"] .cash-wallet-stage {
    height: 630px;
  }
}

@media (max-width: 560px) {
  .country-cash-converter-section {
    padding-block: 0;
  }

  .cbc-guide-page .country-cash-converter-frame {
    padding-block: 24px;
  }

  .home-redesign .exact-converter.country-cash-converter,
  .home-redesign .exact-converter.country-cash-converter.is-active {
    padding: 20px 16px 0;
  }

  .home-redesign .country-cash-converter .exact-converter-heading h2 {
    font-size: 1.85rem;
  }

  .home-redesign .country-cash-converter .counter-console {
    margin-top: 15px;
  }

  .home-redesign .country-cash-converter .amount-control input {
    min-height: 50px;
    font-size: 1.55rem;
  }

  .home-redesign .country-cash-converter.is-active .bill-result {
    margin-top: 20px;
  }

  .home-redesign .country-cash-converter .bill-result-main strong {
    font-size: clamp(2.05rem, 11vw, 2.85rem);
  }

  .country-cash-converter .cash-wallet-stage {
    width: calc(100% + 32px);
    height: 170px;
    margin: 18px -16px 0;
  }

  .country-cash-converter.is-active .cash-wallet-stage {
    height: 580px;
  }

  .country-cash-converter.is-active.has-coins[data-note-count="5"] .cash-wallet-stage,
  .country-cash-converter.is-active.has-coins[data-note-count="6"] .cash-wallet-stage {
    height: 650px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-redesign .exact-converter,
  .home-redesign .exact-converter .bill-result,
  .home-redesign .exact-converter .amount-control,
  .cash-wallet-stage .cash-tray-label,
  .cash-wallet-stage .bill-stack,
  .cash-wallet-stage .bill-stack-item,
  .cash-wallet-stage .bill-coin-item,
  .cash-wallet-stage .bill-coin-item::after,
  .cash-wallet-stage .bill-coin-pile,
  .cash-wallet-stage .bill-stacked-coin,
  .converter-wallet,
  .converter-coin-tray,
  .cash-wallet-stage {
    transition: none;
  }

  .exact-converter.is-updating .cash-wallet-stage .bill-stack-item,
  .exact-converter.is-updating .cash-wallet-stage .bill-coin-item,
  .exact-converter.is-updating .cash-wallet-stage .bill-coin-item::after {
    animation: none;
  }
}
