.ku-calculator {
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
	color: #222;
}

.ku-title {
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
}

.ku-banner {
	background: linear-gradient(90deg, #4a6741, #6b8c5f);
	color: #fff;
	text-align: center;
	font-weight: 700;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	font-size: 1rem;
	letter-spacing: .2px;
}

.ku-section {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.ku-section__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Kafelki rodzaju (jak w kalkulatorze wizytówek) */
.ku-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.ku-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
	background: #fff;
}

.ku-tile input {
	position: absolute;
	opacity: 0;
}

.ku-tile__img {
	width: 100%;
	padding-top: 65%;
	background-size: cover;
	background-position: center;
	background-color: #f3f3f3;
	border-radius: 6px;
	margin-bottom: 8px;
}

.ku-tile__label {
	font-weight: 600;
	font-size: .95rem;
}

.ku-tile__opis {
	font-size: .8rem;
	color: #777;
	margin-top: 2px;
}

.ku-tile:has(input:checked),
.ku-tile.is-selected {
	border-color: #4a6741;
	box-shadow: 0 0 0 2px rgba(74,103,65,.15);
}

/* Formularze / selecty */
.ku-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 12px;
}

.ku-field {
	flex: 1;
	min-width: 180px;
}

.ku-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: .9rem;
}

.ku-field select,
.ku-field input[type="number"],
.ku-field input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: .95rem;
}

/* Pigułki (strony druku, składanie, projekt) */
.ku-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ku-pill {
	position: relative;
	border: 1px solid #ccc;
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: .9rem;
	transition: all .15s ease;
	background: #fff;
}

.ku-pill input {
	position: absolute;
	opacity: 0;
}

.ku-pill:has(input:checked),
.ku-pill.is-selected {
	background: #4a6741;
	border-color: #4a6741;
	color: #fff;
}

/* Checkboxy uszlachetnień */
.ku-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.ku-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	font-size: .9rem;
}

.ku-checkbox.ku-hidden,
.ku-pill.ku-hidden {
	display: none;
}

.ku-checkbox.ku-disabled {
	opacity: .45;
	cursor: not-allowed;
	background: #f2f2f0;
}

.ku-checkbox.ku-disabled input {
	cursor: not-allowed;
}

/* Upload */
.ku-upload {
	margin-top: 12px;
}

.ku-hint {
	font-size: .8rem;
	color: #888;
	margin-top: 4px;
}

/* Podsumowanie */
.ku-summary {
	background: #f7f7f5;
	border-radius: 10px;
	padding: 20px;
	border-bottom: none;
}

.ku-summary__details {
	font-size: .85rem;
	color: #555;
	margin-bottom: 12px;
}

.ku-summary__details div {
	display: flex;
	justify-content: space-between;
	padding: 2px 0;
}

.ku-summary__prices {
	display: flex;
	align-items: baseline;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.ku-price {
	font-size: .95rem;
	color: #666;
}

.ku-price strong {
	font-size: 1.6rem;
	color: #222;
	margin-left: 6px;
}

.ku-price--brutto strong {
	color: #4a6741;
}

.ku-price--szt {
	font-size: .85rem;
	color: #888;
}

.ku-error {
	background: #fdeaea;
	color: #a33;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
	font-size: .9rem;
}

.ku-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.ku-qty {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
}

.ku-qty__btn {
	background: #f0f0f0;
	border: none;
	width: 36px;
	height: 40px;
	font-size: 1.1rem;
	cursor: pointer;
}

.ku-qty input {
	width: 50px;
	text-align: center;
	border: none;
	height: 40px;
}

.ku-add-to-cart {
	flex: 1;
	min-width: 200px;
	background: #a8bfa0;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 20px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}

.ku-add-to-cart:hover {
	background: #8fac86;
}

.ku-add-to-cart:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.ku-add-to-cart.ku-added {
	background: #4a6741;
}
