.table__row__extended {
	@media screen and (max-width: 1700px) {
		td:first-child {
			max-width: 140px;
		}

		td:nth-child(2) {
			max-width: 160px;
		}

		td:nth-child(4) {
			max-width: 220px;
		}

		td:nth-child(5) {
			max-width: 160px;
		}

		td:last-child {
			max-width: 200px;
		}

		.user_info__price {
			span {
				font-size: 18px;
			}
		}

		.column__text {
			.column__text__title {
				width: 65px;

				&.column__limits {
					width: 50px;
				}
			}
		}
	}

	@media screen and (max-width: 1500px) {
		&.table__row__extended {
			> td {
				max-width: none;
			}
		}

		.user_info__price {
			span {
				font-size: 24px;
			}
		}

		.column__text {
			.column__text__title {
				width: 80px;

				&.column__limits {
					width: 65px;
				}
			}
		}
	}

	@media screen and (max-width: 1500px) {
		// padding: 30px 40px !important;
		// flex-direction: column;
		// gap: 20px;
		// border: 1px solid rgba(255, 255, 255, 0.1);
		// border-radius: 10px;

		width: 100%;
		position: relative;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 20px;

		td {
			width: auto !important;
			flex-direction: column;
			align-items: flex-start !important;

			&.top_element {
				width: 100% !important;
			}

			.row__label__mobile {
				display: flex !important;
			}

			&.extended__mobile {
				display: flex !important;
			}

			&.extended__hidden {
				display: none !important;
			}

			&.row__button__wrapper {
				position: absolute;
				top: 60px !important;
				right: 0;
			}
		}
	}
}

.table__row {
	padding: 40px 0;
	display: flex;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);

	td {
		width: 100%;
		display: flex;
		align-items: center;

		.table__date {
			text-align: center;
		}

		.table__offer_type {
			width: 82px;
			height: 40px;
			border-radius: 10px;
			display: flex;
			align-items: center;
			justify-content: center;

			p {
				font-weight: 700;
			}
		}

		.table__offer_type__buy {
			border: 2px solid #16d1d6;

			p {
				color: #16d1d6;
			}
		}

		.table__offer_type__sell {
			border: 2px solid #ff6767;

			p {
				color: #ff6767;
			}
		}

		&.extended__mobile {
			display: none;
			flex-direction: row;
			align-items: center !important;
			gap: 20px;

			> p {
				font-size: 16px;

				br {
					display: none;
				}
			}
		}

		@media screen and (max-width: 1450px) {
			&.extended__mobile {
				display: flex;
			}

			&.extended__hidden {
				display: none;
			}
		}

		.row__label__mobile {
			margin-bottom: 10px;
			display: none;
			font-weight: 700;
			color: rgba(255, 255, 255, 0.7);

			&.row__deposit__label {
				align-items: center;

				img {
					margin-right: 10px;
				}

				a {
					cursor: auto;
					font-weight: 700;
					color: rgba(255, 255, 255, 0.7);
				}
			}
		}
	}

	@media screen and (max-width: 1450px) {
		// padding: 30px 40px;
		// flex-direction: column;
		// gap: 20px;
		// border: 1px solid rgba(255, 255, 255, 0.1);
		// border-radius: 10px;
		position: relative;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 23px;

		td {
			flex-direction: column;
			align-items: flex-start;

			width: auto;

			.row__label__mobile {
				display: flex;
			}

			&.top_element {
				width: 100%;
			}

			&.row__button__wrapper {
				position: absolute;
				top: 37.5px;
				right: 0;
			}
		}
	}

	@media screen and (max-width: 650px) {
		padding: 40px 0 !important;
		border: 0;
		border-radius: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);

		&:last-child {
			border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		}

		td {
			&.row__button__wrapper {
				position: static;
			}

			width: 100% !important;

			&.row__button__wrapper {
				> div {
					width: 100%;

					button {
						width: 100%;
						height: 48px;

						&.row__button__iconed {
							width: 48px;
							min-width: 48px;
						}
					}
				}
			}
		}
	}
}

.row__button__wrapper {
	display: flex;
	justify-content: flex-end;

	> div {
		display: flex;
		gap: 20px;

		.row__button__view {
			position: relative;

			.row__button__notification {
				position: absolute;
				transform: translate(50%, -50%);
				top: 0;
				right: 0;
			}
		}

		button {
			padding: 0 40px;
			height: 54px;

			&.row__button__iconed {
				padding: 0;
				height: 54px;
				width: 54px;
				background-color: rgba(255, 255, 255, 0.1);

				&:hover {
					background-color: rgba(255, 255, 255, 0.3);
				}
			}
		}
	}
}

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

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

	&.btn_sell {
		background-color: #ff6767;

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

.user_info__price {
	span {
		font-size: 24px;
		font-weight: 600;
	}
}

.column__text {
	height: 56px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;

	> div {
		display: flex;

		p {
			white-space: nowrap;
		}

		.column__text__title {
			width: 80px;
			color: rgba(255, 255, 255, 0.7);

			&.column__limits {
				width: 65px;
			}
		}
	}
}

.row__currency {
	display: flex;
	align-items: center;

	img {
		height: 24px;
		width: auto;
		margin-right: 8px;
	}
}

.popup__content {
	width: 1020px;
	padding: 40px;
	background-color: #ffffff;
	position: relative;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	background: #0f2055;
	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 rgba(255, 255, 255, 0.1);

			img {
				cursor: pointer;
			}
		}

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

	.popup__content__info {
		width: 100%;

		> * {
			padding: 20px 0;
			border-bottom: 1px solid rgba(255, 255, 255, 0.1);

			&: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: rgba(255, 255, 255, 0.7);
					font-weight: 700;
				}

				.popup__buy__price {
					color: #45dade;
				}

				.popup__sell__price {
					color: #ff8585;
				}
			}
		}

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

			h6 {
				color: rgba(255, 255, 255, 0.7);
			}

			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: #0f2055;
				display: flex;
				flex-direction: column;
				gap: 20px;

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

					:first-child {
						color: rgba(255, 255, 255, 0.7);
					}
				}

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

					h6 {
						font-weight: 700;
						color: rgba(255, 255, 255, 0.7);
					}
				}

				> :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%);

					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: rgba(255, 255, 255, 0.7);
			font-weight: 700;
			margin-bottom: 8px;
		}

		p.popup__form__description {
			font-size: 14px;
			color: rgba(255, 255, 255, 0.7);
		}

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

			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;

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