.trcfg-app {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.trcfg-progress {
	height: 6px;
	background: #eaeaea;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 28px;
}

.trcfg-progress-bar {
	height: 100%;
	width: 0%;
	background: #2271b1;
	transition: width 0.25s ease;
}

.trcfg-step-title {
	font-size: 22px;
	margin: 0 0 18px;
}

.trcfg-field {
	margin-bottom: 18px;
}

.trcfg-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.trcfg-field input[type="text"],
.trcfg-field input[type="number"],
.trcfg-field input[type="email"],
.trcfg-field input[type="tel"],
.trcfg-field select,
.trcfg-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.trcfg-radio-label,
.trcfg-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin-bottom: 6px;
	cursor: pointer;
}

.trcfg-radio-label[hidden],
.trcfg-checkbox-label[hidden] {
	display: none !important;
}

.trcfg-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.trcfg-qty-row[hidden] {
	display: none !important;
}

.trcfg-qty-label {
	font-weight: 400;
}

.trcfg-qty-controls {
	display: flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}

.trcfg-qty-btn {
	width: 34px;
	height: 34px;
	border: 1px solid #ccc;
	background: #f7f7f7;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.trcfg-qty-btn:hover {
	background: #ececec;
}

.trcfg-qty-btn.trcfg-qty-minus {
	border-radius: 6px 0 0 6px;
}

.trcfg-qty-btn.trcfg-qty-plus {
	border-radius: 0 6px 6px 0;
}

.trcfg-qty-input {
	width: 46px;
	height: 34px;
	text-align: center;
	border: 1px solid #ccc;
	border-left: none;
	border-right: none;
	font-size: 15px;
	-moz-appearance: textfield;
}

.trcfg-qty-input::-webkit-outer-spin-button,
.trcfg-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.trcfg-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.trcfg-btn {
	padding: 12px 24px;
	border-radius: 6px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.trcfg-btn-next,
.trcfg-btn-submit {
	background: #2271b1;
	color: #fff;
	margin-left: auto;
}

.trcfg-btn-next:hover,
.trcfg-btn-submit:hover {
	background: #135e96;
}

.trcfg-btn-prev {
	background: #f0f0f1;
	color: #1d2327;
}

.trcfg-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.trcfg-phone-cta-block {
	text-align: center;
	padding: 8px 0 4px;
}

.trcfg-phone-cta-text {
	font-size: 15px;
	color: #333;
	margin: 0 0 4px;
}

.trcfg-btn-call {
	display: inline-block;
	text-decoration: none;
	text-align: center;
}

.trcfg-btn-call::before {
	content: "📞 ";
}

.trcfg-message {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 15px;
}

.trcfg-message-success {
	background: #edf9ee;
	border: 1px solid #59b56a;
	color: #1b5e20;
}

.trcfg-message-error {
	background: #fdeded;
	border: 1px solid #e57373;
	color: #b71c1c;
}

.trcfg-price-bar {
	background: #f0f6fc;
	border: 1px solid #cfe2f3;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.trcfg-price-label {
	font-weight: 600;
	color: #1d2327;
}

.trcfg-price-value {
	font-size: 20px;
	font-weight: 700;
	color: #135e96;
}

.trcfg-price-note {
	flex-basis: 100%;
	font-size: 12px;
	color: #757575;
}

.trcfg-option-price {
	font-weight: 600;
	color: #135e96;
	font-size: 0.9em;
}

.trcfg-cards {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 130px, 1fr ) );
	gap: 12px;
}

.trcfg-card {
	position: relative;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #fff;
}

.trcfg-card:hover {
	border-color: #90c2e7;
}

.trcfg-card[hidden] {
	display: none !important;
}

.trcfg-card-active {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.15 );
	background: #f5faff;
}

.trcfg-card-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.trcfg-card-img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 5px;
	background: #f0f0f0;
}

.trcfg-card-img-placeholder {
	display: block;
}

.trcfg-card-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

@media ( max-width: 480px ) {
	.trcfg-step-title {
		font-size: 19px;
	}
	.trcfg-btn {
		padding: 12px 16px;
	}
}

@media ( min-width: 700px ) {
	.trcfg-app {
		max-width: 860px;
	}
	.trcfg-cards {
		grid-template-columns: repeat( auto-fill, minmax( 210px, 1fr ) );
		gap: 16px;
	}
	.trcfg-card-img {
		height: 160px;
	}
	.trcfg-card-label {
		font-size: 15px;
	}
}

.trcfg-preview-hint {
	color: #555;
	font-size: 14px;
	margin: -8px 0 16px;
}

.trcfg-preview-canvas-wrap {
	display: flex;
	justify-content: center;
}

.trcfg-client-preview-canvas {
	max-width: 100%;
	width: 100%;
	border-radius: 10px;
	background: #f0f0f0;
	display: block;
}
