/**
 * Customer Experience additions for the canonical v1.1.0 storefront.
 *
 * These rules style only progressive controls. They do not replace the
 * WooCommerce product layout or the original Builder dimensions.
 */

.dalu-cx__steps,
.dalu-cx__progress,
.dalu-cx__final,
.dalu-cx__validation,
.dalu-cx__actions,
.dalu-cx__summary {
	box-sizing: border-box;
	width: 100%;
}

.dalu-cx__steps[hidden],
.dalu-cx__progress[hidden],
.dalu-cx__final[hidden],
.dalu-cx__validation[hidden],
.dalu-cx__actions[hidden],
.dalu-cx__summary[hidden] {
	display: none !important;
}

.dalu-cx__steps {
	display: flex;
	margin: 0 0 1rem;
	padding: 0;
	overflow-x: auto;
	gap: 0.5rem;
	scrollbar-width: thin;
}

.dalu-cx__step-button {
	display: inline-flex;
	min-width: max-content;
	min-height: 36px;
	padding: 0.35rem 0.6rem;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.85rem;
	color: inherit;
	cursor: pointer;
}

.dalu-cx__step-button:hover:not(:disabled),
.dalu-cx__step-button.is-current {
	border-color: #8c8f94;
	background: #f6f7f7;
}

.dalu-cx__step-button:disabled {
	opacity: 0.55;
	cursor: default;
}

.dalu-cx__step-button:focus-visible,
.dalu-cx__edit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.dalu-cx__step-marker {
	display: inline-grid;
	width: 1.5rem;
	height: 1.5rem;
	place-items: center;
	border: 1px solid #8c8f94;
	border-radius: 50%;
	background: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.dalu-cx__step-button.is-current .dalu-cx__step-marker,
.dalu-cx__step-button.is-complete .dalu-cx__step-marker {
	background: #50575e;
	color: #fff;
}

.dalu-cx__progress {
	margin: 0 0 1rem;
}

.dalu-cx__progress-track {
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: #dcdcde;
}

.dalu-cx__progress-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #50575e;
	transition: width 220ms ease;
}

.dalu-cx__progress-text {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	font-weight: 600;
}

.dalu-builder__group.has-dalu-cx-error {
	border-color: currentColor;
	box-shadow: 0 0 0 1px currentColor;
}

.dalu-cx__actions {
	display: flex;
	margin: 1rem 0;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.dalu-cx__prev,
.dalu-cx__next {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.1rem;
	border-radius: 6px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.dalu-cx__prev {
	border: 1px solid rgba(111, 127, 91, .35);
	background: #fff;
	color: #3C3A34;
}

.dalu-cx__prev:hover:not(:disabled) {
	background: #F8F5F1;
	border-color: #6F7F5B;
}

.dalu-cx__prev:disabled {
	opacity: 0.45;
	cursor: default;
}

.dalu-cx__next {
	margin-left: auto;
	border: 1px solid #6F7F5B;
	background: #6F7F5B;
	color: #fff;
}

.dalu-cx__next:hover {
	background: #5A6849;
	border-color: #5A6849;
}

.dalu-cx__prev:focus-visible,
.dalu-cx__next:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.dalu-cx__validation {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: #fff;
	font-weight: 600;
}

.dalu-cx__final,
.dalu-cx__summary {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.dalu-cx__summary {
	background: #f6f7f7;
}

.dalu-cx__final-title,
.dalu-cx__summary-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}

.dalu-cx__final-intro {
	margin: 0 0 1rem;
}

.dalu-cx__summary-image {
	width: 100%;
	max-width: 220px;
	margin: 0 0 1rem;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
}

.dalu-cx__summary-image-element {
	display: block;
	width: 100%;
	height: auto;
}

.dalu-cx__summary-price,
.dalu-cx__final-price {
	display: flex;
	padding: 0.65rem 0;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid #dcdcde;
	font-weight: 600;
}

.dalu-cx__summary-price {
	margin-bottom: 0.5rem;
}

.dalu-cx__final-price {
	margin-top: 1rem;
}

.dalu-cx__selection {
	padding: 0.65rem 0;
	border-top: 1px solid #dcdcde;
}

.dalu-cx__selection:first-child {
	border-top: 0;
}

.dalu-cx__selection-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.dalu-cx__selection-title,
.dalu-cx__selection-name,
.dalu-cx__selection-field,
.dalu-cx__empty {
	margin: 0;
}

.dalu-cx__selection-title {
	font-size: 0.85rem;
	font-weight: 600;
}

.dalu-cx__selection-component {
	margin-top: 0.3rem;
}

.dalu-cx__selection-name {
	font-weight: 600;
}

.dalu-cx__selection-field,
.dalu-cx__empty {
	margin-top: 0.15rem;
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.dalu-cx__edit {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.dalu-cx-form:not(.dalu-cx-form--final) .single_add_to_cart_button {
	display: none !important;
}

@media (max-width: 480px) {
	.dalu-cx__step-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}

	.dalu-cx__actions .button {
		flex: 1 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dalu-cx__progress-fill {
		transition: none;
	}
}
