/**
 * Track Order Page Styles
 * 
 * Modern, beautiful order tracking page with timeline and carrier integration.
 * Follows the Kloira design system.
 *
 * @package Kloira
 * @since 1.0.0
 */

/* ==========================================================================
   Variables & Base
   ========================================================================== */

.ksq-track-order {
	--track-primary: #000000;
	--track-secondary: #FF5100;
	--track-secondary-hover: #E54900;
	--track-success: #16A34A;
	--track-warning: #F59E0B;
	--track-error: #DC2626;
	--track-gray-50: #F9FAFB;
	--track-gray-100: #F3F4F6;
	--track-gray-200: #E5E7EB;
	--track-gray-300: #D1D5DB;
	--track-gray-400: #9CA3AF;
	--track-gray-500: #6B7280;
	--track-gray-600: #4B5563;
	--track-gray-700: #374151;
	--track-gray-800: #1F2937;
	--track-gray-900: #111827;
	--track-white: #FFFFFF;
	--track-border: #E5E7EB;
	--track-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	--track-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
	--track-radius: 12px;
	--track-radius-sm: 8px;
	--track-radius-full: 9999px;
	--track-transition: all 0.3s ease;
}

/* ==========================================================================
   Hide Trust Bar When Results Are Shown
   ========================================================================== */

body.ksq-tracking-results-active .trust-bar {
	display: none !important;
}

body.ksq-tracking-results-active .site-header {
	position: relative;
}

/* ==========================================================================
   Container
   ========================================================================== */

.ksq-track-order__container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 32px;
}

.ksq-track-order__container--narrow {
	max-width: 800px;
}

/* ==========================================================================
   Main Section
   ========================================================================== */

.ksq-track-order__main-section {
	padding: 32px 0;
	min-height: 400px;
}

/* Compact mode when results are shown */
body.ksq-tracking-results-active .ksq-track-order__main-section {
	padding: 16px 0;
}

/* Remove padding on mobile when results shown */
@media (max-width: 768px) {
	body.ksq-tracking-results-active .ksq-track-order__main-section {
		padding: 0;
	}
}

body.ksq-tracking-results-active .ksq-track-order__container {
	max-width: 1800px;
}

/* ==========================================================================
   Search Card
   ========================================================================== */

.ksq-track-order__search-card {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 48px 40px;
	box-shadow: var(--track-shadow);
}

.ksq-track-order__search-header {
	text-align: center;
	margin-bottom: 32px;
}

.ksq-track-order__search-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DC 100%);
	border-radius: 50%;
	margin: 0 auto 20px;
	color: var(--track-secondary);
}

.ksq-track-order__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 36px;
	font-weight: 400;
	color: var(--track-gray-900);
	margin: 0 0 12px;
	line-height: 1.2;
}

.ksq-track-order__subtitle {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 16px;
	color: var(--track-gray-500);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Search Type Radio Buttons
   ========================================================================== */

.ksq-track-order__search-types {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ksq-track-order__radio {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--track-gray-50);
	border: 2px solid var(--track-gray-200);
	border-radius: var(--track-radius-sm);
	cursor: pointer;
	transition: var(--track-transition);
}

.ksq-track-order__radio:hover {
	border-color: var(--track-gray-300);
	background: var(--track-white);
}

.ksq-track-order__radio input[type="radio"] {
	display: none;
}

.ksq-track-order__radio input[type="radio"]:checked + .ksq-track-order__radio-box {
	background: var(--track-secondary);
	color: var(--track-white);
}

.ksq-track-order__radio input[type="radio"]:checked ~ .ksq-track-order__radio-label {
	color: var(--track-gray-900);
	font-weight: 600;
}

.ksq-track-order__radio:has(input[type="radio"]:checked) {
	border-color: var(--track-secondary);
	background: var(--track-white);
}

.ksq-track-order__radio-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--track-gray-200);
	border-radius: 6px;
	color: var(--track-gray-500);
	transition: var(--track-transition);
}

.ksq-track-order__radio-label {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--track-gray-600);
	transition: var(--track-transition);
}

/* ==========================================================================
   Input Group
   ========================================================================== */

.ksq-track-order__input-group {
	display: flex;
	gap: 12px;
}

.ksq-track-order__input {
	flex: 1;
	height: 52px;
	padding: 0 20px;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 15px;
	color: var(--track-gray-900);
	background: var(--track-gray-50);
	border: 2px solid var(--track-border);
	border-radius: var(--track-radius-sm);
	outline: none;
	transition: var(--track-transition);
}

.ksq-track-order__input:focus {
	border-color: var(--track-secondary);
	background: var(--track-white);
	box-shadow: 0 0 0 4px rgba(255, 81, 0, 0.1);
}

.ksq-track-order__input::placeholder {
	color: var(--track-gray-400);
}

.ksq-track-order__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 28px;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--track-white);
	background: var(--track-secondary);
	border: none;
	border-radius: var(--track-radius-sm);
	cursor: pointer;
	transition: var(--track-transition);
	white-space: nowrap;
}

.ksq-track-order__submit:hover {
	background: var(--track-secondary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
}

.ksq-track-order__submit:active {
	transform: translateY(0);
}

.ksq-track-order__submit-loading {
	display: none;
}

.ksq-track-order__submit.is-loading .ksq-track-order__submit-text {
	display: none;
}

.ksq-track-order__submit.is-loading .ksq-track-order__submit-loading {
	display: flex;
}

/* Form Message */
.ksq-track-order__form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: var(--track-radius-sm);
	font-size: 14px;
	display: none;
	text-align: center;
}

.ksq-track-order__form-message.is-error {
	display: block;
	background: #FEF2F2;
	color: var(--track-error);
	border: 1px solid #FECACA;
}

.ksq-track-order__form-message.is-success {
	display: block;
	background: #F0FDF4;
	color: var(--track-success);
	border: 1px solid #BBF7D0;
}

/* ==========================================================================
   Results Card
   ========================================================================== */

.ksq-track-order__results-card {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 24px;
	box-shadow: var(--track-shadow);
}

/* Results container - no header, direct order display */
.ksq-track-order__order-display {
	width: 100%;
}

/* ==========================================================================
   Orders List
   ========================================================================== */

.ksq-track-order__orders-list,
.ksq-track-order__auto-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Order Header */
.ksq-track-order__order-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--track-border);
}

.ksq-track-order__order-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ksq-track-order__order-number {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--track-gray-900);
}

.ksq-track-order__order-date {
	font-size: 13px;
	color: var(--track-gray-500);
}

/* Order Status Badge */
.ksq-track-order__order-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--track-radius-full);
}

.ksq-track-order__order-status--new,
.ksq-track-order__order-status--pending {
	background: #FEF3C7;
	color: #B45309;
}

.ksq-track-order__order-status--processing {
	background: #DBEAFE;
	color: #1D4ED8;
}

.ksq-track-order__order-status--packed,
.ksq-track-order__order-status--ready_to_ship {
	background: #E0E7FF;
	color: #4338CA;
}

.ksq-track-order__order-status--shipped,
.ksq-track-order__order-status--in_transit {
	background: #FFF5F0;
	color: var(--track-secondary);
}

.ksq-track-order__order-status--out_for_delivery {
	background: #ECFDF5;
	color: #059669;
}

.ksq-track-order__order-status--delivered,
.ksq-track-order__order-status--completed {
	background: #DCFCE7;
	color: var(--track-success);
}

.ksq-track-order__order-status--exception,
.ksq-track-order__order-status--cancelled,
.ksq-track-order__order-status--failed {
	background: #FEE2E2;
	color: var(--track-error);
}

/* ==========================================================================
   Timeline - Vertical Layout
   ========================================================================== */

.ksq-track-order__timeline {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 8px 0;
	margin-bottom: 16px;
}

.ksq-track-order__timeline-step {
	display: flex;
	align-items: flex-start;
	position: relative;
	padding-left: 0;
}

.ksq-track-order__timeline-step:not(:last-child) {
	padding-bottom: 16px;
}

/* Vertical connector line */
.ksq-track-order__timeline-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 36px;
	left: 17px;
	width: 2px;
	height: calc(100% - 36px);
	background: var(--track-gray-200);
	z-index: 0;
}

.ksq-track-order__timeline-step--completed:not(:last-child)::after {
	background: var(--track-success);
}

.ksq-track-order__timeline-step--current:not(:last-child)::after {
	background: var(--track-gray-200);
}

/* Timeline Icon */
.ksq-track-order__timeline-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--track-gray-100);
	color: var(--track-gray-400);
	margin-right: 12px;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	transition: var(--track-transition);
}

.ksq-track-order__timeline-icon svg {
	width: 16px;
	height: 16px;
}

.ksq-track-order__timeline-step--completed .ksq-track-order__timeline-icon {
	background: var(--track-success);
	color: var(--track-white);
}

.ksq-track-order__timeline-step--current .ksq-track-order__timeline-icon {
	background: var(--track-success);
	color: var(--track-white);
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25);
	animation: pulse-ring-green 2s ease-out infinite;
}

@keyframes pulse-ring-green {
	0% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
	}
}

.ksq-track-order__timeline-step--exception .ksq-track-order__timeline-icon {
	background: var(--track-error);
	color: var(--track-white);
}

/* Timeline Content */
.ksq-track-order__timeline-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 2px;
	min-width: 0;
}

.ksq-track-order__timeline-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--track-gray-400);
	transition: var(--track-transition);
}

.ksq-track-order__timeline-step--completed .ksq-track-order__timeline-label {
	color: var(--track-success);
}

.ksq-track-order__timeline-step--current .ksq-track-order__timeline-label {
	color: var(--track-success);
	font-weight: 700;
}

.ksq-track-order__timeline-desc {
	font-size: 12px;
	color: var(--track-gray-400);
	line-height: 1.4;
	display: none;
}

.ksq-track-order__timeline-step--current .ksq-track-order__timeline-desc,
.ksq-track-order__timeline-step--completed .ksq-track-order__timeline-desc {
	display: block;
	color: var(--track-gray-500);
}

.ksq-track-order__timeline-timestamp {
	font-size: 11px;
	color: var(--track-gray-400);
	margin-top: 2px;
}

/* ==========================================================================
   Order Items
   ========================================================================== */

.ksq-track-order__order-items {
	display: flex;
	gap: 8px;
	padding: 12px 0;
	border-top: 1px solid var(--track-border);
	border-bottom: 1px solid var(--track-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ksq-track-order__order-item {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding: 10px;
	background: var(--track-white);
	border-radius: var(--track-radius-sm);
	min-width: 180px;
}

.ksq-track-order__item-image {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
	background: var(--track-gray-100);
	border: 1px solid var(--track-border);
}

.ksq-track-order__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ksq-track-order__item-qty {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 18px;
	height: 18px;
	background: var(--track-primary);
	color: var(--track-white);
	font-size: 10px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksq-track-order__item-details {
	flex: 1;
	min-width: 0;
}

.ksq-track-order__item-name {
	font-size: 13px;
	font-weight: 500;
	color: var(--track-gray-900);
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ksq-track-order__item-meta {
	font-size: 11px;
	color: var(--track-gray-500);
}

/* ==========================================================================
   Order Summary
   ========================================================================== */

.ksq-track-order__order-summary {
	padding: 12px 0;
}

.ksq-track-order__summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	color: var(--track-gray-600);
}

.ksq-track-order__summary-total {
	font-size: 16px;
	font-weight: 600;
	color: var(--track-gray-900);
}

/* ==========================================================================
   Tracking Button
   ========================================================================== */

.ksq-track-order__tracking-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	padding: 0 20px;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--track-white);
	background: var(--track-primary);
	border: none;
	border-radius: var(--track-radius-sm);
	cursor: pointer;
	text-decoration: none;
	transition: var(--track-transition);
	margin-top: 12px;
}

.ksq-track-order__tracking-btn:hover {
	background: #222222;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	color: var(--track-white);
	text-decoration: none;
}

.ksq-track-order__tracking-btn svg {
	flex-shrink: 0;
}

.ksq-track-order__tracking-btn--aramex {
	background: #E31E24;
}

.ksq-track-order__tracking-btn--aramex:hover {
	background: #C41A1F;
}

.ksq-track-order__tracking-btn--ups {
	background: #351C15;
}

.ksq-track-order__tracking-btn--ups:hover {
	background: #4A2A1F;
}

/* ==========================================================================
   Order Actions
   ========================================================================== */

.ksq-track-order__order-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 12px;
	margin-top: 12px;
	border-top: 1px solid var(--track-border);
}

.ksq-track-order__view-order {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--track-gray-600);
	text-decoration: none;
	transition: var(--track-transition);
}

.ksq-track-order__view-order:hover {
	color: var(--track-secondary);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.ksq-track-order__empty-card {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 48px 32px;
	text-align: center;
	box-shadow: var(--track-shadow);
}

.ksq-track-order__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	background: var(--track-gray-100);
	border-radius: 50%;
	margin: 0 auto 20px;
	color: var(--track-gray-400);
}

.ksq-track-order__empty-title {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--track-gray-900);
	margin: 0 0 8px;
}

.ksq-track-order__empty-text {
	font-size: 14px;
	color: var(--track-gray-500);
	margin: 0 0 20px;
	line-height: 1.5;
}

.ksq-track-order__empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 24px;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--track-white);
	background: var(--track-secondary);
	border: none;
	border-radius: var(--track-radius-sm);
	cursor: pointer;
	transition: var(--track-transition);
}

.ksq-track-order__empty-btn:hover {
	background: var(--track-secondary-hover);
}

/* ==========================================================================
   Auto-load Section
   ========================================================================== */

.ksq-track-order__auto-section {
	padding: 0 0 48px;
}

.ksq-track-order__auto-header {
	margin-bottom: 20px;
}

.ksq-track-order__auto-title {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--track-gray-900);
	margin: 0;
}

.ksq-track-order__auto-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.ksq-track-order__loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--track-gray-500);
	font-size: 14px;
}

/* ==========================================================================
   Login Section
   ========================================================================== */

.ksq-track-order__login-section {
	padding: 0 0 32px;
}

.ksq-track-order__login-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 20px 24px;
}

.ksq-track-order__login-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--track-gray-100);
	border-radius: 50%;
	color: var(--track-gray-600);
	flex-shrink: 0;
}

.ksq-track-order__login-content {
	flex: 1;
}

.ksq-track-order__login-title {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--track-gray-900);
	margin: 0 0 2px;
}

.ksq-track-order__login-text {
	font-size: 13px;
	color: var(--track-gray-500);
	margin: 0;
}

.ksq-track-order__login-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 20px;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--track-primary);
	background: var(--track-white);
	border: 2px solid var(--track-primary);
	border-radius: var(--track-radius-sm);
	text-decoration: none;
	transition: var(--track-transition);
	flex-shrink: 0;
}

.ksq-track-order__login-btn:hover {
	background: var(--track-primary);
	color: var(--track-white);
	text-decoration: none;
}

/* ==========================================================================
   Help Section
   ========================================================================== */

.ksq-track-order__help-section {
	padding: 0 0 48px;
}

.ksq-track-order__help-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--track-gray-50);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 16px 20px;
}

.ksq-track-order__help-card > svg {
	flex-shrink: 0;
	color: var(--track-gray-500);
}

.ksq-track-order__help-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ksq-track-order__help-content strong {
	font-size: 14px;
	color: var(--track-gray-900);
}

.ksq-track-order__help-content span {
	font-size: 12px;
	color: var(--track-gray-500);
}

.ksq-track-order__help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--track-gray-700);
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius-sm);
	text-decoration: none;
	transition: var(--track-transition);
	flex-shrink: 0;
}

.ksq-track-order__help-btn:hover {
	border-color: var(--track-secondary);
	color: var(--track-secondary);
	text-decoration: none;
}

/* ==========================================================================
   Spinner Animation
   ========================================================================== */

.ksq-spinner {
	animation: ksq-spin 1s linear infinite;
}

@keyframes ksq-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.ksq-track-order__container {
		padding: 0 16px;
	}

	/* Main Section */
	.ksq-track-order__main-section {
		padding: 24px 0;
	}

	/* Search Card */
	.ksq-track-order__search-card {
		padding: 24px 20px;
	}

	.ksq-track-order__search-icon {
		width: 56px;
		height: 56px;
		margin-bottom: 16px;
	}

	.ksq-track-order__search-icon svg {
		width: 24px;
		height: 24px;
	}

	.ksq-track-order__title {
		font-size: 26px;
	}

	.ksq-track-order__subtitle {
		font-size: 14px;
	}

	/* Radio Buttons */
	.ksq-track-order__search-types {
		gap: 6px;
		margin-bottom: 20px;
	}

	.ksq-track-order__radio {
		padding: 8px 12px;
		gap: 6px;
	}

	.ksq-track-order__radio-box {
		width: 24px;
		height: 24px;
	}

	.ksq-track-order__radio-box svg {
		width: 12px;
		height: 12px;
	}

	.ksq-track-order__radio-label {
		font-size: 12px;
	}

	/* Input Group */
	.ksq-track-order__input-group {
		flex-direction: column;
		gap: 10px;
	}

	.ksq-track-order__input {
		height: 48px;
		font-size: 14px;
	}

	.ksq-track-order__submit {
		width: 100%;
		height: 48px;
	}

	/* Results Card */
	.ksq-track-order__results-card {
		padding: 16px;
	}

	.ksq-track-order__results-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding-bottom: 16px;
		margin-bottom: 16px;
	}

	.ksq-track-order__welcome-icon {
		width: 40px;
		height: 40px;
	}

	.ksq-track-order__welcome-icon svg {
		width: 20px;
		height: 20px;
	}

	.ksq-track-order__welcome-name {
		font-size: 16px;
	}

	.ksq-track-order__track-again {
		width: 100%;
		justify-content: center;
	}

	/* Order Card */
	.ksq-track-order__order-card {
		padding: 16px;
	}

	.ksq-track-order__order-header {
		flex-direction: column;
		gap: 10px;
	}

	.ksq-track-order__order-number {
		font-size: 15px;
	}

	/* Timeline */
	.ksq-track-order__timeline-icon {
		width: 32px;
		height: 32px;
	}

	.ksq-track-order__timeline-icon svg {
		width: 14px;
		height: 14px;
	}

	.ksq-track-order__timeline-step:not(:last-child)::after {
		left: 15px;
		top: 32px;
		height: calc(100% - 32px);
	}

	.ksq-track-order__timeline-label {
		font-size: 12px;
	}

	.ksq-track-order__timeline-desc {
		font-size: 11px;
	}

	/* Order Items */
	.ksq-track-order__order-item {
		min-width: 160px;
		padding: 8px;
	}

	.ksq-track-order__item-image {
		width: 40px;
		height: 40px;
	}

	.ksq-track-order__item-name {
		font-size: 12px;
	}

	/* Tracking Button */
	.ksq-track-order__tracking-btn {
		height: 44px;
		font-size: 13px;
	}

	/* Empty State */
	.ksq-track-order__empty-card {
		padding: 32px 20px;
	}

	.ksq-track-order__empty-icon {
		width: 80px;
		height: 80px;
	}

	.ksq-track-order__empty-icon svg {
		width: 48px;
		height: 48px;
	}

	.ksq-track-order__empty-title {
		font-size: 18px;
	}

	/* Login Card */
	.ksq-track-order__login-card {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}

	.ksq-track-order__login-btn {
		width: 100%;
		justify-content: center;
	}

	/* Help Card */
	.ksq-track-order__help-card {
		flex-direction: column;
		text-align: center;
		padding: 16px;
	}

	.ksq-track-order__help-content {
		align-items: center;
	}

	.ksq-track-order__help-btn {
		width: 100%;
		justify-content: center;
	}

	/* Auto Section */
	.ksq-track-order__auto-section {
		padding: 0 0 32px;
	}

	.ksq-track-order__auto-title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.ksq-track-order__title {
		font-size: 22px;
	}

	.ksq-track-order__search-types {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.ksq-track-order__radio {
		justify-content: center;
	}

	.ksq-track-order__order-item {
		min-width: 140px;
	}
}

/* ==========================================================================
   Order Navigation - Compact
   ========================================================================== */

.ksq-track-order__order-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--track-gray-100);
	padding: 6px 12px;
	border-radius: var(--track-radius-full);
}

.ksq-track-order__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: 50%;
	cursor: pointer;
	transition: var(--track-transition);
	color: var(--track-gray-600);
}

.ksq-track-order__nav-btn svg {
	width: 14px;
	height: 14px;
}

.ksq-track-order__nav-btn:hover:not(:disabled) {
	background: var(--track-secondary);
	border-color: var(--track-secondary);
	color: var(--track-white);
}

.ksq-track-order__nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ksq-track-order__nav-info {
	font-size: 12px;
	font-weight: 600;
	color: var(--track-gray-700);
	min-width: 40px;
	text-align: center;
}

/* ==========================================================================
   Carrier Info (Big Display)
   ========================================================================== */

.ksq-carrier-info {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	border-radius: var(--track-radius);
	padding: 24px;
	color: var(--track-white);
	overflow: hidden;
	box-shadow: var(--track-shadow-lg);
	position: relative;
}

/* Prominent Track Live Button */
.ksq-carrier-info__track-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding: 14px 20px;
	background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
	border: none;
	border-radius: var(--track-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ksq-carrier-info__track-btn:hover {
	background: linear-gradient(135deg, #fff 0%, #e8e8e8 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	color: #000;
}

.ksq-carrier-info__track-btn svg {
	flex-shrink: 0;
	color: var(--track-secondary);
}

.ksq-carrier-info__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.ksq-carrier-info__badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--track-radius-full);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ksq-carrier-info__badge--aramex {
	background: #D4002A;
}

.ksq-carrier-info__badge--ups {
	background: #351C15;
}

.ksq-carrier-info__status {
	text-align: right;
}

.ksq-carrier-info__status-label {
	display: inline-block;
	padding: 8px 16px;
	background: var(--track-secondary);
	border-radius: var(--track-radius-full);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ksq-carrier-info__tracking {
	text-align: center;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 20px;
}

.ksq-carrier-info__tracking-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 8px;
}

.ksq-carrier-info__tracking-number {
	font-family: 'Roboto Mono', monospace;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 2px;
}

/* Highlighted Estimated Delivery */
.ksq-carrier-info__delivery-highlight {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, #FF5100 0%, #FF7A3D 100%);
	border-radius: var(--track-radius-sm);
	padding: 16px 20px;
	margin-bottom: 20px;
}

.ksq-carrier-info__delivery-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	flex-shrink: 0;
}

.ksq-carrier-info__delivery-icon svg {
	color: var(--track-white);
}

.ksq-carrier-info__delivery-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ksq-carrier-info__delivery-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.8);
}

.ksq-carrier-info__delivery-date {
	font-size: 20px;
	font-weight: 700;
	color: var(--track-white);
}

/* Animated Route Section */
.ksq-carrier-info__route {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
	position: relative;
}

.ksq-carrier-info__location {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ksq-carrier-info__location--origin {
	text-align: left;
}

.ksq-carrier-info__location--destination {
	text-align: right;
}

.ksq-carrier-info__location-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.5);
}

.ksq-carrier-info__location-value {
	font-size: 14px;
	font-weight: 600;
}

/* Animated Route Line */
.ksq-carrier-info__route-animation {
	position: relative;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksq-carrier-info__route-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	overflow: hidden;
}

.ksq-carrier-info__route-progress {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: linear-gradient(90deg, #16A34A, #FF5100);
	border-radius: 2px;
	animation: routeProgress 2s ease-out forwards;
}

@keyframes routeProgress {
	from { width: 0; }
	to { width: var(--progress, 50%); }
}

/* Origin and Destination Markers */
.ksq-carrier-info__route-marker {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	border-radius: 50%;
	z-index: 2;
}

.ksq-carrier-info__route-marker--origin {
	left: 0;
	background: #16A34A;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.3);
}

.ksq-carrier-info__route-marker--destination {
	right: 0;
	background: var(--track-secondary);
	box-shadow: 0 0 0 4px rgba(255, 81, 0, 0.3);
}

/* Animated Truck/Plane Icon */
.ksq-carrier-info__route-vehicle {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	animation: vehicleMove 2s ease-out forwards;
	color: var(--track-white);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

@keyframes vehicleMove {
	from { left: 0; }
	to { left: var(--progress, 50%); }
}

.ksq-carrier-info__route-vehicle svg {
	width: 32px;
	height: 32px;
	transform: translateX(-50%);
}

/* Animated Dots Trail */
.ksq-carrier-info__route-dots {
	position: absolute;
	left: 20px;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	z-index: 1;
}

.ksq-carrier-info__route-dot {
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	animation: dotPulse 1.5s ease-in-out infinite;
}

.ksq-carrier-info__route-dot:nth-child(1) { animation-delay: 0s; }
.ksq-carrier-info__route-dot:nth-child(2) { animation-delay: 0.15s; }
.ksq-carrier-info__route-dot:nth-child(3) { animation-delay: 0.3s; }
.ksq-carrier-info__route-dot:nth-child(4) { animation-delay: 0.45s; }
.ksq-carrier-info__route-dot:nth-child(5) { animation-delay: 0.6s; }
.ksq-carrier-info__route-dot:nth-child(6) { animation-delay: 0.75s; }
.ksq-carrier-info__route-dot:nth-child(7) { animation-delay: 0.9s; }
.ksq-carrier-info__route-dot:nth-child(8) { animation-delay: 1.05s; }

@keyframes dotPulse {
	0%, 100% { 
		opacity: 0.3;
		transform: scale(1);
	}
	50% { 
		opacity: 1;
		transform: scale(1.5);
		background: var(--track-secondary);
	}
}

/* Checkpoints on Route */
.ksq-carrier-info__route-checkpoints {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 8px;
	z-index: 1;
}

.ksq-carrier-info__route-checkpoint {
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.ksq-carrier-info__route-checkpoint.is-passed {
	background: #16A34A;
	box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
}

.ksq-carrier-info__details {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ksq-carrier-info__detail {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ksq-carrier-info__detail-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.5);
}

.ksq-carrier-info__detail-value {
	font-size: 14px;
	font-weight: 600;
}

/* ==========================================================================
   Shipment History - Big Table View
   ========================================================================== */

.ksq-shipment-history {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	overflow: hidden;
	box-shadow: var(--track-shadow);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ksq-shipment-history__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	color: var(--track-white);
}

.ksq-shipment-history__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--track-white);
	margin: 0;
}

/* Live Tracking Button in Shipment History */
.ksq-shipment-history__live-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--track-secondary);
	border: none;
	border-radius: var(--track-radius-full);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(255, 81, 0, 0.3);
}

.ksq-shipment-history__live-btn:hover {
	background: var(--track-secondary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 81, 0, 0.4);
	color: #fff;
}

.ksq-shipment-history__live-btn svg {
	flex-shrink: 0;
}

/* Notice for Generated Data */
.ksq-shipment-history__notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
	border-bottom: 1px solid #F59E0B;
	font-size: 13px;
	color: #92400E;
}

.ksq-shipment-history__notice svg {
	flex-shrink: 0;
	color: #D97706;
}

.ksq-shipment-history__title svg {
	color: var(--track-secondary);
	width: 18px;
	height: 18px;
}

.ksq-shipment-history__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 10px;
	background: var(--track-secondary);
	border-radius: var(--track-radius-full);
	font-size: 13px;
	font-weight: 600;
}

.ksq-shipment-history__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: var(--track-transition);
	color: var(--track-white);
}

.ksq-shipment-history__toggle:hover {
	background: rgba(255, 255, 255, 0.2);
}

.ksq-shipment-history.is-collapsed .ksq-shipment-history__toggle svg {
	transform: rotate(180deg);
}

/* Table Container */
.ksq-shipment-history__table-wrap {
	overflow-x: auto;
	overflow-y: auto;
}

.ksq-shipment-history.is-collapsed .ksq-shipment-history__table-wrap {
	display: none;
}

/* Compact Table Styles */
.ksq-shipment-history__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.ksq-shipment-history__table thead {
	background: var(--track-gray-50);
	border-bottom: 2px solid var(--track-border);
	position: sticky;
	top: 0;
	z-index: 1;
}

.ksq-shipment-history__table th {
	padding: 12px 16px;
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--track-gray-500);
	white-space: nowrap;
}

.ksq-shipment-history__table th:first-child {
	padding-left: 20px;
}

.ksq-shipment-history__table th:last-child {
	padding-right: 20px;
}

.ksq-shipment-history__table tbody tr {
	border-bottom: 1px solid var(--track-gray-100);
	transition: var(--track-transition);
}

.ksq-shipment-history__table tbody tr:hover {
	background: var(--track-gray-50);
}

.ksq-shipment-history__table tbody tr:last-child {
	border-bottom: none;
}

.ksq-shipment-history__table td {
	padding: 14px 16px;
	vertical-align: middle;
}

.ksq-shipment-history__table td:first-child {
	padding-left: 20px;
}

.ksq-shipment-history__table td:last-child {
	padding-right: 20px;
}

/* Status Column with Icon */
.ksq-shipment-history__status-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ksq-shipment-history__status-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--track-gray-100);
	border-radius: 50%;
	color: var(--track-gray-500);
	flex-shrink: 0;
}

.ksq-shipment-history__status-icon svg {
	width: 16px;
	height: 16px;
}

.ksq-shipment-history__status-icon--current {
	background: linear-gradient(135deg, #FF5100 0%, #FF7A00 100%);
	color: var(--track-white);
	animation: iconPulse 2s ease-in-out infinite;
}

.ksq-shipment-history__status-icon--passed {
	background: var(--track-success);
	color: var(--track-white);
}

@keyframes iconPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 81, 0, 0.4); }
	50% { box-shadow: 0 0 0 8px rgba(255, 81, 0, 0); }
}

.ksq-shipment-history__status-text {
	font-weight: 600;
	color: var(--track-gray-900);
	font-size: 13px;
}

.ksq-shipment-history__row--current .ksq-shipment-history__status-text {
	color: var(--track-secondary);
}

/* Date Column */
.ksq-shipment-history__date-cell {
	white-space: nowrap;
}

.ksq-shipment-history__date {
	font-weight: 600;
	color: var(--track-gray-900);
	margin-bottom: 2px;
	font-size: 13px;
}

.ksq-shipment-history__time {
	font-size: 12px;
	color: var(--track-gray-500);
}

/* Location Column */
.ksq-shipment-history__location-cell {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ksq-shipment-history__location-icon {
	color: var(--track-gray-400);
	flex-shrink: 0;
}

.ksq-shipment-history__location {
	font-weight: 500;
	color: var(--track-gray-700);
}

/* Activity/Description Column */
.ksq-shipment-history__activity {
	max-width: 400px;
	line-height: 1.5;
	color: var(--track-gray-600);
}

.ksq-shipment-history__row--current .ksq-shipment-history__activity {
	color: var(--track-gray-900);
	font-weight: 500;
}

/* Current Row Highlight */
.ksq-shipment-history__row--current {
	background: linear-gradient(90deg, rgba(255, 81, 0, 0.05) 0%, transparent 100%);
}

.ksq-shipment-history__row--current td:first-child {
	position: relative;
}

.ksq-shipment-history__row--current td:first-child::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--track-secondary);
}

/* Animated Row Entry */
.ksq-shipment-history__table tbody tr {
	animation: rowFadeIn 0.5s ease-out forwards;
	opacity: 0;
}

.ksq-shipment-history__table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.ksq-shipment-history__table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.ksq-shipment-history__table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.ksq-shipment-history__table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.ksq-shipment-history__table tbody tr:nth-child(5) { animation-delay: 0.3s; }
.ksq-shipment-history__table tbody tr:nth-child(6) { animation-delay: 0.35s; }
.ksq-shipment-history__table tbody tr:nth-child(7) { animation-delay: 0.4s; }
.ksq-shipment-history__table tbody tr:nth-child(8) { animation-delay: 0.45s; }
.ksq-shipment-history__table tbody tr:nth-child(9) { animation-delay: 0.5s; }
.ksq-shipment-history__table tbody tr:nth-child(10) { animation-delay: 0.55s; }

@keyframes rowFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Empty History State */
.ksq-shipment-history__empty {
	padding: 60px 32px;
	text-align: center;
	color: var(--track-gray-500);
}

.ksq-shipment-history__empty-icon {
	margin-bottom: 16px;
	color: var(--track-gray-300);
}

.ksq-shipment-history__empty-text {
	font-size: 15px;
}

/* ==========================================================================
   30/70 SPLIT LAYOUT
   ========================================================================== */

/* Split Layout Container */
.ksq-track-order__split-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 1024px) {
	.ksq-track-order__split-layout {
		display: grid;
		grid-template-columns: 30% 1fr;
		gap: 24px;
		align-items: stretch;
	}
}

/* LEFT COLUMN (30%) */
.ksq-track-order__left-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 1024px) {
	.ksq-track-order__left-column {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
	
	.ksq-track-order__left-column .ksq-track-order__order-block {
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	
	.ksq-track-order__left-column .ksq-track-order__order-block-items {
		flex: 1;
		max-height: none;
	}
}

/* RIGHT COLUMN (70%) */
.ksq-track-order__right-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 1024px) {
	.ksq-track-order__right-column {
		display: flex;
		flex-direction: column;
	}
	
	.ksq-track-order__right-column .ksq-shipment-history {
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	
	.ksq-track-order__right-column .ksq-shipment-history__table-wrap {
		flex: 1;
		max-height: none;
		overflow-y: auto;
	}
}

/* ==========================================================================
   Order Block (Left Column) - Personalized
   ========================================================================== */

.ksq-track-order__order-block {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 20px;
	box-shadow: var(--track-shadow);
}

/* Personalized Greeting */
.ksq-track-order__order-block-greeting {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
	border-radius: var(--track-radius-sm);
	margin-bottom: 16px;
}

.ksq-track-order__greeting-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--track-success);
	border-radius: 50%;
	color: var(--track-white);
	flex-shrink: 0;
}

.ksq-track-order__greeting-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ksq-track-order__greeting-hello {
	font-size: 15px;
	font-weight: 700;
	color: var(--track-gray-900);
}

.ksq-track-order__greeting-message {
	font-size: 12px;
	color: var(--track-gray-600);
}

.ksq-track-order__order-block-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--track-gray-100);
}

.ksq-track-order__order-block-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--track-gray-900);
	margin: 0 0 4px;
}

.ksq-track-order__order-block-date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--track-gray-500);
}

.ksq-track-order__order-block-date svg {
	color: var(--track-gray-400);
}

.ksq-track-order__order-block-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
	max-height: 150px;
	overflow-y: auto;
}

.ksq-track-order__order-block-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-top: 2px solid var(--track-gray-900);
	font-size: 14px;
	font-weight: 600;
	color: var(--track-gray-700);
}

.ksq-track-order__order-block-total-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--track-gray-900);
}

.ksq-track-order__order-block-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--track-gray-100);
}

.ksq-track-order__order-block-actions .ksq-track-order__action-btn {
	flex: 1 1 calc(50% - 4px);
	min-width: 0;
	padding: 10px 12px;
	font-size: 12px;
}

.ksq-track-order__order-block-actions .ksq-track-order__action-btn svg {
	width: 14px;
	height: 14px;
}

/* Item Row - Compact for left column */
.ksq-track-order__item-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: var(--track-gray-50);
	border-radius: var(--track-radius-sm);
}

.ksq-track-order__item-img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--track-white);
	border: 1px solid var(--track-gray-200);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksq-track-order__item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ksq-track-order__item-img svg {
	color: var(--track-gray-300);
}

.ksq-track-order__item-info {
	flex: 1;
	min-width: 0;
}

.ksq-track-order__item-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--track-gray-900);
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ksq-track-order__item-variant {
	font-size: 11px;
	color: var(--track-gray-500);
}

.ksq-track-order__item-qty {
	font-size: 12px;
	font-weight: 600;
	color: var(--track-gray-600);
	background: var(--track-white);
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid var(--track-gray-200);
}

/* ==========================================================================
   Timeline Card (Right Column)
   ========================================================================== */

.ksq-track-order__timeline-card {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 16px 20px;
	box-shadow: var(--track-shadow);
}

.ksq-track-order__timeline-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--track-gray-100);
}

.ksq-track-order__timeline-card-header svg {
	color: var(--track-secondary);
}

.ksq-track-order__timeline-card-header h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--track-gray-900);
	margin: 0;
}

/* Horizontal Timeline - Aramex Style */
.ksq-track-order__timeline--horizontal {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 0;
	position: relative;
	padding: 0 10px;
}

/* Single connection line behind all steps */
.ksq-track-order__timeline--horizontal::before {
	content: '';
	position: absolute;
	left: 5%;
	right: 5%;
	top: 18px;
	height: 3px;
	background: var(--track-gray-200);
	z-index: 0;
}

/* Green progress overlay - positioned based on current step */
.ksq-track-order__timeline--horizontal::after {
	content: '';
	position: absolute;
	left: 5%;
	top: 18px;
	height: 3px;
	background: var(--track-success);
	z-index: 0;
	/* Width is calculated as percentage of the line (90% of container) */
	width: calc(var(--progress-width, 0%) * 0.9);
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 0;
	position: relative;
	z-index: 1;
	min-width: 0;
}

/* Remove individual step connectors - we use container ::before/::after instead */
.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step::after {
	display: none !important;
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-icon {
	width: 36px;
	height: 36px;
	margin: 0 0 8px 0;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--track-gray-100);
	color: var(--track-gray-400);
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step--completed .ksq-track-order__timeline-icon {
	background: var(--track-success);
	color: var(--track-white);
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step--current .ksq-track-order__timeline-icon {
	background: var(--track-success);
	color: var(--track-white);
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25);
	animation: pulse-ring-green 2s ease-out infinite;
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-icon svg {
	width: 18px;
	height: 18px;
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-content {
	text-align: center;
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-label {
	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;
	display: block;
	max-width: 70px;
	margin: 0 auto;
	color: var(--track-gray-400);
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step--completed .ksq-track-order__timeline-label,
.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step--current .ksq-track-order__timeline-label {
	color: var(--track-success);
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-desc {
	display: none;
}

.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-timestamp {
	font-size: 8px;
	margin-top: 2px;
	display: block;
	color: var(--track-gray-400);
}

/* ==========================================================================
   Inline Navigation
   ========================================================================== */

.ksq-track-order__inline-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--track-gray-100);
	padding: 4px 10px;
	border-radius: var(--track-radius-full);
	flex: 1 1 100%;
	justify-content: center;
	margin-top: 4px;
}

.ksq-track-order__inline-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: 50%;
	cursor: pointer;
	transition: var(--track-transition);
	color: var(--track-gray-600);
}

.ksq-track-order__inline-nav-btn:hover:not(:disabled) {
	background: var(--track-secondary);
	border-color: var(--track-secondary);
	color: var(--track-white);
}

.ksq-track-order__inline-nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ksq-track-order__inline-nav-info {
	font-size: 12px;
	font-weight: 600;
	color: var(--track-gray-700);
	white-space: nowrap;
}

/* Carrier Info - Compact */
.ksq-carrier-info {
	padding: 20px;
}

.ksq-carrier-info__header {
	margin-bottom: 16px;
}

.ksq-carrier-info__badge {
	padding: 6px 12px;
	font-size: 12px;
}

.ksq-carrier-info__status-label {
	padding: 6px 14px;
	font-size: 11px;
}

.ksq-carrier-info__tracking {
	padding: 16px 0;
	margin-bottom: 16px;
}

.ksq-carrier-info__tracking-label {
	font-size: 10px;
	margin-bottom: 4px;
}

.ksq-carrier-info__tracking-number {
	font-size: 20px;
	letter-spacing: 1px;
}

.ksq-carrier-info__route {
	margin-bottom: 16px;
}

.ksq-carrier-info__location-label {
	font-size: 9px;
}

.ksq-carrier-info__location-value {
	font-size: 13px;
}

.ksq-carrier-info__route-animation {
	height: 40px;
}

.ksq-carrier-info__route-vehicle svg {
	width: 24px;
	height: 24px;
}

.ksq-carrier-info__details {
	padding-top: 12px;
	gap: 16px;
}

.ksq-carrier-info__detail-label {
	font-size: 9px;
}

.ksq-carrier-info__detail-value {
	font-size: 12px;
}

/* Carrier Info Adjustments for Side Layout */
@media (min-width: 1024px) {
	.ksq-carrier-info {
		margin-bottom: 0;
		padding: 16px;
	}
	
	.ksq-carrier-info__tracking-number {
		font-size: 18px;
	}
	
	.ksq-carrier-info__route {
		flex-direction: column;
		gap: 8px;
	}
	
	.ksq-carrier-info__location--origin,
	.ksq-carrier-info__location--destination {
		text-align: center;
	}
	
	.ksq-carrier-info__route-animation {
		width: 100%;
		height: 36px;
	}
	
	.ksq-carrier-info__details {
		flex-wrap: wrap;
		justify-content: space-between;
	}
	
	.ksq-carrier-info__detail {
		flex: 1;
		min-width: 70px;
		text-align: center;
	}
}

/* Timeline Card for Right Column - Compact */
.ksq-track-order__timeline-card {
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius);
	padding: 16px;
	box-shadow: var(--track-shadow);
}

.ksq-track-order__timeline-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--track-gray-100);
}

.ksq-track-order__timeline-header .ksq-track-order__timeline-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #FF5100 0%, #FF7A00 100%);
	border-radius: 50%;
	color: var(--track-white);
}

.ksq-track-order__timeline-header .ksq-track-order__timeline-header-icon svg {
	width: 18px;
	height: 18px;
}

.ksq-track-order__timeline-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--track-gray-900);
	margin: 0;
}

/* Shipment History - Compact */
.ksq-shipment-history__header {
	padding: 14px 20px;
}

.ksq-shipment-history__title {
	font-size: 15px;
	gap: 10px;
}

.ksq-shipment-history__title svg {
	width: 20px;
	height: 20px;
}

.ksq-shipment-history__count {
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	font-size: 11px;
}

.ksq-shipment-history__toggle {
	width: 32px;
	height: 32px;
}

.ksq-shipment-history__table th {
	padding: 10px 16px;
	font-size: 10px;
}

.ksq-shipment-history__table td {
	padding: 12px 16px;
}

.ksq-shipment-history__status-icon {
	width: 32px;
	height: 32px;
}

.ksq-shipment-history__status-icon svg {
	width: 16px;
	height: 16px;
}

.ksq-shipment-history__status-text {
	font-size: 13px;
}

.ksq-shipment-history__date {
	font-size: 13px;
}

.ksq-shipment-history__time {
	font-size: 11px;
}

.ksq-shipment-history__location {
	font-size: 12px;
}

.ksq-shipment-history__activity {
	font-size: 12px;
	max-width: 280px;
}

/* Shipment History Adjustments for Side Layout */
@media (min-width: 1024px) {
	.ksq-shipment-history {
		margin-bottom: 0;
	}
	
	.ksq-shipment-history__table th {
		padding: 8px 12px;
	}
	
	.ksq-shipment-history__table td {
		padding: 10px 12px;
	}
	
	.ksq-shipment-history__activity {
		max-width: 220px;
	}
}

/* ==========================================================================
   Order Actions
   ========================================================================== */

.ksq-track-order__order-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid var(--track-border);
	margin-top: 16px;
}

/* Actions Card - Compact */
.ksq-track-order__actions-card {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
	background: var(--track-gray-50);
	border-radius: var(--track-radius);
	margin-top: 16px;
}

@media (min-width: 1024px) {
	.ksq-track-order__actions-card {
		margin-top: 0;
		padding: 10px;
	}
}

.ksq-track-order__action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--track-white);
	border: 1px solid var(--track-border);
	border-radius: var(--track-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--track-gray-700);
	text-decoration: none;
	cursor: pointer;
	transition: var(--track-transition);
	white-space: nowrap;
}

.ksq-track-order__action-btn svg {
	width: 16px;
	height: 16px;
}

.ksq-track-order__action-btn:hover {
	border-color: var(--track-secondary);
	color: var(--track-secondary);
	background: #FFF5F0;
}

.ksq-track-order__action-btn--primary {
	background: var(--track-secondary);
	border-color: var(--track-secondary);
	color: var(--track-white);
}

.ksq-track-order__action-btn--primary:hover {
	background: var(--track-secondary-hover);
	border-color: var(--track-secondary-hover);
	color: var(--track-white);
}

/* Track Again Button - Highlight */
.ksq-track-order__track-again-btn {
	background: var(--track-gray-100);
	border-color: var(--track-gray-300);
}

.ksq-track-order__track-again-btn:hover {
	background: var(--track-gray-200);
	border-color: var(--track-gray-400);
	color: var(--track-gray-900);
}

/* ==========================================================================
   Order Card Wrapper
   ========================================================================== */

.ksq-track-order__order-card {
	animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* Order Status Badge */
.ksq-track-order__order-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--track-radius-full);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ksq-track-order__order-status--processing {
	background: #EFF6FF;
	color: #2563EB;
}

.ksq-track-order__order-status--on-hold {
	background: #FEF3C7;
	color: #D97706;
}

.ksq-track-order__order-status--completed {
	background: #DCFCE7;
	color: #16A34A;
}

.ksq-track-order__order-status--cancelled,
.ksq-track-order__order-status--failed {
	background: #FEE2E2;
	color: #DC2626;
}

.ksq-track-order__order-status--pending {
	background: var(--track-gray-100);
	color: var(--track-gray-600);
}

/* Sticky Left Column on Large Screens */
@media (min-width: 1024px) {
	.ksq-track-order__order-left {
		position: sticky;
		top: 100px;
	}
}

/* Timeline Horizontal on Desktop Right Column */
@media (min-width: 1024px) {
	.ksq-track-order__timeline-card .ksq-track-order__timeline {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		gap: 0;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-step {
		flex: 1;
		flex-direction: column;
		text-align: center;
		padding-bottom: 0;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-icon {
		margin-right: 0;
		margin-bottom: 8px;
		width: 28px;
		height: 28px;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-icon svg {
		width: 14px;
		height: 14px;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-content {
		text-align: center;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-label {
		font-size: 9px;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-desc {
		display: none;
	}
	
	.ksq-track-order__timeline-card .ksq-track-order__timeline-timestamp {
		font-size: 9px;
	}
}

.ksq-track-order__view-order {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--track-gray-600);
	text-decoration: none;
	transition: var(--track-transition);
}

.ksq-track-order__view-order:hover {
	color: var(--track-secondary);
}

.ksq-track-order__refresh-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--track-gray-100);
	border: none;
	border-radius: var(--track-radius-sm);
	font-size: 13px;
	font-weight: 500;
	color: var(--track-gray-700);
	cursor: pointer;
	transition: var(--track-transition);
}

.ksq-track-order__refresh-btn:hover {
	background: var(--track-gray-200);
}

.ksq-track-order__refresh-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.ksq-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	padding: 14px 24px;
	background: var(--track-gray-900);
	color: var(--track-white);
	border-radius: var(--track-radius-sm);
	font-size: 14px;
	font-weight: 500;
	box-shadow: var(--track-shadow-lg);
	z-index: 10000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.ksq-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ksq-toast--success {
	background: var(--track-success);
}

.ksq-toast--error {
	background: var(--track-error);
}

/* ==========================================================================
   Spinner Animation
   ========================================================================== */

.ksq-spinner {
	animation: ksq-spin 1s linear infinite;
}

@keyframes ksq-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Carrier Info Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.ksq-carrier-info {
		padding: 20px;
	}

	.ksq-carrier-info__header {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 8px;
	}

	.ksq-carrier-info__badge,
	.ksq-carrier-info__status {
		flex-shrink: 0;
	}

	.ksq-carrier-info__tracking-number {
		font-size: 20px;
		letter-spacing: 1px;
	}

	.ksq-carrier-info__route {
		flex-direction: column;
		gap: 12px;
	}

	.ksq-carrier-info__location--origin,
	.ksq-carrier-info__location--destination {
		text-align: center;
	}

	.ksq-carrier-info__route-animation {
		width: 100%;
		height: 80px;
	}

	.ksq-carrier-info__route-vehicle svg {
		width: 28px;
		height: 28px;
	}

	.ksq-carrier-info__details {
		justify-content: center;
	}

	.ksq-carrier-info__detail {
		text-align: center;
	}

	/* 30/70 Layout Mobile - Stack vertically */
	.ksq-track-order__split-layout {
		gap: 16px;
	}

	.ksq-track-order__left-column,
	.ksq-track-order__right-column {
		gap: 12px;
	}

	/* Carrier Info Mobile */
	.ksq-carrier-info {
		padding: 16px;
	}

	.ksq-carrier-info__tracking-number {
		font-size: 18px;
		letter-spacing: 1px;
	}

	.ksq-carrier-info__delivery-highlight {
		padding: 12px 16px;
	}

	.ksq-carrier-info__delivery-icon {
		width: 40px;
		height: 40px;
	}

	.ksq-carrier-info__delivery-date {
		font-size: 16px;
	}

	/* Order Block Mobile */
	.ksq-track-order__order-block {
		padding: 16px;
	}

	.ksq-track-order__order-block-title {
		font-size: 16px;
	}

	.ksq-track-order__order-block-total-value {
		font-size: 18px;
	}

	.ksq-track-order__order-block-actions .ksq-track-order__action-btn {
		flex: 1 1 100%;
	}

	/* Timeline Card Mobile */
	.ksq-track-order__timeline-card {
		padding: 16px;
	}

	/* Mobile Timeline - Vertical Layout */
	.ksq-track-order__timeline--horizontal {
		flex-direction: column;
		gap: 0;
		padding: 0;
	}

	/* Hide the horizontal background line on mobile */
	.ksq-track-order__timeline--horizontal::before,
	.ksq-track-order__timeline--horizontal::after {
		display: none !important;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		padding: 0 0 0 0;
		position: relative;
		min-height: auto;
	}

	/* Vertical connector line between steps */
	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step:not(:last-child)::after {
		content: '';
		display: block !important;
		position: absolute;
		left: 15px;
		top: 32px;
		width: 2px;
		height: calc(100% + 8px);
		background: var(--track-gray-200);
		z-index: 0;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step--completed:not(:last-child)::after {
		background: var(--track-success);
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step--current:not(:last-child)::after {
		background: var(--track-gray-200);
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-icon {
		margin: 0 12px 0 0;
		width: 32px;
		height: 32px;
		flex-shrink: 0;
		position: relative;
		z-index: 1;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-content {
		text-align: left;
		padding-top: 4px;
		padding-bottom: 20px;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-step:last-child .ksq-track-order__timeline-content {
		padding-bottom: 0;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-label {
		font-size: 12px;
		max-width: none;
		display: block;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-timestamp {
		font-size: 11px;
		display: block;
		margin-top: 2px;
	}

	.ksq-track-order__timeline--horizontal .ksq-track-order__timeline-desc {
		display: block;
		font-size: 11px;
		color: var(--track-gray-500);
		margin-top: 2px;
	}

	/* Greeting Mobile */
	.ksq-track-order__order-block-greeting {
		padding: 12px;
	}

	.ksq-track-order__greeting-avatar {
		width: 36px;
		height: 36px;
	}

	.ksq-track-order__greeting-hello {
		font-size: 14px;
	}

	/* Timeline Card Mobile */
	.ksq-track-order__timeline-card {
		padding: 16px;
	}

	.ksq-track-order__timeline-header {
		margin-bottom: 16px;
		padding-bottom: 12px;
	}

	.ksq-track-order__timeline-icon {
		width: 36px;
		height: 36px;
	}

	.ksq-track-order__timeline-title {
		font-size: 16px;
	}

	/* Shipment History Table - Mobile */
	.ksq-shipment-history__header {
		padding: 16px 20px;
		flex-direction: column;
		align-items: flex-start;
	}

	.ksq-shipment-history__title {
		font-size: 16px;
	}

	.ksq-shipment-history__live-btn {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 14px;
	}

	.ksq-shipment-history__notice {
		padding: 10px 16px;
		font-size: 12px;
	}

	/* Carrier Track Button Mobile */
	.ksq-carrier-info__track-btn {
		padding: 12px 16px;
		font-size: 13px;
	}

	.ksq-shipment-history__table th,
	.ksq-shipment-history__table td {
		padding: 12px 16px;
	}

	.ksq-shipment-history__table th:first-child,
	.ksq-shipment-history__table td:first-child {
		padding-left: 20px;
	}

	.ksq-shipment-history__table th:last-child,
	.ksq-shipment-history__table td:last-child {
		padding-right: 20px;
	}

	.ksq-shipment-history__status-icon {
		width: 32px;
		height: 32px;
	}

	.ksq-shipment-history__status-icon svg {
		width: 16px;
		height: 16px;
	}

	.ksq-shipment-history__activity {
		max-width: 200px;
		font-size: 13px;
	}

	/* Hide location column on mobile */
	.ksq-shipment-history__table th:nth-child(3),
	.ksq-shipment-history__table td:nth-child(3) {
		display: none;
	}

	/* Actions Card Mobile */
	.ksq-track-order__actions-card {
		padding: 16px;
	}

	.ksq-track-order__action-btn {
		flex: 1 1 100%;
	}

	/* Order Actions */
	.ksq-track-order__order-actions {
		flex-direction: column;
		gap: 12px;
	}

	.ksq-track-order__view-order,
	.ksq-track-order__refresh-btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.ksq-carrier-info__tracking-number {
		font-size: 16px;
	}

	.ksq-carrier-info__location-value {
		font-size: 14px;
	}

	/* Shipment History - Extra Small */
	.ksq-shipment-history__table th,
	.ksq-shipment-history__table td {
		padding: 10px 12px;
	}

	.ksq-shipment-history__status-cell {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.ksq-shipment-history__activity {
		max-width: 150px;
	}

	.ksq-toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}
}
