.swap-main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 50px) clamp(18px, 4vw, 50px) 64px;
  overflow-wrap: anywhere;
}
.swap-main [hidden] {
  display: none !important;
}
.swap-main h1 {
  margin: 0 0 14px;
}
.swap-main h2 {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.4;
}
.swap-back {
  display: inline-block;
  color: var(--muted);
  margin: 0 0 16px;
}
.swap-panel {
  margin: 20px 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.swap-panel > :first-child,
.swap-item > :first-child {
  margin-top: 0;
}
.swap-panel > :last-child,
.swap-item > :last-child {
  margin-bottom: 0;
}
.swap-panel label > input[readonly] {
  display: block;
  width: 100%;
  margin: 5px 0 12px;
  min-height: 44px;
}
.swap-panel summary {
  font-weight: 650;
}
.swap-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.swap-primary,
.swap-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 19px;
  border-radius: 7px;
  font: inherit;
  font-weight: 625;
  text-decoration: none;
}
.swap-primary {
  background: var(--blue);
  border: 1px solid transparent;
  color: white;
}
.swap-primary:hover {
  background: #105ba9;
  text-decoration: none;
}
.swap-secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.swap-secondary:hover {
  background: var(--pale);
  text-decoration: none;
}
.swap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.swap-item {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.swap-item h2,
.swap-item h3 {
  margin-block: 6px;
}
.swap-meta,
.swap-hint,
.swap-step-hint {
  color: #596777;
}
.swap-meta,
.swap-hint {
  font-size: 14px;
}
.swap-notice {
  background: var(--pale);
  border-radius: 8px;
  padding: 13px 16px;
}
.swap-form-page {
  max-width: 810px;
}
.swap-form {
  margin-top: 24px;
}
.swap-steps {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(25px, 4vw, 39px);
}
.swap-steps li {
  flex: 1;
  color: #647181;
  border-top: 3px solid #e0e6ec;
  padding: 11px 0 0;
  font-size: 14px;
}
.swap-steps li[aria-current="step"] {
  border-color: #33444f;
  color: #1f2b37;
  font-weight: 700;
}
.swap-steps li.swap-past {
  border-color: #a8b7c2;
}
.swap-steps li span {
  margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.swap-step {
  margin: 0 0 24px;
}
.swap-step h2 {
  margin: 0 0 7px;
}
.swap-step h2:focus {
  outline: none;
}
.swap-step-hint {
  margin: 0 0 20px;
}
.swap-field {
  border: 0;
  padding: 0;
  margin: 18px 0;
  min-width: 0;
}
.swap-field > legend,
.swap-field > label,
.swap-field-line label {
  display: block;
  padding: 0;
  font-weight: 650;
  margin-bottom: 7px;
}
.swap-field-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.swap-field textarea,
.swap-field input[type="email"],
.swap-field select {
  display: block;
  width: 100%;
  min-height: 44px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.swap-field textarea {
  min-height: 92px;
  resize: vertical;
}
.swap-field textarea::placeholder,
.swap-field input::placeholder {
  color: #697787;
  opacity: 1;
}
.swap-field input[readonly] {
  background: var(--pale);
}
.swap-field .swap-hint {
  margin: 5px 0 0;
}
.swap-field [aria-invalid="true"]:not([type="radio"]) {
  border-color: #a4332e;
}
.swap-error {
  margin: 5px 0;
  color: #9b2a21;
  font-size: 14px;
}
.swap-expiry select {
  width: min(100%, 165px);
}
.swap-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swap-choice {
  position: relative;
  cursor: pointer;
}
.swap-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.swap-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #3b4958;
}
.swap-choice input:checked + span {
  background: #eaf2f9;
  color: #173958;
  border-color: #85939d;
  font-weight: 650;
}
.swap-choice input:focus-visible + span {
  outline: 2px solid #525b65;
  outline-offset: 2px;
}
.swap-choice:hover span {
  border-color: #9faab4;
}
html:not(.swap-js) [data-swap-copy] {
  display: none;
}
.swap-example {
  padding: 3px 0 3px 5px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
}
.swap-example:not(:disabled):hover {
  text-decoration: underline;
}
.swap-example:disabled {
  color: #687483;
  cursor: default;
}
.swap-form-actions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 16px;
}
.swap-form-actions .swap-primary {
  margin-left: auto;
}
.swap-recap,
.swap-target {
  margin: 15px 0 24px;
  padding: 14px 18px;
  background: var(--pale);
  border-radius: 8px;
}
.swap-recap h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.swap-recap dl,
.swap-target {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 6px;
}
.swap-recap dl {
  margin: 0;
}
.swap-recap dt,
.swap-target dt {
  color: #5a6979;
}
.swap-recap dd,
.swap-target dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .swap-main {
    padding: 20px 16px 40px;
  }
  .swap-grid {
    grid-template-columns: 1fr;
  }
  .swap-steps {
    gap: 6px;
  }
  .swap-steps li {
    font-size: 13px;
  }
  .swap-steps li span {
    margin-right: 5px;
  }
  .swap-choice span {
    min-height: 44px;
    padding: 8px 10px;
  }
  .swap-form {
    margin-top: 18px;
  }
  .swap-form-actions .swap-primary {
    flex: 1;
  }
  .swap-recap,
  .swap-target {
    padding: 12px;
  }
  .swap-recap dl,
  .swap-target {
    grid-template-columns: 5em minmax(0, 1fr);
  }
}
@media (forced-colors: active) {
  .swap-choice input:checked + span {
    outline: 2px solid SelectedItem;
  }
}
