.buy_and_sell {
    background: var(--white);
    color: #4d8cc2;
    max-width: 640px;
    padding: 1em;
}

.exchangeForm {
    padding: 8px 8px 0px;
    width: calc(100% - 16px);
}

.exchangeForm input {
    outline: none;
    border: none;
    color: dimgray;
    z-index: 2;

}

.exchangeForm__minmaxAmount {
    font-size: 0.8em;
    text-shadow: none;
    color: darkgrey;
    margin-left: 1em;
}

.exchangeForm__minmaxAmount span:nth-child(2n) {
    color: black;
    margin-right: 2em;
}

.exchangeForm__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1em;
    margin-bottom: 1em;
    justify-content: space-around;
}


/*For MOBILE*/

@media (max-aspect-ratio: 1/1) {
    .exchangeForm__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 1.5em;
        /*margin: 1em auto;*/

    }

    #contractAddress {
        font-size: 12px;
        margin: 0.5em 0;
    }
}


.exchangeForm__header-connect {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

}

.exchangeForm__header-connect button {
    opacity: 0.5;
    border-radius: 25px;
}



.exchangeForm__header-connect>span>a {
    font-size: 0.8em;
    text-shadow: none;
    color: #627eea;

}

.exchangeForm__header-connect>span {
    height: 1em;
}

.exchangeForm__header-connect>span>a:hover {
    color: green;
}



#token_total_supply {
    width: 8em;
}

.exchangeForm__preHeader input,
.exchangeForm__preHeader {
    font-size: 1em;
    margin-bottom: 0.5em;
    text-align: left;
}

.exchangeForm__preHeader input {
    width: 1em;
}


#eth_mht,
#mht_eth {
    width: 3em;
    font-size: 1em;
    text-align: end;
}

span.token_green {
    color: green;
    font-weight: 700;
}

span.token_blue {
    color: #627eea;
    font-weight: 700;
}

.exchangeForm__inputArea {
    border: 1px solid #1592a5;
    border-radius: 5px;
    padding: 0;
    margin: 10px 0;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;


}

.exchangeForm__inputArea input {
    font-size: 18px;
    width: calc(100% - 125px - 2.5em);
    background: none;
    text-align: right;
    padding: 8px;
    padding-right: 2em;
}

.exchangeForm__inputArea input::placeholder {
    opacity: 0.5;
}


.exchangeForm__inputArea>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 125px;


}


.exchangeForm__buttons {
    display: flex;
    justify-content: space-between;
}

.exchangeForm__buttons img {
    background: white;
    border-radius: 30px;
    margin-right: 0.5em;
}

.exchangeForm__buttons button {
    margin: 15px 0;
    width: 48%;
    padding: 15px;
}




.exchangeForm__balanceInfo {
    display: flex;
    flex-direction: row;
    text-shadow: none;
    font-size: 0.9em;
    color: darkgrey;
}

.exchangeForm__balanceInfo span:nth-child(2n) {
    color: #627eea;
    font-weight: 500;
}

.exchangeForm__balanceInfo-left,
.exchangeForm__balanceInfo-right,
.exchangeForm__balanceInfo-left>div,
.exchangeForm__balanceInfo-right>div {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.exchangeForm__balanceInfo-left,
.exchangeForm__balanceInfo-right {
    width: 50%;
    padding: 0 5px;
}

.exchangeForm__balanceInfo-left {
    padding-right: 1em;
}

.exchangeForm__balanceInfo-right {
    padding-left: 1em;
}


.exchangeForm__balanceInfo-right>div,
.exchangeForm__balanceInfo-right {
    align-items: flex-end;
}

.exchangeForm__balanceInfo-commission {
    position: relative;
}

.exchangeForm__balanceInfo-commission ul {

    border-radius: 10px;
    border: 1px solid grey;
    font-size: 0.8em;
    top: 1em;
    background: white;
    color: green;
    padding: 1em;
}

.exchangeForm__balanceInfo-commission li {
    margin-bottom: 1em;
}

.exchangeForm__balanceInfo-commission li b {
    color: currentColor;
    font-weight: 700;
}

.exchangeForm_contractAddressBox {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 0.5em;

}

.exchangeForm_contractAddressBox button {
    margin-right: 1em;

}

#contractAddress {
    font-weight: 300;
    font-size: 0.8em;
    margin-bottom: 1em;

}

.addTokenInfoToWallet {
    opacity: 0.4;
    font-size: 18px;

    padding: 5px;
}