.fx-branch .back-link { margin-bottom: 19px; }
.fx-branch .heading-meta, .fx-caption, .fx-field-label, .fx-payout-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.fx-branch .heading-meta { margin-top: 10px; }
.fx-branch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  gap: 9%;
  margin-top: 38px;
}
.fx-section-head, .fx-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.fx-section-head { align-items: center; }
.fx-section-head .section-title { display: flex; align-items: center; gap: 8px; }
.fx-section-head .section-title::before {
  content: "";
  flex: 0 0 31px;
  height: 26px;
  background: url("../assets/currency-exchange.png") no-repeat center / contain;
  mix-blend-mode: multiply;
  transform: rotate(-6deg);
}
.fx-rate-source { display: block; color: var(--muted); font-size: 12px; }
.fx-quote { margin: 14px 0 25px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.fx-quote span { color: var(--muted); font-size: 15px; }
.fx-quote strong {
  color: var(--blue);
  font-weight: 650;
  font-size: clamp(29px, 3.4vw, 40px);
  letter-spacing: -.045em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.fx-money-controls { display: flex; gap: 8px; margin-top: 7px; }
.fx-money-controls input, .fx-money-controls select {
  color: inherit;
  font: inherit;
  height: 44px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #9b9f93;
  background: transparent;
}
.fx-money-controls input { flex: 1; min-width: 0; width: 100%; font-size: 16px; }
.fx-money-controls select { width: 116px; max-width: 52%; font-size: 14px; }
.fx-money-controls select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.fx-branch .fx-error { font-size: 13px; color: #982922; line-height: 1.5; margin-top: 6px; }
.fx-calculate { margin-top: 9px; padding: 8px 12px; border: 1px solid var(--blue); color: var(--blue); border-radius: 3px; }
.fx-result { flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 18px 0 15px; }
.fx-result output {
  position: relative;
  isolation: isolate;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.fx-result output:not(:empty)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: 1%;
  right: -1%;
  bottom: .07em;
  height: .19em;
  background: #ffe387;
  clip-path: polygon(0 24%, 94% 0, 100% 24%, 98% 81%, 2% 100%);
  transform: rotate(-1.2deg);
}
#calc-form:has([aria-invalid="true"]) .fx-result output::after { display: none; }
.fx-all-rates { margin-top: 5px; }
.fx-all-rates summary { display: list-item; width: fit-content; list-style: disclosure-closed inside; padding: 15px 0; font-size: 14px; font-weight: 570; }
.fx-all-rates[open] summary { list-style-type: disclosure-open; }
.fx-all-rates summary::-webkit-details-marker { display: inline-block; }
.fx-all-rates table { border-collapse: collapse; width: 100%; font-size: 13px; }
.fx-all-rates th, .fx-all-rates td { text-align: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 450; }
.fx-all-rates thead { color: var(--muted); }
.fx-all-rates :is(th, td):last-child { text-align: end; font-variant-numeric: tabular-nums; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fx-location .fx-caption { font-size: 12px; margin-top: 6px; }
.fx-walk { list-style: none; padding: 0 0 0 15px; margin: 14px 0 18px; }
.fx-walk li { position: relative; padding: 0 0 15px 13px; border-left: 1px solid #c1c7b8; }
.fx-walk li:last-child { padding-bottom: 0; border-color: transparent; }
.fx-walk li::before {
  position: absolute;
  left: -4px;
  top: 5px;
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--blue);
}
.fx-walk li:last-child::before { background: var(--blue); }
.fx-walk strong { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; }
.fx-walk span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.fx-branch .fx-facts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.fx-facts dt { color: var(--muted); }
@media (max-width: 749px) {
  .fx-branch-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 24px; }
  .fx-quote { margin: 11px 0 19px; }
  .fx-result { padding: 14px 0 13px; }
}
