.rates {
  max-width: 690px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 68px) 22px 48px;
}
.rates h1 {
  margin: 0 0 25px;
}
.rates-sheet {
  padding: 24px 28px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.rates-line > label,
#fx-result-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 620;
  color: #526173;
}
.rates-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
#fx-amount,
#fx-result {
  width: 100%;
  min-width: 0;
  padding: 4px 0;
  color: var(--ink);
  font-size: clamp(30px, 5.5vw, 49px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.22;
  letter-spacing: -0.045em;
}
#fx-amount {
  border: 0;
  border-bottom: 1px solid #bac6d2;
  border-radius: 0;
}
#fx-amount:focus {
  border-color: #4e5c6b;
}
#fx-result {
  color: #125d9d;
  overflow-wrap: anywhere;
}
.rates-values select {
  min-height: 44px;
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
  background-color: #f5f8fb;
  border-color: var(--line);
}
.rates-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0;
}
.rates-divider::before,
.rates-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
#fx-swap {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
}
#fx-swap:hover,
#fx-refresh:hover {
  background: var(--pale);
}
#fx-hint,
.rates-fees p,
#fx-breakdown,
#fx-fee-note,
.rates-info {
  color: #536174;
  font-size: 14px;
}
#fx-hint {
  margin: 9px 0 24px;
}
.rates-fees {
  border-top: 1px solid var(--line);
}
.rates-fees summary {
  padding: 16px 0;
  font-weight: 600;
}
.rates-fees summary span {
  float: right;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.rates-fee-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rates-fee-fields label {
  font-size: 14px;
  color: var(--ink);
}
.rates-fee-fields input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  font-size: 16px;
}
.rates-fees p,
#fx-breakdown,
#fx-fee-note {
  margin: 10px 0 16px;
}
#fx-fee-note:empty {
  display: none;
}
.rates [aria-invalid="true"] {
  border-color: #9a3e35 !important;
}
.rates-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 2px 0;
}
.rates-info p {
  margin: 4px 0;
}
#fx-refresh {
  min-height: 44px;
  padding: 5px 10px;
  font-size: 14px;
  flex-shrink: 0;
}
#fx-refresh:disabled {
  cursor: wait;
}
@media (max-width: 540px) {
  .rates {
    padding: 25px 14px 35px;
  }
  .rates h1 {
    margin-bottom: 16px;
  }
  .rates-sheet {
    padding: 17px 15px 0;
  }
  .rates-values {
    grid-template-columns: minmax(0, 1fr) clamp(144px, 44%, 166px);
    gap: 8px;
  }
  .rates-values select {
    width: 100%;
    padding: 6px;
  }
  .rates-info {
    font-size: 12px;
  }
}
