/* Ms Couture size chart and order tracking. */
.mcz, .mct, .mct-help, .mcz-open, .mcz-dialog {
	--z-cocoa: #111111;
	--z-cream: var(--mc-cream, #F6F5F3);
	--z-paper: var(--mc-paper, #FFFFFF);
	--z-orange: var(--mc-orange, #111111);
	--z-line: var(--mc-line, #E6E4E0);
	font-family: var(--mc-sans, "Albert Sans"), Arial, sans-serif;
	color: var(--z-cocoa);
}
.mcz *, .mct *, .mcz-dialog * { box-sizing: border-box; }

/* ---------- Size chart ---------- */
.mcz { width: 100%; }
.mcz-switch {
	display: inline-flex;
	gap: 4px;
	margin: 0 0 16px;
	padding: 4px;
	border-radius: 999px;
	background: var(--z-cream);
}
.mcz-switch button {
	min-width: 72px;
	height: 38px;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--z-cocoa) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.mcz-switch button[aria-pressed="true"] { background: var(--z-cocoa) !important; color: #fff !important; }

.mcz-scroll {
	overflow-x: auto;
	border-width: 1px;
	border-style: solid;
	border-color: var(--z-line);
	border-radius: 18px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}
.mcz-scroll:focus-visible { outline: 2px solid var(--z-orange); outline-offset: 2px; }
.mcz-table {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	font-size: 15px;
	text-align: center;
}
.mcz-table th, .mcz-table td {
	padding: 14px 12px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--z-line) !important;
	background: transparent !important;
	color: var(--z-cocoa) !important;
	vertical-align: middle;
}
.mcz-table thead th {
	background: var(--z-paper) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.mcz-table thead th span { text-transform: none; letter-spacing: 0; opacity: .7; }
.mcz-table tbody th { font-weight: 600; text-align: left; white-space: nowrap; }
.mcz-table thead th:first-child { text-align: left; }
.mcz-table tbody tr:last-child th, .mcz-table tbody tr:last-child td { border-bottom: 0 !important; }
.mcz-table tbody tr:hover th, .mcz-table tbody tr:hover td { background: var(--z-paper) !important; }
.mcz-note { margin: 14px 0 0 !important; font-size: 14px; line-height: 1.6; opacity: .85; }
.mcz-note a { color: var(--z-cocoa) !important; text-decoration: underline !important; text-underline-offset: 3px; }

.mcz-how { margin-top: 48px; }
.mcz h2 {
	margin: 0 0 16px !important;
	font-family: var(--mc-serif, "Albert Sans"), Georgia, serif !important;
	font-size: 30px !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	color: var(--z-cocoa) !important;
}
.mcz-how ol { display: grid; gap: 14px; margin: 0 0 16px !important; padding: 0 !important; list-style: none; counter-reset: mcz; }
.mcz-how li {
	position: relative;
	margin: 0 !important;
	padding: 0 0 0 48px !important;
	font-size: 16px;
	line-height: 1.6;
	counter-increment: mcz;
}
.mcz-how li::before {
	content: counter(mcz);
	position: absolute;
	top: -2px;
	left: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--z-cream);
	font-weight: 700;
	font-size: 14px;
}
.mcz-how p { margin: 0 !important; font-size: 16px; line-height: 1.6; }

.mcz-help {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 48px;
	padding: 28px 24px;
	border-radius: 22px;
	background: var(--z-cream);
}
.mcz-help h2 { margin-bottom: 8px !important; }
.mcz-help p { margin: 0 !important; font-size: 16px; line-height: 1.6; }
.mcz-help-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mcz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 26px;
	border-width: 1px;
	border-style: solid;
	border-color: var(--z-cocoa);
	border-radius: 999px;
	background: var(--z-cocoa);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, translate .2s ease;
}
.mcz-btn:hover { translate: 0 -2px; background: var(--z-orange); border-color: var(--z-orange); }
.mcz-btn-line { background: transparent; color: var(--z-cocoa) !important; }
.mcz-btn-line:hover { background: var(--z-cocoa); border-color: var(--z-cocoa); color: #fff !important; }

@media (max-width: 640px) {
	.mcz-table { font-size: 14px; }
	.mcz-table th, .mcz-table td { padding: 12px 4px !important; }
	.mcz-table tbody th, .mcz-table thead th:first-child { padding-left: 14px !important; }
	.mcz-table thead th { font-size: 10px; letter-spacing: .06em; }
	.mcz-table thead th span { display: block; }
	.mcz-help-btns .mcz-btn { flex: 1 1 100%; }
	.mcz h2 { font-size: 26px !important; }
}
@media (min-width: 768px) {
	.mcz-help { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
	.mcz-help > div:first-child { max-width: 440px; }
}

/* ---------- Product page link and pop-up ---------- */
.mcz-open {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 4px 0 18px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--z-cocoa) !important;
	font-family: var(--mc-sans, "Albert Sans"), Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
	cursor: pointer;
}
.mcz-open svg { width: 20px; height: 20px; }
.mcz-dialog {
	width: min(680px, calc(100vw - 24px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--z-paper);
	box-shadow: 0 24px 60px rgba(59, 26, 5, .25);
}
.mcz-dialog[open] { animation: mcz-in .3s ease both; }
.mcz-dialog::backdrop { background: rgba(59, 26, 5, .45); }
@keyframes mcz-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mcz-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 8px; }
.mcz-dialog-head p { margin: 0 !important; font-family: var(--mc-serif, "Albert Sans"), Georgia, serif; font-size: 26px; line-height: 1.1; }
.mcz-dialog .mcz { padding: 8px 22px 24px; }
.mcz-close {
	display: inline-grid !important;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--z-cream) !important;
	color: var(--z-cocoa) !important;
	cursor: pointer;
}
.mcz-close svg { width: 18px; height: 18px; }

/* ---------- Order tracking (phone first) ---------- */
.mct, .mct-result {
	--z-cocoa: #111111;
	--z-cream: var(--mc-cream, #F6F5F3);
	--z-paper: var(--mc-paper, #FFFFFF);
	--z-orange: var(--mc-orange, #111111);
	--z-yellow: var(--mc-yellow, #F6F5F3);
	--z-line: var(--mc-line, #E6E4E0);
	font-family: var(--mc-sans, "Albert Sans"), Arial, sans-serif;
	color: var(--z-cocoa);
}
.mct *, .mct-result * { box-sizing: border-box; }
.mct { width: 100%; }
.mct-grid { display: grid; gap: 16px; }

/* The form card. */
.mct-card {
	position: relative;
	padding: 28px 22px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(100, 45, 10, .08);
	animation: mct-up .7s cubic-bezier(.2, .8, .2, 1) both;
}
.mct-badge {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--z-cream);
	color: var(--z-cocoa);
}
.mct-badge svg { width: 28px; height: 28px; animation: mct-drive 2.8s ease-in-out infinite; }
@keyframes mct-drive { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
.mct-title {
	margin: 0 0 8px !important;
	font-family: var(--mc-serif, "Albert Sans"), Georgia, serif !important;
	font-size: 32px !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	color: var(--z-cocoa) !important;
}
.mct-sub { margin: 0 0 24px !important; font-size: 16px; line-height: 1.6; opacity: .85; }
.mct-sub a { color: var(--z-cocoa) !important; text-decoration: underline !important; text-underline-offset: 3px; }

.mct form { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.mct form > p:first-child { display: none; } /* WooCommerce's long instructions; the heading says it. */
.mct .form-row { float: none !important; width: 100% !important; margin: 0 0 16px !important; padding: 0 !important; }
.mct label {
	display: block;
	margin: 0 0 8px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--z-cocoa) !important;
}
.mct input[type="text"], .mct input[type="email"] {
	width: 100% !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	border-width: 1.5px !important;
	border-style: solid !important;
	border-color: transparent !important;
	border-radius: 16px !important;
	background: var(--z-paper) !important;
	color: var(--z-cocoa) !important;
	font-family: inherit !important;
	font-size: 16px !important;
	box-shadow: none !important;
	transition: border-color .2s ease, background-color .2s ease;
}
.mct input::placeholder { color: var(--z-cocoa); opacity: .4; }
.mct input:focus { border-color: var(--z-cocoa) !important; background: #fff !important; outline: none; }
.mct .clear { display: none; }
.mct button[type="submit"], .mct .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	margin: 8px 0 0 !important;
	padding: 0 30px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--z-cocoa) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .25s ease, translate .25s ease;
}
.mct button[type="submit"]::after { content: "\2192"; font-size: 18px; transition: translate .25s ease; }
.mct button[type="submit"]:hover { background: var(--z-orange) !important; translate: 0 -2px; }
.mct button[type="submit"]:hover::after { translate: 4px 0; }
.mct .woocommerce-error, .mct .woocommerce-info { margin: 0 0 18px !important; border-radius: 14px; }

/* The journey panel. */
.mct-journey {
	position: relative;
	overflow: hidden;
	padding: 28px 22px;
	border-radius: 28px;
	background: var(--z-cocoa);
	color: #fff;
	animation: mct-up .7s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.mct-journey::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -80px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(17, 17, 17, .45), transparent 70%);
	pointer-events: none;
}
.mct-kicker {
	margin: 0 0 22px !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--z-yellow);
}
.mct-steps { position: relative; display: grid; gap: 22px; margin: 0 !important; padding: 0 !important; list-style: none; }
/* The line joining the steps, with a light that travels down it. */
.mct-steps::before {
	content: "";
	position: absolute;
	top: 22px;
	bottom: 22px;
	left: 21px;
	width: 2px;
	background: rgba(255, 255, 255, .18);
}
.mct-steps::after {
	content: "";
	position: absolute;
	top: 22px;
	left: 18px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--z-yellow);
	box-shadow: 0 0 12px var(--z-yellow);
	animation: mct-travel 4.5s ease-in-out infinite;
	z-index: 0;
}
@keyframes mct-travel {
	0% { top: 22px; opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { top: calc(100% - 30px); opacity: 0; }
}
.mct-steps li {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 !important;
	padding: 0 !important;
	animation: mct-in .6s cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: calc(.3s + var(--i) * .12s);
}
.mct-steps .mct-dot {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #7a3a12;
	box-shadow: 0 0 0 4px var(--z-cocoa);
	color: var(--z-cream);
}
.mct-dot svg { width: 22px; height: 22px; }
.mct-step-text { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.mct-step-text strong { font-family: var(--mc-serif, "Albert Sans"), Georgia, serif; font-size: 20px; font-weight: 400; line-height: 1.2; color: #fff; }

@keyframes mct-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mct-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* Help strip. */
.mct-help {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
	padding: 20px 22px;
	border-radius: 22px;
	background: var(--z-cream);
}
.mct-help p { margin: 0 !important; font-size: 16px; font-weight: 600; }
.mct-help-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mct-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--z-cocoa) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, translate .2s ease;
}
.mct-pill svg { width: 18px; height: 18px; }
.mct-pill:hover { translate: 0 -2px; background: var(--z-cocoa); color: #fff !important; }

/* ---------- Result: where the order is now ---------- */
.mct-result {
	margin: 0 0 32px;
	padding: 28px 22px;
	border-radius: 28px;
	background: var(--z-paper);
	animation: mct-up .7s cubic-bezier(.2, .8, .2, 1) both;
}
.mct-result .mct-kicker { color: var(--z-orange); margin-bottom: 8px !important; }
.mct-status {
	margin: 0 0 6px !important;
	font-family: var(--mc-serif, "Albert Sans"), Georgia, serif !important;
	font-size: 34px !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	color: var(--z-cocoa) !important;
}
.mct-bar {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 26px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}
.mct-bar::before, .mct-bar::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 12.5%;
	height: 3px;
	border-radius: 2px;
}
.mct-bar::before { right: 12.5%; background: var(--z-line); }
.mct-bar::after {
	width: calc(75% * var(--mct-done, 0));
	background: var(--z-cocoa);
	transform-origin: left;
	animation: mct-fill 1.1s .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes mct-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mct-bar li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; text-align: center; }
.mct-bar .mct-dot {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-width: 2px;
	border-style: solid;
	border-color: var(--z-line);
	border-radius: 50%;
	background: #fff;
	color: var(--z-line);
	transition: background-color .3s ease;
}
.mct-bar .is-done .mct-dot { border-color: var(--z-cocoa); background: var(--z-cocoa); color: #fff; }
.mct-bar .is-now .mct-dot { border-color: var(--z-orange); background: var(--z-orange); color: #fff; animation: mct-pulse 2s ease-out infinite; }
@keyframes mct-pulse { 0% { box-shadow: 0 0 0 0 rgba(17, 17, 17, .45); } 100% { box-shadow: 0 0 0 14px rgba(17, 17, 17, 0); } }
.mct-bar-label { font-size: 12px; font-weight: 600; line-height: 1.3; opacity: .55; }
.mct-bar .is-done .mct-bar-label, .mct-bar .is-now .mct-bar-label { opacity: 1; }

/* Order details WooCommerce prints under the tracker. */
.mct-has-result .mct-card { padding-top: 24px; }
.mct .woocommerce-order-details, .mct .woocommerce-customer-details { margin-top: 24px; }
.mct mark { padding: 2px 8px; border-radius: 6px; background: var(--z-cream); color: var(--z-cocoa); font-weight: 600; }

@media (min-width: 768px) {
	.mct-grid { grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
	.mct-has-result .mct-grid { grid-template-columns: 1fr; }
	.mct-card, .mct-journey { padding: 44px; }
	.mct-title { font-size: 40px !important; }
	.mct-help { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 28px; }
	.mct-result { padding: 36px 40px; }
	.mct-bar-label { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.mct *, .mct-result * { animation: none !important; transition: none !important; }
}
