@use '../../../../../styles/abstracts/variables' as *;

.modalOverlay {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 1rem;

  background: rgba(4, 4, 6, 0.82);

  backdrop-filter: blur(14px);

  overflow-y: auto;
}

.modalContent {
  position: relative;

  width: 100%;
  max-width: 500px;

  padding: 2rem;

  border-radius: 20px;

  background: linear-gradient(
      180deg,
      rgba(22, 22, 24, 0.98) 0%,
      rgba(15, 15, 18, 1) 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.05);

    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.45);

  color: #fff;

  animation: slideUp 0.3s ease;

  h2 {
    font-size: 1rem;
    font-weight: 500;

    margin-bottom: 0.6rem;

    padding-bottom: 0.8rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  p {
    font-size: 0.8rem !important;
    line-height: 1.8;
    color: #FFF;
    margin-bottom: 1.8rem;
    font-weight: 400;
  }

  small {
    display: block;

    margin-top: 1rem;
    margin-bottom: 1.2rem;

    font-size: 0.75rem;
    line-height: 1.7;

    color: #8f8f8f;
  }
}

.closeBtn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;

  &:hover {
    color: #fff;
  }
}

.inputGroup {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;

  label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0.6rem;
  }

  input {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #333;
    box-shadow: none !important;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    color: #eee;
    margin-bottom: 1.2rem;
    font-weight: 500;

    &:focus {
      outline: none;
      border: 1px solid #333;
    }

    &::placeholder {
      color: #777;
      font-size: 0.9rem;
    }
  }
}

.selectWrapper {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  position: relative;
  cursor: pointer;
  margin-bottom: 1.2rem;
}

.selectDisplay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  span {
    flex: 1;
    font-size: 0.95rem;
    color: #ddd;
  }

  svg {
    color: #aaa;
  }
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
}

.dropdownItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;

  span {
    font-size: 0.9rem;
    color: #eee;
  }

  &:hover {
    background: #292929;
  }
}

.amountSummary {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  margin-bottom: 1.3rem;

  span {
    font-size: 0.8rem;
    color: #aaa;

    &.highlight {
      color: #f7931a;
      font-weight: 500;
    }
  }
}

.walletGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;

  label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0.6rem;
  }
}

.proceedBtn {
  width: 100%;
  padding: 0.7rem;
  background: #f7931a;
  color: $col-dark;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.25s ease;

  &:hover {
    background: #e68410;
  }
}


.balanceRow {
  display: flex;
  justify-content: space-between;
  span{
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: -0.5rem;
    line-height: .5;
    font-weight: 500;

    strong {
      color: $col-orange;
      font-weight: 500 !important;
    }
  }
}

.notice {
  background: rgba(255, 140, 66, 0.1);
  border: 1px solid #FF8C42;
  font-size: .75rem;
  padding: .5rem .6rem;
  gap: 10px;
  border-radius: 6px;
  margin-bottom: 1.3rem;
  p{
      opacity: 1;
      margin-bottom: 0 !important;
      padding-bottom: .2rem;
      color: #FF8C42 !important;
      font-size: .75rem !important;
  }
}

.error {
  font-size: .9rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

::-webkit-scrollbar{
  display: none !important;
}


.balanceCard {
  position: relative;

  padding: 1rem 1rem;

  margin-bottom: 1.5rem;

  border: 1.5px dashed rgba(247, 147, 26, 0.45);

  border-radius: 10px;

  background: rgba(247, 147, 26, 0.03);

  transition: all 0.25s ease;

  &:hover {
    border-color: rgba(247, 147, 26, 0.7);
    background: rgba(247, 147, 26, 0.05);
  }

  &__content {
    display: flex;
    justify-content: space-between;
  }

  &__label {
    font-size: 0.65rem;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8a8a;
  }

  &__amount {
    margin: 0;

    font-size: 1rem;
    font-weight: 500;

    line-height: 1;

    color: #ffffff;
  }

  &__currency {
    color: #f7931a;
    margin-right: 0.15rem;
  }
}