/* Spin The Wheel Coupons — frontend styles */

.stw-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.stw-overlay.stw-visible {
	display: flex;
	opacity: 1;
}

.stw-inline {
	display: flex;
	justify-content: center;
}

.stw-modal {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 420px;
	width: 92%;
	padding: 28px 24px 32px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	transform: scale(0.9);
	transition: transform 0.25s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.stw-overlay.stw-visible .stw-modal {
	transform: scale(1);
}

.stw-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #999;
}
.stw-close:hover {
	color: #333;
}

.stw-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
}

.stw-subtitle {
	margin: 0 0 16px;
	color: #666;
	font-size: 14px;
}

.stw-email-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
}

.stw-wheel-wrap {
	position: relative;
	width: 320px;
	height: 320px;
	margin: 0 auto 20px;
}

#stw-canvas {
	width: 100%;
	height: 100%;
	display: block;
	transition: transform 4.5s cubic-bezier(0.15, 0.65, 0.25, 1);
}

.stw-pointer {
	position: absolute;
	top: 50%;
	right: -6px;
	width: 0;
	height: 0;
	transform: translateY(-50%);
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	border-right: 22px solid #333;
	z-index: 2;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.stw-spin-btn,
.stw-done-btn {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	margin-bottom: 10px;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.stw-spin-btn:hover,
.stw-done-btn:hover {
	opacity: 0.92;
}

.stw-spin-btn:active,
.stw-done-btn:active {
	transform: scale(0.98);
}

.stw-spin-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.stw-done-btn {
	background: #333;
}

.stw-decline-btn {
	display: block;
	width: 100%;
	background: none;
	border: none;
	color: #999;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px;
}

.stw-error-msg {
	color: #c0392b;
	font-size: 13px;
	min-height: 18px;
	margin: 8px 0 0;
}

.stw-panel-result .stw-result-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.stw-coupon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #f6f6f6;
	border: 2px dashed #ccc;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 18px;
}

.stw-coupon-code {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 1px;
}

.stw-copy-btn {
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 12px;
}

.stw-copy-btn:hover {
	background: #eee;
}

@media (max-width: 480px) {
	.stw-wheel-wrap {
		width: 260px;
		height: 260px;
	}
}
