/* Tech Delivery 2.9.0 — stable responsive layer. */
.my-delivery-wrap,
.myd-checkout,
.fdm-track-order-wrap,
.tech-delivery-operator-orders,
.tech-delivery-native-checkout form.checkout {
	box-sizing: border-box;
}

.my-delivery-wrap *,
.myd-checkout *,
.fdm-track-order-wrap *,
.tech-delivery-native-checkout form.checkout * {
	box-sizing: border-box;
}

/* Catalog: centered, stable and restricted to its designated page. */
.my-delivery-wrap.tech-delivery-catalog {
	width: min(100%, 1240px);
	margin-inline: auto;
	padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 28px) 96px;
}

.tech-delivery-catalog:not(.tech-delivery-catalog--navigation) .myd-content-filter {
	display: none !important;
}

.tech-delivery-catalog--navigation .myd-content {
	position: relative;
	z-index: 20;
}

.tech-delivery-catalog--navigation .myd-content-filter {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 1005 !important;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0 0 24px;
	padding: 12px 14px;
	border: 1px solid #e8eaed;
	border-radius: 14px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 8px 25px rgba(15, 23, 42, .06);
	backdrop-filter: blur(10px);
}

body.admin-bar .tech-delivery-catalog--navigation .myd-content-filter {
	top: 32px !important;
}

.myd-content-filter__categories {
	min-width: 0;
	gap: 7px;
}

.myd-content-filter__tag {
	margin: 0 !important;
	padding: 7px 14px !important;
	line-height: 1.25;
	white-space: nowrap;
}

.myd-content-filter__search-input {
	min-width: 210px;
	flex: 1 1 240px !important;
}

#myd-search-products {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #fff;
}

.myd-products__wrapper {
	min-width: 0;
}

.myd-product-list {
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}

.myd-product-list--2columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.myd-product-item {
	min-width: 0;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 7px 24px rgba(15, 23, 42, .05);
}

.myd-product-item__content {
	min-width: 0;
}

.myd-product-item__title,
.myd-product-item__desc {
	overflow-wrap: anywhere;
}

/* Cart drawer and product modal. */
.myd-cart {
	width: min(500px, 100vw);
	max-width: 100vw;
	min-width: 0;
	height: 100dvh;
	max-height: 100dvh;
	flex: 0 0 auto;
	box-shadow: -18px 0 48px rgba(0, 0, 0, .18);
}

.myd-cart__content {
	min-height: 0;
	overscroll-behavior: contain;
}

.myd-float {
	width: min(420px, calc(100vw - 28px)) !important;
	max-width: calc(100vw - 28px);
	padding-inline: clamp(16px, 4vw, 24px);
}

.myd-product-popup__wrapper {
	width: min(680px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 32px);
}

/* Original MyD tracking screen, now backed by WooCommerce. */
.tech-delivery-original-tracking {
	width: min(100%, 900px);
	margin: clamp(24px, 6vw, 72px) auto 48px;
	padding: 0 16px;
	font-family: inherit;
}

.tech-delivery-original-tracking .fdm-track-order-content {
	gap: 14px;
}

.tech-delivery-original-tracking .fdm-track-order-content-status {
	margin: 0;
	padding: 18px 20px;
	border: 0;
	border-radius: 16px;
	font-size: clamp(19px, 3vw, 24px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}

.tech-delivery-original-tracking .myd-track-order-update-wrapper {
	width: 100%;
	justify-content: center;
	color: #667085;
	font-size: 14px;
}

.tech-delivery-original-tracking__message {
	width: 100%;
	margin: 0;
	padding: 0 12px;
	color: #475467;
	text-align: center;
	line-height: 1.55;
}

.tech-delivery-original-tracking__progress {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	width: 100%;
	padding: 12px 4px 4px;
}

.tech-delivery-original-tracking__step {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	color: #98a2b3;
	text-align: center;
}

.tech-delivery-original-tracking__step:not(:last-child)::after {
	position: absolute;
	top: 16px;
	left: calc(50% + 18px);
	width: calc(100% - 36px);
	height: 3px;
	border-radius: 999px;
	background: #e4e7ec;
	content: "";
}

.tech-delivery-original-tracking__step > span {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 2px solid #d0d5dd;
	border-radius: 50%;
	background: #fff;
	font-weight: 800;
}

.tech-delivery-original-tracking__step small {
	font-size: 12px;
	line-height: 1.25;
}

.tech-delivery-original-tracking__step.is-active {
	color: #344054;
}

.tech-delivery-original-tracking__step.is-active > span,
.tech-delivery-original-tracking__step.is-active:not(:last-child)::after {
	border-color: #f09800;
	background: #f09800;
	color: #fff;
}

.tech-delivery-original-tracking .fdm-track-order-content-customer,
.tech-delivery-original-tracking .fdm-track-order-content-products {
	width: 100%;
	margin: 0;
	padding: clamp(18px, 4vw, 28px);
	border: 1px solid #eaecf0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 9px 30px rgba(15, 23, 42, .05);
}

.tech-delivery-original-tracking .fdm-order-list-items-type {
	width: 100%;
	margin-bottom: 5px;
	color: #f09800;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tech-delivery-original-tracking .fdm-order-list-items-order-number {
	font-size: clamp(21px, 4vw, 29px);
	font-weight: 800;
}

.tech-delivery-original-tracking .fdm-order-list-items-date {
	width: 100%;
	color: #667085;
}

.tech-delivery-original-tracking .fdm-divider {
	width: 100%;
	margin: 18px 0;
	border: 0;
	border-top: 1px solid #eaecf0;
}

.tech-delivery-original-tracking .fdm-order-list-items-customer,
.tech-delivery-original-tracking .fdm-order-list-items-customer-name {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 5px 0;
	line-height: 1.5;
}

.tech-delivery-original-tracking .fdm-order-list-items-customer-name {
	font-weight: 800;
}

.tech-delivery-original-tracking__address {
	display: block !important;
	color: #475467;
}

.tech-delivery-original-tracking .fdm-products-order-loop {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 5px 16px;
	width: 100%;
	padding: 13px 0;
	border-bottom: 1px solid #f0f1f3;
}

.tech-delivery-original-tracking .fdm-products-order-loop:last-child {
	border-bottom: 0;
}

.tech-delivery-original-tracking .fdm-order-list-items-product {
	min-width: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.tech-delivery-original-tracking .fdm-order-list-items-product-extra {
	color: #667085;
	font-size: 13px;
}

.tech-delivery-original-tracking .fdm-products-order-loop > .fdm-order-list-items-product-extra:last-child {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: center;
	color: #101828;
	font-size: 15px;
	font-weight: 800;
}

.tech-delivery-original-tracking__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
	width: 100%;
}

.tech-delivery-original-tracking__actions .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 18px !important;
	border-radius: 12px !important;
	text-decoration: none !important;
	font-weight: 800 !important;
}

.tech-delivery-original-tracking__whatsapp {
	border-color: #16a34a !important;
	background: #16a34a !important;
	color: #fff !important;
}

.tech-delivery-original-tracking__store {
	border: 1px solid #d0d5dd !important;
	background: #fff !important;
	color: #344054 !important;
}

.tech-delivery-tracking-empty {
	width: min(100% - 32px, 720px);
	margin: 60px auto;
	padding: 24px;
	border: 1px solid #eaecf0;
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

/* Checkout: keep gateway area native and improve only the surrounding layout. */
body.tech-delivery-native-checkout .woocommerce {
	width: min(100%, 1040px);
	margin-inline: auto;
	padding-inline: clamp(12px, 3vw, 24px);
}

body.tech-delivery-native-checkout form.checkout.woocommerce-checkout {
	width: 100%;
}

body.tech-delivery-native-checkout #order_review,
body.tech-delivery-native-checkout #customer_details,
body.tech-delivery-native-checkout .tech-delivery-checkout-summary {
	width: 100%;
}

@media (max-width: 782px) {
	body.admin-bar .tech-delivery-catalog--navigation .myd-content-filter {
		top: 46px !important;
	}

	.my-delivery-wrap.tech-delivery-catalog {
		padding-inline: 12px;
	}

	.tech-delivery-catalog--navigation .myd-content-filter {
		gap: 8px;
		padding: 10px;
		border-radius: 12px;
	}

	.myd-content-filter__categories {
		flex-basis: calc(100% - 44px) !important;
	}

	.myd-content-filter__search-icon {
		flex: 0 0 36px !important;
	}

	.myd-content-filter__search-input {
		min-width: 100%;
		flex-basis: 100% !important;
	}

	.myd-product-list--2columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.myd-product-item {
		padding: 14px;
		border: 1px solid #eef0f2;
		border-radius: 12px;
	}

	.myd-product-list__title {
		padding: 7px 10px;
		border-radius: 10px;
		background: #f2f4f7;
	}

	.myd-cart {
		width: 100vw;
	}

	.myd-product-popup__wrapper {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}

	.tech-delivery-original-tracking {
		margin-top: 22px;
		padding: 0 10px;
	}

	.tech-delivery-original-tracking__progress {
		overflow-x: auto;
		grid-template-columns: repeat(5, minmax(86px, 1fr));
		padding-bottom: 10px;
		scrollbar-width: thin;
	}
}

@media (max-width: 560px) {
	.tech-delivery-original-tracking .fdm-products-order-loop {
		grid-template-columns: minmax(0, 1fr);
	}

	.tech-delivery-original-tracking .fdm-products-order-loop > .fdm-order-list-items-product-extra:last-child {
		grid-column: 1;
		grid-row: auto;
	}

	.tech-delivery-original-tracking .fdm-order-list-items-customer,
	.tech-delivery-original-tracking .fdm-order-list-items-customer-name {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.tech-delivery-original-tracking__actions {
		grid-template-columns: 1fr;
	}
}
