.couponwheel_ios_stop_scrolling {
	/* Removed height, width, position:fixed to prevent scroll jump on mobile */
	/* Only use overflow:hidden which preserves natural scroll position */
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
}

/* QUAN TRỌNG: Đảm bảo popup luôn ẩn khi có class couponwheel_closed - ở mọi kích thước màn hình */
.couponwheel_popup.couponwheel_closed,
.couponwheel_popup_shadow.couponwheel_closed {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Thông báo bonus lượt quay */
.couponwheel_bonus_spins_message {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 12px 20px;
	border-radius: 10px;
	margin: 15px 0;
	text-align: center;
	font-size: 1.1em;
	animation: couponwheel_bonus_pulse 2s ease-in-out infinite;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
@keyframes couponwheel_bonus_pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.02); }
}

/* Thông báo bonus ở stage 2 */
.couponwheel_bonus_notification {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
	padding: 15px 20px;
	border-radius: 12px;
	margin: 15px 0;
	text-align: center;
	box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
	animation: couponwheel_bonus_appear 0.5s ease-out;
}
@keyframes couponwheel_bonus_appear {
	0% { opacity: 0; transform: scale(0.8) translateY(-10px); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}
.couponwheel_bonus_notification .couponwheel_bonus_icon {
	font-size: 2em;
	margin-bottom: 8px;
}
.couponwheel_bonus_notification .couponwheel_bonus_text {
	font-size: 1.1em;
	font-weight: 500;
}
.couponwheel_bonus_notification .couponwheel_bonus_count {
	font-size: 1.4em;
	font-weight: bold;
	color: #fff700;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Animation cho số lượt quay khi cập nhật */
.couponwheel_spins_updating {
	animation: couponwheel_spins_update 0.5s ease-out;
	color: #4CAF50 !important;
}
@keyframes couponwheel_spins_update {
	0% { transform: scale(1.5); color: #4CAF50; }
	100% { transform: scale(1); }
}

.couponwheel_popup_shadow {
	background-color: rgba(0,0,0,.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	display: none;
	height: 100vh;
	height: 100dvh;
}

/* ============================================================
   POPUP — Desktop Centered Modal (default)
   On mobile, overridden to Bottom Sheet via @media max-width: 767px
   ============================================================ */
.couponwheel_popup {
	font-family: inherit;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	width: 90%;
	max-width: 520px;
	z-index: 100001;
	box-shadow: 0 4px 30px rgba(0,0,0,.25);
	color: white;
	overflow: visible;
	display: none;
	border-radius: 25px;
	/* GPU-composited transitions */
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	will-change: opacity, transform;
}
/* Open animation — initial state (desktop: scale) */
.couponwheel_popup.cw-anim-initial {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.8);
	-webkit-transform: translate(-50%, -50%) scale(0.8);
}
/* Close animation — leaving state (desktop: scale) */
.couponwheel_popup.cw-anim-out {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.8);
	-webkit-transform: translate(-50%, -50%) scale(0.8);
	transition-timing-function: ease-in;
	transition-duration: 0.25s;
}

/* Scrollbar đẹp cho popup */
.couponwheel_popup::-webkit-scrollbar {
	width: 8px;
}
.couponwheel_popup::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.1);
	border-radius: 4px;
}
.couponwheel_popup::-webkit-scrollbar-thumb {
	background: rgba(212, 175, 55, 0.6);
	border-radius: 4px;
}
.couponwheel_popup::-webkit-scrollbar-thumb:hover {
	background: rgba(212, 175, 55, 0.8);
}

/* ===== SINGLE SHELL — Popup Panel ===== */
.couponwheel_popup_background {
	position: relative;
	padding: 0;
	box-sizing: border-box;
	background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 50%, #ffecb3 100%);
	border: 3px solid #d4af37;
	border-radius: 25px;
	box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
	overflow: hidden;
}
/* Shell emoji decorations */
.couponwheel_popup_background::before {
	content: "🌸";
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 2.5em;
	opacity: 0.6;
	transform: rotate(-15deg);
	animation: tet_flower_float 3s ease-in-out infinite;
	z-index: 5;
	pointer-events: none;
}
.couponwheel_popup_background::after {
	content: "🏮";
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 2em;
	opacity: 0.7;
	animation: tet_lantern_swing 2s ease-in-out infinite;
	z-index: 5;
	pointer-events: none;
}

/* ===== Bottom Sheet Header (sticky) ===== */
.cw-bs-header {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 2px solid rgba(212, 175, 55, 0.3);
	background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%);
	flex-shrink: 0;
	border-radius: 22px 22px 0 0;
}
.cw-bs-title {
	font-size: 1.15em;
	font-weight: 800;
	color: #c41e3a;
	text-shadow: 1px 1px 2px rgba(196, 30, 58, 0.15);
	line-height: 1.3;
	flex: 1;
	padding-right: 40px;
}
.cw-bs-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #d4af37;
	background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%);
	cursor: pointer;
	font-size: 0;
	position: relative;
	padding: 0;
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
	transition: background 0.2s ease;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	min-width: 44px;
	min-height: 44px;
}
.cw-bs-close::before,
.cw-bs-close::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 2.5px;
	background: linear-gradient(90deg, #c41e3a, #a01830);
	border-radius: 2px;
}
.cw-bs-close::before { transform: rotate(45deg); }
.cw-bs-close::after  { transform: rotate(-45deg); }
.cw-bs-close:active {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
	border-color: #ffd700;
}
.cw-bs-close:active::before,
.cw-bs-close:active::after {
	background: linear-gradient(90deg, #ffd700, #d4af37);
}

/* ===== Popup Body (scrollable) ===== */
.cw-bs-body {
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	position: relative;
	padding: 20px;
	max-height: 80vh;
}

.couponwheel_form {
	font-size: 1.05em;
	line-height: 1.1em;
	padding: 1.5em;
	margin: 0;
}

/* ============================================================
   TẾT THEME - Form nhập thông tin phong cách Tết Việt Nam
   ============================================================ */
.couponwheel_form_stage1 {
	font-size: 1em;
	background: transparent;
	border-radius: 0;
	padding: 10px 0;
	border: none;
	box-shadow: none;
	position: relative;
	overflow: visible;
}

/* Moved to .couponwheel_popup_background (Single Shell) */
.couponwheel_form_stage1::before {
	display: none;
}
.couponwheel_form_stage1::after {
	display: none;
}

@keyframes tet_flower_float {
	0%, 100% { transform: rotate(-15deg) translateY(0); }
	50% { transform: rotate(-10deg) translateY(-5px); }
}
@keyframes tet_lantern_swing {
	0%, 100% { transform: rotate(-5deg); }
	50% { transform: rotate(5deg); }
}
.couponwheel_form_stage1 .couponwheel_popup_heading_text {
	font-size: 1.4em;
	margin-top: 0.5em;
	margin-bottom: .75em;
	color: #c41e3a !important;
	text-shadow: 1px 1px 2px rgba(196, 30, 58, 0.2);
	font-weight: 800;
	text-align: center;
	position: relative;
	padding-bottom: 10px;
}
.couponwheel_form_stage1 .couponwheel_popup_heading_text::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 3px;
	background: linear-gradient(90deg, transparent, #d4af37, #c41e3a, #d4af37, transparent);
	border-radius: 2px;
}
.couponwheel_form_stage1 .couponwheel_popup_main_text {
	margin: 1em 0;
	color: #8b4513 !important;
	text-align: center;
	font-size: 0.95em;
	line-height: 1.5;
}
.couponwheel_form_stage1 .couponwheel_popup_rules_text {
	font-size: .8em;
	margin: 1em 0;
	color: #a0522d !important;
	text-align: center;
	padding: 10px;
	background: rgba(212, 175, 55, 0.15);
	border-radius: 10px;
	border: 1px dashed #d4af37;
}
.couponwheel_stage1_controls .couponwheel_stage1_submit_btn {
	max-width: 20em;
	width: 70%;
	min-width: 14em;
	margin: .6em auto 0;
	padding: .6em;
	display: block;
	box-sizing: border-box;
}
.couponwheel_stage1_controls {
	width: 100%;
	flex: 0 0 auto;
}
.couponwheel_form_stage1 input[type=text],
.couponwheel_form_stage1 input[type=email],
.couponwheel_form_stage1 input[type=tel],
.couponwheel_form_stage1 .couponwheel_stage1_submit_btn,
.couponwheel_form_stage1 .couponwheel_popup_checkbox_container,
.couponwheel_form_stage1 .couponwheel_recaptcha {
	margin-top: .8em;
	padding: .8em 1em;
}

/* Tet Theme - Input fields */
.couponwheel_form_stage1 input[type=text],
.couponwheel_form_stage1 input[type=email],
.couponwheel_form_stage1 input[type=tel] {
	background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%) !important;
	border: 2px solid #d4af37 !important;
	border-radius: 12px !important;
	color: #8b4513 !important;
	font-size: 1em !important;
	box-shadow: 
		0 4px 12px rgba(212, 175, 55, 0.15),
		inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
	transition: all 0.3s ease !important;
}
.couponwheel_form_stage1 input[type=text]:focus,
.couponwheel_form_stage1 input[type=email]:focus,
.couponwheel_form_stage1 input[type=tel]:focus {
	border-color: #c41e3a !important;
	box-shadow: 
		0 4px 16px rgba(196, 30, 58, 0.25),
		inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
	outline: none !important;
}
.couponwheel_form_stage1 input[type=text]::placeholder,
.couponwheel_form_stage1 input[type=email]::placeholder,
.couponwheel_form_stage1 input[type=tel]::placeholder {
	color: #bfa76a !important;
	font-style: italic;
}

/* Tet Theme - Submit Button */
.couponwheel_form_stage1 .couponwheel_stage1_submit_btn {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 50%, #8b1528 100%) !important;
	color: #ffd700 !important;
	border: none !important;
	border-radius: 15px !important;
	font-weight: 700 !important;
	font-size: 1.1em !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 
		0 6px 20px rgba(196, 30, 58, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
	transition: all 0.3s ease !important;
	position: relative;
	overflow: hidden;
}
.couponwheel_form_stage1 .couponwheel_stage1_submit_btn::before {
	content: "🎊";
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2em;
}
.couponwheel_form_stage1 .couponwheel_stage1_submit_btn:hover {
	background: linear-gradient(135deg, #d4283f 0%, #b01e35 50%, #9b1a2d 100%) !important;
	transform: translateY(-2px);
	box-shadow: 
		0 8px 25px rgba(196, 30, 58, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.couponwheel_form_stage1 .couponwheel_stage1_submit_btn:active {
	transform: translateY(0);
}

/* Tet Theme - Register Button */
.couponwheel_form_stage1 .couponwheel_stage1_register_btn {
	background: linear-gradient(135deg, #d4af37 0%, #c9a227 50%, #b8941f 100%) !important;
	color: #8b0000 !important;
	border: none !important;
	border-radius: 12px !important;
	font-weight: 700 !important;
	padding: 12px 30px !important;
	font-size: 1em !important;
	box-shadow: 
		0 4px 15px rgba(212, 175, 55, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
	transition: all 0.3s ease !important;
	cursor: pointer;
}
.couponwheel_form_stage1 .couponwheel_stage1_register_btn:hover {
	background: linear-gradient(135deg, #e0bc45 0%, #d4af37 50%, #c9a227 100%) !important;
	transform: translateY(-2px);
	box-shadow: 
		0 6px 20px rgba(212, 175, 55, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* C10: Loading state chung cho các nút khi đang gọi AJAX */
.couponwheel_btn_loading {
	position: relative;
	pointer-events: none;
	opacity: 0.7 !important;
	cursor: wait !important;
}
.couponwheel_btn_loading::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: couponwheel_btn_spin 0.6s linear infinite;
}
@keyframes couponwheel_btn_spin {
	to { transform: rotate(360deg); }
}

/* C8: Power bar pulse khi đạt mức rất mạnh */
#couponwheel_power_bar.power-pulse {
	animation: couponwheel_power_pulse 0.4s ease-in-out 2;
}
@keyframes couponwheel_power_pulse {
	0%, 100% { box-shadow: inset 0 0 0 rgba(255,0,0,0); }
	50% { box-shadow: inset 0 0 15px rgba(255,0,0,0.4); }
}

/* Tet Theme - Checkbox */
.couponwheel_form_stage1 .couponwheel_popup_checkbox_container {
	background: rgba(255, 255, 255, 0.6);
	border-radius: 10px;
	padding: 12px 15px !important;
	border: 1px solid rgba(212, 175, 55, 0.3);
}
.couponwheel_form_stage1 .couponwheel_popup_rules_checkbox_label {
	color: #8b4513 !important;
	font-size: 0.9em;
}

/* Tet Theme - Error text */
.couponwheel_form_stage1 .couponwheel_popup_form_error_text {
	color: #c41e3a !important;
	background: rgba(196, 30, 58, 0.1);
	padding: 10px 15px;
	border-radius: 8px;
	border-left: 4px solid #c41e3a;
	font-size: 0.9em;
}

/* Tet Theme - Register result */
.couponwheel_form_stage1 .couponwheel_stage1_register_result {
	padding: 10px;
	border-radius: 8px;
	font-weight: 500;
}
.couponwheel_form_stage1 .couponwheel_stage1_register_result.couponwheel_success {
	background: rgba(46, 125, 50, 0.1);
	color: #2e7d32 !important;
	border: 1px solid rgba(46, 125, 50, 0.3);
}
.couponwheel_form_stage1 .couponwheel_stage1_register_result.couponwheel_error {
	background: rgba(198, 40, 40, 0.1);
	color: #c62828 !important;
	border: 1px solid rgba(198, 40, 40, 0.3);
}

/* ============================================================
   TẾT THEME - Thông báo kết quả (Stage 2) phong cách Tết Việt Nam
   OVERLAY MODE - Đè lên vòng quay
   ============================================================ */
.couponwheel_form_stage2 {
	font-size: 1em;
	background: transparent;
	border-radius: 0;
	padding: 15px 5px;
	border: none;
	box-shadow: none;
	text-align: center;
	max-width: none;
	width: 100%;
	/* In-flow — no longer fixed overlay */
	position: relative;
	top: auto;
	left: auto;
	transform: none;
	z-index: auto;
	margin: 0;
	overflow-x: hidden;
	overflow-y: visible;
	opacity: 1;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* Stripped for Single Shell — no border glow on stage2 */
.couponwheel_form_stage2::before {
	display: none;
}
@keyframes tet_result_border_glow {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Stripped for Single Shell — no confetti on stage2 */
.couponwheel_form_stage2::after {
	display: none;
}
@keyframes tet_result_celebrate {
	0%, 100% { transform: scale(1) rotate(-5deg); }
	50% { transform: scale(1.15) rotate(5deg); }
}

/* Confetti decoration */
.couponwheel_form_stage2 .tet-confetti-left,
.couponwheel_form_stage2 .tet-confetti-right {
	position: absolute;
	font-size: 2em;
	opacity: 0.7;
	animation: tet_confetti_fall 2s ease-in-out infinite;
}
.couponwheel_form_stage2 .tet-confetti-left {
	top: 10px;
	left: 15px;
	content: "🌸";
}
.couponwheel_form_stage2 .tet-confetti-right {
	top: 60px;
	right: 20px;
	animation-delay: 0.5s;
}
@keyframes tet_confetti_fall {
	0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
	50% { transform: translateY(-10px) rotate(15deg); opacity: 1; }
}

/* Tiêu đề kết quả */
.couponwheel_form_stage2 .couponwheel_popup_heading_text {
	font-size: 1.15em !important;
	font-weight: 800 !important;
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	margin-bottom: 12px !important;
	padding: 0;
	background: transparent;
	border-radius: 0;
	border: none;
	display: block;
	position: relative;
	box-shadow: none;
	text-align: center;
	letter-spacing: 0.02em;
}
.couponwheel_form_stage2 .couponwheel_popup_heading_text::before {
	content: "🎉";
	margin-right: 6px;
	font-size: 0.85em;
}
.couponwheel_form_stage2 .couponwheel_popup_heading_text::after {
	content: "🎉";
	margin-left: 6px;
	font-size: 0.85em;
}

/* Nội dung chính / Mã voucher */
.couponwheel_form_stage2 .couponwheel_popup_main_text {
	color: #e0e0e0 !important;
	font-size: 1.05em !important;
	line-height: 1.6 !important;
	margin: 12px 0 !important;
	padding: 8px 0;
	background: transparent;
	border-radius: 0;
	border: none;
	position: relative;
}

/* ===== Unified Voucher Card inside Stage 2 ===== */

/* Strip main_text wrapper decoration when voucher card is present,
   and hide redundant text outside the card ("Mã của bạn là: CODE") */
.couponwheel_form_stage2 .couponwheel_popup_main_text:has(.dvl-voucher-card) {
	background: transparent !important;
	border: none !important;
	padding: 8px 0 !important;
	margin: 12px 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	/* Hide loose text nodes that sit outside the card */
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
}

/* Wrapper: override ALL inline styles from PHP render */
.couponwheel_form_stage2 .voucher-display-wrapper {
	display: block !important;
	text-align: center !important;
	max-width: 280px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	float: none !important;
	position: static !important;
	/* Restore font-size from parent's font-size: 0 */
	font-size: 1rem !important;
	line-height: 1.5 !important;
	color: #1a202c !important;
}

/* Card root — compact ticket shape, prevent stretch */
.couponwheel_form_stage2 .dvl-voucher-card {
	display: flex !important;
	flex-direction: column !important;
	flex: none !important;
	align-self: center !important;
	width: 100% !important;
	max-width: 280px !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border-radius: 16px !important;
	overflow: visible !important;
	position: relative !important;
	background: #fff !important;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06) !important;
	transition: transform 0.35s ease, box-shadow 0.35s ease !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	color: #1a202c !important;
	text-align: left !important;
	box-sizing: border-box !important;
	float: none !important;
	transform: none !important;
}
/* Box-sizing reset on ALL card descendants */
.couponwheel_form_stage2 .dvl-voucher-card *,
.couponwheel_form_stage2 .dvl-voucher-card *::before,
.couponwheel_form_stage2 .dvl-voucher-card *::after {
	box-sizing: border-box !important;
}
/* Safety net: hide any stray <br> injected by nl2br() or template processing */
.couponwheel_form_stage2 .dvl-voucher-card br,
.couponwheel_form_stage2 .voucher-display-wrapper br {
	display: none !important;
}
/* Hover — subtle for popup context */
.couponwheel_form_stage2 .dvl-voucher-card:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08) !important;
}

/* --- Header --- */
.couponwheel_form_stage2 .dvl-voucher-card__header {
	position: relative !important;
	background: linear-gradient(135deg, rgba(229,62,62,0.04), rgba(229,62,62,0.01)) !important;
	padding: 0 !important;
	border-radius: 16px 16px 0 0 !important;
	overflow: hidden !important;
	flex: none !important;
	height: auto !important;
}
.couponwheel_form_stage2 .dvl-voucher-card--hot .dvl-voucher-card__header {
	background: linear-gradient(135deg, rgba(229,62,62,0.08), rgba(255,107,53,0.04)) !important;
}
.couponwheel_form_stage2 .dvl-voucher-card--grand .dvl-voucher-card__header {
	background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(229,62,62,0.08)) !important;
}

/* Badge (top-right pill) */
.couponwheel_form_stage2 .dvl-voucher-card__badge {
	position: absolute !important;
	top: 0.55rem !important;
	right: 0.55rem !important;
	background: linear-gradient(135deg, #ff6b35, #ff3d00) !important;
	color: #fff !important;
	font-size: 0.6rem !important;
	font-weight: 800 !important;
	padding: 0.18rem 0.5rem !important;
	border-radius: 100px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	z-index: 3 !important;
	box-shadow: 0 2px 8px rgba(255,61,0,0.3) !important;
	animation: cwBadgePulse 2s ease-in-out infinite alternate !important;
	line-height: 1.2 !important;
	display: inline-block !important;
	margin: 0 !important;
}
.couponwheel_form_stage2 .dvl-voucher-card--grand .dvl-voucher-card__badge {
	background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
	box-shadow: 0 2px 10px rgba(255,215,0,0.4) !important;
}
@keyframes cwBadgePulse {
	0%   { transform: scale(1); }
	100% { transform: scale(1.04); box-shadow: 0 3px 14px rgba(255,61,0,0.45); }
}

/* Deal / % */
.couponwheel_form_stage2 .dvl-voucher-card__deal {
	display: flex !important;
	align-items: baseline !important;
	flex-direction: row !important;
	gap: 0.35rem !important;
	padding: 1.1rem 1rem 0.45rem !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__percent-label {
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	color: #718096 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	line-height: 1.2 !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__percent {
	font-size: 2rem !important;
	font-weight: 900 !important;
	color: #e53e3e !important;
	line-height: 1 !important;
	letter-spacing: -0.03em !important;
}
.couponwheel_form_stage2 .dvl-voucher-card--grand .dvl-voucher-card__percent {
	background: linear-gradient(135deg, #ff6b35, #e53e3e) !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	background-clip: text !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__title {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	color: #1a202c !important;
	line-height: 1.35 !important;
	padding: 0.15rem 1rem 0.65rem !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

/* --- Tear separator --- */
.couponwheel_form_stage2 .dvl-voucher-card__tear {
	position: relative !important;
	height: 22px !important;
	display: flex !important;
	align-items: center !important;
	flex-shrink: 0 !important;
	flex: none !important;
	z-index: 1 !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__notch {
	position: absolute !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	background: rgba(30, 30, 30, 0.7) !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 2 !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__notch--left {
	left: -9px !important;
	box-shadow: inset -2px 0 4px rgba(0,0,0,0.15) !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__notch--right {
	right: -9px !important;
	box-shadow: inset 2px 0 4px rgba(0,0,0,0.15) !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__dashed {
	flex: 1 !important;
	height: 0 !important;
	border-top: 2px dashed rgba(229,62,62,0.18) !important;
	margin: 0 12px !important;
}

/* --- Info + Meta --- */
.couponwheel_form_stage2 .dvl-voucher-card__info {
	padding: 0.6rem 1rem 0.9rem !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0.4rem !important;
	flex: none !important;
	height: auto !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta {
	display: flex !important;
	align-items: center !important;
	gap: 0.4rem !important;
	font-size: 0.8rem !important;
	color: #718096 !important;
	line-height: 1.4 !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__icon {
	flex-shrink: 0 !important;
	opacity: 0.5 !important;
	width: 14px !important;
	height: 14px !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--code {
	font-weight: 700 !important;
	font-size: 0.85rem !important;
	color: #e53e3e !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--code .dvl-voucher-card__icon {
	opacity: 0.7 !important;
	color: #e53e3e !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown {
	color: #276749 !important;
	font-weight: 700 !important;
	font-size: 0.72rem !important;
	background: rgba(56, 161, 105, 0.08) !important;
	padding: 0.3rem 0.6rem !important;
	border-radius: 8px !important;
	border: 1px solid rgba(56, 161, 105, 0.15) !important;
	letter-spacing: 0.01em !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .dvl-voucher-card__icon {
	opacity: 0.75 !important;
	color: #38a169 !important;
}
/* Reset vc-countdown / voucher-countdown inside unified card so parent chip styles apply cleanly */
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .vc-countdown,
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .voucher-countdown {
	display: inline !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
	line-height: inherit !important;
	position: static !important;
	overflow: visible !important;
	animation: none !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .vc-countdown::before,
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .voucher-countdown::after {
	display: none !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .vc-countdown--warning {
	background: none !important;
	border-color: transparent !important;
	animation: none !important;
	transform: none !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--countdown .vc-countdown--expired {
	background: none !important;
	border-color: transparent !important;
	animation: none !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__meta--phone {
	color: #38a169 !important;
	font-weight: 600 !important;
}

/* --- CTA Button (covers both new + legacy class) --- */
.couponwheel_form_stage2 .dvl-voucher-card__cta,
.couponwheel_form_stage2 .dvl-voucher-card__cta.vc-voucher-card__copy-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.35rem !important;
	margin-top: 0.5rem !important;
	padding: 0.75rem 1rem !important;
	background: #e53e3e !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
	width: 100% !important;
	min-height: 44px !important;
	height: auto !important;
	max-width: none !important;
	letter-spacing: 0.01em !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	/* Kill any absolute/fixed positioning from legacy selectors */
	position: relative !important;
	bottom: auto !important;
	right: auto !important;
	left: auto !important;
	top: auto !important;
	float: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	outline: none !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__cta svg {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	stroke: #fff !important;
	fill: none !important;
	display: block !important;
	flex-shrink: 0 !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__cta span {
	font-size: inherit !important;
	color: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	white-space: nowrap !important;
}
.couponwheel_form_stage2 .dvl-voucher-card__cta:hover {
	filter: brightness(1.08) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 16px rgba(229,62,62,0.3) !important;
}
.couponwheel_form_stage2 .dvl-voucher-card--grand .dvl-voucher-card__cta {
	background: linear-gradient(135deg, #ff6b35, #e53e3e) !important;
}

/* Style cho mã coupon bên trong */
.couponwheel_form_stage2 .couponwheel_coupon_code {
	display: inline-block;
	font-size: 1.6em !important;
	font-weight: 900 !important;
	font-family: 'Courier New', monospace !important;
	color: #c41e3a !important;
	background: linear-gradient(135deg, #fff9e6 0%, #fffdf5 100%);
	padding: 12px 25px;
	margin: 15px 0;
	border: 3px solid #d4af37;
	border-radius: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	box-shadow: 
		0 4px 15px rgba(212, 175, 55, 0.3),
		inset 0 2px 4px rgba(255, 255, 255, 0.5);
	position: relative;
	animation: tet_code_pulse 2s ease-in-out infinite;
}
.couponwheel_form_stage2 .couponwheel_coupon_code::before {
	content: "🧧";
	position: absolute;
	left: -15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2em;
}
.couponwheel_form_stage2 .couponwheel_coupon_code::after {
	content: "🧧";
	position: absolute;
	right: -15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2em;
}
@keyframes tet_code_pulse {
	0%, 100% { 
		transform: scale(1);
		box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5);
	}
	50% { 
		transform: scale(1.02);
		box-shadow: 0 6px 25px rgba(196, 30, 58, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.5);
	}
}

/* Nút Tiếp tục mua sắm */
.couponwheel_form_stage2 .couponwheel_stage2_continue_btn {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 50%, #8b1528 100%) !important;
	color: #ffd700 !important;
	border: 3px solid #d4af37 !important;
	border-radius: 20px !important;
	font-weight: 800 !important;
	font-size: 1.15em !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 15px 35px !important;
	margin-top: 25px !important;
	cursor: pointer;
	box-shadow: 
		0 6px 25px rgba(196, 30, 58, 0.45),
		inset 0 2px 0 rgba(255,255,255,0.2),
		0 0 0 4px rgba(212, 175, 55, 0.25) !important;
	transition: all 0.3s ease !important;
	position: relative;
	overflow: hidden;
	display: block !important;
	width: auto !important;
	min-width: 200px;
	margin-left: auto !important;
	margin-right: auto !important;
}
.couponwheel_form_stage2 .couponwheel_stage2_continue_btn::before {
	content: "🛒";
	margin-right: 8px;
	font-size: 1.1em;
}
.couponwheel_form_stage2 .couponwheel_stage2_continue_btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
	animation: tet_continue_btn_shine 2.5s infinite;
}
@keyframes tet_continue_btn_shine {
	0% { left: -100%; }
	50%, 100% { left: 100%; }
}
.couponwheel_form_stage2 .couponwheel_stage2_continue_btn:hover {
	background: linear-gradient(135deg, #d4283f 0%, #b01e35 50%, #9b1a2d 100%) !important;
	transform: translateY(-3px) scale(1.03);
	box-shadow: 
		0 10px 35px rgba(196, 30, 58, 0.55),
		inset 0 2px 0 rgba(255,255,255,0.3),
		0 0 0 6px rgba(212, 175, 55, 0.35) !important;
}
.couponwheel_form_stage2 .couponwheel_stage2_continue_btn:active {
	transform: translateY(0) scale(0.98);
}

/* Nút Quay lại */
.couponwheel_form_stage2 .couponwheel_spin_again_btn {
	display: block !important;
	background: linear-gradient(135deg, #d4af37 0%, #c9a227 50%, #b8941f 100%) !important;
	color: #8b0000 !important;
	border: 2px solid #8b4513 !important;
	border-radius: 15px !important;
	font-weight: 700 !important;
	font-size: 0.95em !important;
	padding: 10px 25px !important;
	margin-top: 15px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
	transition: all 0.3s ease !important;
	text-decoration: none !important;
	width: fit-content !important;
}
.couponwheel_form_stage2 .couponwheel_spin_again_btn::before {
	content: "🔄 ";
}
.couponwheel_form_stage2 .couponwheel_spin_again_btn:hover {
	background: linear-gradient(135deg, #e0bc45 0%, #d4af37 50%, #c9a227 100%) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45) !important;
}

/* Thông báo bonus trong Stage 2 */
.couponwheel_form_stage2 .couponwheel_bonus_notification {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%) !important;
	color: #ffd700 !important;
	padding: 18px 25px !important;
	border-radius: 15px !important;
	margin: 20px 0 !important;
	text-align: center;
	box-shadow: 
		0 6px 25px rgba(196, 30, 58, 0.4),
		inset 0 1px 0 rgba(255,255,255,0.2) !important;
	border: 2px solid #d4af37 !important;
	position: relative;
	animation: tet_bonus_appear 0.5s ease-out;
}
.couponwheel_form_stage2 .couponwheel_bonus_notification::before {
	display: none;
}
.couponwheel_form_stage2 .couponwheel_bonus_notification .couponwheel_bonus_icon {
	font-size: 2.2em !important;
	margin-bottom: 10px;
	display: block;
}
.couponwheel_form_stage2 .couponwheel_bonus_notification .couponwheel_bonus_text {
	font-size: 1.1em !important;
	font-weight: 600 !important;
	color: #fff !important;
}
.couponwheel_form_stage2 .couponwheel_bonus_notification .couponwheel_bonus_count {
	font-size: 1.5em !important;
	font-weight: 900 !important;
	color: #ffd700 !important;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
@keyframes tet_bonus_appear {
	0% { opacity: 0; transform: scale(0.8) translateY(-15px); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* In-flow stage2 animation — no translate offset */
.couponwheel_form_stage2.couponwheel_effects_bounceIn {
	animation: tet_stage2_appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
@keyframes tet_stage2_appear {
	0% { 
		opacity: 0;
		transform: scale(0.5);
	}
	100% { 
		opacity: 1;
		transform: scale(1);
	}
}

/* ============================================================
   REWARD OVERLAY — nổi trên vòng quay, không ẩn wheel
   ============================================================ */
.cw-reward-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2100;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: cw_reward_fadein 0.3s ease-out;
}
@keyframes cw_reward_fadein {
	0% { opacity: 0; }
	100% { opacity: 1; }
}
.cw-reward-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.cw-reward-card {
	position: relative;
	z-index: 1;
	background: rgba(30, 30, 30, 0.55) !important;
	backdrop-filter: blur(20px) saturate(1.2);
	-webkit-backdrop-filter: blur(20px) saturate(1.2);
	border-radius: 20px;
	border: none !important;
	outline: none !important;
	padding: 20px 16px;
	max-width: 320px;
	width: 90%;
	max-height: 85%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: none !important;
	animation: cw_reward_card_pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cw_reward_card_pop {
	0% { opacity: 0; transform: scale(0.7) translateY(20px); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cw-reward-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 16px;
}
.cw-reward-actions .couponwheel_stage2_continue_btn,
.cw-reward-actions .couponwheel_spin_again_btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 46px;
	padding: 12px 8px !important;
	border-radius: 12px !important;
	font-weight: 800 !important;
	font-size: 0.92em !important;
	cursor: pointer;
	border: none !important;
	outline: none !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	text-align: center;
	transition: all 0.2s ease;
	margin: 0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0.01em;
	color: #fff !important;
}
.cw-reward-actions .couponwheel_stage2_continue_btn {
	background: rgba(196, 30, 58, 0.65) !important;
}
.cw-reward-actions .couponwheel_stage2_continue_btn::before,
.cw-reward-actions .couponwheel_stage2_continue_btn::after {
	display: none !important;
}
.cw-reward-actions .couponwheel_stage2_continue_btn:active {
	transform: scale(0.97);
	background: rgba(196, 30, 58, 0.75) !important;
}
.cw-reward-actions .couponwheel_spin_again_btn {
	background: rgba(212, 175, 55, 0.55) !important;
}
.cw-reward-actions .couponwheel_spin_again_btn::before {
	display: none !important;
}
.cw-reward-actions .couponwheel_spin_again_btn:active {
	transform: scale(0.97);
	background: rgba(212, 175, 55, 0.65) !important;
}

/* Tet Theme - Remaining spins */
.couponwheel_form_stage1 .couponwheel_remaining_spins_container {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%) !important;
	border-radius: 12px !important;
	padding: 12px 15px !important;
	margin-bottom: 15px;
	box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}
.couponwheel_form_stage1 .couponwheel_remaining_spins_label {
	color: #ffd700 !important;
	font-size: 0.9em;
}
.couponwheel_form_stage1 .couponwheel_remaining_spins_value {
	color: #ffffff !important;
	font-size: 1.5em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.couponwheel_popup_heading_text {
	font-weight: 900;
	font-size: 1.5em;
	margin-top: .5em;
	margin-bottom: 1em;
	line-height: 1.1em;
}
.couponwheel_popup_main_text
{
	margin: 1em 0;
}
.couponwheel_popup_form_error_text {
	font-weight: 600;
	margin: 1.5em 0;
}
.couponwheel_popup_rules_text {
	margin: 1em 0;
	font-size: .8em;
}
.couponwheel_coupon_code {
	font-size: 1.5em;
	font-family: monospace;
}
.couponwheel_recaptcha,
.couponwheel_popup_checkbox_container,
.couponwheel_form input[type=text],
.couponwheel_form input[type=email],
.couponwheel_form input[type=tel],
.couponwheel_stage1_submit_btn,
.couponwheel_stage2_continue_btn {
	font-family: inherit;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: .8em;
	font-size: inherit;
	border-radius: .3em;
	padding: .7em;
}
.couponwheel_popup_checkbox_container {
	margin-top: 1em;
}
.couponwheel_stage1_submit_btn {
	margin-top: 1.5em;
}
/* Reset margin for continue btn inside reward actions grid */
.cw-reward-actions .couponwheel_stage2_continue_btn {
	margin-top: 0;
}
.couponwheel_stage2_continue_btn {
	margin-top: 1.5em;
}
.couponwheel_popup_checkbox_container, .couponwheel_recaptcha {
	padding: 0;
}
.couponwheel_popup_checkbox_container * {
	vertical-align: middle;
}
.couponwheel_popup_checkbox_container input[type=checkbox] {
	width: 1.5em;
	height: 1.5em;
	margin: 0;
	margin-right: .5em;
}
.couponwheel_form input[type=submit] {
	margin-top: 1em;
}

/* ============================================================
   TẾT THEME - Nút đóng (X) phong cách Tết Việt Nam
   ============================================================ */
/* Nút X cũ - ẩn đi */
.couponwheel_popup_close_container {
	display: none;
}

/* Nút X mới — nay nằm trong cw-bs-header */
.couponwheel_popup_close_global {
	display: none;
}

/* Ẩn per-state close buttons — thay bằng global header */
.couponwheel_form_stage1 .couponwheel_close_inside,
.couponwheel_popup_wheel_container .couponwheel_close_inside,
.couponwheel_close_inside {
	display: none;
}

/* Legacy .couponwheel_popup_close_btn không phải trong header */
.couponwheel_popup_close_btn:not(.cw-bs-close) {
	display: none;
}

.couponwheel_wheel_crop {
	overflow: hidden;
	position: relative;
	display: block;
	padding: 0;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	box-sizing: border-box;
	border-radius: 50%;
	border: none;
	outline: none;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.couponwheel_popup_wheel_container {
	user-select: none;
	padding: 1em 0;
}
.couponwheel_wheel {
	position: relative;
	color: black;
	font-weight: bold;
	font-size: 1.25em;
	transform-origin: 50% 50%;
	-webkit-transform-origin: 50% 50%;
	line-height: 0;
}
.couponwheel_wheel_img {
	all: initial;
	width: 100%;
	height: auto;
	display: block;
}
.couponwheel_slice_label {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46%;
	text-align: right;
	font-size: 1.15em;
	line-height: 1.2;
	transform-origin: 0 50%;
	-webkit-transform-origin: 0% 50%;
	color: rgb(40,40,40);
	overflow: hidden;
	padding-right: 4%;
	box-sizing: border-box;
}
.couponwheel_slice_media {
	display: block;
	width: 100%;
	text-align: right;
	overflow: hidden;
}
.couponwheel_slice_media img {
	display: inline-block;
	max-width: 92%;
	height: 1.8em;
	max-height: 1.8em;
	object-fit: contain;
	object-position: right center;
	vertical-align: middle;
}
/* Nhãn text cho slice — 1 dòng ngang, số to nổi bật, prefix nhỏ phụ. */
.cw_lbl {
	display: block;
	margin-left: 30%;
	white-space: nowrap;
	text-align: right;
}
.cw_num {
	font-weight: 900;
	font-size: 1.35em;
	letter-spacing: -0.02em;
	vertical-align: middle;
}
.cw_sub {
	font-size: 0.5em;
	font-weight: 700;
	opacity: 0.55;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	vertical-align: middle;
}
/* 24-slice overrides */
.couponwheel_24_slices .couponwheel_slice_label {
	font-size: 1.5em;
}
.couponwheel_24_slices .cw_lbl {
	margin-left: 26%;
}
.couponwheel_24_slices .cw_num {
	font-size: 1.2em;
}
.couponwheel_24_slices .cw_sub {
	font-size: 0.4em;
}
/* Debug mode — bật bằng console:
   document.querySelector('.couponwheel_wheel').classList.toggle('couponwheel_debug')
   Hiển thị: viền đỏ = vùng label, chấm xanh = anchor/transform-origin, đường xanh lá = trục giữa slice */
.couponwheel_debug .couponwheel_slice_label {
	border: 1px solid rgba(255,0,0,0.6) !important;
	overflow: visible !important;
	background: rgba(255,0,0,0.05) !important;
}
.couponwheel_debug .couponwheel_slice_label::before {
	content: '';
	position: absolute;
	left: -3px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	background: blue;
	border-radius: 50%;
	z-index: 999;
}
.couponwheel_debug .couponwheel_slice_label::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: rgba(0,200,0,0.5);
	z-index: 998;
}
.couponwheel_slice_label:nth-of-type(odd) {
	text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}
.couponwheel_slice_label:nth-of-type(even) {
	color: white;
	text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.couponwheel_popup_rules_checkbox_label {
	display: inline-block;
	margin: 0;
	cursor: pointer;
}
.couponwheel_popup_wheel_container {
	position: relative;
	left: 0;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ============================================================
   TẾT THEME - Vòng quay phong cách Tết Việt Nam
   ============================================================ */

/* Container chính của vòng quay — stripped for Single Shell */
.couponwheel_popup_wheel_container {
	background: transparent;
	border-radius: 0;
	padding: 15px 5px !important;
	border: none;
	box-shadow: none;
	position: relative;
	overflow: visible;
	margin: 0;
	min-width: auto;
	width: 100% !important;
}

/* Moved to .couponwheel_popup_background (Single Shell) */
.couponwheel_popup_wheel_container::before {
	display: none;
}
.couponwheel_popup_wheel_container::after {
	display: none;
}

@keyframes tet_wheel_flower_float {
	0%, 100% { transform: rotate(-10deg) translateY(0); }
	50% { transform: rotate(5deg) translateY(-8px); }
}
@keyframes tet_wheel_envelope_bounce {
	0%, 100% { transform: translateY(0) rotate(5deg); }
	50% { transform: translateY(-10px) rotate(-5deg); }
}

/* Tiêu đề vòng quay */
.couponwheel_popup_wheel_container .couponwheel_popup_heading_text {
	color: #c41e3a !important;
	font-size: 1.5em !important;
	font-weight: 800 !important;
	text-shadow: 2px 2px 4px rgba(196, 30, 58, 0.2);
	margin-bottom: 15px !important;
	padding: 10px 20px;
	background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,245,204,0.9) 100%);
	border-radius: 15px;
	border: 2px solid #d4af37;
	display: inline-block;
	position: relative;
}
.couponwheel_popup_wheel_container .couponwheel_popup_heading_text::before {
	content: "🎋";
	margin-right: 10px;
}
.couponwheel_popup_wheel_container .couponwheel_popup_heading_text::after {
	content: "🎋";
	margin-left: 10px;
}

/* Container bánh xe */
.couponwheel_wheel_container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: 0 auto;
}

/* Shadow layer cho wheel - Tạm ẩn */
.couponwheel_wheel_shadow_crop {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	pointer-events: none;
	overflow: visible;
	border-radius: 50%;
}
.couponwheel_wheel_shadow_crop .couponwheel_wheel_img {
	width: 101.15%;
	max-width: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Bánh xe chính */
.couponwheel_wheel {
	filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Kim chỉ vị trí — 12h (trên đỉnh bánh xe) */
.couponwheel_marker {
	position: absolute;
	top: -19px;
	left: 50%;
	transform: translateX(-50%) rotate(-90deg);
	width: 38px;
	height: auto;
	filter: drop-shadow(0 3px 6px rgba(196, 30, 58, 0.5));
	z-index: 2000;
}

/* Phần điều khiển - Thanh lực và nút quay */
.couponwheel_stage1_controls {
	margin-top: 12px;
	text-align: center;
	padding: 6px 10px;
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,245,204,0.95) 100%);
	border-radius: 8px;
	border: 1px solid #d4af37;
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* Ghi chú hướng dẫn giữ nút */
.couponwheel_power_hint {
	font-size: 0.78em;
	color: #8b7340;
	margin-bottom: 6px;
	letter-spacing: 0.02em;
	animation: couponwheel_hint_pulse 2.5s ease-in-out infinite;
}
@keyframes couponwheel_hint_pulse {
	0%, 100% { opacity: 0.7; }
	50% { opacity: 1; }
}

/* Badge hiển thị lượt quay (trong nút) */
.couponwheel_remaining_spins_badge {
	font-size: 0.85em;
	font-weight: 600;
	opacity: 0.9;
	margin-left: 4px;
}
.couponwheel_remaining_spins_badge .couponwheel_remaining_spins_value {
	font-weight: 700;
}

/* Thanh lực - Power Overlay (ẩn mặc định, hiện giữa vòng quay khi giữ nút) */
.couponwheel_power_overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2500;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.couponwheel_power_overlay.is-active {
	opacity: 1;
	display: flex !important;
}
.couponwheel_power_overlay .couponwheel_power_section {
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 16px;
	padding: 12px 20px;
	min-width: 160px;
	max-width: 200px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	margin-bottom: 0;
}
.couponwheel_power_overlay #couponwheel_power_label {
	color: #ffd700 !important;
	font-size: 0.8em !important;
	font-weight: 600 !important;
	margin-top: 0;
	margin-bottom: 6px !important;
	display: block;
	text-shadow: none;
}
.couponwheel_power_overlay #couponwheel_power_bar_container {
	background: rgba(255,255,255,0.15) !important;
	border: 2px solid rgba(255,215,0,0.5) !important;
	border-radius: 12px !important;
	height: 24px !important;
	position: relative;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
	overflow: hidden;
}
.couponwheel_power_overlay #couponwheel_power_bar {
	width: 0%;
	height: 100% !important;
	background-color: #4CAF50;
	text-align: center;
	color: white;
	border-radius: 10px !important;
	line-height: 24px !important;
	font-weight: 700 !important;
	font-size: 0.85em !important;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
	transition: all 0.15s ease !important;
}

/* Nút QUAY chính */
.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 50%, #8b1528 100%) !important;
	color: #ffd700 !important;
	border: 2px solid #d4af37 !important;
	border-radius: 20px !important;
	font-weight: 700 !important;
	font-size: 0.9em !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 8px 25px !important;
	box-shadow: 
		0 3px 10px rgba(196, 30, 58, 0.4),
		inset 0 1px 0 rgba(255,255,255,0.2) !important;
	transition: all 0.3s ease !important;
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
}
.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn::before {
	content: "🎯";
	font-size: 1em;
	line-height: 1;
	flex-shrink: 0;
}
.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	animation: tet_btn_shine 2s infinite;
}
@keyframes tet_btn_shine {
	0% { left: -100%; }
	50%, 100% { left: 100%; }
}
.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn:hover {
	background: linear-gradient(135deg, #d4283f 0%, #b01e35 50%, #9b1a2d 100%) !important;
	transform: translateY(-2px);
	box-shadow: 
		0 5px 15px rgba(196, 30, 58, 0.5),
		inset 0 1px 0 rgba(255,255,255,0.3),
		0 0 0 6px rgba(212, 175, 55, 0.4) !important;
}
.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn:active {
	transform: translateY(0) scale(0.98);
}
.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn:disabled {
	background: linear-gradient(135deg, #999 0%, #777 100%) !important;
	color: #ccc !important;
	border-color: #888 !important;
	box-shadow: none !important;
	cursor: not-allowed;
}

.couponwheel_hidden {
	display: none !important;
}

.couponwheel_popup_header_image {
	margin: 1.2em 0;
	display: block;
	width: auto;
	height: auto;
	min-height: 3em;
	max-width: 100%;
	max-height: 5em;
	box-sizing: border-box;
}

.couponwheel_ajax_loader {
	margin-top: 1em;
	display: none;
}
.couponwheel_ajax_loader > div {
	width: .5em;
	height: .5em;
	margin-right: .33em;
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: couponwheel_sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: couponwheel_sk-bouncedelay 1.4s infinite ease-in-out both;
}
.couponwheel_ajax_loader div:nth-child(1) {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}
.couponwheel_ajax_loader div:nth-child(2) {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

/* ============================================================
   TẾT THEME - Nút Trigger mở vòng quay phong cách Tết Việt Nam
   ============================================================ */
.couponwheel_manual_open {
	position: fixed;
	z-index: 99999;
	cursor: pointer;
	transition: all 0.3s ease;
}
.couponwheel_manual_open_link {
	cursor: pointer;
	display: flex;
	align-items: center;
	text-decoration: none;
}

/* Container chính của nút trigger */
.couponwheel_manual_open .tet-trigger-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 50%, #8b1528 100%);
	border: 3px solid #d4af37;
	border-radius: 50%;
	width: 70px;
	height: 70px;
	box-shadow: 
		0 6px 25px rgba(196, 30, 58, 0.5),
		0 0 0 4px rgba(212, 175, 55, 0.3),
		inset 0 2px 0 rgba(255,255,255,0.2);
	animation: tet_trigger_pulse 2s ease-in-out infinite;
	overflow: visible;
}

/* Hiệu ứng pulse cho nút */
@keyframes tet_trigger_pulse {
	0%, 100% { 
		transform: scale(1);
		box-shadow: 
			0 6px 25px rgba(196, 30, 58, 0.5),
			0 0 0 4px rgba(212, 175, 55, 0.3),
			inset 0 2px 0 rgba(255,255,255,0.2);
	}
	50% { 
		transform: scale(1.05);
		box-shadow: 
			0 8px 35px rgba(196, 30, 58, 0.6),
			0 0 0 6px rgba(212, 175, 55, 0.4),
			0 0 20px rgba(255, 215, 0, 0.4),
			inset 0 2px 0 rgba(255,255,255,0.2);
	}
}

/* Hiệu ứng viền phát sáng chạy vòng */
.couponwheel_manual_open .tet-trigger-wrapper::before {
	content: "";
	position: absolute;
	top: -5px;
	left: -5px;
	right: -5px;
	bottom: -5px;
	border-radius: 50%;
	background: linear-gradient(45deg, #ffd700, #c41e3a, #ffd700, #c41e3a, #ffd700);
	background-size: 300% 300%;
	z-index: -1;
	animation: tet_trigger_border_rotate 3s linear infinite;
	opacity: 0.8;
}
@keyframes tet_trigger_border_rotate {
	0% { background-position: 0% 50%; transform: rotate(0deg); }
	100% { background-position: 100% 50%; transform: rotate(360deg); }
}

/* Họa tiết bao lì xì nhỏ bay xung quanh */
.couponwheel_manual_open .tet-trigger-wrapper::after {
	content: "🧧";
	position: absolute;
	top: -15px;
	right: -10px;
	font-size: 1.4em;
	animation: tet_trigger_envelope_bounce 1.5s ease-in-out infinite;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@keyframes tet_trigger_envelope_bounce {
	0%, 100% { transform: translateY(0) rotate(-10deg); }
	50% { transform: translateY(-8px) rotate(5deg); }
}

/* Hoa mai nhỏ góc dưới */
.couponwheel_manual_open .tet-flower-decor {
	position: absolute;
	bottom: -10px;
	left: -8px;
	font-size: 1.2em;
	animation: tet_trigger_flower_spin 4s ease-in-out infinite;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
@keyframes tet_trigger_flower_spin {
	0%, 100% { transform: rotate(-15deg) scale(1); }
	50% { transform: rotate(15deg) scale(1.1); }
}

/* Icon vòng quay bên trong */
.couponwheel_manual_open .tet-trigger-icon {
	font-size: 2em;
	animation: tet_trigger_icon_spin 4s linear infinite;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@keyframes tet_trigger_icon_spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Text "Quay" bên dưới nút */
.couponwheel_manual_open .tet-trigger-text {
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%);
	color: #c41e3a;
	font-size: 0.7em;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 10px;
	border: 2px solid #d4af37;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Hover effect */
.couponwheel_manual_open:hover .tet-trigger-wrapper {
	transform: scale(1.1);
	box-shadow: 
		0 10px 40px rgba(196, 30, 58, 0.6),
		0 0 0 8px rgba(212, 175, 55, 0.5),
		0 0 30px rgba(255, 215, 0, 0.5),
		inset 0 2px 0 rgba(255,255,255,0.3);
	animation: none;
}
.couponwheel_manual_open:hover .tet-trigger-icon {
	animation: tet_trigger_icon_spin 1s linear infinite;
}
.couponwheel_manual_open:hover .tet-trigger-text {
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
	color: #ffd700;
	transform: translateX(-50%) scale(1.1);
}

/* Click/Active effect */
.couponwheel_manual_open:active .tet-trigger-wrapper {
	transform: scale(0.95);
}

/* ===== FALLBACK: Style cho ảnh mặc định (nếu không dùng custom HTML) ===== */
.couponwheel_manual_open img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 3px solid #d4af37;
	box-shadow: 
		0 6px 25px rgba(196, 30, 58, 0.5),
		0 0 0 4px rgba(212, 175, 55, 0.3);
	animation: tet_trigger_img_pulse 2s ease-in-out infinite;
	transition: all 0.3s ease;
	object-fit: cover;
}
@keyframes tet_trigger_img_pulse {
	0%, 100% { 
		transform: scale(1) rotate(0deg);
		box-shadow: 0 6px 25px rgba(196, 30, 58, 0.5), 0 0 0 4px rgba(212, 175, 55, 0.3);
	}
	50% { 
		transform: scale(1.08) rotate(5deg);
		box-shadow: 0 8px 35px rgba(196, 30, 58, 0.6), 0 0 0 6px rgba(212, 175, 55, 0.5), 0 0 20px rgba(255, 215, 0, 0.4);
	}
}
.couponwheel_manual_open:hover img {
	transform: scale(1.15) rotate(10deg);
	box-shadow: 
		0 10px 40px rgba(196, 30, 58, 0.6),
		0 0 0 8px rgba(212, 175, 55, 0.5),
		0 0 30px rgba(255, 215, 0, 0.5);
	animation: none;
}
.couponwheel_manual_open:active img {
	transform: scale(0.95);
}

/* Vị trí các nút trigger */
.couponwheel_manual_open_position_0 {
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	left: 15px;
}
.couponwheel_manual_open_position_1 {
	top: 15px;
	left: 15px;
}
.couponwheel_manual_open_position_2 {
	bottom: calc(15px + env(safe-area-inset-bottom, 0px));
	left: 15px;
}
.couponwheel_manual_open_position_3 {
	top: 15px;
	right: 15px;
}
.couponwheel_manual_open_position_4 {
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	right: 15px;
}
.couponwheel_manual_open_position_5 {
	bottom: calc(15px + env(safe-area-inset-bottom, 0px));
	right: 15px;
}

/* Badge thông báo lượt quay miễn phí */
.couponwheel_manual_open .tet-trigger-badge {
	position: absolute;
	top: -8px;
	left: -8px;
	background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
	color: #8b0000;
	font-size: 0.65em;
	font-weight: 900;
	min-width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 3px 10px rgba(0,0,0,0.3);
	animation: tet_badge_bounce 1s ease-in-out infinite;
}
@keyframes tet_badge_bounce {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

/* Hiệu ứng ring wave */
.couponwheel_manual_open .tet-trigger-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 70px;
	height: 70px;
	transform: translate(-50%, -50%);
	border: 3px solid #d4af37;
	border-radius: 50%;
	animation: tet_ring_wave 2s ease-out infinite;
	pointer-events: none;
}
.couponwheel_manual_open .tet-trigger-ring:nth-child(2) {
	animation-delay: 0.5s;
}
@keyframes tet_ring_wave {
	0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
	100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@-webkit-keyframes couponwheel_sk-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}
@keyframes couponwheel_sk-bouncedelay {
	0%, 80%, 100% { 
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% { 
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}
.couponwheel_coupon_bar {
	line-height: 1.2em;
	background-color: #1b1b1b;
	color: white;
	font-size: 1.1em;
	text-align: center;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
}
.couponwheel_coupon_bar p {
	margin: .12em;
	padding: .25em 0;
}
.couponwheel_offers_progressbar {
	background-color: rgb(230,230,230);
	margin-top: 1em;
	padding: 1px;
	border-radius: 2px;
}
.couponwheel_offers_progressbar div {
	height: .66em;
	border-radius: 2px;
}
.couponwheel_offers_text {
	margin-top: .5em;
	font-size: .8em;
}

/* CSS cho 12 slices (mặc định) */
.couponwheel_slice_label:nth-of-type(1) { transform: translateY(-50%) rotate(0deg); -webkit-transform: translateY(-50%) rotate(0deg); }
.couponwheel_slice_label:nth-of-type(2) { transform: translateY(-50%) rotate(30deg); -webkit-transform: translateY(-50%) rotate(30deg); }
.couponwheel_slice_label:nth-of-type(3) { transform: translateY(-50%) rotate(60deg); -webkit-transform: translateY(-50%) rotate(60deg); }
.couponwheel_slice_label:nth-of-type(4) { transform: translateY(-50%) rotate(90deg); -webkit-transform: translateY(-50%) rotate(90deg); }
.couponwheel_slice_label:nth-of-type(5) { transform: translateY(-50%) rotate(120deg); -webkit-transform: translateY(-50%) rotate(120deg); }
.couponwheel_slice_label:nth-of-type(6) { transform: translateY(-50%) rotate(150deg); -webkit-transform: translateY(-50%) rotate(150deg); }
.couponwheel_slice_label:nth-of-type(7) { transform: translateY(-50%) rotate(180deg); -webkit-transform: translateY(-50%) rotate(180deg); }
.couponwheel_slice_label:nth-of-type(8) { transform: translateY(-50%) rotate(210deg); -webkit-transform: translateY(-50%) rotate(210deg); }
.couponwheel_slice_label:nth-of-type(9) { transform: translateY(-50%) rotate(240deg); -webkit-transform: translateY(-50%) rotate(240deg); }
.couponwheel_slice_label:nth-of-type(10) { transform: translateY(-50%) rotate(270deg); -webkit-transform: translateY(-50%) rotate(270deg); }
.couponwheel_slice_label:nth-of-type(11) { transform: translateY(-50%) rotate(300deg); -webkit-transform: translateY(-50%) rotate(300deg); }
.couponwheel_slice_label:nth-of-type(12) { transform: translateY(-50%) rotate(330deg); -webkit-transform: translateY(-50%) rotate(330deg); }

/* CSS cho 24 slices - Offset 7.5deg để label nằm giữa slice */
.couponwheel_24_slices .couponwheel_slice_label {
	font-size: 1.5em;
	width: 48%;
}
.couponwheel_24_slices .couponwheel_slice_media img {
	height: 1.15em;
	max-height: 1.15em;
	max-width: 90%;
}
/* Xoay wheel ban đầu -7.5deg để marker nằm giữa slice 1 ngay từ đầu */
.couponwheel_wheel.couponwheel_24_slices {
	transform: rotate(-7.5deg);
	-webkit-transform: rotate(-7.5deg);
}
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(1) { transform: translateY(-50%) rotate(7.5deg); -webkit-transform: translateY(-50%) rotate(7.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(2) { transform: translateY(-50%) rotate(22.5deg); -webkit-transform: translateY(-50%) rotate(22.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(3) { transform: translateY(-50%) rotate(37.5deg); -webkit-transform: translateY(-50%) rotate(37.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(4) { transform: translateY(-50%) rotate(52.5deg); -webkit-transform: translateY(-50%) rotate(52.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(5) { transform: translateY(-50%) rotate(67.5deg); -webkit-transform: translateY(-50%) rotate(67.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(6) { transform: translateY(-50%) rotate(82.5deg); -webkit-transform: translateY(-50%) rotate(82.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(7) { transform: translateY(-50%) rotate(97.5deg); -webkit-transform: translateY(-50%) rotate(97.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(8) { transform: translateY(-50%) rotate(112.5deg); -webkit-transform: translateY(-50%) rotate(112.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(9) { transform: translateY(-50%) rotate(127.5deg); -webkit-transform: translateY(-50%) rotate(127.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(10) { transform: translateY(-50%) rotate(142.5deg); -webkit-transform: translateY(-50%) rotate(142.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(11) { transform: translateY(-50%) rotate(157.5deg); -webkit-transform: translateY(-50%) rotate(157.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(12) { transform: translateY(-50%) rotate(172.5deg); -webkit-transform: translateY(-50%) rotate(172.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(13) { transform: translateY(-50%) rotate(187.5deg); -webkit-transform: translateY(-50%) rotate(187.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(14) { transform: translateY(-50%) rotate(202.5deg); -webkit-transform: translateY(-50%) rotate(202.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(15) { transform: translateY(-50%) rotate(217.5deg); -webkit-transform: translateY(-50%) rotate(217.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(16) { transform: translateY(-50%) rotate(232.5deg); -webkit-transform: translateY(-50%) rotate(232.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(17) { transform: translateY(-50%) rotate(247.5deg); -webkit-transform: translateY(-50%) rotate(247.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(18) { transform: translateY(-50%) rotate(262.5deg); -webkit-transform: translateY(-50%) rotate(262.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(19) { transform: translateY(-50%) rotate(277.5deg); -webkit-transform: translateY(-50%) rotate(277.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(20) { transform: translateY(-50%) rotate(292.5deg); -webkit-transform: translateY(-50%) rotate(292.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(21) { transform: translateY(-50%) rotate(307.5deg); -webkit-transform: translateY(-50%) rotate(307.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(22) { transform: translateY(-50%) rotate(322.5deg); -webkit-transform: translateY(-50%) rotate(322.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(23) { transform: translateY(-50%) rotate(337.5deg); -webkit-transform: translateY(-50%) rotate(337.5deg); }
.couponwheel_24_slices .couponwheel_slice_label:nth-of-type(24) { transform: translateY(-50%) rotate(352.5deg); -webkit-transform: translateY(-50%) rotate(352.5deg); }

#couponwheel_notice_content {
	position: fixed;
	bottom: 0;
	top: auto;
	left: 0;
	right: 0;
	padding: .6em;
	padding-bottom: calc(.6em + env(safe-area-inset-bottom, 0px));
	font-size: 1.1em;
	line-height: 1.2em;
	text-align: center;
	z-index: 100000;
	box-sizing: border-box;
}
#couponwheel_notice_content > span {
	margin-right: .5em;
}
#couponwheel_notice_close_btn {
	user-select: none;
	cursor: pointer;
	color: inherit;
	text-decoration: underline;
}

@media screen and (min-width: 40em) {
	.couponwheel_wheel {
		font-size: 1.1em;
	}
	.couponwheel_form {
		font-size: 1.08em;
		padding: 0;
		margin: 0;
		max-width: 400px;
	}
	.couponwheel_popup_form_container {
		position: relative;
		width: 100%;
		max-width: 100%;
		overflow-y: visible;
		display: flex;
		justify-content: center;
	}
	.couponwheel_popup_wheel_container {
		position: relative;
		width: 100%;
		max-width: 100%;
		overflow: visible;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 1.5em 0;
	}
	.couponwheel_wheel_container {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		-webkit-transform: none;
		width: 100%;
		max-width: 450px;
	}
	.couponwheel_popup_background {
		position: relative;
		min-height: auto;
		border-radius: 25px;
	}
	.couponwheel_slice_label {
		font-size: 1.3em;
	}
	.couponwheel_popup_heading_text {
		margin-top: 1em;
	}
	/* Căn giữa wheel crop */
	.couponwheel_wheel_crop {
		width: auto;
		max-width: 100%;
		padding: 0;
	}
	.couponwheel_wheel_container {
		max-width: 450px;
		width: 100%;
	}
}

/* ============================================================
   RESPONSIVE - Mobile Bottom Sheet + Breakpoints
   ============================================================ */

/* Input font-size >= 16px — prevents iOS auto-zoom on focus */
.couponwheel_form_stage1 input[type=text],
.couponwheel_form_stage1 input[type=email],
.couponwheel_form_stage1 input[type=tel] {
	font-size: 16px;
}

/* ============================================================
   MOBILE ONLY — Bottom Sheet layout (max-width: 767px)
   Overrides desktop centered-modal for phone viewports.
   Tablet / desktop / laptop keep the centered modal above.
   ============================================================ */
@media screen and (max-width: 767px) {
	.couponwheel_popup {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		transform: none;
		-webkit-transform: none;
		width: 100%;
		max-width: 500px;
		margin: 0 auto;
		border-radius: 20px 20px 0 0;
		overflow: hidden;
		box-shadow: 0 -4px 30px rgba(0,0,0,.25);
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		touch-action: auto;
	}
	.couponwheel_popup.cw-anim-initial {
		opacity: 0;
		transform: translateY(100%);
		-webkit-transform: translateY(100%);
	}
	.couponwheel_popup.cw-anim-out {
		opacity: 0;
		transform: translateY(100%);
		-webkit-transform: translateY(100%);
		transition-timing-function: ease-in;
		transition-duration: 0.25s;
	}
	.couponwheel_popup_background {
		display: flex;
		flex-direction: column;
		max-height: calc(90vh - env(safe-area-inset-bottom, 0px));
		max-height: calc(90dvh - env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0;
		border-bottom: none;
	}
	.cw-bs-header {
		border-radius: 20px 20px 0 0;
	}
	.cw-bs-body {
		flex: 1 1 auto;
		min-height: 200px;
		max-height: none;
		padding: 16px;
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	/* --- Stage 1: Form layout --- */
	.couponwheel_popup_form_container {
		width: 100%;
	}
	.couponwheel_form {
		padding: 0.5em 0;
	}
	.couponwheel_form_stage1 {
		text-align: center;
		padding: 8px 0;
	}
	.couponwheel_form_stage1 .couponwheel_popup_main_text {
		margin: 0.6em 0 1em;
		font-size: 0.93em;
		line-height: 1.5;
	}
	.couponwheel_form_stage1 input[type=text],
	.couponwheel_form_stage1 input[type=email],
	.couponwheel_form_stage1 input[type=tel] {
		width: 100%;
		max-width: 320px;
		margin: 0.6em auto 0;
		display: block;
		padding: 12px 14px;
		font-size: 16px;
		box-sizing: border-box;
	}
	.couponwheel_stage1_register_container {
		margin-top: 14px;
		text-align: center;
	}
	.couponwheel_form_stage1 .couponwheel_stage1_register_btn {
		width: 100%;
		max-width: 320px;
		padding: 12px 20px;
		font-size: 1em;
	}
	.couponwheel_form_stage1 .couponwheel_popup_form_error_text {
		margin: 0.8em auto 0;
		max-width: 320px;
	}
	.couponwheel_offers_progressbar {
		margin-top: 1em;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}
	.couponwheel_offers_text {
		text-align: center;
		margin-top: 0.4em;
	}
	.couponwheel_form_stage1 .couponwheel_popup_rules_text {
		margin: 1em auto 0;
		max-width: 320px;
		font-size: 0.78em;
		padding: 10px;
	}
	.couponwheel_form_stage1 .couponwheel_popup_checkbox_container {
		max-width: 320px;
		margin: 0.6em auto 0;
		text-align: left;
	}

	/* --- Reward overlay: buttons always visible --- */
	.cw-reward-overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2100;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 16px;
		box-sizing: border-box;
	}
	.cw-reward-card {
		flex-shrink: 1;
		max-height: none;
		overflow-y: auto;
		overflow-x: hidden;
		width: 90%;
		max-width: 300px;
		box-shadow: none !important;
		border: none !important;
		outline: none !important;
		background: rgba(30, 30, 30, 0.55) !important;
	}
	.cw-reward-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-top: 14px;
	}
	.cw-reward-actions .couponwheel_stage2_continue_btn,
	.cw-reward-actions .couponwheel_spin_again_btn {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-height: 44px;
		padding: 10px 8px !important;
		font-size: 0.88em !important;
		font-weight: 800 !important;
		border-radius: 12px !important;
		cursor: pointer;
		border: none !important;
		outline: none !important;
		box-sizing: border-box !important;
		margin: 0 !important;
		width: 100% !important;
		text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
		white-space: nowrap;
		text-decoration: none !important;
		color: #fff !important;
	}
}

/* Extra Small devices (phones, < 480px) */
@media screen and (max-width: 479px) {
	.couponwheel_popup {
		max-width: 100%;
		border-radius: 16px 16px 0 0;
	}
	.couponwheel_popup_background {
		border-radius: 16px 16px 0 0;
	}
	.cw-bs-header {
		border-radius: 16px 16px 0 0;
		padding: 12px 12px 8px;
	}
	.cw-bs-title {
		font-size: 1em;
	}
	.cw-bs-body {
		padding: 10px;
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	}
	/* --- Wheel stage: larger wheel --- */
	.couponwheel_popup_wheel_container {
		padding: 2px 0;
		width: 100%;
	}
	.couponwheel_wheel_crop {
		max-width: 88vw;
		margin: 0 auto;
	}
	.couponwheel_wheel_container {
		max-width: calc(88vw + 30px);
	}
	.couponwheel_marker {
		width: 32px;
		top: -24px;
	}
	.couponwheel_slice_label {
		font-size: 0.75em;
	}
	.couponwheel_wheel {
		font-size: 0.85em;
	}
	.cw_num {
		font-size: 1.1em;
	}
	/* Thanh lượt quay - mobile */
	.couponwheel_remaining_spins_container {
		padding: 4px 10px;
		gap: 5px;
	}
	.couponwheel_remaining_spins_label {
		font-size: 0.7em;
	}
	.couponwheel_remaining_spins_value {
		font-size: 0.95em;
		padding: 2px 6px;
	}
	/* Nút quay - mobile */
	.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn {
		padding: 8px 20px;
		font-size: 0.9em;
		min-width: 12em;
	}
	/* Power bar - mobile */
	#couponwheel_power_bar_container {
		height: 22px;
	}
	#couponwheel_power_bar {
		line-height: 22px;
		font-size: 0.85em;
	}
	#couponwheel_power_label {
		font-size: 0.85em;
	}
	.couponwheel_stage1_controls {
		padding: 8px 10px;
	}
	/* Tối ưu performance mobile */
	.couponwheel_popup_background::before,
	.couponwheel_popup_background::after {
		display: none;
	}
	.couponwheel_popup_wheel_container .couponwheel_stage1_submit_btn::after,
	.couponwheel_form_stage2 .couponwheel_stage2_continue_btn::after {
		animation: none;
	}
	.couponwheel_popup_wheel_container,
	.couponwheel_form_stage1 {
		box-shadow: none;
	}
	.couponwheel_wheel_crop {
		box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	}
	/* Reward overlay - smaller screens */
	.cw-reward-card {
		max-width: 280px;
		padding: 16px 12px;
		box-shadow: none !important;
		border: none !important;
		outline: none !important;
	}
	/* Voucher card mobile */
	.couponwheel_form_stage2 .couponwheel_popup_heading_text {
		font-size: 1em;
		margin-bottom: 8px !important;
	}
	.couponwheel_form_stage2 .voucher-display-wrapper {
		max-width: 260px;
	}
	.couponwheel_form_stage2 .dvl-voucher-card {
		max-width: 260px;
	}
	.couponwheel_form_stage2 .dvl-voucher-card__percent {
		font-size: 1.75rem;
	}
	.couponwheel_form_stage2 .dvl-voucher-card__cta {
		min-height: 42px;
	}
}

/* Small devices (large phones, 480px - 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
	.couponwheel_popup {
		max-width: 100%;
	}
	/* --- Wheel stage: larger wheel for bigger phones --- */
	.couponwheel_popup_wheel_container {
		padding: 2px 0;
		width: 100%;
	}
	.couponwheel_wheel_crop {
		max-width: 82vw;
		margin: 0 auto;
	}
	.couponwheel_wheel_container {
		max-width: calc(82vw + 30px);
	}
	.couponwheel_marker {
		width: 34px;
		top: -26px;
	}
	/* Tối ưu performance */
	.couponwheel_popup_background::before,
	.couponwheel_popup_background::after {
		display: none;
	}
}

/* Medium devices (tablets, 768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
	.couponwheel_popup_wheel_container {
		padding: 15px 20px;
	}
	.couponwheel_wheel_crop {
		max-width: 340px;
	}
	.couponwheel_wheel_container {
		max-width: 380px;
	}
	.couponwheel_marker {
		width: 36px;
		top: -25px;
	}
	.couponwheel_slice_label {
		font-size: 1.1em;
	}
}

/* Large devices (desktops, >= 1024px) */
@media screen and (min-width: 1024px) {
	.couponwheel_popup_wheel_container {
		min-width: auto;
	}
	.couponwheel_wheel_crop {
		max-width: 380px;
	}
	.couponwheel_wheel_container {
		max-width: 420px;
	}
	.couponwheel_marker {
		width: 38px;
		top: -27px;
	}
}

/* Extra Large devices (large desktops, >= 1440px) */
@media screen and (min-width: 1440px) {
	.couponwheel_popup_wheel_container {
		min-width: auto;
		padding: 20px 30px;
	}
	.couponwheel_wheel_crop {
		max-width: 400px;
	}
	.couponwheel_wheel_container {
		max-width: 450px;
	}
}

/* Landscape mode on mobile */
@media screen and (max-width: 767px) and (max-height: 500px) and (orientation: landscape) {
	.couponwheel_popup_background {
		max-height: 95vh;
		max-height: 95dvh;
	}
	.cw-bs-body {
		padding: 8px;
		padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	}
	.couponwheel_popup_wheel_container {
		padding: 5px 10px;
	}
	.couponwheel_wheel_crop {
		max-width: 200px;
	}
	.couponwheel_wheel_container {
		max-width: 250px;
	}
	.couponwheel_marker {
		width: 30px;
		top: -20px;
	}
	.cw-bs-title {
		font-size: 0.9em;
	}
	.couponwheel_stage1_controls {
		margin-top: 5px;
	}
	.couponwheel_power_section {
		margin-bottom: 5px;
	}
}

/* iPad Safari — portrait/landscape */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.couponwheel_popup {
		max-width: 480px;
	}
}

.couponwheel_power_section {
    /* Thêm style nếu cần cho cả khu vực thanh lực */
}

#couponwheel_power_bar_container {
    background-color: #e0e0e0; /* Màu nền của container thanh lực */
    border-radius: 8px;       /* Bo góc container */
    overflow: hidden;         /* Đảm bảo thanh lực bên trong không tràn ra ngoài */
    height: 25px;             /* Chiều cao container */
    position: relative;       /* Cho các hiệu ứng nâng cao sau này */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); /* Đổ bóng bên trong tạo độ sâu */
    margin-bottom: 5px; /* Giảm khoảng cách nếu chú thích ở ngay dưới */
}

#couponwheel_power_bar {
    height: 100%;
    text-align: center;
    line-height: 25px; /* Bằng chiều cao của container */
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    transition: width 0.1s linear, background-color 0.3s ease; /* Hiệu ứng chuyển đổi mượt mà */
	background-image: linear-gradient(to bottom, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0) 60%, rgba(0,0,0,0.1) 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Thêm bóng đổ nhẹ bên ngoài */
}

/* Màu sắc sẽ được JS ghi đè, nhưng bạn có thể đặt màu mặc định ở đây */
#couponwheel_power_bar.power-weak {
    background-color: #4CAF50; /* Xanh */
}
#couponwheel_power_bar.power-medium {
    background-color: #FFC107; /* Vàng */
    color: #333;
}
#couponwheel_power_bar.power-strong {
    background-color: #F44336; /* Đỏ */
}


#couponwheel_power_label {
    font-size: 0.9em;
    color: #555; /* Màu chữ cho chú thích */
    margin-top: 5px;
    font-style: italic; /* In nghiêng chú thích */
}

/* Ngăn chặn việc chọn văn bản */
.couponwheel-no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard syntax */
    -webkit-tap-highlight-color: transparent; /* Tắt highlight khi chạm trên mobile */
}

/* animations by https://daneden.github.io/animate.css/ */

@-webkit-keyframes couponwheel_effects_bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes couponwheel_effects_bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.couponwheel_effects_bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:couponwheel_effects_bounceIn;animation-name:couponwheel_effects_bounceIn}@-webkit-keyframes couponwheel_effects_tada{from{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes couponwheel_effects_tada{from{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.couponwheel_effects_tada{-webkit-animation-name:couponwheel_effects_tada;animation-name:couponwheel_effects_tada}.couponwheel_effects_animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}

/* ============================================================
   OLD VOUCHER CARD (vc-voucher-card / voucher.png overlay)
   — REMOVED: Now using unified dvl-voucher-card ticket card
   — Styling defined in .couponwheel_form_stage2 section above
   ============================================================ */