.kretor-ciastek-app {
	max-width: 1148px !important;
	width: 100% !important;
	margin: 0 auto !important;
	font-family: inherit;
	color: #3a2c2c;
	box-sizing: border-box;
	border: 1px solid #f0d9e3;
	border-radius: 20px;
	padding: 1.5rem;
}

.kretor-ciastek-header {
	display: grid;
	width: 100%;
	box-sizing: border-box;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 0.75rem 1.5rem;
	margin-bottom: 1.5rem;
}

.kretor-ciastek-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	grid-column: 1;
}

.kretor-hc-logo-img {
	height: 44px;
	width: auto;
	display: block;
}

.kretor-ciastek-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.kretor-logo-brand {
	font-size: 0.55rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #d63384;
}

.kretor-logo-title {
	font-size: 1rem;
	font-weight: 800;
	color: #1a1a1a;
}

.kretor-ciastek-steps {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.kretor-step-btn {
	border: none;
	background: #f5f1ee;
	color: #3a2c2c;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.kretor-step-btn.is-active {
	background: #fde6ef;
	color: #d63384;
}

.kretor-ciastek-send-btn {
	background: #d63384;
	color: #fff;
	border: none;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	justify-self: end;
	font-size: 0.85rem;
	white-space: nowrap;
}

.kretor-ciastek-step {
	display: grid;
	width: 100%;
	box-sizing: border-box;
	grid-template-columns: 260px 1fr 280px;
	gap: 1.5rem;
	align-items: stretch;
}

.kretor-ciastek-step[hidden],
.kretor-ciastek-step-form[hidden] {
	display: none !important;
}

.kretor-ciastek-controls {
	min-width: 0;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1.25rem;
}

.kretor-control-group {
	margin-bottom: 1.5rem;
}

.kretor-control-group h4 {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #8a7a7a;
}

.kretor-base-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
}

.kretor-base-btn {
	padding: 0.6rem 0.3rem;
	border: 2px solid #eee;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 0.8rem;
}

.kretor-base-btn.is-active {
	border-color: #d63384;
	background: #fde6ef;
}

.kretor-shape-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

.kretor-shape-btn {
	padding: 0.6rem;
	border: 2px solid #eee;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.kretor-shape-btn svg {
	width: 24px;
	height: 24px;
	fill: #8a7a7a;
}

.kretor-shape-btn.is-active {
	border-color: #d63384;
	background: #fde6ef;
}

.kretor-shape-btn.is-active svg {
	fill: #d63384;
}

.kretor-ciastek-sizes label {
	display: block;
	margin-bottom: 0.75rem;
	font-weight: 400;
	font-size: 0.85rem;
}

.kretor-ciastek-sizes input[type="range"] {
	width: 100%;
}

.kretor-size-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

.kretor-size-btn {
	padding: 0.5rem 0.3rem;
	border: 2px solid #eee;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.4;
}

.kretor-size-btn small {
	font-weight: 400;
	font-size: 0.72rem;
	color: #8a7a7a;
}

.kretor-size-btn.is-active {
	border-color: #d63384;
	background: #fde6ef;
	color: #d63384;
}

.kretor-size-btn.is-active small {
	color: #d63384;
}

.kretor-field-note {
	font-size: 0.75rem;
	color: #8a7a7a;
	font-weight: 400;
	margin: 0.25rem 0 0;
	display: block;
}

p.kretor-field-note {
	margin: 0.3rem 0 0;
}

.kretor-required {
	color: #d63384;
}

.kretor-price-label {
	display: block;
	font-weight: 600;
	margin: 0.75rem 0 0.3rem;
	font-size: 0.85rem;
}

.kretor-summary-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: #d63384;
	margin-bottom: 0.5rem;
}

.kretor-price-estimate {
	font-size: 0.85rem;
	color: #3a2c2c;
}

.kretor-accordion {
	border: 1px solid #eee;
	border-radius: 10px;
	margin-bottom: 0.75rem;
	padding: 0.3rem 0.8rem;
}

.kretor-accordion summary {
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0.5rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.15rem;
}

.kretor-accordion-label {
	font-weight: 700;
	color: #d63384;
}

.kretor-accordion-hint {
	font-weight: 600;
	font-size: 0.75rem;
	color: #d63384;
}

.kretor-accordion-body {
	padding: 0.5rem 0 0.8rem;
}

#kretor-text-input,
.kretor-accordion-body input[type="file"] {
	width: 100%;
	font-size: 0.85rem;
	font-family: inherit;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.kretor-text-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.kretor-text-options label {
	font-weight: 400;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.kretor-text-options input[type="color"] {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.kretor-text-options label {
	flex-direction: column;
	align-items: flex-start;
}

.kretor-text-options select {
	width: 100%;
	font-size: 0.85rem;
	padding: 0.4rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.kretor-upload-hint {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: #666;
}

.kretor-ciastek-canvas-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.kretor-canvas-toolbar {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 0.5rem 0.75rem;
}

.kretor-canvas-toolbar button {
	border: none;
	background: #f5f1ee;
	padding: 0.4rem 0.7rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85rem;
}

.kretor-toolbar-divider {
	width: 1px;
	background: #eee;
	margin: 0 0.25rem;
}

.kretor-ciastek-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1rem;
	position: relative;
}

#kretor-preview-canvas {
	background: #fdf6f0;
	border: 1px dashed #d63384;
	border-radius: 8px;
}

.kretor-ciastek-summary {
	min-width: 0;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1.25rem;
}

.kretor-ciastek-summary h3 {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #8a7a7a;
}

.kretor-summary-list {
	margin: 0 0 1.25rem;
}

.kretor-summary-list dt {
	font-size: 0.75rem;
	color: #8a7a7a;
	margin-top: 0.5rem;
}

.kretor-summary-list dd {
	margin: 0;
	font-weight: 600;
	font-size: 0.85rem;
}

.kretor-ciastek-summary label {
	display: block;
	font-weight: 600;
	margin: 0.75rem 0 0.3rem;
	font-size: 0.85rem;
}

.kretor-ciastek-summary select,
.kretor-ciastek-summary textarea {
	width: 100%;
	font-size: 0.85rem;
	font-family: inherit;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.kretor-quantity-stepper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.kretor-quantity-stepper button {
	flex: 0 0 32px;
	width: 32px !important;
	height: 32px;
	min-width: 0;
	padding: 0 !important;
	border: 1px solid #eee;
	background: #f5f1ee;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 700;
	box-sizing: border-box;
}

.kretor-quantity-stepper input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	text-align: center;
	padding: 0.4rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.kretor-next-step-btn {
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.7rem;
	border: none;
	background: #d63384;
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
}

.kretor-ciastek-step > h3 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #8a7a7a;
}

.kretor-items-overview {
	margin-bottom: 1rem;
}

.kretor-overview-row {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 0.75rem;
	margin-bottom: 0.5rem;
	background: #fff;
	line-height: 1.6;
	font-size: 0.85rem;
}

.kretor-overview-row-with-image {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.kretor-overview-thumb {
	width: 90px;
	height: 90px;
	object-fit: contain;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fdf6f0;
	flex-shrink: 0;
}

.kretor-ciastek-quote-form {
	max-width: 600px;
	margin: 0 auto;
}

.kretor-ciastek-step-form {
	display: block;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1.5rem;
	background: #fff;
}

.kretor-ciastek-quote-form h3 {
	margin-top: 0;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #8a7a7a;
}

.kretor-ciastek-quote-form label {
	display: block;
	font-weight: 600;
	margin: 1rem 0 0.3rem;
	font-size: 0.85rem;
}

.kretor-ciastek-quote-form input,
.kretor-ciastek-quote-form textarea {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.kretor-step-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.kretor-step-actions .kretor-next-step-btn {
	width: auto;
	flex: 1 1 auto;
	margin-top: 0;
}

.kretor-canvas-next-btn {
	width: auto;
	display: block;
	margin: 1rem auto 0;
	padding: 0.7rem 2rem;
}

.kretor-prev-step-btn {
	flex: 0 0 auto;
	padding: 0.7rem 1.3rem;
	border: 1px solid #eee;
	background: #f5f1ee;
	color: #3a2c2c;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.kretor-ciastek-success {
	max-width: 500px;
	margin: 2rem auto 0;
	padding: 1.5rem;
	background: #e6f4ea;
	border: 1px solid #34a853;
	border-radius: 8px;
	text-align: center;
}

.kretor-text-style-btns {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.25rem;
}

.kretor-style-btn {
	width: 32px;
	height: 32px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f5f1ee;
	cursor: pointer;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.kretor-style-btn.is-active {
	background: #fde6ef;
	border-color: #d63384;
	color: #d63384;
}

.kretor-font-preview {
	margin-top: 0.5rem;
	padding: 0.5rem 0.6rem;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fdf6f0;
	font-size: 0.95rem;
	color: #3a2c2c;
	min-height: 2.2rem;
	line-height: 1.4;
	word-break: break-word;
}

.kretor-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kretor-modal-overlay[hidden] {
	display: none !important;
}

.kretor-modal {
	background: #fff;
	border-radius: 14px;
	padding: 1.75rem 2rem;
	max-width: 420px;
	width: 90%;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.kretor-modal-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	color: #d63384;
}

.kretor-modal-list {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: #3a2c2c;
}

.kretor-modal-close {
	width: 100%;
	padding: 0.7rem;
	background: #d63384;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.kretor-ciastek-step {
		grid-template-columns: 1fr;
	}

	.kretor-ciastek-canvas-column {
		display: contents;
	}

	.kretor-ciastek-controls {
		order: 1;
	}

	.kretor-canvas-toolbar {
		order: 2;
	}

	.kretor-ciastek-preview {
		order: 3;
	}

	.kretor-ciastek-summary {
		order: 4;
	}

	.kretor-canvas-next-btn {
		order: 5;
	}
}

/* ── Branding ─────────────────────────────────────────────── */
.kretor-ciastek-app {
	position: relative;
	overflow: hidden;
}

.kretor-brand-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
}

.kretor-ciastek-logo span small {
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	opacity: 0.8;
}

/* ── Znak wodny ───────────────────────────────────────────── */

/* ── Ekran powitalny ──────────────────────────────────────── */
.kretor-tutorial-overlay {
	position: absolute;
	inset: 0;
	z-index: 50;
	background: rgba(255, 248, 243, 0.98);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 1.5rem;
}

.kretor-tutorial-overlay[hidden] {
	display: none !important;
}

.kretor-tutorial-modal {
	max-width: 860px;
	width: 100%;
}

.kretor-tutorial-hdr {
	text-align: center;
	margin-bottom: 2rem;
}

.kretor-tutorial-brand-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	margin-bottom: 0.6rem;
}

.kretor-tutorial-brand-icon {
	width: 52px;
	height: 52px;
	color: #d63384;
}

.kretor-tutorial-brand-name {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #d63384;
	margin: 0 0 0.1rem;
}

.kretor-tutorial-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #3a2c2c;
	margin: 0;
}

.kretor-tutorial-subtitle {
	font-size: 0.95rem;
	color: #6b5050;
	margin: 0;
}

/* ── Hexagon diagram ──────────────────────────────────────── */
.kretor-tutorial-diagram {
	margin: 0 auto 1.5rem;
}

.kretor-tutorial-hexrow {
	display: flex;
	align-items: flex-start;
	position: relative;
	padding-top: 16px;
}

.kretor-tutorial-hexrow::before {
	content: '';
	position: absolute;
	top: 28px;
	left: 6%;
	right: 6%;
	height: 2px;
	background: #fce7f3;
	z-index: 0;
}

.kretor-tutorial-step {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.kretor-tutorial-num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #d63384;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	box-shadow: 0 0 0 3px #fff8f3;
}

.kretor-tutorial-vline {
	width: 2px;
	height: 14px;
	background: #fce7f3;
	margin-bottom: 4px;
}

.kretor-tutorial-hex {
	width: 54px;
	height: 54px;
	margin-bottom: 6px;
	flex-shrink: 0;
}

.kretor-tutorial-hex svg {
	width: 100%;
	height: 100%;
}

.kretor-tutorial-label {
	font-size: 0.6rem;
	font-weight: 600;
	color: #3a2c2c;
	text-align: center;
	line-height: 1.3;
}

/* ── Footer ekranu powitalnego ────────────────────────────── */
.kretor-tutorial-ftr {
	text-align: center;
}

.kretor-tutorial-ftr p {
	font-size: 0.9rem;
	color: #6b5050;
	margin-bottom: 1.2rem;
}

.kretor-tutorial-start-btn {
	background: #d63384;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0.85rem 2.5rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.kretor-tutorial-start-btn:hover {
	background: #b5266e;
}

@media (max-width: 600px) {
	.kretor-ciastek-app {
		padding: 0.75rem;
	}

	.kretor-ciastek-header {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0.6rem;
		padding: 0.75rem;
	}

	.kretor-ciastek-logo {
		grid-column: auto;
	}

	.kretor-hc-logo-img {
		height: 36px;
	}

	.kretor-ciastek-steps {
		flex-wrap: wrap;
		justify-content: center;
	}

	.kretor-step-btn {
		font-size: 0.75rem;
		padding: 0.45rem 0.7rem;
	}

	.kretor-ciastek-preview {
		overflow: hidden;
	}

	.kretor-ciastek-preview .canvas-container {
		max-width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1;
		overflow: hidden;
	}

	.kretor-ciastek-preview canvas {
		max-width: 100% !important;
		height: auto !important;
	}

	.kretor-tutorial-overlay {
		padding: 0.75rem;
		align-items: flex-start;
	}

	.kretor-tutorial-hexrow {
		flex-wrap: wrap;
		row-gap: 1rem;
	}

	.kretor-tutorial-hexrow::before {
		display: none;
	}

	.kretor-tutorial-step {
		flex: 0 0 25%;
	}

	.kretor-tutorial-vline {
		display: none;
	}

	.kretor-tutorial-hex {
		width: 44px;
		height: 44px;
	}
}
