/* Isolated from theme form/label float styles */
.stl-rewards,
.stl-rewards *,
.stl-rewards *::before,
.stl-rewards *::after {
	box-sizing: border-box;
}

.woocommerce .stl-rewards label,
.stl-rewards label,
#stl_rewards_box label {
	position: static !important;
	float: none !important;
	transform: none !important;
	clip: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	white-space: normal !important;
}

.stl-rewards {
	--stl-ink: #122018;
	--stl-muted: #66756c;
	--stl-line: #e0e8e2;
	--stl-soft: #f3f7f4;
	--stl-brand: #0d3b24;
	--stl-brand-2: #145032;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1rem 0 1.25rem;
	padding: 1rem;
	border: 1px solid var(--stl-line);
	border-radius: 16px;
	background: #fff;
	font-family: inherit;
	line-height: 1.4;
	overflow: visible;
}

.stl-rewards p {
	margin: 0;
	padding: 0;
}

.stl-rewards__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.stl-rewards__identity {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	flex: 1 1 auto;
}

.stl-rewards__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--stl-brand);
	color: #fff;
	font-size: 0.95rem;
	line-height: 1;
}

.stl-rewards__titles {
	min-width: 0;
}

.stl-rewards__name {
	color: var(--stl-ink);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
}

.stl-rewards__tagline {
	margin-top: 0.15rem !important;
	color: var(--stl-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.stl-rewards__points {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.15rem;
	flex: 0 0 auto;
	padding: 0.45rem 0.7rem;
	border-radius: 12px;
	background: var(--stl-soft);
	border: 1px solid #d5e2d8;
	text-align: end;
	line-height: 1.1;
}

.stl-rewards__points-num {
	color: var(--stl-brand);
	font-size: 1.05rem;
	font-weight: 700;
}

.stl-rewards__points-lbl {
	color: var(--stl-muted);
	font-size: 0.68rem;
}

.stl-rewards__body {
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--stl-line);
}

.stl-rewards__expect {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.stl-rewards__expect-lbl {
	color: var(--stl-muted);
	font-size: 0.86rem;
}

.stl-rewards__expect-val {
	color: var(--stl-ink);
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.stl-rewards__field {
	display: block;
	width: 100%;
}

.stl-rewards__field-lbl {
	display: block;
	position: static !important;
	margin: 0 0 0.4rem !important;
	color: var(--stl-ink);
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.35;
}

.stl-rewards__control {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 3rem;
	padding: 0 0.85rem;
	border: 1px solid #c7d3cb;
	border-radius: 12px;
	background: #fff;
}

.stl-rewards__control:focus-within {
	border-color: var(--stl-brand);
	box-shadow: 0 0 0 3px rgba(13, 59, 36, 0.12);
}

.woocommerce .stl-rewards input.stl-rewards__input,
.stl-rewards input.stl-rewards__input,
#stl_rewards_box input.stl-rewards__input {
	display: block !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.7rem 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--stl-ink) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	appearance: textfield;
	-moz-appearance: textfield;
}

.stl-rewards input.stl-rewards__input::-webkit-outer-spin-button,
.stl-rewards input.stl-rewards__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.stl-rewards__unit {
	flex: 0 0 auto;
	margin-inline-start: 0.55rem;
	color: var(--stl-muted);
	font-size: 0.86rem;
	white-space: nowrap;
}

.stl-rewards__helpers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem 0.75rem;
	margin: 0.65rem 0 0.95rem;
}

.stl-rewards__limits {
	color: var(--stl-muted);
	font-size: 0.74rem;
	line-height: 1.4;
}

.stl-rewards__link {
	appearance: none;
	display: inline;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	color: var(--stl-brand);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.stl-rewards__link:hover {
	color: var(--stl-brand-2);
}

.stl-rewards__submit {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: 3.05rem;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 12px;
	background: var(--stl-brand);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(13, 59, 36, 0.14);
}

.stl-rewards__submit:hover {
	background: var(--stl-brand-2);
}

.stl-rewards__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.stl-rewards__submit-txt,
.stl-rewards__submit-val {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
}

.stl-rewards__done {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.9rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: #eef7f1;
	border: 1px solid #cfe5d7;
}

.stl-rewards__done-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.stl-rewards__done-title {
	color: var(--stl-brand);
	font-size: 0.92rem;
	font-weight: 700;
}

.stl-rewards__done-desc {
	margin-top: 0.2rem !important;
	color: #3d5f4b;
	font-size: 0.8rem;
}

.stl-rewards__remove {
	appearance: none;
	flex: 0 0 auto;
	min-width: 4.5rem;
	min-height: 2.4rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid #c9d7ce;
	border-radius: 999px;
	background: #fff;
	color: var(--stl-brand);
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.stl-rewards__remove:hover {
	background: #f7faf7;
}

.stl-rewards__remove:disabled {
	opacity: 0.6;
	cursor: wait;
}

.stl-rewards__feedback {
	min-height: 1.1em;
	margin-top: 0.55rem !important;
	color: var(--stl-brand);
	font-size: 0.8rem;
}

.stl-rewards__feedback.is-error {
	color: #b42318;
	font-weight: 600;
}

.stl-rewards__control.is-invalid {
	border-color: #f04438 !important;
	box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.stl-rewards.has-error .stl-rewards__submit {
	opacity: 0.85;
}

.stl-rewards__empty {
	margin-top: 0.85rem !important;
	padding-top: 0.85rem;
	border-top: 1px solid var(--stl-line);
	color: var(--stl-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.stl-cart-hint small {
	opacity: 0.85;
}

.stl-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}

.stl-card {
	border: 1px solid #e5e5e5;
	padding: 0.9rem;
	background: #fff;
	border-radius: 12px;
}

.stl-card-label {
	display: block;
	font-size: 0.85rem;
	opacity: 0.75;
	margin-bottom: 0.35rem;
}

.stl-card-value {
	font-size: 1.35rem;
}

.stl-rules ul {
	margin: 0.5rem 0 1.5rem;
	padding-inline-start: 1.2rem;
}

.stl-log-table {
	width: 100%;
	font-size: 0.92rem;
}

.stl-thankyou {
	--stl-ink: #122018;
	--stl-muted: #66756c;
	--stl-brand: #0d3b24;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 1.15rem 0 1.35rem;
	padding: 1rem 1.1rem;
	border: 1px solid #d7e5db;
	border-radius: 16px;
	background: linear-gradient(135deg, #f4faf6 0%, #eaf5ee 100%);
	box-shadow: 0 10px 28px rgba(13, 59, 36, 0.08);
	overflow: hidden;
	position: relative;
	animation: stl-thankyou-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stl-thankyou--win::before {
	content: "";
	position: absolute;
	inset: auto -20% -40% auto;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 122, 77, 0.18), transparent 70%);
	pointer-events: none;
}

.stl-thankyou__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--stl-brand);
	color: #fff;
	font-size: 1.05rem;
	line-height: 1;
	box-shadow: 0 8px 18px rgba(13, 59, 36, 0.22);
	animation: stl-thankyou-pop 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.stl-thankyou__body {
	min-width: 0;
	flex: 1 1 auto;
}

.stl-thankyou__eyebrow {
	margin: 0 0 0.15rem;
	color: var(--stl-brand);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	opacity: 0.9;
}

.stl-thankyou__title {
	margin: 0;
	color: var(--stl-ink);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
}

.stl-thankyou__points {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0.45rem 0 0.2rem;
	color: var(--stl-brand);
	font-weight: 700;
}

.stl-thankyou__count {
	display: inline-block;
	font-size: 1.7rem;
	line-height: 1;
	letter-spacing: -0.03em;
	animation: stl-thankyou-count 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.stl-thankyou__points > span:last-child {
	font-size: 0.92rem;
}

.stl-thankyou__balance,
.stl-thankyou__text {
	margin: 0;
	color: var(--stl-muted);
	font-size: 0.84rem;
	line-height: 1.4;
}

.stl-thankyou--soft {
	animation: stl-thankyou-in 0.55s ease both;
}

@keyframes stl-thankyou-in {
	0% {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes stl-thankyou-pop {
	0% {
		opacity: 0;
		transform: scale(0.4) rotate(-18deg);
	}
	60% {
		opacity: 1;
		transform: scale(1.12) rotate(4deg);
	}
	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

@keyframes stl-thankyou-count {
	0% {
		opacity: 0;
		transform: scale(0.7);
		filter: blur(2px);
	}
	55% {
		opacity: 1;
		transform: scale(1.12);
		filter: blur(0);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stl-thankyou,
	.stl-thankyou__badge,
	.stl-thankyou__count {
		animation: none !important;
	}
}

@media (max-width: 560px) {
	.stl-thankyou {
		align-items: flex-start;
	}

	.stl-thankyou__count {
		font-size: 1.45rem;
	}
}

.stl-dashboard-points {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #e4ebe5;
	border-radius: 12px;
	background: #f7faf7;
}

@media (max-width: 560px) {
	.stl-rewards {
		padding: 0.9rem;
		border-radius: 14px;
	}

	.stl-rewards__header {
		align-items: flex-start;
	}

	.stl-rewards__helpers {
		flex-direction: column;
		align-items: flex-start;
	}

	.stl-rewards__submit {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
		min-height: 0;
		padding: 0.9rem 1rem;
	}

	.stl-rewards__expect-val,
	.stl-rewards__submit-val {
		font-size: 1rem;
	}
}
