.ms-guided-order {
	--ms-ink: #282019;
	--ms-paper: #fffdf8;
	--ms-ivory: #f4efe6;
	--ms-line: #d8cbb8;
	--ms-muted: #756b60;
	--ms-accent: #8a6140;
	box-sizing: border-box;
	max-width: 820px;
	margin: 28px 0 22px;
	border: 1px solid var(--ms-line);
	background: linear-gradient(135deg, #fffefb 0%, var(--ms-ivory) 100%);
	color: var(--ms-ink);
	padding: 30px 28px 24px;
	font-family: inherit;
}

.ms-guided-order *,
.ms-guided-order *::before,
.ms-guided-order *::after { box-sizing: border-box; }

.ms-guided-order__header { max-width: 610px; }

.ms-guided-order__eyebrow,
.ms-guided-order__panel-eyebrow {
	margin: 0 0 10px;
	color: var(--ms-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.2;
}

.ms-guided-order__title {
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(28px, 3.25vw, 42px);
	font-weight: 400;
	letter-spacing: -.035em;
	line-height: 1.04;
}

.ms-guided-order__intro {
	max-width: 590px;
	margin: 15px 0 0;
	color: var(--ms-muted);
	font-size: 15px;
	line-height: 1.6;
}

.ms-guided-order__progress {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 30px 0 24px;
}

.ms-guided-order__progress::before {
	position: absolute;
	top: 16px;
	right: 10%;
	left: 10%;
	height: 1px;
	background: var(--ms-line);
	content: '';
}

.ms-guided-order__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ms-muted);
	cursor: pointer;
	font: inherit;
}

.ms-guided-order__step-dot {
	position: relative;
	z-index: 1;
	display: grid;
	width: 33px;
	height: 33px;
	place-items: center;
	border: 1px solid var(--ms-line);
	border-radius: 50%;
	background: var(--ms-paper);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 15px;
}

.ms-guided-order__step-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.ms-guided-order__step.is-active,
.ms-guided-order__step.is-complete { color: var(--ms-ink); }
.ms-guided-order__step.is-active .ms-guided-order__step-dot,
.ms-guided-order__step.is-complete .ms-guided-order__step-dot { border-color: var(--ms-ink); background: var(--ms-ink); color: #fffdf8; }
.ms-guided-order__step:focus-visible,
.ms-guided-order__next:focus-visible,
.ms-guided-order__back:focus-visible,
.ms-guided-order__remove:focus-visible,
.ms-guided-order input:focus-visible,
.ms-guided-order select:focus-visible { outline: 2px solid #aa7248; outline-offset: 3px; }

.ms-guided-order__message {
	margin: 0 0 18px;
	border-left: 3px solid #9c4c36;
	background: #fbede8;
	padding: 10px 13px;
	color: #652a19;
	font-size: 14px;
}

.ms-guided-order__panel {
	min-height: 295px;
	border-top: 1px solid var(--ms-line);
	border-bottom: 1px solid var(--ms-line);
	padding: 24px 0;
}

.ms-guided-order__panel h4 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 400; line-height: 1.15; }
.ms-guided-order__panel > p:not(.ms-guided-order__panel-eyebrow) { max-width: 610px; margin: 10px 0 20px; color: var(--ms-muted); font-size: 14px; line-height: 1.55; }

.ms-guided-order__options .variations { width: 100%; margin: 0; border: 0; }
.ms-guided-order__options .variations tr { display: block; }
.ms-guided-order__options .variations th,
.ms-guided-order__options .variations td { display: block; width: auto; padding: 0; text-align: left; }
.ms-guided-order__options .variations label { display: block; margin: 0 0 11px; color: var(--ms-ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ms-guided-order__options .variations select { width: 100%; min-height: 49px; border: 1px solid var(--ms-line); border-radius: 0; background: var(--ms-paper); color: var(--ms-ink); padding: 0 42px 0 15px; font: inherit; }
.ms-guided-order__native-select { display: none !important; }
.ms-guided-order__option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms-guided-order__option { min-height: 57px; border: 1px solid var(--ms-line); border-radius: 0; background: rgba(255,255,255,.42); color: var(--ms-ink); cursor: pointer; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; }
.ms-guided-order__option:hover { border-color: var(--ms-ink); background: var(--ms-paper); }
.ms-guided-order__option.is-selected { border-color: var(--ms-ink); background: var(--ms-ink); color: #fffdf8; }
.ms-guided-order__option:disabled { cursor: not-allowed; opacity: .38; }
.ms-guided-order__option:focus-visible { outline: 2px solid #aa7248; outline-offset: 3px; }
.ms-guided-order__options .reset_variations { display: inline-block; margin-top: 12px; color: var(--ms-accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ms-guided-order__options .swatch-control { max-width: 100%; }
.ms-guided-order__options .cfvsw-swatches-option { border-radius: 0; }

.ms-guided-order #marksake_original_upload { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ms-guided-order__upload { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #bba78e; background: rgba(255,255,255,.54); padding: 18px; text-align: center; cursor: pointer; }
.ms-guided-order__upload:hover { border-color: var(--ms-ink); background: #fffdf9; }
.ms-guided-order__upload-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--ms-ink); border-radius: 50%; font-size: 22px; font-weight: 300; line-height: 1; }
.ms-guided-order__upload strong { font-size: 12px; letter-spacing: .1em; }
.ms-guided-order__upload small { color: var(--ms-muted); font-size: 12px; }
.ms-guided-order__photo-state { margin-top: 12px; color: var(--ms-muted); font-size: 13px; }
.ms-guided-order__photo-state.is-ready { color: #3b5c47; }
.ms-guided-order__photo-state.is-error { color: #8a3929; }
.ms-guided-order__remove { margin-top: 8px; border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 2px 0; color: var(--ms-accent); cursor: pointer; font-size: 12px; letter-spacing: .07em; }
.ms-guided-order__name { display: grid; gap: 8px; margin-top: 20px; }
.ms-guided-order__name span { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ms-guided-order__name em { color: var(--ms-muted); font-style: normal; font-weight: 400; }
.ms-guided-order__name input { width: 100%; min-height: 45px; border: 1px solid var(--ms-line); border-radius: 0; background: var(--ms-paper); padding: 10px 12px; color: var(--ms-ink); font: inherit; }
.ms-guided-order__check { display: flex; gap: 10px; align-items: flex-start; margin-top: 17px; color: var(--ms-muted); font-size: 13px; line-height: 1.5; }
.ms-guided-order__check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ms-ink); }

.ms-guided-order__review { display: grid; border-top: 1px solid var(--ms-line); }
.ms-guided-order__review-row { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ms-line); padding: 13px 0; font-size: 14px; }
.ms-guided-order__review-row span { color: var(--ms-muted); }
.ms-guided-order__review-row strong { max-width: 65%; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.ms-guided-order__assurance { margin: 18px 0 0 !important; color: var(--ms-muted); font-size: 13px !important; }

.ms-guided-order__footer { display: grid; grid-template-columns: minmax(126px, 1fr) auto auto; gap: 18px; align-items: center; padding: 21px 0 0; }
.ms-guided-order__total { display: grid; gap: 4px; }
.ms-guided-order__total > span { color: var(--ms-muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.ms-guided-order__price { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 400; line-height: 1.1; }
.ms-guided-order__total small { color: var(--ms-muted); font-size: 12px; }
.ms-guided-order__status { color: var(--ms-muted); font-size: 12px; text-align: right; }
.ms-guided-order__actions { display: flex; gap: 9px; }
.ms-guided-order__back,
.ms-guided-order__next { min-height: 46px; border-radius: 999px; padding: 0 18px; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ms-guided-order__back { border: 1px solid var(--ms-ink); background: transparent; color: var(--ms-ink); }
.ms-guided-order__next { border: 1px solid var(--ms-ink); background: var(--ms-ink); color: #fffdf8; }
.ms-guided-order__next[disabled] { cursor: not-allowed; opacity: .45; }
.ms-guided-order__disclosure { margin: 19px 0 0; color: var(--ms-muted); font-size: 12px; line-height: 1.55; }

/* Keep the native variation display as Woo's data/event source; V2 owns the visual surface. */
.ms-guided-order ~ .single_variation_wrap > .woocommerce-variation { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ms-guided-order ~ .single_variation_wrap > .woocommerce-variation-add-to-cart { display: none; }

@media (max-width: 900px) {
	.ms-guided-order { padding: 25px 22px 21px; }
	.ms-guided-order__progress { width: max-content; min-width: 100%; }
	.ms-guided-order__progress::before { right: 9%; left: 9%; }
	.ms-guided-order__footer { grid-template-columns: 1fr auto; }
	.ms-guided-order__actions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.ms-guided-order { margin: 22px 0 18px; padding: 22px 14px 17px; }
	.ms-guided-order__title { font-size: 29px; }
	.ms-guided-order__intro { font-size: 14px; }
	.ms-guided-order__progress { overflow-x: auto; grid-template-columns: repeat(3, 88px); justify-content: space-between; padding-bottom: 4px; }
	.ms-guided-order__progress::before { right: 16px; left: 16px; }
	.ms-guided-order__step-label { font-size: 10px; }
	.ms-guided-order__panel { min-height: 0; padding: 20px 0; }
	.ms-guided-order__panel h4 { font-size: 23px; }
	.ms-guided-order__option-grid { grid-template-columns: 1fr; }
	.ms-guided-order__footer { grid-template-columns: 1fr; gap: 15px; }
	.ms-guided-order__status { text-align: left; }
	.ms-guided-order__actions { display: grid; grid-template-columns: 1fr; }
	.ms-guided-order__back,
	.ms-guided-order__next { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ms-guided-order *, .ms-guided-order *::before, .ms-guided-order *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 2.0.5 secure pre-upload feedback. Keeps the existing visual language while
   making network work explicit before the customer reaches Add to Cart. */
.ms-guided-order__photo-state.is-uploading {
	font-variant-numeric: tabular-nums;
	opacity: .82;
}
