#copy-fee-dialog-root {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#copy-fee-dialog-root.is-open {
	display: block;
}

#copy-fee-dialog-root .copy-fee-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 17, 23, 0.56);
}

#copy-fee-dialog-root .copy-fee-modal {
	position: relative;
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	margin: min(12vh, 16px) auto 16px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#copy-fee-dialog-root .copy-fee-modal header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e4e7ec;
}

#copy-fee-dialog-root .copy-fee-modal h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: #1d2327;
}

#copy-fee-dialog-root .copy-fee-close {
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #50575e;
	font-size: 26px;
	line-height: 28px;
	cursor: pointer;
}

#copy-fee-dialog-root .copy-fee-body {
	padding: 20px;
	color: #3c434a;
}

#copy-fee-dialog-root .copy-fee-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 14px 0 18px;
}

#copy-fee-dialog-root .copy-fee-price strong {
	color: #d63638;
	font-size: 28px;
}

#copy-fee-dialog-root .copy-fee-price span {
	color: #8c8f94;
	text-decoration: line-through;
}

#copy-fee-dialog-root .copy-fee-methods {
	display: grid;
	gap: 10px;
}

#copy-fee-dialog-root .copy-fee-methods[hidden] {
	display: none;
}

#copy-fee-dialog-root .copy-fee-methods button,
#copy-fee-dialog-root .copy-fee-methods a,
#copy-fee-dialog-root .copy-fee-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

#copy-fee-dialog-root .copy-fee-methods button:disabled {
	opacity: 0.66;
	cursor: wait;
}

#copy-fee-dialog-root .copy-fee-method-wechat {
	background: #19a463;
}

#copy-fee-dialog-root .copy-fee-method-alipay {
	background: #1677ff;
}

#copy-fee-dialog-root .copy-fee-primary {
	background: #1d2327;
}

#copy-fee-dialog-root .copy-fee-qr {
	display: none;
	text-align: center;
	padding-top: 16px;
}

#copy-fee-dialog-root .copy-fee-qr.is-open {
	display: block;
}

#copy-fee-dialog-root .copy-fee-qr-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
	color: #1d2327;
	font-size: 14px;
}

#copy-fee-dialog-root .copy-fee-qr-countdown {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f0f6fc;
	color: #0969da;
	font-size: 12px;
	font-weight: 600;
}

#copy-fee-dialog-root .copy-fee-qr-image {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

#copy-fee-dialog-root .copy-fee-qr img {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
}

#copy-fee-dialog-root .copy-fee-qr-expired-cover {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	border: 1px solid #f0c7cb;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	color: #d63638;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

#copy-fee-dialog-root .copy-fee-qr.is-expired img {
	opacity: 0.12;
	filter: blur(10px) grayscale(1);
	transform: scale(1.04);
}

#copy-fee-dialog-root .copy-fee-qr.is-expired .copy-fee-qr-expired-cover {
	display: flex;
}

#copy-fee-dialog-root .copy-fee-qr.is-expired .copy-fee-qr-countdown {
	background: #fcf0f1;
	color: #d63638;
}

#copy-fee-dialog-root .copy-fee-qr.is-success {
	margin-top: 16px;
	padding: 18px;
	border: 1px solid #b8e6ca;
	border-radius: 8px;
	background: #f0fff6;
}

#copy-fee-dialog-root .copy-fee-qr.is-success .copy-fee-qr-meta {
	margin-bottom: 0;
	color: #008a20;
	font-size: 16px;
}

#copy-fee-dialog-root .copy-fee-qr.is-success .copy-fee-qr-countdown,
#copy-fee-dialog-root .copy-fee-qr.is-success .copy-fee-qr-image {
	display: none;
}

#copy-fee-dialog-root .copy-fee-status {
	min-height: 22px;
	margin-top: 12px;
	color: #646970;
	font-size: 14px;
	text-align: center;
}

#copy-fee-dialog-root .copy-fee-status.is-error {
	color: #d63638;
	font-weight: 600;
}

#copy-fee-dialog-root .copy-fee-status.is-success {
	color: #008a20;
	font-weight: 600;
}

#copy-fee-dialog-root .copy-fee-success-close {
	display: none;
	margin: 14px auto 0;
	width: auto;
	min-width: 120px;
	padding: 0 18px;
}

#copy-fee-dialog-root .copy-fee-qr.is-success .copy-fee-success-close {
	display: inline-flex;
}

#copy-fee-dialog-root .copy-fee-contact {
	margin: 16px 0 0;
	color: #646970;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 480px) {
	#copy-fee-dialog-root .copy-fee-modal {
		margin-top: 8vh;
	}

	#copy-fee-dialog-root .copy-fee-price strong {
		font-size: 24px;
	}
}
