/* =========================================================
   1. SEARCH / TRACKING INPUT BAR
   ========================================================= */
.tracking-input-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 8px 10px 8px 18px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
	width: 100% !important;
	margin-bottom: 30px;
}

.tracking-input-wrapper {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
}

.tracking-input {
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 1.15rem !important;
	font-weight: 500 !important;
	color: #1e293b !important;
	padding: 8px 12px 8px 0 !important;
	height: auto !important;
}

.tracking-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
}

.btn-track {
	flex-shrink: 0 !important;
	margin-left: auto !important;
	background-color: #0062ff !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 24px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-track:hover {
	background-color: #0052d6 !important;
	box-shadow: 0 2px 6px rgba(0, 98, 255, 0.3) !important;
}

.btn-track:active {
	background-color: #0043b3 !important;
}

/* =========================================================
   2. UNIFIED CARD CONTAINERS (Checklist & List Cards)
   ========================================================= */
.tracking-stepper-card, .tracking-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* Reduced card padding to maximize stepper width */
.tracking-stepper-card {
	padding: 16px 8px !important;
}

/* =========================================================
   3. TOP PROGRESS STEPPER
   ========================================================= */
.tracking-stepper-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 6px 4px;
}

.tracking-stepper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
}

/* Step container */
.step-item {
	flex: 1;
	text-align: center;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Connecting bar behind icons */
.step-item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 19px;
	left: 50%;
	width: 100%;
	height: 2.5px;
	background: #e2e8f0;
	z-index: 1;
}

.step-item.completed:not(:last-child)::after {
	background: #0062ff;
}

/* Base circle icon wrapper */
.step-icon-wrapper {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	background-color: #cbd5e1;
	color: #fff;
	transition: all 0.25s ease;
	position: relative;
	z-index: 3;
}

/* 1. Past completed steps: SOLID BLUE (No checkmark) */
.step-item.completed .step-icon-wrapper {
	background-color: #0062ff;
	color: #fff;
	border: none;
	box-shadow: none;
}

.step-item.completed .step-label {
	color: #1e293b;
	font-weight: 500;
}

/* 2. Current step: HIGHLIGHTED WITH CHECKMARK & SOFT GLOW */
.step-item.current-step .step-icon-wrapper {
	background-color: #0062ff;
	color: #fff;
	box-shadow: 0 0 0 5px rgba(0, 98, 255, 0.2);
}

.step-item.current-step .step-label {
	color: #0062ff;
	font-weight: 700;
}

/* 3. Pending & Future steps: GREY (No next-step active ring) */
.step-item.pending .step-icon-wrapper, .step-item.active .step-icon-wrapper
	{
	background-color: #cbd5e1;
	border: none;
	box-shadow: none;
	color: #fff;
}

.step-item.pending .step-label, .step-item.active .step-label {
	color: #64748b;
	font-weight: 500;
}

.step-label {
	font-size: 12.5px;
	line-height: 1.35;
	color: #64748b;
	font-weight: 500;
}

/* Plane default: Gray (before flight) */
.step-item .stepper-flight-badge {
  position: absolute;
  top: 20px;
  left: 100%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background-color: #cbd5e1; /* Gray */
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
  pointer-events: none;
  transition: all 0.25s ease;
}

.step-item .stepper-flight-badge svg {
  transform: rotate(90deg);
  display: block;
}

/* In-flight active: HIGHLIGHTED BLUE with glow effect */
.step-item .stepper-flight-badge.in-flight {
  background-color: #0062ff;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(0, 98, 255, 0.25);
}

/* Flight passed (reached Local Warehouse or beyond): Solid Blue */
.step-item .stepper-flight-badge.passed {
  background-color: #0062ff;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

/* Normal completed line (fully blue) */
.step-item.completed:not(:last-child)::after {
  background: #0062ff;
}

/* SPLIT LINE FOR IN-FLIGHT: Half Blue, Half Gray */
.step-item.in-flight:not(:last-child)::after {
  background: linear-gradient(to right, #0062ff 50%, #e2e8f0 50%) !important;
}
/* =========================================================
   4. ACCORDION & BADGES
   ========================================================= */
.tracking-card .card-header-btn {
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.tracking-card .card-header-btn:focus {
	outline: none;
}

.tracking-card .chevron-icon {
	transition: transform 0.2s ease;
}

.tracking-card .card-header-btn.collapsed .chevron-icon {
	transform: rotate(180deg);
}

.badge-status-shipped {
	background-color: #e6f9ed;
	color: #16a34a;
	font-weight: 600;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
}

/* =========================================================
   5. VERTICAL TIMELINE WITH BLUE DOTS & SIDE-BY-SIDE WRAPPING
   ========================================================= */
.awb-timeline {
	position: relative;
	padding-left: 28px !important;
	margin-top: 10px;
}

.awb-timeline-item {
	position: relative !important;
	padding-bottom: 22px !important;
}

/* Vertical connector line */
.awb-timeline-item::before {
	content: '' !important;
	position: absolute !important;
	left: -20px !important;
	top: 7px !important;
	bottom: -7px !important;
	width: 2px !important;
	background-color: #cbd5e1 !important;
	z-index: 1 !important;
	display: block !important;
}

.awb-timeline-item:last-child::before {
	display: none !important;
}

/* Blue timeline dot */
.awb-timeline-dot {
	position: absolute !important;
	left: -24px !important;
	top: 6px !important;
	width: 10px !important;
	height: 10px !important;
	border-radius: 50% !important;
	background-color: #0062ff !important;
	box-shadow: 0 0 0 2px rgba(0, 98, 255, 0.2) !important;
	z-index: 2 !important;
	display: block !important;
}

/* Row Content Layout */
.awb-timeline-row {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	width: 100%;
}

.awb-timeline-date {
	font-size: 13px;
	color: #64748b;
	flex: 0 0 160px !important;
	width: 160px !important;
	max-width: 160px !important;
	padding-right: 15px;
	line-height: 1.45;
	white-space: nowrap;
}

.awb-timeline-text {
	font-size: 13.5px;
	color: #1e293b;
	font-weight: 500;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	line-height: 1.45;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
}

@media (min-width: 768px) {
    .tracking-input-card,
    #tracking-result {
        width: 100% !important;
        max-width: 750px !important; /* Forces margins to compute and center */
        min-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}
/* =========================================================
   6. RESPONSIVE / MOBILE SCREENS
   ========================================================= */
@media ( max-width : 576px) {
	.tracking-stepper-container {
		padding: 5px 0;
	}
	.step-label {
		font-size: 10.5px;
	}
	.step-icon-wrapper {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}
	.step-item:not(:last-child)::after {
		top: 16px;
	}
	.step-item .stepper-flight-badge {
		top: 16px;
		width: 18px;
		height: 18px;
	}
	.step-item .stepper-flight-badge svg {
		width: 9px;
		height: 9px;
	}
	.awb-timeline-date {
		flex: 0 0 130px !important;
		width: 130px !important;
		max-width: 130px !important;
		font-size: 12px;
		padding-right: 10px;
	}
	.awb-timeline-text {
		font-size: 12.5px;
	}
}