/* ==================================================================
   Afsia Order Tracking
   ------------------------------------------------------------------
   ব্র্যান্ড কালার — নিচের ৬টি ভ্যালু বদলালেই পুরো ডিজাইন বদলে যাবে।
   ================================================================== */

.afsia-ot {
	--ot-ink:    #2A1B2E;   /* হেডিং ও মূল লেখা      */
	--ot-plum:   #6B2D4F;   /* গাঢ় ব্র্যান্ড টোন      */
	--ot-rose:   #D4456B;   /* বাটন ও অ্যাকসেন্ট      */
	--ot-gold:   #C9A227;   /* ডেলিভারি সম্পন্ন চিহ্ন */
	--ot-blush:  #FDF5F7;   /* হালকা ব্যাকগ্রাউন্ড    */
	--ot-mist:   #EEDDE3;   /* বর্ডার ও রেল          */

	--ot-body:    'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ot-display: 'Instrument Serif', Georgia, serif;
	--ot-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--ot-radius: 18px;
	--ot-shadow: 0 1px 2px rgba(42,27,46,.04), 0 12px 32px -12px rgba(42,27,46,.18);

	font-family: var(--ot-body);
	color: var(--ot-ink);
	max-width: 760px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}

/* বাংলা মোডে হেডিংয়ের ফন্ট — Instrument Serif বাংলা সাপোর্ট করে না */
.afsia-ot--bn,
.afsia-ot--both {
	--ot-display: 'Noto Serif Bengali', 'Hind Siliguri', Georgia, serif;
}

.afsia-ot--bn .afsia-ot__title,
.afsia-ot--both .afsia-ot__title {
	font-weight: 600;
	font-size: clamp(26px, 6vw, 38px);
	line-height: 1.35;
}

.afsia-ot *,
.afsia-ot *::before,
.afsia-ot *::after { box-sizing: border-box; }


/* ------------------------------------------------------------------
   সার্চ প্যানেল
   ------------------------------------------------------------------ */

.afsia-ot__panel {
	position: relative;
	overflow: hidden;
	padding: 34px 24px 30px;
	border-radius: var(--ot-radius);
	background:
		radial-gradient(120% 100% at 100% 0%, rgba(212,69,107,.10) 0%, rgba(212,69,107,0) 58%),
		var(--ot-blush);
	border: 1px solid var(--ot-mist);
}

.afsia-ot__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ot-rose);
}

.afsia-ot__title {
	margin: 0 0 6px;
	font-family: var(--ot-display);
	font-weight: 400;
	font-size: clamp(30px, 7vw, 44px);
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--ot-ink);
}

.afsia-ot__sub {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(42,27,46,.62);
}

.afsia-ot__field {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.afsia-ot__field-icon {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: 17px 0 0 16px;
	fill: none;
	stroke: rgba(42,27,46,.38);
	stroke-width: 2;
	stroke-linecap: round;
	pointer-events: none;
	z-index: 2;
}

.afsia-ot__input {
	flex: 1 1 220px;
	min-width: 0;
	height: 54px;
	padding: 0 16px 0 44px;
	font-family: var(--ot-body);
	font-size: 16px;               /* ১৬px হলে iOS-এ ফোকাসে জুম হয় না */
	color: var(--ot-ink);
	background: #fff;
	border: 1px solid var(--ot-mist);
	border-radius: 12px;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.afsia-ot__input::placeholder { color: rgba(42,27,46,.34); }

.afsia-ot__input:focus {
	border-color: var(--ot-rose);
	box-shadow: 0 0 0 4px rgba(212,69,107,.14);
}

.afsia-ot .afsia-ot__btn {
	position: relative;
	flex: 0 0 auto;
	min-width: 150px;
	height: 54px;
	padding: 0 26px;
	font-family: var(--ot-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--ot-rose);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
	box-shadow: 0 8px 20px -8px rgba(212,69,107,.7);
}

.afsia-ot .afsia-ot__btn:hover  { background: var(--ot-plum); transform: translateY(-1px); }
.afsia-ot .afsia-ot__btn:active { transform: translateY(0); }

.afsia-ot .afsia-ot__btn:focus-visible,
.afsia-ot__input:focus-visible {
	outline: 3px solid var(--ot-gold);
	outline-offset: 2px;
}

.afsia-ot__spinner {
	display: none;
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: afsia-spin .7s linear infinite;
}

.afsia-ot__btn.is-loading .afsia-ot__btn-label { visibility: hidden; }
.afsia-ot__btn.is-loading .afsia-ot__spinner   { display: block; }
.afsia-ot__btn[disabled] { opacity: .75; cursor: default; }

@keyframes afsia-spin { to { transform: rotate(360deg); } }

.afsia-ot__note {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(42,27,46,.5);
}


/* ------------------------------------------------------------------
   মেসেজ
   ------------------------------------------------------------------ */

.afsia-ot__results { margin-top: 20px; }

.afsia-ot__msg {
	padding: 18px 20px;
	font-size: 15px;
	line-height: 1.65;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--ot-mist);
	border-left: 3px solid var(--ot-rose);
	color: rgba(42,27,46,.78);
}

.afsia-ot__count {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(42,27,46,.45);
}


/* ------------------------------------------------------------------
   অর্ডার কার্ড — ক্যাশ অন ডেলিভারির স্লিপের ধাঁচে
   ------------------------------------------------------------------ */

.afsia-ot__card {
	position: relative;
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid var(--ot-mist);
	border-radius: var(--ot-radius);
	box-shadow: var(--ot-shadow);
	animation: afsia-rise .45s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes afsia-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

.afsia-ot__card-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px 18px;
}

.afsia-ot__ref {
	font-family: var(--ot-mono);
	font-size: 17px;
	font-weight: 500;
	color: var(--ot-ink);
}

.afsia-ot__date {
	display: block;
	margin-top: 3px;
	font-family: var(--ot-mono);
	font-size: 12px;
	color: rgba(42,27,46,.45);
}

.afsia-ot__badge {
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	background: rgba(212,69,107,.10);
	color: var(--ot-plum);
	white-space: nowrap;
}

.afsia-ot__badge--done    { background: rgba(201,162,39,.16); color: #7A6212; }
.afsia-ot__badge--stopped { background: rgba(42,27,46,.07);   color: rgba(42,27,46,.6); }

/* ছিদ্র করা রেখা */
.afsia-ot__perf {
	position: relative;
	height: 1px;
	margin: 0 22px;
	background-image: linear-gradient(90deg, var(--ot-mist) 0 6px, transparent 6px 12px);
	background-size: 12px 1px;
}
.afsia-ot__perf::before,
.afsia-ot__perf::after {
	content: '';
	position: absolute;
	top: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wd-main-bgcolor, #fff);
	border: 1px solid var(--ot-mist);
}
.afsia-ot__perf::before { left: -32px; border-left-color: transparent; }
.afsia-ot__perf::after  { right: -32px; border-right-color: transparent; }


/* ------------------------------------------------------------------
   ডেলিভারি রেল — মোবাইলে উপর-নিচ, ডেস্কটপে পাশাপাশি
   ------------------------------------------------------------------ */

.afsia-ot__rail {
	position: relative;
	padding: 24px 22px 8px;
}

.afsia-ot__step {
	position: relative;
	display: flex;
	gap: 14px;
	padding-bottom: 22px;
	opacity: 0;
	animation: afsia-fade .4s ease forwards;
}

@keyframes afsia-fade { to { opacity: 1; } }

.afsia-ot__step::before {
	content: '';
	position: absolute;
	left: 10px;
	top: 22px;
	bottom: 0;
	width: 2px;
	background: var(--ot-mist);
}
.afsia-ot__step:last-child::before { display: none; }
.afsia-ot__step.is-done::before    { background: var(--ot-rose); }

.afsia-ot__dot {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ot-mist);
	z-index: 1;
}

.afsia-ot__step.is-done .afsia-ot__dot {
	background: var(--ot-rose);
	border-color: var(--ot-rose);
}

.afsia-ot__step.is-done .afsia-ot__dot::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 3px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.afsia-ot__step.is-current .afsia-ot__dot {
	background: var(--ot-rose);
	border-color: var(--ot-rose);
	box-shadow: 0 0 0 0 rgba(212,69,107,.55);
	animation: afsia-pulse 2s ease-out infinite;
}

@keyframes afsia-pulse {
	70%  { box-shadow: 0 0 0 12px rgba(212,69,107,0); }
	100% { box-shadow: 0 0 0 0  rgba(212,69,107,0); }
}

.afsia-ot__step-label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: rgba(42,27,46,.35);
}
.afsia-ot__step.is-done .afsia-ot__step-label,
.afsia-ot__step.is-current .afsia-ot__step-label { color: var(--ot-ink); }

.afsia-ot__step-sub {
	display: block;
	margin-top: 1px;
	font-size: 12.5px;
	font-weight: 400;
	color: rgba(42,27,46,.45);
}

@media (min-width: 720px) {
	.afsia-ot__rail { display: flex; padding: 30px 22px 18px; }
	.afsia-ot__step {
		flex: 1;
		flex-direction: column;
		gap: 12px;
		padding: 0 6px 6px 0;
	}
	.afsia-ot__step::before {
		left: 22px;
		right: 0;
		top: 10px;
		bottom: auto;
		width: auto;
		height: 2px;
	}
	.afsia-ot__step-label { font-size: 13.5px; }
	.afsia-ot__step-sub   { font-size: 11.5px; }
}


/* ------------------------------------------------------------------
   বাতিল / ব্যর্থ অর্ডারের নোটিশ
   ------------------------------------------------------------------ */

.afsia-ot__stopped {
	margin: 20px 22px 4px;
	padding: 16px 18px;
	font-size: 14.5px;
	line-height: 1.65;
	border-radius: 12px;
	background: rgba(42,27,46,.04);
	color: rgba(42,27,46,.7);
}


/* ------------------------------------------------------------------
   প্রোডাক্ট তালিকা
   ------------------------------------------------------------------ */

.afsia-ot__items {
	padding: 6px 22px 4px;
	border-top: 1px solid var(--ot-mist);
	margin-top: 8px;
}

.afsia-ot__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ot-blush);
}
.afsia-ot__item:last-child { border-bottom: 0; }

.afsia-ot__thumb {
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--ot-blush);
}

.afsia-ot__item-name {
	flex: 1;
	min-width: 0;
	font-size: 14.5px;
	line-height: 1.5;
}

.afsia-ot__qty {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: rgba(42,27,46,.45);
}

.afsia-ot__item-total {
	font-family: var(--ot-mono);
	font-size: 14px;
	white-space: nowrap;
}


/* ------------------------------------------------------------------
   ফুটার তথ্য
   ------------------------------------------------------------------ */

.afsia-ot__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	padding: 18px 22px;
	background: var(--ot-blush);
	border-top: 1px solid var(--ot-mist);
	border-radius: 0 0 var(--ot-radius) var(--ot-radius);
}

.afsia-ot__meta-k {
	display: block;
	margin-bottom: 3px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .04em;
	color: rgba(42,27,46,.42);
}

.afsia-ot__meta-v {
	font-size: 14.5px;
	font-weight: 500;
	word-break: break-word;
}

.afsia-ot__meta-v--total {
	font-family: var(--ot-mono);
	font-size: 17px;
	color: var(--ot-plum);
}


/* ------------------------------------------------------------------
   অ্যাকসেসিবিলিটি
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.afsia-ot *,
	.afsia-ot *::before,
	.afsia-ot *::after {
		animation: none !important;
		transition: none !important;
	}
	.afsia-ot__step, .afsia-ot__card { opacity: 1; }
}