.nto-wrap {
	--nto-primary: #ff3052;
	--nto-on-primary: #fff;
	box-sizing: border-box;
	max-width: 920px;
	margin: 2rem auto;
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid #e7e7ec;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(30, 33, 44, .07);
	color: #20232a;
	direction: rtl;
	text-align: right;
}

.nto-wrap *, .nto-wrap *::before, .nto-wrap *::after { box-sizing: border-box; }
.nto-title { margin: 0 0 .65rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.nto-intro { margin: 0 0 1.35rem; color: #626773; }
.nto-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.nto-field label { display: block; margin-bottom: .45rem; font-weight: 700; }
.nto-field input {
	width: 100%;
	min-height: 48px;
	padding: .7rem .85rem;
	border: 1px solid #cfd2da;
	border-radius: 10px;
	background: #fff;
	font: inherit;
}
.nto-field input:focus { border-color: var(--nto-primary); outline: 3px solid color-mix(in srgb, var(--nto-primary) 18%, transparent); }
.nto-button {
	grid-column: 1 / -1;
	min-height: 48px;
	padding: .7rem 1.2rem;
	border: 0;
	border-radius: 10px;
	background: var(--nto-primary);
	color: var(--nto-on-primary);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.nto-button:hover { filter: brightness(.94); }
.nto-honeypot { position: absolute !important; inset-inline-start: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.nto-alert { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; }
.nto-alert--error { border: 1px solid #f1b3b3; background: #fff1f1; color: #8c1d1d; }
.nto-alert--notice { border: 1px solid #f1d38e; background: #fff8e7; color: #6e4a00; }
.nto-result__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.nto-result__header strong { display: block; margin-top: .2rem; font-size: 1.35rem; direction: ltr; text-align: right; }
.nto-eyebrow { color: #6c717c; font-size: .88rem; }
.nto-status { padding: .4rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--nto-primary) 11%, white); color: var(--nto-primary); font-weight: 800; }
.nto-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 1.75rem 0 2rem; padding: 0; list-style: none !important; counter-reset: none !important; }
.nto-timeline > li { position: relative; min-width: 0; margin: 0; padding: 0; list-style: none !important; counter-increment: none !important; text-align: center; color: #9297a2; }
.nto-timeline > li::marker { content: "" !important; font-size: 0 !important; }
.nto-timeline > li::before { content: "" !important; position: absolute; z-index: 0; top: 20px; right: -50%; width: 100%; height: 3px; background: #e0e2e8; }
.nto-timeline > li:first-child::before { display: none; }
.nto-timeline > li.is-done::before, .nto-timeline > li.is-current::before { background: var(--nto-primary); }
.nto-step {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0 auto .6rem;
	border: 3px solid #d7d9e0;
	border-radius: 50%;
	background: #fff;
	font-weight: 800;
}
.nto-timeline .is-done .nto-step, .nto-timeline .is-current .nto-step { border-color: var(--nto-primary); color: var(--nto-primary); }
.nto-timeline .is-current .nto-step { background: var(--nto-primary); color: var(--nto-on-primary); }
.nto-timeline .is-done .nto-step-label, .nto-timeline .is-current .nto-step-label { color: #20232a; font-weight: 800; }
.nto-step-label { display: block; overflow-wrap: anywhere; font-size: .86rem; }
.nto-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.nto-details > div { padding: .85rem; border-radius: 10px; background: #f7f7f9; }
.nto-details dt { margin-bottom: .3rem; color: #6b707b; font-size: .82rem; }
.nto-details dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.nto-details > .nto-details__note { grid-column: 1 / -1; }
.nto-code { font-variant-numeric: tabular-nums; text-align: right; }
.nto-products { margin-top: 1.5rem; }
.nto-products h3 { font-size: 1.1rem; }
.nto-products ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ececf0; }
.nto-products li { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid #ececf0; }
.nto-products li img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.nto-products li span { flex: 1; }
.nto-products li small { color: #6b707b; }

@media (max-width: 680px) {
	.nto-form, .nto-details { grid-template-columns: 1fr; }
	.nto-timeline { grid-template-columns: 1fr; gap: .55rem; }
	.nto-timeline > li { display: flex; align-items: center; gap: .65rem; text-align: right; }
	.nto-timeline > li::before { top: -14px; right: 20px; width: 3px; height: 28px; }
	.nto-timeline > li:first-child::before { display: none; }
	.nto-step { flex: 0 0 42px; margin: 0; }
	.nto-result__header { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.nto-wrap * { scroll-behavior: auto !important; transition: none !important; }
}

/* AshlyShop-inspired visual presets: white surfaces, soft pink accents and
 * product-card spacing matching the public storefront. */
.nto-wrap { position: relative; overflow: hidden; border: 0; border-radius: 26px; background: linear-gradient(145deg, #fff 0%, #fff8fa 100%); box-shadow: 0 18px 55px rgba(221, 58, 100, .12); }
.nto-wrap::before { content: ""; position: absolute; width: 190px; height: 190px; top: -90px; left: -55px; border-radius: 50%; background: rgba(255, 104, 145, .12); pointer-events: none; }
.nto-title { position: relative; font-weight: 900; letter-spacing: -.02em; }
.nto-intro { position: relative; max-width: 680px; line-height: 2; }
.nto-form { position: relative; grid-template-columns: 1fr auto; padding: 18px; border: 1px solid #f7dbe2; border-radius: 18px; background: rgba(255,255,255,.78); }
.nto-field--lookup input { min-height: 54px; border-color: #f0d6dd; border-radius: 14px; box-shadow: inset 0 2px 8px rgba(55, 30, 42, .03); }
.nto-field--lookup input:focus { border-color: var(--nto-primary); }
.nto-button { grid-column: auto; min-height: 54px; border-radius: 14px; padding-inline: 1.5rem; background: linear-gradient(135deg, var(--nto-primary), #ff6c91); box-shadow: 0 10px 20px rgba(255, 48, 82, .22); }
.nto-button:hover { filter: brightness(1.02); transform: translateY(-1px); }
.nto-results-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.2rem 0; }
.nto-results-heading h3 { margin: .2rem 0 0; font-size: 1.15rem; }
.nto-result { position: relative; margin-top: 1.1rem; padding: 20px; border: 1px solid #f1dce2; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 10px 25px rgba(47, 25, 35, .06); }
.nto-result__header { margin-bottom: 1rem; }
.nto-status { border: 1px solid rgba(255,48,82,.16); background: #fff0f4; }
.nto-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0 1.7rem; }
.nto-timeline > li::before { top: 19px; height: 4px; background: #f1dfe4; }
.nto-timeline > li.is-done::before, .nto-timeline > li.is-current::before { background: linear-gradient(90deg, var(--nto-primary), #ff8aa5); }
.nto-step { width: 40px; height: 40px; border: 0; background: #fff3f6; color: #c6a3ad; box-shadow: 0 0 0 4px #fff; }
.nto-timeline .is-done .nto-step, .nto-timeline .is-current .nto-step { border: 0; background: var(--nto-primary); color: var(--nto-on-primary); box-shadow: 0 0 0 4px #fff, 0 7px 16px rgba(255,48,82,.22); }
.nto-step-label { min-height: 2.5em; line-height: 1.55; }
.nto-details { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.nto-details > div { border: 1px solid #f5e8eb; border-radius: 13px; background: #fffafd; }
.nto-products { padding-top: .4rem; }
.nto-products li { min-height: 72px; padding: .7rem 0; border-color: #f4e7ea; }
.nto-products li small { padding: .25rem .55rem; border-radius: 999px; background: #fff1f4; color: var(--nto-primary); font-weight: 800; }
.nto-account-tracking { direction: rtl; margin: 20px 0; padding: 20px; border: 1px solid #f1dce2; border-radius: 20px; background: linear-gradient(145deg,#fff,#fff8fa); box-shadow: 0 12px 28px rgba(221,58,100,.1); }
.nto-style-luxe-cream { --nto-primary: #b57462 !important; background: linear-gradient(145deg,#fffdf9,#fbf1e9); box-shadow: 0 18px 55px rgba(159, 101, 79, .13); }
.nto-style-luxe-cream .nto-button { background: linear-gradient(135deg,#a96754,#d29b7b); box-shadow: 0 10px 20px rgba(169,103,84,.2); }
.nto-style-luxe-cream .nto-status, .nto-style-luxe-cream .nto-products li small { background: #f9eee8; color: #9b5e4a; }
.nto-style-clean-pink { --nto-primary: #e92760 !important; background: #fff; box-shadow: 0 18px 55px rgba(233,39,96,.1); }
.nto-style-clean-pink .nto-result { border-radius: 16px; box-shadow: 0 7px 20px rgba(50,30,40,.05); }

@media (max-width: 680px) {
	.nto-form { grid-template-columns: 1fr; }
	.nto-button { grid-column: 1; }
	.nto-timeline { grid-template-columns: 1fr; gap: .55rem; }
	.nto-timeline > li { display: flex; align-items: center; gap: .65rem; text-align: right; }
	.nto-timeline > li::before { top: -14px; right: 20px; width: 3px; height: 28px; }
	.nto-timeline > li:first-child::before { display: none; }
	.nto-step { flex: 0 0 40px; margin: 0; }
	.nto-step-label { min-height: auto; }
	.nto-details { grid-template-columns: 1fr 1fr; }
}

/* Cache-safe AJAX tracking state. */
.nto-response:empty { display: none; }
.nto-response:not(:empty) { margin-top: 1rem; }
.nto-form.is-loading { opacity: .82; }
.nto-form .nto-button[disabled] { cursor: wait; filter: saturate(.85); }

/* Visual timeline states: past = softer check, current = timer sticker, final = emphasized check. */
.nto-step-copy { display: flex; flex-direction: column; align-items: center; gap: .32rem; }
.nto-step-state { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: .15rem .55rem; border-radius: 999px; background: #f3f4f6; color: #7c818b; font-size: .72rem; font-weight: 800; line-height: 1.45; }
.nto-step-state--current { background: #fff1f5; color: #a42e50; box-shadow: 0 4px 12px rgba(255,48,82,.08); }
.nto-timeline .is-past .nto-step,
.nto-timeline .is-past .nto-step-label,
.nto-timeline .is-past .nto-step-state { opacity: .58; }
.nto-timeline .is-current .nto-step { font-size: 1.08rem; transform: scale(1.08); box-shadow: 0 0 0 5px #fff, 0 9px 22px rgba(255,48,82,.28); }
.nto-timeline .is-current .nto-step-label { color: #20232a; font-weight: 900; }
.nto-timeline .is-future .nto-step { filter: grayscale(.18); opacity: .72; }
.nto-timeline .is-future .nto-step-label { opacity: .72; }
.nto-timeline.is-complete .is-final .nto-step { transform: scale(1.12); background: var(--nto-primary); color: var(--nto-on-primary); box-shadow: 0 0 0 5px #fff, 0 10px 24px rgba(255,48,82,.30); }
.nto-timeline.is-complete .is-final .nto-step-label { color: #20232a; font-weight: 900; }
.nto-timeline.is-complete .is-final .nto-step-state { background: #e8fff1; color: #14804a; }
.nto-result--compact { margin-top: 0; }
.nto-account-tracking .shop_table { margin-top: 1rem; }
.nto-account-tracking .shop_table th,
.nto-account-tracking .shop_table td { padding: .8rem 1rem; }
@media (max-width: 680px) {
	.nto-step-copy { align-items: flex-start; }
}


/* 4.5.5 timeline polish: brand-red connector, trust-green completed checks,
 * and connector segments that stop at circle edges instead of running below them. */
.nto-timeline > li::before {
	right: calc(-50% + 24px);
	width: calc(100% - 48px);
}
.nto-timeline > li.is-done::before,
.nto-timeline > li.is-current::before {
	background: linear-gradient(90deg, var(--nto-primary), #ff8aa5);
}
.nto-timeline .is-done .nto-step {
	background: #16a36a;
	color: #fff;
	box-shadow: 0 0 0 5px #fff, 0 7px 18px rgba(22,163,106,.22);
}
.nto-timeline .is-past .nto-step {
	background: #a9dfc8;
	color: #0f7650;
	opacity: 1;
	box-shadow: 0 0 0 5px #fff, 0 5px 13px rgba(22,163,106,.10);
}
.nto-timeline .is-past .nto-step-label,
.nto-timeline .is-past .nto-step-state {
	opacity: .58;
}
.nto-timeline.is-complete .is-final .nto-step {
	background: #109d64;
	color: #fff;
	box-shadow: 0 0 0 5px #fff, 0 10px 26px rgba(16,157,100,.30);
}
.nto-timeline .is-done .nto-step-state,
.nto-timeline.is-complete .is-final .nto-step-state {
	background: #e8fbf2;
	color: #11724e;
}
@media (max-width: 680px) {
	.nto-timeline > li::before {
		right: 20px;
		top: -9px;
		width: 3px;
		height: 18px;
	}
}

/* 4.5.6 milestone UX: paid/registered and packing are completed milestones;
 * the latest completed milestone carries the waiting-for-next-step message. */
.nto-timeline .is-latest .nto-step {
	background: #16a36a;
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 0 0 5px #fff, 0 9px 22px rgba(22,163,106,.24);
}
.nto-timeline .is-latest .nto-step-label {
	color: #20232a;
	font-weight: 900;
	opacity: 1;
}
.nto-timeline .is-latest .nto-step-state--waiting {
	background: #eefbf5;
	color: #11724e;
	opacity: 1;
	box-shadow: 0 4px 12px rgba(22,163,106,.08);
}
.nto-timeline.is-complete .is-final .nto-step {
	transform: scale(1.12);
}

/* 4.5.7 premium parcel tracking CTA inspired by the selected AshlyShop mockup. */
.nto-track-link {
	margin: 1.35rem 0 .25rem;
	text-align: center;
}
.nto-track-link .nto-track-button,
.nto-account-tracking .nto-track-link .nto-track-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	width: min(100%, 620px);
	min-height: 74px;
	padding: .72rem .9rem .72rem 1rem;
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 999px;
	background: linear-gradient(135deg, #f45c87 0%, #df3d73 46%, #bd2459 100%);
	box-shadow: 0 15px 32px rgba(199, 39, 91, .24), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(121,16,55,.16);
	color: #fff !important;
	font: inherit;
	font-weight: 900;
	text-decoration: none !important;
	line-height: 1.35;
	direction: rtl;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.nto-track-link .nto-track-button:hover,
.nto-track-link .nto-track-button:focus-visible {
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-2px);
	filter: saturate(1.05) brightness(1.02);
	box-shadow: 0 19px 38px rgba(199, 39, 91, .30), inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(121,16,55,.16);
}
.nto-track-link .nto-track-button:focus-visible {
	outline: 3px solid rgba(255, 84, 132, .22);
	outline-offset: 4px;
}
.nto-track-button__icon {
	flex: 0 0 58px;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	color: #fff4e9;
}
.nto-track-button__icon svg {
	display: block;
	width: 54px;
	height: 54px;
	overflow: visible;
}
.nto-track-button__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1rem, 2.1vw, 1.28rem);
	text-align: center;
	text-shadow: 0 1px 1px rgba(92, 11, 44, .16);
}
.nto-track-button__arrow {
	flex: 0 0 46px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 50%;
	background: rgba(255,255,255,.14);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	color: #fff;
	backdrop-filter: blur(2px);
}
@media (max-width: 680px) {
	.nto-track-link .nto-track-button,
	.nto-account-tracking .nto-track-link .nto-track-button {
		min-height: 66px;
		gap: .65rem;
		padding: .58rem .65rem .58rem .75rem;
	}
	.nto-track-button__icon { flex-basis: 48px; width: 48px; height: 48px; }
	.nto-track-button__icon svg { width: 46px; height: 46px; }
	.nto-track-button__arrow { flex-basis: 40px; width: 40px; height: 40px; font-size: 1.65rem; }
	.nto-track-button__label { font-size: .97rem; }
}
