:root {
	/* Factory defaults — overridden per-wizard by palette settings inline CSS */
	--tlsc-accent: #e8734a;
	--tlsc-accent-dark: #d05a32;
	--tlsc-bg: #faf8f5;
	--tlsc-bg-card: #ffffff;
	--tlsc-text: #2a2a2a;
	--tlsc-text-muted: #5c5c5c;
	--tlsc-border: #e8e4df;
	--tlsc-radius: 16px;
	--tlsc-radius-sm: 12px;
	--tlsc-shadow: 0 2px 12px rgba(42, 42, 42, 0.08);
	--tlsc-touch: 44px;
	--tlsc-transition: 280ms ease;
	--tlsc-progress: 0;
}

.tlsc-wizard {
	font-family: inherit;
	color: var(--tlsc-text);
	background: var(--tlsc-bg);
	border-radius: var(--tlsc-radius);
	overflow: hidden;
	max-width: 720px;
	margin: 0 auto;
	position: relative;
	--tlsc-progress: 0;
}

.tlsc-wizard__sticky {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--tlsc-bg);
	padding: 12px 16px 8px;
	border-bottom: 1px solid var(--tlsc-border);
}

.tlsc-wizard__toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.tlsc-wizard__menu-btn {
	flex-shrink: 0;
	width: var(--tlsc-touch);
	height: var(--tlsc-touch);
	border: 2px solid var(--tlsc-border);
	border-radius: var(--tlsc-radius-sm);
	background: var(--tlsc-bg-card);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}

.tlsc-wizard__menu-icon {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--tlsc-text);
	box-shadow: 0 -6px 0 var(--tlsc-text), 0 6px 0 var(--tlsc-text);
}

.tlsc-wizard__progress {
	flex: 1;
	height: 4px;
	background: var(--tlsc-border);
	border-radius: 4px;
	overflow: hidden;
}

.tlsc-wizard__progress-bar {
	height: 100%;
	background: var(--tlsc-accent);
	border-radius: 4px;
	width: calc(var(--tlsc-progress) * 1%);
	transition: width var(--tlsc-transition);
}

.tlsc-wizard__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tlsc-wizard__step-label {
	font-weight: 600;
	font-size: 1rem;
}

.tlsc-wizard__price {
	text-align: right;
}

.tlsc-wizard__price-label {
	display: block;
	font-size: 0.75rem;
	color: var(--tlsc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.tlsc-wizard__price-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tlsc-accent);
}

.tlsc-wizard__steps {
	position: relative;
	min-height: 320px;
	overflow: hidden;
}

.tlsc-wizard__step {
	padding: 16px;
	opacity: 0;
	transform: translateX(40px);
	transition: opacity var(--tlsc-transition), transform var(--tlsc-transition);
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow-y: auto;
}

.tlsc-wizard__step--enter-back {
	transform: translateX(-40px);
}

.tlsc-wizard__step--enter-forward {
	transform: translateX(40px);
}

.tlsc-wizard__step--active {
	opacity: 1;
	transform: translateX(0);
	position: relative;
	pointer-events: auto;
}

.tlsc-wizard__step--exit-left {
	opacity: 0;
	transform: translateX(-40px);
}

.tlsc-wizard__step--exit-right {
	opacity: 0;
	transform: translateX(40px);
}

.tlsc-wizard__step-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.tlsc-wizard__step-desc {
	font-size: 0.875rem;
	color: var(--tlsc-text-muted);
	margin: 0 0 16px;
}

.tlsc-wizard__section {
	margin-top: 1.35rem;
}

.tlsc-wizard__section:first-of-type {
	margin-top: 0.25rem;
}

.tlsc-wizard__section-title {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.tlsc-wizard__section-desc {
	margin: 0 0 0.75rem;
	color: var(--tlsc-text-muted);
	font-size: 0.875rem;
}

.tlsc-wizard__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.tlsc-wizard__card {
	background: var(--tlsc-bg-card);
	border: 2px solid var(--tlsc-border);
	border-radius: var(--tlsc-radius-sm);
	padding: 16px 12px;
	cursor: pointer;
	transition: border-color var(--tlsc-transition), box-shadow var(--tlsc-transition), transform 0.15s ease;
	min-height: var(--tlsc-touch);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.tlsc-wizard__card:active {
	transform: scale(0.97);
}

.tlsc-wizard__card--selected {
	border-color: var(--tlsc-accent);
	box-shadow: 0 0 0 1px var(--tlsc-accent);
}

.tlsc-wizard__card-visual {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
}

.tlsc-wizard__card-visual--emoji {
	background: var(--tlsc-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--tlsc-accent);
}

.tlsc-wizard__card-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tlsc-wizard__card-name {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.tlsc-wizard__card-desc {
	font-size: 0.75rem;
	color: var(--tlsc-text-muted);
	line-height: 1.3;
}

.tlsc-wizard__card-price {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tlsc-accent);
	margin-top: auto;
}

.tlsc-wizard__card-price--free {
	color: var(--tlsc-text-muted);
	font-weight: 400;
}

.tlsc-wizard__nav {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: var(--tlsc-bg-card);
	border-top: 1px solid var(--tlsc-border);
}

.tlsc-wizard__btn {
	flex: 1;
	min-height: var(--tlsc-touch);
	border: none;
	border-radius: var(--tlsc-radius-sm);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--tlsc-transition), opacity var(--tlsc-transition);
	-webkit-tap-highlight-color: transparent;
}

.tlsc-wizard__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.tlsc-wizard__btn--prev {
	background: transparent;
	color: var(--tlsc-text);
	border: 2px solid var(--tlsc-border);
}

.tlsc-wizard__btn--next,
.tlsc-wizard__btn--cart,
.tlsc-wizard__btn--skip {
	background: var(--tlsc-accent);
	color: #fff;
}

.tlsc-wizard__btn--next:not(:disabled):hover,
.tlsc-wizard__btn--cart:not(:disabled):hover,
.tlsc-wizard__btn--skip:not(:disabled):hover {
	background: var(--tlsc-accent-dark);
}

.tlsc-wizard__recap-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tlsc-wizard__recap-item {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--tlsc-border);
	font-size: 0.9375rem;
}

.tlsc-wizard__recap-item:last-child {
	border-bottom: none;
	font-weight: 700;
	font-size: 1.0625rem;
	padding-top: 16px;
}

.tlsc-wizard__recap-label {
	color: var(--tlsc-text-muted);
}

.tlsc-wizard__loading {
	position: absolute;
	inset: 0;
	background: rgba(250, 248, 245, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 20;
}

.tlsc-wizard__loading[hidden] {
	display: none;
}

.tlsc-wizard__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--tlsc-border);
	border-top-color: var(--tlsc-accent);
	border-radius: 50%;
	animation: tlsc-spin 0.8s linear infinite;
}

@keyframes tlsc-spin {
	to { transform: rotate(360deg); }
}

.tlsc-wizard__message {
	margin: 12px 16px;
	padding: 12px 16px;
	border-radius: var(--tlsc-radius-sm);
	font-size: 0.875rem;
}

.tlsc-wizard__message[hidden] {
	display: none;
}

.tlsc-wizard__message--error {
	background: #fde8e8;
	color: #9b1c1c;
}

.tlsc-wizard__message--success {
	background: #def7ec;
	color: #03543f;
}

.tlsc-wizard__hint {
	font-size: 0.8125rem;
	color: var(--tlsc-text-muted);
	text-align: center;
	margin-top: 8px;
}

/* Slide-in drawer */
.tlsc-wizard__drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	visibility: hidden;
}

.tlsc-wizard__drawer--open {
	pointer-events: auto;
	visibility: visible;
}

.tlsc-wizard__drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity var(--tlsc-transition);
}

.tlsc-wizard__drawer--open .tlsc-wizard__drawer-backdrop {
	opacity: 1;
}

.tlsc-wizard__drawer-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background: var(--tlsc-bg-card);
	box-shadow: var(--tlsc-shadow);
	transform: translateX(-100%);
	transition: transform var(--tlsc-transition);
	display: flex;
	flex-direction: column;
}

.tlsc-wizard__drawer--open .tlsc-wizard__drawer-panel {
	transform: translateX(0);
}

.tlsc-wizard__drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--tlsc-border);
}

.tlsc-wizard__drawer-title {
	margin: 0;
	font-size: 1.125rem;
}

.tlsc-wizard__drawer-close {
	width: var(--tlsc-touch);
	height: var(--tlsc-touch);
	border: none;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
}

.tlsc-wizard__drawer-nav {
	flex: 1;
	overflow-y: auto;
	padding: 8px 0;
}

.tlsc-wizard__drawer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tlsc-wizard__drawer-link {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: none;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font-size: 0.9375rem;
	color: var(--tlsc-text);
	transition: background var(--tlsc-transition);
}

.tlsc-wizard__drawer-link:hover:not([disabled]) {
	background: var(--tlsc-bg);
}

.tlsc-wizard__drawer-link[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

.tlsc-wizard__drawer-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--tlsc-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 600;
	flex-shrink: 0;
}

.tlsc-wizard__drawer-item--active .tlsc-wizard__drawer-num {
	border-color: var(--tlsc-accent);
	background: var(--tlsc-accent);
	color: #fff;
}

.tlsc-wizard__drawer-item--done .tlsc-wizard__drawer-num {
	border-color: var(--tlsc-accent);
	color: var(--tlsc-accent);
}

body.tlsc-wizard-drawer-open {
	overflow: hidden;
}

/* Tablet strict 768–1024px */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.tlsc-wizard {
		max-width: 800px;
	}

	.tlsc-wizard__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.tlsc-wizard__step {
		padding: 24px;
	}

	.tlsc-wizard__card {
		padding: 20px 16px;
	}

	.tlsc-wizard__drawer-panel {
		width: min(380px, 45vw);
	}
}

@media screen and (min-width: 768px) {
	.tlsc-wizard {
		max-width: 800px;
	}

	.tlsc-wizard__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.tlsc-wizard__step {
		padding: 24px;
	}

	.tlsc-wizard__card {
		padding: 20px 16px;
	}
}

@media screen and (min-width: 1025px) {
	.tlsc-wizard {
		max-width: 900px;
	}
}

@media screen and (max-height: 500px) and (orientation: landscape) {
	.tlsc-wizard__steps {
		min-height: 200px;
	}

	.tlsc-wizard__card-visual {
		width: 36px;
		height: 36px;
	}

	.tlsc-wizard__card {
		padding: 10px 8px;
	}
}

.tlsc-wizard-block-preview__inner {
	padding: 2rem;
	text-align: center;
	border: 2px dashed var(--tlsc-border, #ccc);
	border-radius: 8px;
}

.tlsc-wizard-block-preview__icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 0.5rem;
}
