.dtdc-tracking-widget {
	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
}

.dtdc-tracking-widget label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 15px;
	color: #1a1a1a;
}

.dtdc-tracking-form-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	background: #fff;
	padding: 6px;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	border: 1px solid #e3e6ea;
}

.dtdc-tracking-form-row input[type="tel"] {
	flex: 1 1 220px;
	padding: 13px 16px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	outline: none;
	background: transparent;
}

.dtdc-tracking-form-row input[type="tel"]:focus {
	background: #f5f8ff;
}

.dtdc-tracking-form-row button {
	padding: 13px 26px;
	background: #0b3d91;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}

.dtdc-tracking-form-row button:hover {
	background: #092d6d;
}

.dtdc-tracking-form-row button:active {
	transform: scale(0.98);
}

.dtdc-tracking-form-row button:disabled {
	background: #9aa8c7;
	cursor: not-allowed;
}

#dtdc-tracking-results {
	margin-top: 22px;
}

.dtdc-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #555;
	font-size: 14px;
	padding: 14px 0;
}

.dtdc-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid #d8dfea;
	border-top-color: #0b3d91;
	border-radius: 50%;
	animation: dtdc-spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes dtdc-spin {
	to { transform: rotate(360deg); }
}

.dtdc-order-card {
	border: 1px solid #e6e9ee;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 16px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(20, 30, 60, 0.06);
	transition: box-shadow 0.15s ease;
}

.dtdc-order-card:hover {
	box-shadow: 0 4px 14px rgba(20, 30, 60, 0.1);
}

.dtdc-order-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px;
}

.dtdc-order-card h3 {
	margin: 0;
	font-size: 17px;
	color: #16233f;
}

.dtdc-order-card .dtdc-meta-row {
	font-size: 13px;
	color: #6b7280;
	margin-top: 5px;
	line-height: 1.5;
}

.dtdc-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	background: #e6f4ea;
	color: #1e7e34;
	white-space: nowrap;
}

.dtdc-status-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.dtdc-status-badge.dtdc-status-pending {
	background: #fdf3d8;
	color: #8a6d1a;
}

.dtdc-status-badge.dtdc-status-error {
	background: #fbe7e7;
	color: #a12a2a;
}

.dtdc-route-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	font-size: 13.5px;
	color: #374151;
}

.dtdc-route-point {
	font-weight: 600;
}

.dtdc-route-line {
	flex: 1;
	height: 2px;
	background: repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 5px, transparent 5px, transparent 9px);
	position: relative;
	min-width: 30px;
}

.dtdc-route-line::after {
	content: "\2192";
	position: absolute;
	right: -2px;
	top: -9px;
	color: #94a3b8;
}

.dtdc-meta-row.dtdc-last-update {
	margin-top: 10px;
	font-weight: 600;
	color: #16233f;
}

.dtdc-remarks {
	margin-top: 4px;
	font-size: 13px;
	color: #6b7280;
	font-style: italic;
}

.dtdc-history-toggle {
	margin-top: 12px;
	background: none;
	border: none;
	color: #0b3d91;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.dtdc-history-list {
	margin: 12px 0 0;
	padding-left: 0;
	list-style: none;
	font-size: 13px;
	color: #444;
	border-left: 2px solid #e2e8f0;
	display: none;
}

.dtdc-history-list.dtdc-open {
	display: block;
}

.dtdc-history-list li {
	position: relative;
	padding: 0 0 12px 18px;
}

.dtdc-history-list li::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0b3d91;
}

.dtdc-history-list li strong {
	color: #16233f;
}

.dtdc-error-message {
	color: #a12a2a;
	background: #fbe7e7;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.dtdc-payment-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2px;
}

.dtdc-payment-status.dtdc-payment-success {
	background: #e6f4ea;
	color: #1e7e34;
}

.dtdc-payment-status.dtdc-payment-failed {
	background: #fbe7e7;
	color: #a12a2a;
}

.dtdc-payment-status.dtdc-payment-pending {
	background: #fdf3d8;
	color: #8a6d1a;
}

.dtdc-collect-amount {
	font-weight: 800;
	color: #a15c00;
	background: #fff3e0;
	padding: 2px 10px;
	border-radius: 6px;
	font-size: 14px;
}

.dtdc-detail-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 13.5px;
}

.dtdc-detail-table td {
	padding: 6px 0;
	vertical-align: top;
	border-bottom: 1px dashed #eef0f3;
}

.dtdc-detail-label {
	width: 150px;
	color: #6b7280;
	font-weight: 600;
	white-space: nowrap;
	padding-right: 12px;
}

.dtdc-detail-value {
	color: #16233f;
	word-break: break-word;
}

.dtdc-stepper-wrap {
	margin-top: 18px;
}

.dtdc-stepper-title {
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #6b7280;
	margin-bottom: 12px;
}

.dtdc-stepper {
	display: flex;
	align-items: flex-start;
}

.dtdc-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	width: 84px;
	text-align: center;
}

.dtdc-step-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e2e8f0;
	border: 3px solid #e2e8f0;
	display: block;
	margin-bottom: 6px;
	position: relative;
	z-index: 1;
}

.dtdc-step-label {
	font-size: 11.5px;
	color: #9aa3af;
	line-height: 1.3;
	font-weight: 600;
}

.dtdc-step.dtdc-step-done .dtdc-step-dot {
	background: #0b3d91;
	border-color: #0b3d91;
}

.dtdc-step.dtdc-step-done .dtdc-step-label {
	color: #0b3d91;
}

.dtdc-step.dtdc-step-current .dtdc-step-dot {
	background: #fff;
	border-color: #0b3d91;
	box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.15);
}

.dtdc-step.dtdc-step-current .dtdc-step-label {
	color: #0b3d91;
}

.dtdc-step-connector {
	flex: 1 1 auto;
	height: 3px;
	background: #e2e8f0;
	margin-top: 9px;
	min-width: 12px;
}

.dtdc-step-connector.dtdc-step-done {
	background: #0b3d91;
}

@media (max-width: 480px) {
	.dtdc-detail-label {
		width: 110px;
	}

	.dtdc-step-label {
		font-size: 10px;
	}

	.dtdc-step {
		width: 60px;
	}

	.dtdc-tracking-form-row {
		flex-direction: column;
	}

	.dtdc-tracking-form-row button {
		width: 100%;
	}

	.dtdc-order-card {
		padding: 14px 16px;
	}

	.dtdc-order-card h3 {
		font-size: 15.5px;
	}
}


