.cvt {
  position: relative;
  min-height: 100%;
  color: #15181d;
  background: #fff;
}

.cvt button { border: 0; background: none; padding: 0; }
.cvt-trade-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid #f5f5f5;
  white-space: nowrap;
}
.cvt-trade-nav button { color: #70757a; font-size: 16px; font-weight: 600; min-height: 34px; }
.cvt-trade-nav button[aria-current] { color: #090a0b; font-weight: 700; }
.cvt-trade-nav button:last-child { display: grid; place-items: center; color: #111; padding-left: 4px; }

.cvt-modes {
  min-height: 51px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}
.cvt-modes nav, .cvt-tools { display: flex; align-items: center; gap: 9px; }
.cvt-modes nav button { color: #7e8083; font-size: 11px; padding: 6px 8px; border-radius: 5px; }
.cvt-modes nav button[aria-current] { color: #08090a; background: #f6f6f6; font-weight: 650; }
.cvt-tools button { display: grid; place-items: center; width: 25px; height: 30px; }

.cvt-form { padding: 0 15px 18px; }
.cvt-input-row { height: 103px; padding-top: 7px; }
.cvt-output-row { min-height: 101px; padding-top: 9px; }
.cvt-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #92979e;
  font-size: 12px;
  min-height: 22px;
}
.cvt-caption strong { font-weight: 500; color: #171819; white-space: nowrap; }
.cvt-caption .cvt-funds {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  vertical-align: baseline;
  margin-left: 2px;
  background: #e8bd34;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  line-height: 12px;
}
.cvt-value-row { min-height: 39px; display: flex; align-items: center; gap: 8px; }
.cvt .cvt-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  min-width: min-content;
  font-size: 18px;
  color: #0b0b0b;
}
.cvt-token {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--token-color);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  font-size: 15px;
}
.cvt-chevron {
  margin-left: 1px;
  border-top: 5px solid #171717;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.cvt-value-row input, .cvt-value-row output {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  text-align: right;
  font-weight: 690;
  font-size: clamp(17px, 5.9vw, 23px);
  font-variant-numeric: tabular-nums;
}
.cvt-value-row input { border: 0; padding: 0; background: transparent; outline-offset: 2px; }
.cvt-value-row input::placeholder, .cvt-value-row output { color: #d3d4d5; }
.cvt-value-row output.cvt-has-estimate { color: #161616; overflow-wrap: anywhere; }
.cvt-max-row { display: flex; justify-content: flex-end; }
.cvt-max-row button { color: #a78619; font-size: 11px; padding: 2px 0 8px 15px; }

.cvt-swap {
  position: relative;
  height: 29px;
  display: grid;
  place-items: center;
}
.cvt-swap::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid #f0f0f0; }
.cvt-swap button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fff;
  color: #161616;
  font-size: 20px;
  line-height: 1;
}
.cvt-indicative { min-height: 18px; text-align: right; font-size: 11px; color: #777c82; padding-top: 2px; }
.cvt-error { margin: 0 0 8px; font-size: 12px; color: #bf3348; line-height: 1.4; }
.cvt .cvt-primary {
  display: block;
  min-height: 48px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 7px;
  background: #fcd535;
  color: #141416;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
}
.cvt .cvt-primary:disabled { background: #fbf2c7; color: #a3a3a0; font-weight: 550; }
.cvt-form > .cvt-primary { margin-top: 27px; }

.cvt-overlay {
  position: absolute;
  z-index: 2;
  inset: 48px 0 0;
  display: flex;
  align-items: flex-end;
  background: #0008;
}
.cvt-sheet {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 0 15px 14px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}
.cvt-sheet header, .cvt-details header { position: relative; min-height: 54px; display: flex; align-items: center; }
.cvt-sheet h2 { margin: 0; font-size: 17px; font-weight: 700; }
.cvt-sheet header button, .cvt-details header button {
  position: absolute;
  right: -6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.cvt-picker-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f6f6;
  border-radius: 6px;
  padding: 0 9px;
  color: #92979e;
}
.cvt-picker-search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: none; font-size: 14px; }
.cvt-options { height: min(410px, 55vh); overflow: auto; overscroll-behavior: contain; }
.cvt .cvt-option {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  width: 100%;
  border-bottom: 1px solid #f7f7f7;
  color: #141414;
  text-align: left;
}
.cvt-option strong, .cvt-option small { display: block; line-height: 1.35; }
.cvt-option strong { font-size: 14px; }
.cvt-option small, .cvt-option-balance { color: #81858b; font-size: 12px; }
.cvt-no-assets { text-align: center; color: #81858b; font-size: 14px; }

.cvt-confirm-amounts { border-bottom: 1px solid #f5f5f5; padding: 7px 0 14px; }
.cvt-confirm-amounts div { margin-bottom: 20px; }
.cvt-confirm-amounts div > span { color: #92979e; font-size: 12px; }
.cvt-confirm-amounts p { display: flex; align-items: center; gap: 6px; margin: 10px 0; color: #181818; }
.cvt-confirm-amounts b { margin-left: auto; text-align: right; font-size: 23px; overflow-wrap: anywhere; min-width: 0; }
.cvt-terms { margin: 13px 0; }
.cvt-terms div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 38px; font-size: 13px; }
.cvt-terms dt { color: #92979e; }
.cvt-terms dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.cvt-details { padding: 0 15px 15px; }
.cvt-details header { justify-content: center; border-bottom: 1px solid #f5f5f5; }
.cvt-details h1 { margin: 0; font-size: 17px; }
.cvt-success { display: grid; justify-items: center; gap: 7px; padding: 30px 0 26px; border-bottom: 1px solid #f5f5f5; }
.cvt-success strong { font-size: 23px; }
.cvt-success span { color: #269584; font-size: 13px; }
.cvt .cvt-share { display: block; margin: 45px auto 5px; color: #81858b; font-size: 13px; }

@media (max-width: 360px) {
  .cvt-trade-nav { gap: 6px; padding-inline: 12px; }
  .cvt-trade-nav button { font-size: 14px; }
  .cvt-form, .cvt-modes { padding-inline: 12px; }
}
