/*
 * Libertate 0.19.1: two-way currency calculator.
 * The edited amount is accented; both amounts remain native text inputs.
 */
.currency-converter .converter-hint {
  margin: -2px 0 15px;
  color: var(--muted);
  font: 500 12px/1.4 var(--sans);
}
.currency-converter .converter-field {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  border-radius: 0;
}
.currency-converter .converter-field-label {
  display: block;
  margin: 0 0 7px;
  font: 750 11px/1.3 var(--sans);
  letter-spacing: .015em;
  color: var(--muted);
  transition: color .15s ease;
}
.currency-converter .converter-field.is-source .converter-field-label {
  color: var(--red-t);
}
.currency-converter .converter-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) 86px;
  gap: 9px;
  align-items: stretch;
}
.currency-converter .converter-controls .converter-input,
.currency-converter .converter-controls .converter-currency {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 49px;
  height: 49px;
  margin: 0;
  padding: 0 12px;
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  outline: 0;
  font-family: var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.currency-converter .converter-controls .converter-input {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--red-t);
}
.currency-converter .converter-controls .converter-currency {
  font-size: 15px;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}
.currency-converter .converter-controls .converter-input:hover,
.currency-converter .converter-controls .converter-currency:hover {
  border-color: var(--red-t);
}
.currency-converter .converter-field.is-source .converter-controls .converter-input {
  border-color: var(--red);
  background: #fff;
}
.currency-converter .converter-controls :is(.converter-input,.converter-currency):focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--pink);
}
.currency-converter .converter-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 9px auto 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--red-t);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.currency-converter .converter-swap:hover {
  border-color: var(--red);
  background: var(--pink);
  transform: rotate(180deg);
}
.currency-converter .converter-swap:focus-visible {
  outline: 2px solid var(--red-t);
  outline-offset: 3px;
}
.currency-converter .converter-summary {
  margin: 14px 0 0;
  border-radius: 10px;
  padding: 13px 14px;
}
.currency-converter .converter-rate {
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 380px) {
  .currency-converter .converter-controls { grid-template-columns: minmax(0,1fr) 76px; gap: 7px; }
  .currency-converter .converter-controls .converter-input { font-size: 16px; padding: 0 9px; }
  .currency-converter .converter-controls .converter-currency { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .currency-converter .converter-swap,
  .currency-converter .converter-controls :is(.converter-input,.converter-currency) {
    transition: none;
  }
}
