/* Konfigurator kamperów */

.morelo-configurator {
	background: #fff;
	color: #000;
	padding: 96px 0 56px;
}

.morelo-configurator__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.morelo-configurator__head {
	margin-bottom: 32px;
}

.morelo-configurator__kicker {
	margin: 0 0 8px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.65);
}

.morelo-configurator__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.morelo-configurator__intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.85);
}

.morelo-configurator__empty,
.morelo-configurator__loading,
.morelo-configurator__error {
	margin: 0;
	padding: 24px;
	background: #f5f5f5;
	border-radius: 4px;
}

.morelo-configurator__error {
	color: #b00020;
}

.morelo-configurator__toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin-bottom: 28px;
	max-width: 420px;
}

.morelo-configurator__toolbar-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

.morelo-configurator__model-label {
	font-weight: 700;
	font-size: 0.95rem;
}

.morelo-configurator__model-select {
	width: 100%;
	min-width: 0;
	padding: 10px 14px;
	font-size: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	background: #fff;
}

.morelo-configurator__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

@media (max-width: 900px) {
	.morelo-configurator__layout {
		grid-template-columns: 1fr;
	}

	.morelo-configurator__summary {
		display: none;
	}

	.morelo-configurator__app--mobile-total {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}

	.morelo-configurator__app--mobile-pdf-open {
		padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
	}

	.morelo-configurator__mobile-total {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: #1a1a1a;
		box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
	}

	.morelo-configurator__mobile-total[hidden] {
		display: none;
	}

	.morelo-configurator__mobile-total-inner {
		max-width: 1200px;
		margin: 0 auto;
		color: #fff;
	}

	.morelo-configurator__mobile-total-row {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 14px 20px;
	}

	.morelo-configurator__mobile-total-label {
		flex: 1;
		font-size: 0.8rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		opacity: 0.9;
	}

	.morelo-configurator__mobile-total-value {
		font-size: 1.25rem;
		font-weight: 900;
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
	}

	.morelo-configurator__mobile-pdf-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 40px;
		height: 40px;
		padding: 0;
		color: #fff;
		background: rgba(255, 255, 255, 0.1);
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 4px;
		cursor: pointer;
		transition: background 0.2s ease, border-color 0.2s ease;
	}

	.morelo-configurator__mobile-total.is-pdf-open .morelo-configurator__mobile-pdf-toggle {
		background: rgba(255, 255, 255, 0.18);
		border-color: rgba(255, 255, 255, 0.45);
	}

	.morelo-configurator__mobile-pdf-toggle-icon {
		display: block;
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		margin-top: -3px;
		transition: transform 0.22s ease, margin 0.22s ease;
	}

	.morelo-configurator__mobile-total.is-pdf-open .morelo-configurator__mobile-pdf-toggle-icon {
		transform: rotate(-135deg);
		margin-top: 2px;
	}

	.morelo-configurator__mobile-pdf-panel {
		max-height: 0;
		overflow: hidden;
		padding: 0 20px;
		opacity: 0;
		transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
	}

	.morelo-configurator__mobile-total.is-pdf-open .morelo-configurator__mobile-pdf-panel {
		max-height: 64px;
		padding: 0 20px 14px;
		opacity: 1;
	}

	.morelo-configurator__mobile-pdf-btn {
		display: block;
		width: 100%;
		padding: 12px 16px;
		font-size: 0.8rem;
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #1a1a1a;
		background: #fff;
		border: none;
		border-radius: 4px;
		cursor: pointer;
	}
}

@media (min-width: 901px) {
	.morelo-configurator__mobile-total {
		display: none !important;
	}
}

.morelo-configurator__section-title {
	margin: 0 0 16px;
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.morelo-configurator__variant {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 16px;
}

.morelo-configurator__variant-label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1a1a1a;
}

.morelo-configurator__variant-select {
	width: 100%;
	padding: 11px 14px;
	font-size: 1rem;
	font-family: inherit;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}

.morelo-configurator__variant-select:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.morelo-configurator__base-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	padding: 12px 14px;
	background: #efefef;
	border-radius: 4px;
	border-left: 4px solid #1a1a1a;
}

.morelo-configurator__base-price-label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.morelo-configurator__base-price-value {
	font-size: 1.15rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.morelo-configurator__specs {
	margin-bottom: 36px;
}

.morelo-configurator__spec-block {
	margin-bottom: 18px;
}

.morelo-configurator__spec-group-title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.morelo-configurator__spec-group {
	display: grid;
	grid-template-columns: minmax(140px, 35%) 1fr;
	gap: 8px 16px;
	margin: 0 0 20px;
}

.morelo-configurator__spec-group dt {
	margin: 0;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.75);
}

.morelo-configurator__spec-group dd {
	margin: 0;
}

.morelo-configurator__category {
	margin-bottom: 28px;
}

.morelo-configurator__category-title {
	margin: 0 0 12px;
	padding: 8px 12px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.morelo-configurator__option-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.morelo-configurator__option {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.morelo-configurator__option:last-child {
	border-bottom: 0;
}

.morelo-configurator__option-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.morelo-configurator__option-label:hover {
	background: rgba(0, 0, 0, 0.03);
}

.morelo-configurator__option-label input {
	margin-top: 4px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	accent-color: #000;
}

.morelo-configurator__option-text {
	flex: 1;
	min-width: 0;
}

.morelo-configurator__option-art {
	display: block;
	margin-bottom: 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: rgba(0, 0, 0, 0.55);
	font-variant-numeric: tabular-nums;
}

.morelo-configurator__option-desc {
	display: block;
	font-size: 0.95rem;
	line-height: 1.45;
}

.morelo-configurator__option-price {
	flex-shrink: 0;
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
}

.morelo-configurator__summary {
	position: sticky;
	top: 100px;
}

.morelo-configurator__summary-inner {
	padding: 20px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 4px;
}

.morelo-configurator__summary-model {
	margin: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.4;
	opacity: 0.9;
}

.morelo-configurator__summary-rows {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 12px;
	font-size: 0.9rem;
}

.morelo-configurator__summary-rows dt {
	margin: 0;
	font-weight: 500;
	opacity: 0.85;
}

.morelo-configurator__summary-rows dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.morelo-configurator__summary-total-label,
.morelo-configurator__summary-total-value {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 1.05rem;
	font-weight: 900;
}

.morelo-configurator__summary-hr {
	margin: 16px 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.morelo-configurator__summary-photo {
	margin: 0 0 16px;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
}

.morelo-configurator__summary-photo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 160px;
	object-fit: cover;
}

.morelo-configurator__pdf-wrap {
	margin: 20px 0 0;
}

.morelo-configurator__pdf-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
	background: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.morelo-configurator__pdf-btn:hover {
	opacity: 0.88;
}
