@import '../css/animations.css';

.swap-page {
  background: white !important;
  background: linear-gradient(180deg, #f6f3f2 0%, rgba(246, 243, 242, 0) 100%) !important;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  margin-right: -8px;
}

.site-layout-swap {
  background: transparent !important;
}

.beta-disclaimer {
  margin-top: 24px;
}

.swap-input {
  background: white;
  max-width: 450px;
  padding: 20px 16px;
  margin: 0 auto;
}

@media only screen and (min-width: 480px) {
  .swap-input {
    padding: 24px 48px;
  }
}

@media only screen and (max-width: 1199px) {
  .swap-input {
    margin: 0 auto;
    padding: 24px 48px;
  }
}

.swap-route {
  background-color: white;
  -webkit-box-shadow: 0px 12px 88px -33px rgba(0, 0, 0, 0.17) !important;
  box-shadow: 0px 12px 60px -33px rgba(0, 0, 0, 0.17) !important;
  width: 320px;
  min-height: 450px;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}

.route-grid {
  margin: 0 auto;
  max-height: 70vh;
  width: 100%;
  overflow-y: scroll;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 400px));
  gap: 32px;
  column-gap: 20px;
}

@media only screen and (min-height: 1199px) {
  .route-grid {
    max-height: 80vh;
  }
}

@media only screen and (max-width: 1199px) {
  .route-grid {
    justify-content: center;
  }
}

@media only screen and (max-width: 845px) {
  .route-grid {
    justify-content: center;

    grid-template-columns: repeat(1, minmax(150px, 400px));
  }
}

.swap-route .ant-btn {
  margin-top: 18px;
}

.route-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
}

.route-info-badge {
  padding: 4px 8px !important;
  border: 1px solid grey !important;
  border-radius: 7px !important;
  background-color: #fdfdfd !important;
}

.no-routes-found {
  background: white;
  padding: 24px 24px 32px 48px !important;
  width: 100%;
}

@media only screen and (max-width: 480px) {
}

.no-routes-found h3 {
  margin-bottom: 20px;
}

.progress-step-list {
  padding-bottom: 24px !important;
}

.progress-step-title {
  color: #3f3f3f;
  font-size: 15px;
  margin-bottom: -3px;
}

.progress-step-descripion {
  color: #7e7e7e;
}

.ant-timeline-item-content p:last-child {
  margin-bottom: 0;
}

.swapModal {
  max-width: 600px;
}

.swapModal .anticon-edit {
  color: #9c9c9c;
}

/* laptop screen */
@media only screen and (max-height: 900px) {
  .swapModal.ant-modal {
    margin-top: -92px;
  }

  .swapModal .ant-timeline-item {
    padding-bottom: 12px;
  }
}

.swapping-modal-timeline {
  padding: 38px 0 38px 38px;
  min-height: 350px;
  overflow-y: scroll;
}

@media only screen and (max-width: 610px) {
  .swapping-modal-timeline {
    padding: 38px 0;
  }

  .swapModal {
    max-width: unset;
  }
}

.swapp-modal-footer {
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media only screen and (max-height: 650px) {
  .swapping-modal-timeline {
    padding-top: 38px;
    height: 55vh;
    overflow-y: scroll;
  }

  .swapp-modal-footer {
    height: 12vh;
  }
}

.swap-form {
  overflow: hidden;
}

h4.swap-title {
  /* color: #1e1451; */
  margin: 0px auto 24px;
  font-size: 16px;
}

.only-mobile {
  display: none;
}

.form-input-wrapper {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 4px 4px;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.chain-select {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.token-select {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none;
}
.token-verify {
  position: absolute;
  left: 24px;
  bottom: 7px;
}

.form-input-wrapper.disabled {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-input-wrapper .ant-avatar {
  margin-left: 4px;
  flex-shrink: 0;
}

.form-input-wrapper .ant-select {
  flex-grow: 1;
  overflow: hidden;
}

.form-input-wrapper input {
  font-weight: 700;
}

.insufficient {
  color: #e4305f;
}

.form-text {
  font-family: 'Inter';
  align-items: center;
  color: #888888;
  display: flex;
  padding-left: 0 !important;
  height: 100%;
}

/* mobile screen */
@media only screen and (max-width: 480px) {
  .only-mobile {
    display: block;
  }

  .ant-select-dropdown {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }
}

/* bigger */
@media only screen and (min-width: 480px) {
  .form-input-wrapper {
    padding: 8px 4px;
  }

  .form-input-wrapper .ant-select,
  .form-input-wrapper input,
  .form-text {
    font-size: 16px;
  }

  h4.swap-title {
    font-size: 1.17em;
    margin-top: 4px;
    margin-bottom: 28px;
  }
}

.ant-timeline-item .ant-avatar > img {
  padding: 2px;
  object-fit: fill;
}

.hero-image {
  margin: auto;
  border-radius: 6px;
}

.ant-btn-round.ant-btn-lg {
  border-radius: 6px;
}

.ant-select-item-option-content .disabled {
  opacity: 0.25;
}

.option-item {
  display: flex;
}

.option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 5px;
}

.option-balance {
  margin-left: auto;
}

.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,
.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content,
.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content {
  width: calc(50% - 22px);
}

.totalTime {
  border-top: 1px solid rgba(0, 0, 0, 0.85);
}

.maxButton {
  padding: 0;
  padding-right: 5px;
  font-weight: bold;
  color: grey;
  font-family: 'GT America' !important;
  background: transparent;
}

.maxButton:hover {
  color: black;
  background: transparent;
}

.amountBadge {
  width: 14px;
  height: 14px;
  padding: 0;
  font-size: 12px;
  line-height: 14px;
  border-radius: 7px;
  background-color: gray;
  color: white;
  text-align: center;
  font-weight: 400;
  position: relative;
  right: 5px;
  cursor: default;
}

.no-route-custom-collapse > .ant-collapse-item > .ant-collapse-header {
  color: grey;
  text-align: left;
  padding: 12px 16px 0px 0px;
  justify-content: start !important;

  text-decoration: underline;
}

[data-theme='compact'] .active-transfer-collapse .site-collapse-active-transfer-panel,
.active-transfer-collapse .site-collapse-active-transfer-panel {
  margin-top: 16px;
  overflow: hidden;
  border: 0px;
  border-radius: 2px;
}

.site-collapse-active-transfer-panel .ant-collapse-header {
  font-weight: 500;
  font-size: 1.17em;
}

.active-transfer-collapse .ant-collapse-content-box {
  overflow-x: scroll;
}
.tx-table {
  -webkit-box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25) !important;
  min-width: 100%;
}

/* /* .tx-table .ant-pagination-item-active {
  border: none !important;
  padding-top: 1px !important;
} */

.tx-table-icon-container {
  position: relative !important;
  margin-right: 24px;
  width: 42px;
}

.tx-table-direction-cell-chain-icon {
  position: absolute;
  left: 24px;
  z-index: 1 !important;
}

.tx-table-direction-cell-token-icon {
  position: absolute;

  z-index: 200 !important;
}

.route-delete-button {
  border-radius: 25px !important;
}

.swap-view {
  width: 95%;
  margin: auto;
}

@media only screen and (max-width: 1050px) {
  .swap-view {
    padding-bottom: 80px;
  }
}

.historicalTransfers {
  margin-top: 48px;
}

.ant-table table {
  background-color: white;
}

/* lifiEmbed view */
.lifiEmbed .site-layout-swap {
  margin-top: 0;
  min-height: auto;
}

.lifiEmbed .historicalTransfers {
  display: none;
}

.lifiEmbed .swap-form {
  -webkit-box-shadow: 0px 12px 60px -33px rgba(0, 0, 0, 0.17);
  box-shadow: 0px 12px 60px -33px rgba(0, 0, 0, 0.17);
  max-width: 500px;
}

.lifiEmbed .activeTransfers {
  margin-top: 12px;
}

.lifiEmbed .ant-pagination {
  background-color: white;
}

.lifiEmbed .poweredBy {
  position: absolute;
  top: 38px;
  right: 5px;
  padding: 6px 12px;
  background-color: white;
  border-radius: 6px;
  z-index: 100;
}
.lifiEmbed .poweredBy:hover path {
  fill: #3f49e1;
}

.lifiEmbed .wallet-buttons-embed-view {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  background-color: white;
  border-radius: 6px;
  z-index: 100;
}
