.af-wc-mount,
.af-wc__overlay {
	--af-wc-width: 420px;
	--af-wc-bg: #fff;
	--af-wc-text: #1a1a1a;
	--af-wc-accent: #1a1a1a;
}

.af-wc-mount--editor {
	max-width: 420px;
}

.af-wc__editorNote {
	padding: 14px 16px;
	border: 1px dashed color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.45;
	opacity: 0.85;
}

body.af-wc-open {
	overflow: hidden;
}

.af-wc__overlay {
	position: fixed;
	inset: 0;
	z-index: 999995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.af-wc__overlay[hidden] {
	display: flex !important;
}

.af-wc__overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.af-wc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	background: color-mix(in srgb, var(--af-wc-text) 55%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.af-wc__panel {
	position: relative;
	width: min(var(--af-wc-width), 100%);
	max-height: min(92vh, 820px);
	overflow: auto;
	padding: 24px 22px 22px;
	border-radius: 18px;
	background: var(--af-wc-bg);
	color: var(--af-wc-text);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
	transform: translateY(16px) scale(0.98);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
	text-align: center;
}

.af-wc__overlay.is-open .af-wc__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.af-wc__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.af-wc__close:hover,
.af-wc__close:focus-visible {
	background: color-mix(in srgb, currentColor 8%, transparent);
	outline: none;
}

.af-wc__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.65;
}

.af-wc__countdown {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 auto 12px;
	padding: 8px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.af-wc__countdownLabel {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.65;
}

.af-wc__countdownValue {
	font-size: 1.35rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	line-height: 1;
}

.af-wc__countdown.is-expired {
	background: color-mix(in srgb, #b42318 12%, transparent);
	color: #b42318;
}

.af-wc__title {
	margin: 0 0 14px;
	font-size: 1.45rem;
	font-weight: 750;
	line-height: 1.2;
	padding-right: 20px;
	padding-left: 20px;
}

.af-wc__subtitle {
	margin: 0 0 14px;
	font-size: 0.92rem;
	line-height: 1.45;
	opacity: 0.78;
}

.af-wc__wheelWrap {
	position: relative;
	width: min(260px, 72vw);
	margin: 0 auto 16px;
	aspect-ratio: 1;
}

.af-wc__pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	z-index: 3;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 18px solid var(--af-wc-accent);
	transform: translateX(-50%);
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.af-wc__wheel {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 6px solid color-mix(in srgb, var(--af-wc-text) 12%, transparent);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15), 0 10px 28px rgba(0, 0, 0, 0.16);
	overflow: hidden;
	will-change: transform;
}

.af-wc__wheelLabel {
	position: absolute;
	width: 4.2em;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1;
}

.af-wc__wheelLabelText {
	display: block;
	width: 100%;
	font-size: clamp(0.5rem, 2vw, 0.62rem);
	font-weight: 750;
	line-height: 1.15;
	color: #4a3a42;
	text-align: center;
	white-space: normal;
	word-break: break-word;
}

.af-wc__wheelCenter {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18%;
	height: 18%;
	border-radius: 50%;
	background: var(--af-wc-bg);
	border: 3px solid color-mix(in srgb, var(--af-wc-text) 18%, transparent);
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	z-index: 2;
}

.af-wc__form {
	display: none;
	grid-gap: 12px;
	text-align: left;
}

.af-wc__form.is-active {
	display: grid;
}

.af-wc__field {
	display: grid;
	gap: 6px;
}

.af-wc__label {
	font-size: 0.82rem;
	font-weight: 650;
}

.af-wc__req {
	color: #b42318;
	margin-left: 2px;
}

.af-wc__input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(17, 17, 17, 0.18);
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 3%, var(--af-wc-bg));
	color: inherit;
	font: inherit;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.af-wc__input:focus {
	outline: 2px solid color-mix(in srgb, var(--af-wc-accent) 35%, transparent);
	outline-offset: 1px;
}

.af-wc__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 4px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--af-wc-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.af-wc__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.af-wc__message {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.88rem;
	line-height: 1.4;
}

.af-wc__message.is-error {
	background: color-mix(in srgb, #b42318 10%, transparent);
	color: #b42318;
}

.af-wc__message.is-success {
	background: color-mix(in srgb, #067647 10%, transparent);
	color: #067647;
}

.af-wc__success {
	display: none;
	text-align: center;
	padding: 8px 0 4px;
}

.af-wc__success.is-visible {
	display: grid;
	gap: 12px;
}

.af-wc__prizeLabel {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.af-wc__couponBox {
	margin: 0;
	padding: 14px;
	border-radius: 12px;
	background: color-mix(in srgb, currentColor 6%, transparent);
	font-size: 1.1rem;
	font-weight: 750;
	letter-spacing: 0.04em;
}

@media (max-width: 420px) {
	.af-wc__panel {
		padding: 20px 16px 18px;
	}

	.af-wc__title {
		font-size: 1.25rem;
	}
}
