.popup__content {
	width: 1020px;
	padding: 40px;
	background-color: #ffffff;
	position: relative;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	background: var(--window-bg-color);
	border-radius: 10px;

	@media screen and (max-height: 700px), (max-width: 930px) {
		top: 15%;
		transform: translate(-50%);
	}

	> div {
		display: flex;

		&:first-child {
			justify-content: space-between;
			padding-bottom: 30px;
			border-bottom: 1px solid var(--delimiter-color);

			img {
				cursor: pointer;
			}
		}

		&:last-child {
			padding-top: 30px;
			gap: 40px;
		}
	}

	.popup__content__info {
		width: 100%;

		> * {
			padding: 20px 0;
			border-bottom: 1px solid var(--delimiter-color);

			&:first-child {
				padding-top: 0;
			}

			&:last-child {
				padding-bottom: 0;
				border: 0;
			}
		}

		.popup__description__row {
			display: flex;
			gap: 65px;

			.popup__description__pair {
				display: flex;
				gap: 20px;

				> :first-child {
					color: var(--font-dimmed-color);
					font-weight: 700;
				}

				.popup__buy__price {
					font-weight: 500;
					color: #45dade;
				}

				.popup__sell__price {
					font-weight: 500;
					color: #ff8585;
				}
			}
		}

		.popup__description__terms {
			display: flex;
			flex-direction: column;
			gap: 10px;

			h6 {
				color: var(--font-dimmed-color);
			}

			p {
				line-height: 139%;
			}
		}
	}

	.popup__content__form {
		> * {
			margin-bottom: 20px;

			&:last-child {
				margin-bottom: 0;
			}
		}

		input {
			width: 410px;
			padding-top: 16px;
			padding-bottom: 16px;
		}

		.popup__deposit__wrapper {
			margin-bottom: 30px;
			padding: 2px;
			background: radial-gradient(100% 188.88% at 0% 0%, #16d1d6 0%, #274cff 100%);
			border-radius: 10px;

			.popup__deposit {
				padding: 20px;
				border-radius: 8px;
				background-color: var(--window-bg-color);
				display: flex;
				flex-direction: column;
				gap: 20px;

				.deposit__pair {
					display: flex;
					gap: 20px;

					:first-child {
						color: var(--font-dimmed-color);
						font-weight: 700;
					}
				}

				> :first-child {
					display: flex;
					gap: 10px;

					h6 {
						font-weight: 700;
						color: var(--font-dimmed-color);
					}
				}

				> :last-child {
					display: flex;
					justify-content: space-between;
					gap: 20px;
				}
			}
		}

		.popup__input__wrapper {
			margin-bottom: 30px;

			> div {
				position: relative;

				input {
					padding-right: 120px;

					&.receive__input {
						padding-right: 70px !important;
					}
				}

				> :last-child {
					display: flex;
					align-items: center;
					gap: 10px;

					position: absolute;
					top: 50%;
					right: 13px;
					transform: translate(0, -50%);
					font-weight: 500;

					p {
						font-weight: 500;
					}

					button {
						padding: 0;
						width: 50px;
						height: 30px;
						border-radius: 5px;
						background-color: transparent;

						&:hover {
							background-color: transparent;
						}

						&.selected {
							background-color: #1f8feb;

							&:hover {
								background-color: #1f8feb;
							}
						}
					}
				}
			}
		}

		p.popup__input_label {
			color: var(--font-dimmed-color);
			font-weight: 700;
			margin-bottom: 8px;
		}

		p.popup__form__description {
			font-size: 14px;
			color: var(--font-dimmed-color);
		}

		.popup__button__wrapper {
			margin-bottom: 10px;
			display: flex;
			justify-content: space-between;
			flex-wrap: wrap;

			button.popup__button__cancel {
				padding-left: 54px;
				padding-right: 54px;
			}
		}
	}

	@media screen and (max-width: 1100px) {
		width: 100%;
	}

	@media screen and (max-width: 1000px) {
		.popup__description__row {
			gap: 30px !important;
		}
	}

	@media screen and (max-width: 930px) {
		> div:last-child {
			flex-direction: column;
		}

		.popup__content__form {
			input {
				width: 100%;
			}
		}
	}

	@media screen and (max-width: 540px) {
		padding-right: 20px;
		padding-left: 20px;
		.popup__button__wrapper {
			flex-direction: column;
			gap: 20px;

			button {
				width: 100%;
				padding-top: 13px;
				padding-bottom: 13px;
			}
		}

		.popup__deposit {
			> div:last-child {
				flex-direction: column;
			}
		}

		.popup__description__row {
			flex-direction: column;
			gap: 20px !important;
		}

		.popup__content__form {
			input {
				padding-top: 13px;
				padding-bottom: 13px;
			}
		}
	}
}

button {
	&.btn_buy {
		background-color: rgba(22, 209, 214, 1);

		&:hover {
			background-color: #45dade;
		}
	}

	&.btn_sell {
		background-color: #ff6767;

		&:hover {
			background-color: #ff8585;
		}
	}
}
