/* Yeldam Order Tracking — reuses the theme's own --gotur-* CSS variables so it stays visually consistent with the rest of the site. Mobile-first. */

.yot-tracking-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif);
	color: var(--gotur-text, #595959);
}
/* Vertical spacing lives on the tracking block itself, so it's there
   whatever wraps the shortcode (theme page template or an Elementor page,
   which has no ".section-space"). When the theme's ".section-space" is
   there too, its own padding is dropped so the space isn't doubled. */
.yot-tracking-wrap {
	padding-top: 80px;
	padding-bottom: 80px;
}
.section-space:has(.yot-tracking-wrap) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
@media (max-width: 767px) {
	.yot-tracking-wrap {
		padding-top: 48px;
		padding-bottom: 48px;
	}
}

.yot-title {
	color: var(--gotur-black, #1D231F);
	font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif);
	margin-bottom: 6px;
}

.yot-subtitle {
	color: var(--gotur-text, #595959);
	margin-bottom: 24px;
}

.yot-notice {
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

.yot-notice--error {
	background: rgba(220, 53, 69, 0.08);
	border: 1px solid rgba(220, 53, 69, 0.35);
	color: #a4222f;
}

/* Lookup form */

.yot-lookup-card {
	background: #fff;
	border: 1px solid var(--gotur-border-color, #E5E5E5);
	border-radius: 12px;
	padding: 28px 20px;
	box-shadow: 0px 3px 18px rgba(var(--gotur-black-rgb, 29, 35, 31), 0.06);
}

.yot-field {
	margin-bottom: 16px;
}

.yot-field label {
	display: block;
	font-weight: 600;
	color: var(--gotur-black, #1D231F);
	margin-bottom: 6px;
	font-size: 14px;
}

.yot-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gotur-border-color, #E5E5E5);
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

.yot-field input:focus {
	outline: none;
	border-color: var(--gotur-base, #63AB45);
}

.yot-submit {
	margin-top: 20px;
}

/* Same pill button as the rest of the site (checkout, cart, wishlist). */
.yot-lookup-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	background: var(--gotur-base, #63AB45);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.yot-lookup-submit:hover,
.yot-lookup-submit:focus {
	opacity: 0.9;
	color: #fff;
	background: var(--gotur-base, #63AB45);
}

.yot-lookup-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ---------- Order view ----------
   Header (order no. + status pill), icon timeline, customer strip,
   Order Summary table, Delivery / Payment cards and a Need Help band.
   Site green is Elementor's primary (#24B24B); tints are #EEF7F0. */

.yot-tracking-wrap {
	max-width: 980px;
	--yot-green: var(--e-global-color-primary, #24B24B);
	--yot-tint: #EEF7F0;
	--yot-ink: var(--gotur-black, #1D231F);
	--yot-muted: #6B7280;
	--yot-line: var(--gotur-border-color, #E5E5E5);
}
.yot-lookup-card {
	max-width: 560px;
	margin: 0 auto;
}

/* Lookup form: same heading and field look as the checkout (white field,
   1px #DDE2DF border, 10px corners, 16px text, green focus ring). The
   theme's own h2 / input[type=text] rules are stronger than the plain
   selectors above, hence the card-scoped selectors and !important. */
.yot-lookup-card .yot-title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--yot-ink);
}
.yot-lookup-card .yot-subtitle {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--yot-muted);
}
.yot-lookup-card .yot-field {
	margin: 0 0 18px;
}
.yot-lookup-card .yot-field label {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--yot-ink);
}
.yot-lookup-card .yot-field input {
	width: 100%;
	height: 50px !important;
	padding: 0 14px !important;
	background: #fff !important;
	border: 1px solid #DDE2DF !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px !important;
	line-height: normal;
	color: var(--yot-ink) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.yot-lookup-card .yot-field input::placeholder {
	color: #9CA3AF;
	opacity: 1;
}
.yot-lookup-card .yot-field input:focus {
	outline: none;
	border-color: var(--gotur-base, #63AB45) !important;
	box-shadow: 0 0 0 1px var(--gotur-base, #63AB45) !important;
}
.yot-lookup-card .yot-submit {
	margin: 24px 0 0;
}
@media (max-width: 767px) {
	.yot-lookup-card .yot-title {
		font-size: 24px;
	}
}

.yot-icon {
	display: block;
	flex: none;
	width: 20px;
	height: 20px;
}

.yot-order-card {
	padding: 32px;
	border: 1px solid var(--yot-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 6px 30px rgba(29, 35, 31, 0.06);
}

/* Header */
.yot-order-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}
.yot-order-header .yot-title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
}
.yot-order-date {
	margin: 6px 0 0;
	font-size: 16px;
	color: var(--yot-muted);
}
.yot-current-status {
	flex: none;
	padding: 10px 22px;
	border-radius: 12px;
	background: var(--yot-tint);
	font-size: 15px;
	font-weight: 600;
	color: var(--yot-green);
}
.yot-current-status.yot-status--on-hold,
.yot-current-status.yot-status--pending {
	background: #FFF4E0;
	color: #B26A00;
}
.yot-current-status.yot-status--cancelled,
.yot-current-status.yot-status--failed,
.yot-current-status.yot-status--refunded {
	background: rgba(220, 53, 69, 0.1);
	color: #a4222f;
}

/* Timeline: icon circles joined by a line; done = green outline,
   current = filled green, upcoming = grey. */
.yot-timeline {
	display: grid;
	grid-template-columns: repeat(var(--yot-steps, 5), minmax(0, 1fr));
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.yot-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0 4px;
	text-align: center;
}
/* Connector to the next step, from this circle's edge to the next one's. */
.yot-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 29px;
	left: calc(50% + 30px);
	right: calc(-50% + 30px);
	height: 2px;
	background: var(--yot-line);
}
.yot-step--done:not(:last-child)::after {
	background: var(--yot-green);
}
.yot-step__icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	box-sizing: border-box;
	border: 2px solid var(--yot-line);
	border-radius: 50%;
	background: #fff;
	color: #8A8F8C;
}
.yot-step__icon .yot-icon {
	width: 24px;
	height: 24px;
}
.yot-step--done .yot-step__icon {
	border-color: var(--yot-green);
	color: var(--yot-green);
}
.yot-step--current .yot-step__icon {
	border-color: var(--yot-green);
	background: var(--yot-green);
	color: #fff;
	box-shadow: 0 0 0 6px rgba(36, 178, 75, 0.15);
}
.yot-step--negative .yot-step__icon {
	border-color: #dc3545;
	background: #dc3545;
	color: #fff;
}
.yot-step__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.yot-step__label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--yot-ink);
}
.yot-step--upcoming .yot-step__label {
	color: var(--yot-muted);
	font-weight: 500;
}
.yot-step__date {
	font-size: 13px;
	line-height: 1.5;
	color: var(--yot-muted);
}
.yot-step__time {
	display: block;
}
/* One-line explanation under each step ("Your order has been picked up …"). */
.yot-step__desc {
	font-size: 13px;
	line-height: 1.45;
	color: var(--yot-muted);
}
.yot-step--upcoming .yot-step__desc {
	opacity: .8;
}
.yot-timeline--negative {
	display: flex;
	justify-content: center;
}

/* Customer strip */
.yot-customer {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 32px;
	padding: 20px 24px;
	border-radius: 16px;
	background: var(--yot-tint);
}
.yot-customer__who {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 16px;
	min-width: 0;
}
.yot-customer__avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(36, 178, 75, 0.12);
	color: var(--yot-green);
}
.yot-customer__avatar .yot-icon {
	width: 28px;
	height: 28px;
}
.yot-customer__label {
	display: block;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yot-muted);
}
.yot-customer__name {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--yot-ink);
	overflow-wrap: anywhere;
}
.yot-customer__contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left: 24px;
	border-left: 1px solid rgba(29, 35, 31, 0.12);
	font-size: 15px;
	color: var(--yot-ink);
}
.yot-customer__contact span {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-wrap: anywhere;
}
.yot-customer__contact .yot-icon {
	color: var(--yot-green);
}

/* Optional meta (order type, token, delivery partner) */
.yot-order-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 32px;
	padding: 16px 20px;
	border: 1px solid var(--yot-line);
	border-radius: 14px;
}
.yot-meta-label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--yot-muted);
}
.yot-meta-value {
	display: block;
	margin-top: 2px;
	font-weight: 600;
	color: var(--yot-ink);
}

/* Order summary */
.yot-section-title {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 700;
	color: var(--yot-ink);
}
.yot-summary {
	overflow: hidden;
	margin-bottom: 28px;
	border: 1px solid var(--yot-line);
	border-radius: 16px;
}
.yot-items-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}
.yot-items-table th {
	padding: 16px 24px;
	border: 0;
	border-bottom: 1px solid var(--yot-line);
	background: #F7F9F8;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	color: var(--yot-muted);
}
.yot-items-table td {
	padding: 16px 24px;
	border: 0;
	border-bottom: 1px solid var(--yot-line);
	font-size: 16px;
	vertical-align: middle;
	color: var(--yot-ink);
}
.yot-items-table .yot-col-price,
.yot-items-table .yot-col-qty {
	text-align: center;
}
.yot-items-table .yot-col-total {
	text-align: right;
}
.yot-item {
	display: flex;
	align-items: center;
	gap: 16px;
}
.yot-item__img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--yot-tint);
}
.yot-item__name {
	font-weight: 700;
	color: var(--yot-ink);
}
.yot-item__qty-mobile {
	display: none;
}
/* Weight under the name and struck regular price under the subtotal — the
   same greys as the cart and checkout (#6B7280 / #9CA3AF). */
.yot-item__weight {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #6B7280;
}
.yot-item__regular {
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #9CA3AF;
}
.yot-totals {
	margin: 0;
}
.yot-totals > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--yot-line);
}
.yot-totals dt,
.yot-totals dd {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--yot-muted);
}
.yot-totals dd {
	color: var(--yot-ink);
}
.yot-totals__discount dd {
	color: var(--yot-green);
}
.yot-totals__coupon {
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--yot-tint);
	font-size: 12px;
	font-weight: 600;
	color: var(--yot-green);
}
.yot-totals > .yot-totals__grand {
	margin: 0;
	padding: 18px 24px;
	border-bottom: 0;
	background: var(--yot-tint);
}
.yot-totals__grand dt {
	font-size: 22px;
	font-weight: 700;
	color: var(--yot-ink);
}
.yot-totals__grand dd {
	font-size: 24px;
	font-weight: 800;
	color: var(--yot-green);
}

/* Delivery + payment cards */
.yot-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}
.yot-info-card {
	padding: 20px 24px;
	border: 1px solid var(--yot-line);
	border-radius: 16px;
}
.yot-info-card__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	color: var(--yot-ink);
}
.yot-info-card__title .yot-icon {
	width: 24px;
	height: 24px;
	color: var(--yot-green);
}
.yot-address {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 16px;
	font-style: normal;
	line-height: 1.6;
	color: var(--yot-muted);
}
.yot-address strong {
	font-weight: 700;
	color: var(--yot-ink);
}
.yot-pay-method {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--yot-ink);
}
.yot-pay-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}
.yot-pay-note .yot-icon {
	width: 22px;
	height: 22px;
}
.yot-pay-note--wait {
	background: #FFF4E0;
	color: #5C3B00;
}
.yot-pay-note--wait .yot-icon {
	color: #B26A00;
}
.yot-pay-note--ok {
	background: var(--yot-tint);
	color: var(--yot-ink);
}
.yot-pay-note--ok .yot-icon {
	color: var(--yot-green);
}

/* Need help */
.yot-help {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	border: 1px solid var(--yot-line);
	border-radius: 16px;
}
.yot-help__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--yot-tint);
	color: var(--yot-green);
}
.yot-help__icon .yot-icon {
	width: 28px;
	height: 28px;
}
.yot-help__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.yot-help__text strong {
	font-size: 20px;
	font-weight: 700;
	color: var(--yot-ink);
}
.yot-help__text span {
	font-size: 14px;
	color: var(--yot-muted);
}
.yot-tracking-wrap a.yot-help__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1.5px solid var(--yot-green);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
	color: var(--yot-green);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.yot-tracking-wrap a.yot-help__btn:hover {
	background: var(--yot-green);
	color: #fff;
}

.yot-lookup-again {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	margin: 0;
	padding: 28px 0 0;
	text-align: center;
}
.yot-lookup-again a {
	font-weight: 600;
	color: var(--yot-green);
	text-decoration: none;
}
.yot-lookup-again .yot-continue-shopping {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 999px;
	background: var(--yot-green);
	color: #fff;
}
.yot-lookup-again .yot-continue-shopping:hover,
.yot-lookup-again .yot-continue-shopping:focus {
	color: #fff;
	opacity: 0.9;
}

/* Tablet: tighter timeline labels. */
@media (max-width: 860px) {
	.yot-order-card {
		padding: 24px;
	}
	.yot-step__icon {
		width: 52px;
		height: 52px;
	}
	.yot-step:not(:last-child)::after {
		top: 25px;
		left: calc(50% + 26px);
		right: calc(-50% + 26px);
	}
	.yot-step__label {
		font-size: 13px;
	}
	.yot-step__date {
		font-size: 12px;
	}
}

/* Phones: vertical timeline, stacked strips/cards, compact item rows. */
@media (max-width: 640px) {
	.yot-tracking-wrap {
		/* Sides only — top/bottom spacing is set at the top of this file. */
		padding-left: 12px;
		padding-right: 12px;
	}
	.yot-order-card {
		padding: 20px 16px;
		border-radius: 16px;
	}
	.yot-order-header {
		margin-bottom: 24px;
	}
	.yot-order-header .yot-title {
		font-size: 26px;
	}
	.yot-order-date {
		font-size: 14px;
	}
	.yot-current-status {
		padding: 8px 14px;
		font-size: 13px;
	}

	.yot-timeline {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		margin-bottom: 24px;
	}
	.yot-step {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		padding: 0;
		text-align: left;
	}
	.yot-step:not(:last-child)::after {
		top: 44px;
		bottom: -18px;
		left: 21px;
		right: auto;
		width: 2px;
		height: auto;
	}
	.yot-step__icon {
		width: 44px;
		height: 44px;
	}
	.yot-step__icon .yot-icon {
		width: 20px;
		height: 20px;
	}
	.yot-step--current .yot-step__icon {
		box-shadow: 0 0 0 4px rgba(36, 178, 75, 0.15);
	}
	.yot-step__label {
		font-size: 15px;
	}
	.yot-step__date {
		font-size: 12px;
	}
	.yot-step__time {
		display: inline;
	}

	.yot-customer {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-bottom: 24px;
		padding: 16px;
	}
	.yot-customer__avatar {
		width: 48px;
		height: 48px;
	}
	.yot-customer__name {
		font-size: 18px;
	}
	.yot-customer__contact {
		padding: 14px 0 0;
		border-top: 1px solid rgba(29, 35, 31, 0.12);
		border-left: 0;
		font-size: 14px;
	}

	.yot-section-title {
		font-size: 20px;
	}
	.yot-items-table thead,
	.yot-items-table .yot-col-price,
	.yot-items-table .yot-col-qty {
		display: none;
	}
	.yot-items-table td {
		padding: 14px 16px;
		font-size: 14px;
	}
	.yot-item {
		gap: 12px;
	}
	.yot-item__img {
		width: 52px;
		height: 52px;
	}
	.yot-item__qty-mobile {
		display: block;
		margin-top: 2px;
		font-size: 13px;
		font-weight: 500;
		color: var(--yot-muted);
	}
	.yot-totals > div {
		margin: 0 16px;
		padding: 12px 0;
	}
	.yot-totals dt,
	.yot-totals dd {
		font-size: 14px;
	}
	.yot-totals > .yot-totals__grand {
		padding: 14px 16px;
	}
	.yot-totals__grand dt {
		font-size: 18px;
	}
	.yot-totals__grand dd {
		font-size: 20px;
	}

	.yot-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		margin-bottom: 20px;
	}
	.yot-info-card {
		padding: 16px;
	}
	.yot-info-card__title {
		font-size: 18px;
	}
	.yot-address,
	.yot-pay-method {
		font-size: 15px;
	}

	.yot-help {
		flex-wrap: wrap;
		gap: 14px;
		padding: 16px;
	}
	.yot-help__icon {
		width: 48px;
		height: 48px;
	}
	.yot-help__text strong {
		font-size: 18px;
	}
	.yot-tracking-wrap a.yot-help__btn {
		justify-content: center;
		width: 100%;
	}
}
