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

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modalContent {
  background: #141414;
  padding: 2rem;
  width: 90%;
  max-width: 460px;
  border-radius: 0.75rem;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  color: #fff;

  h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    border-bottom: 1px solid #333;
    padding-bottom: .3rem;
  }

  p {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem;
    color: #bbb;
    opacity: .8 !important;
    line-height: 1.6;
    padding-top: .2rem;
  }

  small {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: -0.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-weight: 500;
  }
}

.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.5rem;
    display: inline-block;
  }
}

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

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

  img {
    width: 20px;
    height: 20px;
  }

  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;

  img {
    width: 20px;
    height: 20px;
  }

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

  &:hover {
    background: #292929;
  }
}

.amountInput {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: none !important;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: #eee;
  text-align: left;

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

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

.totalAmount {
  font-size: 0.85rem;
  color: #f7931a;
  font-weight: 500;
  margin-top: 0.25rem;
}

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

  label {
    font-size: 0.8rem;
    color: #ccc;
    // margin-bottom: 0.5rem;
    display: inline-block;
  }
}

.walletRow {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #333;
}

.walletText {
  font-size: 0.85rem;
  color: #ddd;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copyBtn {
  font-size: 0.75rem;
  color: #f7931a;
  border: none;
  background: none;
  cursor: pointer;

  &:hover {
    text-decoration: underline;
  }
}

.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;
  }
}


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