.sw-container {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
	font-family: inherit;
	box-sizing: border-box;
}
.sw-container * { box-sizing: border-box; }
.sw-title { font-size: 1.5em; margin-bottom: 0.2em; }
.sw-promo-text { margin-bottom: 1em; opacity: 0.85; }

.sw-stage {
	position: relative;
	background: #f6f2ff;
	background-size: cover;
	background-position: center;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.sw-phone-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 340px;
	margin: 0 auto;
}
.sw-phone-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px; /* 16px stops iPhones zooming in on focus */
	border: 1px solid #ccc;
	border-radius: 0 8px 8px 0;
	border-left: none;
}
.sw-phone-row {
	display: flex;
	align-items: stretch;
}
.sw-country-badge {
	display: flex;
	align-items: center;
	padding: 0 10px;
	font-size: 15px;
	font-weight: 600;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 8px 0 0 8px;
	white-space: nowrap;
}

.sw-stage img { max-width: 100%; }
.sw-prize-image, .sw-result-image {
	display: block;
	max-width: 90px;
	max-height: 90px;
	margin: 0 auto 8px;
	object-fit: contain;
}
.sw-result-description {
	font-size: 14px;
	opacity: 0.85;
	margin-top: 4px;
}
.sw-result-coupon {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 14px;
	background: #eef4ff;
	border: 1px dashed #6c2bd9;
	border-radius: 6px;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.sw-returning-badge {
	font-size: 13px;
	opacity: 0.7;
	margin-bottom: 6px;
}

.sw-btn {
	background: #6c2bd9;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}
.sw-btn:hover { background: #591fc0; }
.sw-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sw-phone-gate-after { margin-top: 16px; }

/* Custom questions */
.sw-questions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 4px 0 2px;
	text-align: left;
}
.sw-question { margin: 0; }
.sw-q-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sw-q-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.35;
}
.sw-q-required { color: #c0392b; }
.sw-phone-label { text-align: left; margin-bottom: -4px; }
.sw-question input[type="text"],
.sw-question input[type="email"],
.sw-question input[type="number"],
.sw-question input[type="date"],
.sw-question select,
.sw-question textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	font-size: 16px; /* 16px stops iPhones zooming in on focus */
	font-family: inherit;
	line-height: 1.3;
	color: #222;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
	margin: 0;
}
.sw-question textarea { resize: vertical; min-height: 72px; }
.sw-question select { -webkit-appearance: menulist; appearance: menulist; }
.sw-question input:focus,
.sw-question select:focus,
.sw-question textarea:focus { outline: 2px solid #6c2bd9; outline-offset: 1px; border-color: #6c2bd9; }
.sw-q-options { display: flex; flex-direction: column; gap: 6px; }
.sw-q-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	color: #222;
}
.sw-q-option input { margin: 0; width: 18px; height: 18px; flex: 0 0 auto; }
.sw-q-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; opacity: 0.75; }
.sw-q-counter { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sw-q-counter-near { color: #c0392b; opacity: 1; font-weight: 600; }
.sw-q-error { color: #c0392b; font-size: 13px; margin: 4px 0 0; }
.sw-has-error input,
.sw-has-error select,
.sw-has-error textarea,
.sw-has-error .sw-q-option { border-color: #c0392b; }
.sw-phone-form .sw-questions + .sw-btn,
.sw-phone-form .sw-hp + .sw-btn { margin-top: 4px; }
.sw-container.sw-template-holiday .sw-q-label,
.sw-container.sw-template-holiday .sw-q-meta { color: #fff; }

/* Honeypot: hidden from people, visible to naive bots. */
.sw-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sw-error { color: #c0392b; font-size: 13px; margin-top: 8px; }

.sw-scratch-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0 auto;
	vertical-align: top;
}
.sw-prize-reveal {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg,#ffd76e,#ff9f43);
	border-radius: 10px;
	font-size: 1.2em;
	font-weight: 700;
	color: #5a3300;
	padding: 10px;
	text-align: center;
}
.sw-scratch-canvas {
	position: relative;
	z-index: 2;
	border-radius: 10px;
	cursor: pointer;
	touch-action: none;
	display: block;
	max-width: 100%;
	height: auto;
	-webkit-user-select: none;
	user-select: none;
}
.sw-scratch-hint {
	margin-top: 10px;
	font-size: 13px;
	opacity: 0.7;
}

.sw-result { margin-top: 16px; }
.sw-result-message { font-size: 1.1em; font-weight: 600; }

.sw-footer-credit {
	margin-top: 10px;
	font-size: 11px;
	opacity: 0.5;
}

.sw-container.sw-template-holiday .sw-stage {
	background-color: #123524;
	color: #fff;
}
.sw-container.sw-template-holiday .sw-btn { background: #c0392b; }
.sw-container.sw-template-holiday .sw-btn:hover { background: #a5281a; }

@media (max-width: 480px) {
	.sw-stage { padding: 16px; }
}
