
.tw3-return-popup[hidden] {
	display: none !important;
}

.tw3-return-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 18px;
	font-family: Inter, "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tw3-return-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .58);
	backdrop-filter: blur(8px);
	animation: tw3-overlay-in .22s ease both;
}

.tw3-return-popup__dialog {
	position: relative;
	z-index: 2;
	width: min(100%, 620px);
	max-height: min(88vh, 760px);
	overflow: auto;
	padding: 34px;
	border: 1px solid rgba(148, 163, 184, .24);
	border-radius: 26px;
	color: #0f172a;
	background:
		radial-gradient(circle at top right, rgba(186, 230, 253, .38), transparent 260px),
		#ffffff;
	box-shadow:
		0 34px 100px rgba(15, 23, 42, .28),
		0 8px 30px rgba(15, 23, 42, .12);
	animation: tw3-dialog-in .28s cubic-bezier(.2,.8,.2,1) both;
}

.tw3-return-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, .10);
	border-radius: 50%;
	color: #334155;
	background: rgba(255, 255, 255, .88);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.tw3-return-popup__close:hover,
.tw3-return-popup__close:focus {
	color: #0369a1;
	border-color: rgba(14, 165, 233, .35);
	background: #f0f9ff;
}

.tw3-return-popup__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border: 1px solid rgba(14, 165, 233, .20);
	border-radius: 18px;
	color: #0369a1;
	background: linear-gradient(145deg, #ecfeff, #eff6ff);
	font-size: 28px;
	font-weight: 900;
}

.tw3-return-popup__eyebrow {
	display: block;
	margin-bottom: 6px;
	color: #0284c7;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tw3-return-popup__heading h2 {
	margin: 0 0 10px;
	color: #0f172a;
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.1;
	letter-spacing: -.04em;
}

.tw3-return-popup__heading p {
	margin: 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.65;
}

.tw3-return-popup__content {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 18px;
	background: rgba(248, 250, 252, .82);
}

.tw3-return-popup__content ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tw3-return-popup__content li {
	position: relative;
	padding-left: 27px;
	color: #334155;
	font-size: 14px;
	line-height: 1.65;
}

.tw3-return-popup__content li::before {
	position: absolute;
	top: .42em;
	left: 0;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	content: "✓";
	color: #ffffff;
	background: #0ea5e9;
	font-size: 11px;
	font-weight: 900;
}

.tw3-return-popup__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tw3-return-popup__confirm {
	flex: 1 1 240px;
	min-height: 52px;
	padding: 12px 20px;
	border: 0;
	border-radius: 15px;
	color: #ffffff;
	background: linear-gradient(105deg, #0284c7, #2563eb);
	box-shadow: 0 14px 34px rgba(37, 99, 235, .22);
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
}

.tw3-return-popup__confirm:hover,
.tw3-return-popup__confirm:focus {
	transform: translateY(-1px);
	filter: brightness(.98);
}

.tw3-return-popup__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 17px;
	border: 1px solid rgba(15, 23, 42, .12);
	border-radius: 15px;
	color: #334155;
	background: #ffffff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.tw3-return-popup__link:hover,
.tw3-return-popup__link:focus {
	color: #0369a1;
	border-color: rgba(14, 165, 233, .35);
	background: #f0f9ff;
}

.tw3-return-popup__note {
	margin: 14px 0 0;
	color: #94a3b8;
	font-size: 12px;
	text-align: center;
}

body.tw3-return-popup-open {
	overflow: hidden;
}

@keyframes tw3-overlay-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes tw3-dialog-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 560px) {
	.tw3-return-popup {
		padding: 10px;
	}

	.tw3-return-popup__dialog {
		max-height: 92vh;
		padding: 24px 18px 20px;
		border-radius: 22px;
	}

	.tw3-return-popup__close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
	}

	.tw3-return-popup__icon {
		width: 48px;
		height: 48px;
		margin-bottom: 14px;
		border-radius: 15px;
		font-size: 24px;
	}

	.tw3-return-popup__heading h2 {
		font-size: 30px;
	}

	.tw3-return-popup__content {
		margin: 18px 0;
		padding: 16px;
	}

	.tw3-return-popup__content li {
		font-size: 13px;
	}

	.tw3-return-popup__actions {
		display: grid;
	}

	.tw3-return-popup__confirm,
	.tw3-return-popup__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tw3-return-popup__overlay,
	.tw3-return-popup__dialog {
		animation: none;
	}
}
