/* ---- from block-select-js.blade.php ---- */
	.block-select-group {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-top: 6px;
	}
	.block-select-btn {
		position: relative;
		border-radius: 8px;
		border: 1.5px solid #e2e2e2;
		background: #fff;
		color: #2b2b2b;
		font-family: inherit;
		cursor: pointer;
		transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
	}
	.block-select-btn:hover {
		border-color: #3a473a;
	}
	.block-select-btn.active {
		border-color: #3a473a;
		background: #3a473a;
		color: #fff;
	}

	/* Plain (no image available) buttons — text label only */
	.step-progress-list .step-item {
		cursor: default;
	}
	.block-select-btn--plain {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 140px;
		padding: 14px 12px;
		font-size: 16px;
		font-weight: 500;
	}

	/* Photo cards — image + label stacked, used wherever the model has an image */
	.block-select-btn--photo {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		width: 140px;
		padding: 14px 10px 36px 10px; /* extra bottom padding clears the info icon */
		background: #fff;
	}
	.block-select-btn--photo img {
		width: 88px;
		height: 88px;
		object-fit: contain;
	}
	.block-select-btn--photo .block-select-btn-label {
		font-size: 14px;
		font-weight: 500;
		text-align: center;
		line-height: 1.3;
	}
	.block-select-btn--photo.active .block-select-btn-label {
		color: #fff;
	}

	/* Info ("i") icon — bottom-right on photo cards, inline after the label on plain buttons */
	.block-select-info-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		background: rgba(0, 0, 0, 0.12);
		color: inherit;
		font-size: 11px;
		font-style: italic;
		font-weight: 700;
		font-family: Georgia, serif;
		cursor: pointer;
		flex-shrink: 0;
	}
	.block-select-btn--photo .block-select-info-icon {
		position: absolute;
		bottom: 10px;
		right: 10px;
	}
	.block-select-btn.active .block-select-info-icon {
		background: rgba(255, 255, 255, 0.3);
	}
	.block-select-info-icon:hover {
		background: rgba(0, 0, 0, 0.22);
	}
	.block-select-btn.active .block-select-info-icon:hover {
		background: rgba(255, 255, 255, 0.45);
	}

	/* Info popup modal */
	.block-info-modal {
		position: fixed;
		inset: 0;
		z-index: 1030;
		display: none;
		align-items: center;
		justify-content: center;
	}
	.block-info-modal.open {
		display: flex;
	}
	.block-info-modal-backdrop {
		position: absolute;
		inset: 0;
		background: rgba(20, 20, 20, 0.55);
	}
	.block-info-modal-panel {
		position: relative;
		background: #fff;
		border-radius: 12px;
		padding: 28px;
		max-width: 560px;
		width: calc(100% - 40px);
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
		font-family: inherit;
	}
	.block-info-modal-close {
		position: absolute;
		top: 12px;
		right: 14px;
		border: none;
		background: none;
		font-size: 24px;
		line-height: 1;
		color: #888;
		cursor: pointer;
	}
	.block-info-modal-close:hover {
		color: #2b2b2b;
	}
	.block-info-modal-image {
		display: block;
		width: 100%;
		max-height: min(60vh, 460px);
		object-fit: contain;
		margin-bottom: 16px;
	}
	.block-info-modal-title {
		margin: 0 0 8px 0;
		font-size: 17px;
		font-weight: 600;
		color: #2b2b2b;
	}
	.block-info-modal-dimensions {
		display: inline-block;
		margin: 0 0 14px 0;
		padding: 5px 10px;
		border-radius: 6px;
		background: #f1f1ef;
		font-size: 13px;
		font-weight: 500;
		color: #3a473a;
	}
	.block-info-modal-description {
		margin: 0 0 14px 0;
		font-size: 14px;
		line-height: 1.5;
		color: #555;
	}
	.block-info-modal-price {
		font-size: 16px;
		font-weight: 700;
		color: #3a473a;
	}

	/* Depth-availability chips (Step 1, "available options" under the
	   depth selector) — same footprint as .block-select-btn--photo so
	   they line up visually; not selectors though (no active/click
	   state), just a status display. */
	.depth-accessory-chip-group {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-top: 6px;
	}
	.depth-accessory-chip {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 140px;
		padding: 14px 10px;
		border-radius: 8px;
		border: 1.5px solid #e2e2e2;
		background: #fff;
		overflow: hidden;
	}
	.depth-accessory-chip .depth-accessory-info-icon {
		position: absolute;
		bottom: 10px;
		right: 10px;
		z-index: 2;
	}
	.depth-accessory-chip-image-placeholder {
		width: 88px;
		height: 88px;
		margin-bottom: 8px;
	}
	.depth-accessory-chip-image-placeholder img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
	.depth-accessory-chip-label {
		font-size: 13px;
		font-weight: 500;
		text-align: center;
		line-height: 1.3;
		color: #2b2b2b;
	}
	.depth-accessory-chip--unavailable {
		background: #f5f5f5;
		border-color: #eee;
	}
	.depth-accessory-chip-content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.depth-accessory-chip--unavailable .depth-accessory-chip-content {
		opacity: 0.3;
	}
	.depth-accessory-cross {
		position: absolute;
		inset: 0;
		pointer-events: none;
	}
	.depth-accessory-cross::before,
	.depth-accessory-cross::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 53%;
		height: 3px;
		background: #d32f2f;
		border-radius: 3px;
		opacity: 0.5;
		box-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 0 0 1px rgba(255, 255, 255, 0.9);
	}
	.depth-accessory-cross::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}
	.depth-accessory-cross::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

/* ---- from dimensions-js.blade.php ---- */
    #viewer {
        overflow: hidden;
    }
    #kitchen-label-overlay {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 20;
        --dim-accent: #3a473a;
    }
    .dim-label {
        position: absolute;
        transform: translate(-50%, -50%);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        color: #2b2b2b;
        background: rgba(255, 255, 255, 0.95);
        padding: 4px 9px;
        border-radius: 999px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--dim-accent) inset;
        white-space: nowrap;
        pointer-events: none;
    }
    .unit-number-badge {
        position: absolute;
        transform: translate(-50%, -50%);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--dim-accent);
        color: #fff;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
        pointer-events: auto;
        cursor: pointer;
        transition: transform 0.12s ease, background 0.12s ease;
    }
    .unit-number-badge:hover {
        background: #2e392e;
        transform: translate(-50%, -50%) scale(1.12);
    }

/* ---- from export-image-js.blade.php ---- */
	#kitchen-export-btn {
		position: absolute;
		top: 16px;
		right: 64px;
		z-index: 45;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		border: none;
		background: rgba(255, 255, 255, 0.92);
		color: #2b2b2b;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
		transition: background 0.15s ease, transform 0.15s ease;
	}
	#kitchen-export-btn:hover {
		background: #fff;
		transform: scale(1.06);
	}

/* ---- from fullscreen-js.blade.php ---- */
	#kitchen-fullscreen-btn {
		position: absolute;
		top: 16px;
		right: 16px;
		z-index: 45;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		border: none;
		background: rgba(255, 255, 255, 0.92);
		color: #2b2b2b;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 16px;
		cursor: pointer;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
		transition: background 0.15s ease, transform 0.15s ease;
	}
	#kitchen-fullscreen-btn:hover {
		background: #fff;
		transform: scale(1.06);
	}

	/* Author CSS sets #viewer { height: 600px } — the UA's fullscreen
	   sizing doesn't reliably override an explicit author height in every
	   browser, so this is set explicitly to make sure the viewer actually
	   fills the screen once fullscreen, not just the button/overlay state. */
	#viewer:fullscreen,
	#viewer:-webkit-full-screen,
	#viewer:-moz-full-screen,
	#viewer:-ms-fullscreen {
		width: 100vw !important;
		height: 100vh !important;
		background: #000;
	}

/* ---- from loader-js.blade.php ---- */
	#kitchen-loader-overlay {
		position: absolute;
		inset: 0;
		display: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 14px;
		background: rgba(255, 255, 255, 0.82);
		backdrop-filter: blur(2px);
		z-index: 40;
	}
	#kitchen-form-loader-overlay {
		position: absolute;
		inset: 0;
		display: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: rgba(255, 255, 255, 0.7);
		z-index: 40;
	}
	.kitchen-loader-spinner {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		border: 4px solid rgba(58, 71, 58, 0.2);
		border-top-color: #3a473a;
		animation: kitchen-loader-spin 0.8s linear infinite;
	}
	.kitchen-loader-text {
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
		font-size: 13px;
		font-weight: 600;
		color: #2b2b2b;
	}
	@keyframes kitchen-loader-spin {
		to { transform: rotate(360deg); }
	}

	/* Bigger, more prominent field labels — scoped to the configurator's
	   step forms only, so this doesn't affect .form-label-custom if that
	   class is reused elsewhere on the site. */
	.configurator-step-card .form-label-custom {
		display: block;
		font-size: 18px;
		font-weight: 700;
		color: #3a473a;
		letter-spacing: 0.01em;
		margin-bottom: 10px;
		padding-left: 14px;
		position: relative;
	}
	.configurator-step-card .form-label-custom::before {
		content: '';
		position: absolute;
		left: 0;
		top: 3px;
		bottom: 3px;
		width: 4px;
		border-radius: 2px;
		background: #3a473a;
	}

/* Kitchen options (Step 4) — multi-select cards with conditional
   quantity/location sub-fields, distinct from the single-select
   .block-select-btn cards used everywhere else. */
#kitchen_options_list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 10px;
	margin-top: 8px;
}
@media (max-width: 576px) {
	#kitchen_options_list {
		grid-template-columns: 1fr;
	}
}
.kitchen-option-card {
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s ease;
}
.kitchen-option-card--selected {
	border-color: #3a473a;
}
.kitchen-option-card--unavailable {
	opacity: 0.45;
}
.kitchen-option-card--unavailable .kitchen-option-checkbox {
	cursor: not-allowed;
}
.kitchen-option-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	cursor: pointer;
	margin: 0;
}
.kitchen-option-checkbox {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #3a473a;
	cursor: pointer;
}
.kitchen-option-image {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
}
.kitchen-option-title {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	color: #2b2b2b;
}
.kitchen-option-price {
	font-size: 14px;
	font-weight: 600;
	color: #3a473a;
	white-space: nowrap;
}
.kitchen-option-details {
	padding: 0 14px 14px 42px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.kitchen-option-quantity-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}
.kitchen-option-quantity-row label {
	font-size: 13px;
	color: #555;
	min-width: 70px;
}
.kitchen-option-quantity-input {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	font-size: 13px;
}
.kitchen-option-locations {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.kitchen-option-location-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.kitchen-option-location-row label {
	font-size: 13px;
	color: #555;
	min-width: 110px;
}
.kitchen-option-location-select {
	flex: 1;
	max-width: 200px;
	padding: 6px 8px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	font-size: 13px;
}

@media (min-width: 1366px) {
	.block-select-group,
	.depth-accessory-chip-group {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}
	.block-select-btn--photo,
	.block-select-btn--plain,
	.depth-accessory-chip {
		width: 100%;
	}
}

@media (min-width: 1024px) and (max-width: 1365.98px) {
	#viewer {
		flex: 0 0 40%;
		max-width: 40%;
		width: 40%;
	}
	#configurator-right-panel {
		flex: 0 0 60%;
		max-width: 60%;
		width: 60%;
	}

	.step-forms .step-progress-list {
		display: flex;
		flex-wrap: nowrap;
		width: 100%;
		overflow: visible;
		padding: 0;
		margin: 0;
		list-style: none;
	}
	.step-forms .step-progress-list .step-item {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.step-forms .step-progress-list .step-line {
		flex-grow: 0;
		flex-basis: 15px;
		width: 15px;
		min-width: 15px;
	}
	.step-forms .step-progress-list .step-label {
		margin-top: 6px;
		font-size: 12px;
		line-height: 1.2;
		white-space: normal;
	}

	#kitchen_options_list {
		grid-template-columns: 1fr;
	}

	.block-select-group,
	.depth-accessory-chip-group {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	.block-select-btn--photo,
	.block-select-btn--plain,
	.depth-accessory-chip {
		width: 100%;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	#viewer {
		flex: 0 0 40%;
		max-width: 40%;
		width: 40%;
	}
	#configurator-right-panel {
		flex: 0 0 60%;
		max-width: 60%;
		width: 60%;
	}

	.step-forms .step-progress-list {
		display: flex;
		flex-wrap: nowrap;
		width: 100%;
		overflow: visible;
		padding: 0;
		margin: 0;
		list-style: none;
	}
	.step-forms .step-progress-list .step-item {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.step-forms .step-progress-list .step-line {
		flex-grow: 0;
		flex-basis: 7px;
		width: 7px;
		min-width: 7px;
	}
	.step-forms .step-progress-list .step-label {
		margin-top: 6px;
		font-size: 12px;
		line-height: 1.2;
		white-space: normal;
	}

	#kitchen_options_list {
		grid-template-columns: 1fr;
	}

	.block-select-group,
	.depth-accessory-chip-group {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.block-select-btn--photo,
	.block-select-btn--plain,
	.depth-accessory-chip {
		width: 100%;
	}
}

@media (min-width: 320px) and (max-width: 767.98px) {
	#viewer {
		position: relative;
		top: auto;
		height: auto;
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	#kitchen-fullscreen-btn.is-floating {
		position: fixed;
		top: auto;
		bottom: 20px;
		right: 20px;
		z-index: 999;
	}

	.step-forms .step-progress-list {
		display: flex;
		flex-wrap: nowrap;
		width: 100%;
		overflow: visible;
		padding: 0;
		margin: 0;
		list-style: none;
	}
	.step-forms .step-progress-list .step-item {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.step-forms .step-progress-list .step-line {
		flex-grow: 0;
		flex-basis: 7px;
		width: 7px;
		min-width: 7px;
	}
	.step-forms .step-progress-list .step-label {
		margin-top: 6px;
		font-size: 12px;
		line-height: 1.2;
		white-space: normal;
	}

	.block-select-group,
	.depth-accessory-chip-group {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.block-select-btn--photo,
	.block-select-btn--plain,
	.depth-accessory-chip {
		width: 100%;
	}

	#kitchen_options_list {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 320px) and (max-width: 359.98px) {
	.step-forms .step-progress-list {
		min-width: 0;
	}
	.step-forms .step-progress-list .step-circle {
		width: 24px;
		height: 24px;
	}
	.step-forms .step-progress-list .step-label {
		display: none;
	}
}

/* ---- from design-autosave.js ---- */
.design-autosave-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #3a473a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 100;
	pointer-events: none;
}
.design-autosave-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.resume-design-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 200;
}
.resume-design-modal {
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	max-width: 400px;
	width: 90%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.resume-design-modal h3 {
	margin: 0 0 10px;
	font-size: 18px;
	color: #2b2b2b;
}
.resume-design-modal p {
	margin: 0 0 16px;
	font-size: 14px;
	color: #555;
}
.resume-design-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}
.resume-design-modal-actions button {
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
}
.resume-design-modal-actions .btn-secondary {
	background: #f0f0f0;
	color: #2b2b2b;
}
.resume-design-modal-actions .btn-primary {
	background: #3a473a;
	color: #fff;
}