.fmtk-wccg-redeem {
	background:
		radial-gradient(circle at top left, rgba(244, 127, 22, 0.16) 0%, rgba(244, 127, 22, 0) 28%),
		radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 26%),
		linear-gradient(180deg, #151515 0%, #17181b 42%, #111214 100%);
	color: #f2eee9;
	padding: 56px 20px 64px;
}

.fmtk-wccg-redeem__inner {
	margin: 0 auto;
	max-width: 1180px;
}

.fmtk-wccg-redeem__grid {
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
	align-items: start;
}

.fmtk-wccg-redeem__guide,
.fmtk-wccg-redeem__panel {
	animation: fmtkWccgFadeUp 720ms ease both;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(10px);
}

.fmtk-wccg-redeem__guide {
	min-height: 430px;
	overflow: hidden;
}

.fmtk-wccg-redeem__instructions {
	padding: 44px;
}

.fmtk-wccg-redeem__eyebrow {
	color: #e86f1f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.fmtk-wccg-redeem__instructions h1 {
	color: #f7f3ef;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.14;
	margin: 0 0 28px;
	text-transform: uppercase;
}

.fmtk-wccg-redeem__instructions ol {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	counter-reset: steps;
	list-style: none;
	margin: 0;
	padding: 8px 0 0;
}

.fmtk-wccg-redeem__instructions li {
	color: rgba(242, 238, 233, 0.82);
	counter-increment: steps;
	display: grid;
	font-size: 16px;
	gap: 14px;
	grid-template-columns: 34px 1fr;
	line-height: 1.45;
	padding: 18px 0;
}

.fmtk-wccg-redeem__instructions li::before {
	align-items: center;
	background: #f47f16;
	color: #111;
	content: counter(steps);
	display: flex;
	font-size: 14px;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.fmtk-wccg-redeem__event {
	animation: fmtkWccgReveal 860ms ease both;
	display: grid;
	grid-template-rows: minmax(300px, clamp(300px, 39vw, 460px)) auto;
	max-height: 540px;
	min-height: 430px;
}

.fmtk-wccg-redeem__event[hidden] {
	display: none;
}

.fmtk-wccg-redeem__event-image {
	display: block;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
	transform: scale(1.01);
	transition: transform 1200ms ease;
	width: 100%;
}

.fmtk-wccg-redeem__event:hover .fmtk-wccg-redeem__event-image {
	transform: scale(1.04);
}

.fmtk-wccg-redeem__event-caption {
	background: rgba(10, 10, 11, 0.92);
	color: #f7f3ef;
	padding: 20px 24px;
}

.fmtk-wccg-redeem__event-caption span {
	color: #ff7a1a;
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.fmtk-wccg-redeem__event-caption strong {
	display: block;
	font-size: 20px;
	line-height: 1.25;
	text-transform: uppercase;
}

.fmtk-wccg-redeem__panel {
	animation-delay: 140ms;
	padding: 28px;
}

.fmtk-wccg-redeem__form {
	display: grid;
	gap: 20px;
}

.fmtk-wccg-redeem__form label {
	color: #f7f3ef;
	display: block;
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.fmtk-wccg-redeem__add-row {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.fmtk-wccg-redeem__add-row input {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-sizing: border-box;
	caret-color: #f2eee9;
	color: #f2eee9;
	font-size: 16px;
	min-height: 48px;
	padding: 0 14px;
	-webkit-text-fill-color: #f2eee9;
	transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
	width: 100%;
}

.fmtk-wccg-redeem__add-row input:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: #e9792a;
	box-shadow: 0 0 0 3px rgba(233, 121, 42, 0.14);
	caret-color: #f2eee9;
	color: #f2eee9;
	outline: 0;
	-webkit-text-fill-color: #f2eee9;
}

.fmtk-wccg-redeem__add-row input::placeholder {
	color: rgba(242, 238, 233, 0.5);
	opacity: 1;
	-webkit-text-fill-color: rgba(242, 238, 233, 0.5);
}

.fmtk-wccg-redeem__add-row input:focus::placeholder {
	color: rgba(242, 238, 233, 0.58);
	-webkit-text-fill-color: rgba(242, 238, 233, 0.58);
}

.fmtk-wccg-redeem__add-row input:-webkit-autofill,
.fmtk-wccg-redeem__add-row input:-webkit-autofill:hover,
.fmtk-wccg-redeem__add-row input:-webkit-autofill:focus {
	box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset, 0 0 0 3px rgba(233, 121, 42, 0.14);
	caret-color: #f2eee9;
	color: #f2eee9;
	-webkit-text-fill-color: #f2eee9;
}

.fmtk-wccg-redeem__add-row .button,
.fmtk-wccg-redeem__checkout {
	background: #e9792a !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-weight: 800 !important;
	min-height: 48px !important;
	padding: 0 24px !important;
	text-transform: none !important;
	transition: background-color 260ms ease, box-shadow 260ms ease, transform 260ms ease !important;
}

.fmtk-wccg-redeem__add-row .button:hover,
.fmtk-wccg-redeem__checkout:hover {
	background: #cf651b;
	box-shadow: 0 10px 22px rgba(207, 101, 27, 0.22);
	color: #fff;
	transform: translateY(-1px);
}

.fmtk-wccg-redeem__checkout:disabled {
	background: #cfcfca;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.fmtk-wccg-redeem__hint,
.fmtk-wccg-redeem__counter {
	color: rgba(242, 238, 233, 0.7);
	font-size: 14px;
	margin: 10px 0 0;
}

.fmtk-wccg-redeem__hint--error {
	animation: fmtkWccgNudge 340ms ease;
	color: #b42318;
}

.fmtk-wccg-redeem__hint--pending {
	color: #8a5a00;
}

.fmtk-wccg-redeem__hint--success {
	color: #267a3d;
}

.fmtk-wccg-redeem__cards {
	display: grid;
	gap: 12px;
	min-height: 10px;
}

.fmtk-wccg-redeem-card {
	animation: fmtkWccgCardIn 520ms ease both;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-left: 5px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
	display: grid;
	gap: 8px;
	padding: 14px 46px 14px 16px;
	position: relative;
	transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.fmtk-wccg-redeem-card:hover {
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
	transform: translateY(-1px);
}

.fmtk-wccg-redeem-card--pending {
	border-left-color: #f4bd00;
	background: rgba(244, 189, 0, 0.12);
	overflow: hidden;
}

.fmtk-wccg-redeem-card--pending::after {
	animation: fmtkWccgPending 1700ms ease-in-out infinite;
	background: linear-gradient(90deg, transparent, rgba(244, 189, 0, 0.18), transparent);
	content: "";
	height: 100%;
	left: -45%;
	position: absolute;
	top: 0;
	width: 45%;
}

.fmtk-wccg-redeem-card--valid {
	animation-name: fmtkWccgCardIn, fmtkWccgValidPulse;
	animation-duration: 520ms, 900ms;
	animation-timing-function: ease, ease;
	border-left-color: #2f9d52;
}

.fmtk-wccg-redeem-card--error {
	border-left-color: #d63638;
	background: rgba(214, 54, 56, 0.12);
}

.fmtk-wccg-redeem-card__top {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.fmtk-wccg-redeem-card__top strong {
	color: #f7f3ef;
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-size: 15px;
	overflow-wrap: anywhere;
}

.fmtk-wccg-redeem-card__state {
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 5px 9px;
	white-space: nowrap;
}

.fmtk-wccg-redeem-card--pending .fmtk-wccg-redeem-card__state {
	background: #f4bd00;
	color: #111;
}

.fmtk-wccg-redeem-card--valid .fmtk-wccg-redeem-card__state {
	background: #2f9d52;
}

.fmtk-wccg-redeem-card--error .fmtk-wccg-redeem-card__state {
	background: #d63638;
}

.fmtk-wccg-redeem-card__meta {
	color: rgba(242, 238, 233, 0.74);
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
	overflow-wrap: anywhere;
}

.fmtk-wccg-redeem-card__remove {
	align-items: center;
	background: transparent;
	border: 0;
	color: rgba(242, 238, 233, 0.58);
	cursor: pointer;
	display: flex;
	font-size: 18px;
	height: 34px;
	justify-content: center;
	position: absolute;
	right: 8px;
	top: 10px;
	transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
	width: 34px;
}

.fmtk-wccg-redeem-card__remove:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	transform: rotate(90deg);
}

.fmtk-wccg-redeem__raw {
	display: none;
	box-sizing: border-box;
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	width: 100%;
}

.fmtk-wccg-redeem__summary {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding-top: 20px;
}

.fmtk-wccg-redeem__counter {
	margin: 0;
}

.fmtk-wccg-redeem__errors {
	background: rgba(214, 54, 56, 0.12);
	border-left: 4px solid #d63638;
	margin: 0 0 18px;
	padding: 12px 16px;
	color: #ffd9da;
}

.fmtk-wccg-redeem__errors ul {
	margin: 0;
	padding-left: 18px;
}

@keyframes fmtkWccgFadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fmtkWccgReveal {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fmtkWccgCardIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fmtkWccgValidPulse {
	0% {
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
	}
	45% {
		box-shadow: 0 0 0 4px rgba(47, 157, 82, 0.16), 0 12px 28px rgba(0, 0, 0, 0.08);
	}
	100% {
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
	}
}

@keyframes fmtkWccgPending {
	0% {
		left: -45%;
	}
	100% {
		left: 100%;
	}
}

@keyframes fmtkWccgNudge {
	0%,
	100% {
		transform: translateX(0);
	}
	35% {
		transform: translateX(-4px);
	}
	70% {
		transform: translateX(3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fmtk-wccg-redeem *,
	.fmtk-wccg-redeem *::before,
	.fmtk-wccg-redeem *::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}
}

@media (max-width: 900px) {
	.fmtk-wccg-redeem {
		padding: 34px 14px 44px;
	}

	.fmtk-wccg-redeem__grid {
		grid-template-columns: 1fr;
	}

	.fmtk-wccg-redeem__guide,
	.fmtk-wccg-redeem__event {
		max-height: none;
		min-height: 0;
	}

	.fmtk-wccg-redeem__event {
		background: #000;
		display: block;
		overflow: hidden;
		position: relative;
	}

	.fmtk-wccg-redeem__event-image {
		height: 100%;
		inset: 0;
		max-height: none;
		opacity: 0.36;
		position: absolute;
		transform: scale(1.04);
		width: 100%;
	}

	.fmtk-wccg-redeem__event:hover .fmtk-wccg-redeem__event-image {
		transform: scale(1.07);
	}

	.fmtk-wccg-redeem__event-caption {
		background: linear-gradient(90deg, rgba(10, 10, 11, 0.96), rgba(10, 10, 11, 0.66));
		min-height: 0;
		padding: 26px 24px;
		position: relative;
		z-index: 1;
	}
}

@media (max-width: 560px) {
	.fmtk-wccg-redeem__instructions,
	.fmtk-wccg-redeem__panel {
		padding: 22px;
	}

	.fmtk-wccg-redeem__instructions h1 {
		font-size: 26px;
	}

	.fmtk-wccg-redeem__add-row,
	.fmtk-wccg-redeem__summary {
		grid-template-columns: 1fr;
	}

	.fmtk-wccg-redeem__add-row {
		display: grid;
	}

	.fmtk-wccg-redeem__summary {
		align-items: stretch;
		display: grid;
	}

	.fmtk-wccg-redeem__add-row .button,
	.fmtk-wccg-redeem__checkout {
		width: 100%;
	}

	.fmtk-wccg-redeem__event-caption {
		padding: 22px;
	}

	.fmtk-wccg-redeem__event-caption strong {
		font-size: 17px;
	}
}
