@font-face {
	font-family: 'Gmarket Sans';
	font-weight: 500;
	font-style: normal;
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
}

@font-face {
	font-family: 'Gmarket Sans';
	font-weight: 700;
	font-style: normal;
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.coin-exchange-page {
	background: #101010;
	font-family: 'Gmarket Sans', sans-serif;
	color: #ffffff;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.coin-exchange {
	width: 720px;
	max-width: 100%;
	flex-shrink: 0;
	margin: 0;
	padding: 40px 64px 80px;
	background: #101010;
	display: flex;
	flex-direction: column;
}

.coin-exchange__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 20px;
}

.coin-exchange__title {
	flex: 1;
	text-align: center;
	font-size: 60px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.coin-exchange__close {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	margin-left: 8px;
}

.coin-exchange__close img {
	width: 40px;
	height: 40px;
	display: block;
}

.coin-exchange__subtitle {
	text-align: center;
	font-size: 20px;
	font-weight: 500;
	color: #c1b07d;
	margin-bottom: 44px;
	line-height: 1.4;
}

.coin-exchange__section {
	display: flex;
	flex-direction: column;
	margin-bottom: 48px;
}

.coin-exchange__section:last-child {
	margin-bottom: 0;
}

.coin-exchange__section-title {
	font-size: 28px;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 24px;
	line-height: 1.2;
}

.coin-exchange__wallet-panel {
	display: grid;
	grid-template-columns: 7fr 3fr;
	column-gap: 20px;
	align-items: stretch;
	margin-bottom: 20px;
}

.coin-exchange__wallet-left {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.coin-exchange__wallet-left .coin-exchange__section-title {
	margin-bottom: 16px;
}

.coin-exchange__wallet-info {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1 1 auto;
	min-width: 0;
}

.coin-exchange__usdt-icon {
	width: 84px;
	height: 84px;
	display: block;
	flex-shrink: 0;
}

.coin-exchange__wallet-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.coin-exchange__wallet-name {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 28px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1.2;
}

.coin-exchange__wallet-network {
	font-size: 20px;
	font-weight: 500;
	color: #c1b07d;
}

.coin-exchange__wallet-hint {
	font-size: 20px;
	font-weight: 500;
	color: #ababab;
	line-height: 1.2;
}

.coin-exchange__qr {
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	justify-self: end;
	align-self: center;
	padding: 0;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
}

.coin-exchange__qr canvas {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	display: block;
}

.coin-exchange__qr.is-empty {
	visibility: hidden;
}

.coin-exchange__address-wrap {
	position: relative;
	margin-bottom: 28px;
	z-index: 1;
}

.coin-exchange__address-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 64px;
	padding: 0 20px;
	background: #262625;
	border-radius: 10px;
	box-shadow: 0px 1px 0px 0px rgba(235, 235, 235, 0.18);
	margin-bottom: 0;
}

.coin-exchange__copy-toast {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	z-index: 20;
	pointer-events: none;
}

.coin-exchange__copy-toast .toast-item {
	min-width: 0;
	width: 100%;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.coin-exchange__status-wrap {
	position: relative;
	z-index: 1;
}

.coin-exchange__status-toast {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	z-index: 20;
	pointer-events: none;
}

.coin-exchange__status-toast .toast-item {
	min-width: 0;
	width: 100%;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.coin-exchange__address {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1.2;
	word-break: break-all;
}

.coin-exchange__copy {
	width: 32px;
	height: 36px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.coin-exchange__copy img {
	width: 32px;
	height: 36px;
	display: block;
}

.coin-exchange__notice-title {
	font-size: 20px;
	font-weight: 500;
	color: #c1b07d;
	margin-bottom: 8px;
	line-height: 1.2;
}

.coin-exchange__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.coin-exchange__list li {
	font-size: 20px;
	font-weight: 500;
	color: #ababab;
	line-height: 32px;
}

.coin-exchange__list li::before {
	content: '- ';
}

.coin-exchange__list li.is-warning {
	color: #e8c96a;
}

.coin-exchange__status-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	width: 100%;
	min-height: 132px;
	padding: 24px 32px;
	background: #262625;
	border-radius: 10px;
	box-shadow: 0px 1px 0px 0px rgba(235, 235, 235, 0.18);
}

.coin-exchange__status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.coin-exchange__status-label {
	font-size: 20px;
	font-weight: 500;
	color: #ababab;
	line-height: 1.2;
}

.coin-exchange__status-value {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 16px;
	font-weight: 500;
	color: #ababab;
	line-height: 1.2;
}

.coin-exchange__status-value strong {
	font-size: 24px;
	font-weight: 700;
	color: #ababab;
}

.coin-exchange__status-value.is-accent {
	color: #ffc000;
}

.coin-exchange__status-value.is-accent strong {
	color: #ffc000;
}

.coin-exchange__refresh {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	margin-top: 4px;
	padding: 0 16px;
	border: 0;
	border-radius: 30px;
	background: linear-gradient(87.99deg, #6DFFF8 2.05%, #3EDECB 47.67%, #15798B 99.87%);
	color: #000000;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.coin-exchange__refresh:hover,
.coin-exchange__refresh:focus-visible {
	filter: brightness(1.06);
	outline: none;
}

.coin-exchange__refresh:disabled {
	opacity: 0.55;
	cursor: wait;
	filter: none;
}

@media (max-width: 768px) {
	.coin-exchange {
		padding: 24px 16px 48px;
	}

	.coin-exchange__header {
		margin-bottom: 16px;
	}

	.coin-exchange__title {
		font-size: 40px;
	}

	.coin-exchange__close {
		width: 28px;
		height: 28px;
		margin-left: 4px;
	}

	.coin-exchange__close img {
		width: 28px;
		height: 28px;
	}

	.coin-exchange__subtitle {
		font-size: 16px;
		margin-bottom: 32px;
	}

	.coin-exchange__section {
		margin-bottom: 32px;
	}

	.coin-exchange__section-title {
		font-size: 20px;
		margin-bottom: 16px;
	}

	.coin-exchange__wallet-panel {
		grid-template-columns: minmax(0, 1fr) 72px;
		column-gap: 10px;
		margin-bottom: 16px;
	}

	.coin-exchange__wallet-left .coin-exchange__section-title {
		margin-bottom: 12px;
	}

	.coin-exchange__wallet-info {
		gap: 8px;
	}

	.coin-exchange__usdt-icon {
		width: 48px;
		height: 48px;
	}

	.coin-exchange__wallet-meta {
		gap: 4px;
	}

	.coin-exchange__qr {
		width: 72px;
		max-width: 72px;
		border-radius: 4px;
	}

	.coin-exchange__wallet-name {
		flex-wrap: nowrap;
		white-space: nowrap;
		gap: 4px;
		font-size: 15px;
	}

	.coin-exchange__wallet-network {
		font-size: 12px;
		flex-shrink: 0;
	}

	.coin-exchange__wallet-hint {
		font-size: 12px;
		line-height: 1.35;
	}

	.coin-exchange__address-wrap {
		margin-bottom: 20px;
	}

	.coin-exchange__address-box {
		gap: 8px;
		height: 44px;
		padding: 0 12px;
		border-radius: 8px;
		margin-bottom: 0;
	}

	.coin-exchange__copy-toast {
		margin-top: 4px;
	}

	.coin-exchange__address {
		font-size: 14px;
	}

	.coin-exchange__copy {
		width: 24px;
		height: 28px;
	}

	.coin-exchange__copy img {
		width: 24px;
		height: 28px;
	}

	.coin-exchange__notice-title {
		font-size: 16px;
		margin-bottom: 4px;
	}

	.coin-exchange__list li {
		font-size: 16px;
		line-height: 24px;
	}

	.coin-exchange__status-card {
		gap: 12px;
		min-height: 92px;
		padding: 14px 12px;
		border-radius: 8px;
	}

	.coin-exchange__status-row {
		gap: 8px;
		flex-wrap: nowrap;
	}

	.coin-exchange__status-label {
		flex-shrink: 0;
		white-space: nowrap;
		font-size: 14px;
	}

	.coin-exchange__status-value {
		flex-wrap: nowrap;
		white-space: nowrap;
		gap: 3px;
		font-size: 11px;
	}

	.coin-exchange__status-value strong {
		font-size: 14px;
	}

	.coin-exchange__refresh {
		height: 36px;
		padding: 0 12px;
		font-size: 13px;
		border-radius: 30px;
	}
}
