/* Velocity Storefront — Sipariş Takip sayfası ([velocity_order_tracking]).
   Marka renkleri --vst-accent / --vst-primary (VST_Settings brand_kit'ten gelir; yoksa fallback). */

.vst-track,
.vst-track * { box-sizing: border-box; }

.vst-track {
	display: flex;
	align-items: flex-start;
	gap: 50px;
	max-width: 1450px;
	margin: 0 auto;
	padding: 10px 0 40px;
}

.vst-track-side { flex: 5 1 0; min-width: 0; }
.vst-track-main { flex: 6 1 0; min-width: 0; }

/* ------------------------------------------------------------------ Kart */

.vst-track-card {
	background: #fff;
	border: 1px solid #e9ebee;
	border-radius: 8px;
	padding: 34px;
}

.vst-track-title {
	margin: 10px 0 10px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--vst-primary, #111827);
}

.vst-track-lead {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.65;
	color: #5b6470;
}

.vst-track-note p { margin: 0; color: #5b6470; }

/* ------------------------------------------------------------------ Durum rozeti */

.vst-track-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--vst-accent, #e11d48);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .01em;
}

.vst-track-badge.is-idle {
	background: #f1f3f5;
	color: #6b7480;
}

.vst-track-badge.is-halted {
	background: #fee2e2;
	color: #b42318;
}

/* ------------------------------------------------------------------ Adım çizelgesi */

.vst-track-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.vst-track-steps.is-void { opacity: .55; }

.vst-track-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 0 0 26px;
	margin: 0;
	list-style: none;
}

.vst-track-step:last-child { padding-bottom: 0; }

/* Adımları birleştiren dikey çizgi */
.vst-track-step::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 44px;
	bottom: 2px;
	width: 2px;
	background: #e9ebee;
}

.vst-track-step:last-child::before { display: none; }

.vst-track-step.is-done::before { background: var(--vst-accent, #e11d48); }

/* Daire ikon kutusu */
.vst-track-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 2px solid #e9ebee;
	background: #fff;
	color: #a4acb7;
	position: relative;
	z-index: 1;
	transition: background-color .2s, border-color .2s, color .2s;
}

.vst-track-step.is-done .vst-track-icon {
	background: var(--vst-accent, #e11d48);
	border-color: var(--vst-accent, #e11d48);
	color: #fff;
}

.vst-track-step.is-current .vst-track-icon {
	background: #fff;
	border-color: var(--vst-accent, #e11d48);
	color: var(--vst-accent, #e11d48);
	box-shadow: 0 0 0 5px rgba(225, 29, 72, .12);
	animation: vst-track-pulse 2s ease-out infinite;
}

@keyframes vst-track-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(225, 29, 72, .30); }
	70%  { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
	100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.vst-track-step.is-current .vst-track-icon { animation: none; }
	.vst-track-icon { transition: none; }
}

.vst-track-icon svg { display: block; }

/* Adım metni */
.vst-track-step-body {
	display: block;
	padding-top: 3px;
	min-width: 0;
}

.vst-track-step-label {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--vst-primary, #111827);
}

.vst-track-step.is-todo .vst-track-step-label { color: #98a1ad; }

.vst-track-step.is-current .vst-track-step-label { color: var(--vst-accent, #e11d48); }

.vst-track-step-desc {
	display: block;
	margin-top: 3px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #6b7480;
}

.vst-track-step.is-todo .vst-track-step-desc { color: #a4acb7; }

/* ------------------------------------------------------------------ Kargo takip kutusu */

.vst-track-shipment {
	margin-top: 26px;
	padding: 20px;
	border: 1px solid #e9ebee;
	border-radius: 8px;
	background: #fafbfc;
}

.vst-track-shipment-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 6px 0;
	font-size: 14px;
}

.vst-track-shipment-label { color: #6b7480; }

.vst-track-shipment-value {
	font-weight: 700;
	color: var(--vst-primary, #111827);
	text-align: right;
	word-break: break-word;
}

.vst-track-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .02em;
}

.vst-track-cta {
	display: block;
	margin-top: 14px;
	padding: 13px 20px;
	border-radius: 8px;
	background: var(--vst-accent, #e11d48);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: filter .15s;
}

.vst-track-cta:hover,
.vst-track-cta:focus {
	color: #fff;
	filter: brightness(.93);
}

/* ------------------------------------------------------------------ WooCommerce çıktısı */

.vst-track-wc .woocommerce { margin: 0; }

.vst-track-wc form.woocommerce-form-track-order p:last-of-type { margin-bottom: 0; }

.vst-track-wc .form-row { margin: 0 0 18px; padding: 0; }

.vst-track-wc label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vst-primary, #111827);
}

.vst-track-wc input[type="text"],
.vst-track-wc input[type="email"] {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1px solid #e9ebee;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	color: var(--vst-primary, #111827);
}

.vst-track-wc input[type="text"]:focus,
.vst-track-wc input[type="email"]:focus {
	outline: none;
	border-color: var(--vst-accent, #e11d48);
	box-shadow: 0 0 0 3px rgba(225, 29, 72, .10);
}

.vst-track-wc button[type="submit"],
.vst-track-wc .button {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 8px;
	background: var(--vst-accent, #e11d48);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s;
}

.vst-track-wc button[type="submit"]:hover,
.vst-track-wc .button:hover { filter: brightness(.93); color: #fff; }

.vst-track-wc .woocommerce-error,
.vst-track-wc .woocommerce-info,
.vst-track-wc .woocommerce-message {
	margin: 0 0 20px;
	border-radius: 8px;
	border-top: 0;
}

/* Sorgu sonucu tablosu okunur kalsın */
.vst-track-wc table { width: 100%; }
.vst-track-wc .woocommerce-table--order-details { margin-top: 16px; }

/* ------------------------------------------------------------------ Duyarlı */

@media (max-width: 1024px) {
	.vst-track {
		flex-direction: column;
		gap: 26px;
	}

	.vst-track-side,
	.vst-track-main { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 600px) {
	.vst-track-card { padding: 24px 20px; }
	.vst-track-title { font-size: 21px; }
	.vst-track-icon { flex-basis: 40px; width: 40px; height: 40px; }
	.vst-track-step { gap: 13px; }
	.vst-track-step::before { left: 19px; top: 40px; }
	.vst-track-shipment-row { flex-direction: column; gap: 2px; }
	.vst-track-shipment-value { text-align: left; }
}
