* { box-sizing: border-box; }
body { margin: 0; color: #2f404d; background: #fff; font: 16px/1.6 Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
.protection-message { max-width: 520px; margin: 12vh auto; padding: 24px; }
.protection-message h1 { font-size: 24px; }
.protection-message button { margin-top: 16px; padding: 10px 18px; border: 0; border-radius: 3px; background: #4579b2; color: #fff; }
.location-verification { padding: 10px; font-size: 13px; background: #f8f9fa; }
.tracking-loading { display: flex; justify-content: center; padding: 40px 0; }
.tracking-loading[hidden] { display: none; }
.tracking-spinner { width: 36px; height: 36px; border: 3px solid #e5e6e6; border-top-color: var(--brand, #4579b2); border-radius: 50%; animation: tracking-spin .8s linear infinite; }
@keyframes tracking-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tracking-spinner { animation: none; } }
:focus-visible { outline: 3px solid #4579b2; outline-offset: 3px; }
.brand-header { position: relative; z-index: 999; height: 70px; background: var(--header); box-shadow: 0 0 10px #0008; }
.brand-header > div { width: 43%; height: 100%; padding-top: 10px; text-align: center; }
.brand-header a { display: inline-block; }
.brand-header img { height: 50px; max-width: 100%; object-fit: contain; vertical-align: middle; }
.brand-header span { font-size: 22px; font-weight: 600; }
#map { position: absolute; inset: 0; }
.status { background: var(--brand); color: var(--brand-text); padding: 20px; text-align: center; }
.status h1 { font-size: 24px; font-weight: 700; line-height: inherit; text-transform: uppercase; margin: 0; }
.status p { margin: 0; font-weight: 600; }
#carrierInfoText h2 { font-size: 18px; font-weight: 600; margin: 0 0 6px; line-height: inherit; }
#carrierInfoText p { font-size: 14px; margin: 0; }
#carrierInfoText strong { font-weight: 600; }
.fi { width: 22px; margin-right: 8px; vertical-align: baseline; }
.text-button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.signature-button { margin-left: 20px; }
#signature-dialog { border: 0; border-radius: 6px; padding: 40px; max-width: 90vw; }
#signature-dialog::backdrop { background: #0006; }
#signature-dialog img { max-width: 100%; max-height: 75vh; display: block; }
.dialog-close { position: absolute; top: 4px; right: 12px; font-size: 28px; background: none; border: 0; }
.all-events { font-size: 14px; }
.all-events summary { list-style: none; text-align: right; margin: 12px 0 20px; font-weight: 400; }
.all-events summary::-webkit-details-marker { display: none; }
.all-events .hide-events, .all-events[open] .show-events { display: none; }
.all-events[open] .hide-events { display: inline; }
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th, td { border: 1px solid #eee; padding: 10px; vertical-align: top; }
.all-events table { border: 1px solid #eee; }
.all-events th, .all-events td { border-left: 0; border-right: 0; }
th { font-weight: 600; background: #f8f9fa; }
td:nth-child(3) { max-width: 400px; }
.banner { margin: 12px 0 24px; }
.banner img { display: block; width: 100%; }
.carrier-link, footer { text-align: center; font-size: 12px; }
footer { margin-top: 16px; }
.layout:not(.with-map) #trackingPane { position: relative; float: none; top: auto; width: 100%; max-width: 1000px; margin: auto; }
.layout:not(.has-shipment) #trackingPane { text-align: center; padding-top: 60px; }
.tracking-form { display: inline-block; padding: 20px; border-radius: 3px; background: #f8f8f8; }
.tracking-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.tracking-form > div { display: flex; align-items: center; gap: 15px; }
.tracking-form input { width: 300px; min-width: 0; padding: 10px; border: 0; border-radius: 3px; text-transform: uppercase; }
.tracking-form button { border: 0; border-radius: 3px; background: var(--brand); color: var(--brand-text); padding: 10px 18px; }
.error { margin: 30px auto; padding: 16px; max-width: 600px; background: #fff1ef; color: #8b241e; border-left: 4px solid #b42318; }
.demo { margin: 0 0 12px; font-size: 12px; color: #888; }
.map-label { font: 14px/1.5 Inter, sans-serif; }
.map-label strong { display: block; }
#mapPane { float: left;	position: absolute; top: 70px; width: 43%; bottom: 0;	}
	
	#trackingPane { float: right; position: absolute; top: 70px; right: 0; width: 57%; bottom: 0; padding: 30px 5%; overflow-y: auto; }
	
	#carrierInfo { display: table; background-color: #f8f9fa; margin-top: 40px; width: 100%; border-left: 1px solid #f0f1f1; border-right: 1px solid #f0f1f1; border-top: 1px solid #f0f1f1; }
	#carrierInfoLogo { display: table-cell; width: 20px; padding: 20px; vertical-align: top; }
	#carrierInfoLogo > img { border-radius: 4px; display: block; max-width: 120px; }
	#carrierInfoText { display: table-cell; vertical-align: middle; padding: 20px 20px 20px 0; }
	
	#trackingDetails { display: table; width: 100%; border-left: 1px solid #f0f1f1; border-right: 1px solid #f0f1f1; border-bottom: 1px solid #f0f1f1; font-size: 13px; }
	#trackingDetails > div { display: table-row; }
	#trackingDetails > div:first-child > div { padding-top: 16px; }
	#trackingDetails > div:last-child > div { padding-bottom: 16px; }
	#trackingDetails > div > div { display: table-cell; padding-top: 4px; padding-bottom: 4px; height: 20px; }
	#trackingDetails > div > div:first-child { padding-left: 20px; font-weight: 600; width: 160px; }
	
	#abbreviatedEvents { display: table; width: 100%; margin-top: 40px; border: 1px solid #f0f1f1; }
	#abbreviatedEvents > div { display: table-row; }
	#abbreviatedEvents > div > div { display: table-cell; padding: 10px; vertical-align: middle; font-size: 13px; }
	
	#abbreviatedEvents > div > div:nth-child(1) { text-align: right; }
	#abbreviatedEvents > div > div:nth-child(1) > div:not(:first-child) { color: #a0a1a1; }
	
	#abbreviatedEvents > div > div:nth-child(2) { text-align: center; position: relative; }
	
	#abbreviatedEvents > div > div:nth-child(3) { text-align: left; }
	#abbreviatedEvents > div > div:nth-child(3) > div:not(:first-child) { color: #a0a1a1; }
	
	.rightDate { display: none; }
	
	.trackRoundel { display: inline-block; border-radius: 50%; width: 34px; height: 34px; background-color: #909191; vertical-align: middle; }
	
	.trackRoundel.statusB { background-color: #b27F12;
		background-image: url(/images/tracking/booked.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusI { background-color: #dcdcdd;
		background-image: url(/images/tracking/info.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusT { background-color: #4570b2;
		background-image: url(/images/tracking/in-transit.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusE { background-color: #cc0000;
		background-image: url(/images/tracking/exception.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusO { background-color: #ffbd0a;
		background-image: url(/images/tracking/out-for-delivery.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusD { background-color: #007700;
		background-image: url(/images/tracking/delivered.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusL { background-color: #ff9409;
		background-image: url(/images/tracking/delayed.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusC { background-color: #909191;
		background-image: url(/images/tracking/collect.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusR { background-color: #880000;
		background-image: url(/images/tracking/returned.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusZ { background-color: #222222;
		background-image: url(/images/tracking/closed.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
	.trackRoundel.statusX { background-color: #555555;
		background-image: url(/images/tracking/expired.png?v=1);	background-position: center; background-repeat: no-repeat;
	}
			
	.lowerLine { position: absolute; left: 49%; width: 2px; background-color: #e5e6e6; height: 100%; }
	
	.trackingEventsDate { width: 10%; min-width: 135px; }
	.trackingEventsTime { width: 10%; min-width: 70px }
	
	#abbreviatedEvents .leftDate { white-space: nowrap; }
	
	@media screen and (max-width: 900px) {
		#mapPane { float: none; width: 100%; position: relative; top: auto; bottom: auto; height: 200px; }
		#trackingPane { float: none; width: 100%; position: relative; top: auto; bottom: auto; }
		#brandedHeader div { width: 100%; }
	}
	
	@media screen and (max-width: 600px) {
		#mapPane { display: none; }
		#abbreviatedEvents .leftDate { display: none; }
		.rightDate { display: block; }
		.trackingEventsDate { min-width: 80px; }
		.trackingEventsTime { min-width: 55px; }
	}
	
	@media screen and (max-width: 450px) {
		#carrierInfoLogo { display: none; }
		#carrierInfoText { padding-left: 20px; }
	}

@media (max-width: 900px) {
  .brand-header > div { width: 100%; }
  #map { position: absolute; inset: 0; }
}
@media (max-width: 600px) {
  #trackingPane { padding: 24px 5%; }
  #trackingDetails > div > div { overflow-wrap: anywhere; }
  #trackingDetails > div > div:first-child { width: 130px; padding-left: 15px; }
  .tracking-form { width: 100%; }
  .tracking-form > div { flex-direction: column; }
  .tracking-form input, .tracking-form button { width: 100%; }
}

/* The welcome page has its own layout; parcel results retain their original layout. */
.tracking-home { background: #f7f8f7; color: #202b31; }
.tracking-home .brand-header { height: 96px; box-shadow: none; border-bottom: 1px solid #202b3110; display: flex; align-items: center; justify-content: space-between; padding: 0 max(5%, calc((100% - 1160px) / 2)); gap: 24px; }
.tracking-home .brand-header > div { width: auto; height: auto; padding: 0; min-width: 0; }
.tracking-home .brand-header img { height: auto; max-height: 44px; max-width: min(380px, 100%); }
.tracking-home .home-header-label { font-size: 12px; letter-spacing: .04em; opacity: .65; white-space: nowrap; }
.tracking-home .layout #trackingPane { position: relative; float: none; inset: auto; width: 90%; max-width: 1160px; margin: 0 auto; padding: 72px 0 64px; text-align: left; overflow: visible; }
.home-hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 76px; }
.home-eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .16em; margin: 0 0 20px; color: #68746f; }
.home-intro h1 { font-size: clamp(38px, 4.3vw, 62px); font-weight: 600; line-height: 1.09; letter-spacing: -.055em; margin: 0 0 24px; }
.home-lead { color: #66716e; font-size: 17px; line-height: 1.75; max-width: 430px; margin: 0; }
.home-route { width: 100%; max-width: 365px; height: auto; margin: 28px 0 -10px; color: var(--brand); display: block; }
.home-track-card { background: #fff; border: 1px solid #e5e9e6; border-radius: 24px; padding: 36px; box-shadow: 0 16px 48px #203c2b08; }
.home-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #f0f3f1; color: #354b40; margin-bottom: 22px; }
.home-card-icon svg { width: 26px; height: 26px; }
.tracking-home .tracking-form { background: none; padding: 0; width: 100%; display: block; }
.tracking-home .tracking-form label { font-size: 24px; font-weight: 600; letter-spacing: -.04em; margin: 0; }
.home-form-intro { margin: 10px 0 24px; color: #69736f; font-size: 14px; line-height: 1.7; }
.tracking-home .tracking-form > div { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.tracking-home .tracking-form input { width: 100%; background: #fbfcfb; border: 1px solid #d9e0db; border-radius: 9px; padding: 16px; font-size: 14px; height: 56px; }
.tracking-home .tracking-form input::placeholder { text-transform: none; color: #88908b; }
.tracking-home .tracking-form button { width: 100%; min-height: 54px; border-radius: 9px; font-size: 14px; font-weight: 600; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; }
.tracking-home .tracking-form button:hover { filter: brightness(.94); }
.tracking-home .tracking-form button:disabled { opacity: .7; cursor: wait; }
.home-form-note { font-size: 11px; text-align: center; color: #858d88; margin: 20px 0 0; }
.home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid #dde3de; padding-top: 30px; margin-top: 54px; }
.home-feature-number { font-size: 11px; color: #7e8b82; font-weight: 500; }
.home-features h2 { font-size: 16px; font-weight: 600; margin: 10px 0 7px; letter-spacing: -.025em; }
.home-features p { font-size: 13px; line-height: 1.75; margin: 0; color: #6b7570; max-width: 280px; }
.home-help { border-top: 1px solid #dde3de; margin-top: 48px; padding-top: 42px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; }
.home-help .home-eyebrow { margin-bottom: 10px; }
.home-help h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.045em; font-weight: 600; }
.home-help > div > p:last-child { color: #6b7570; font-size: 14px; }
.home-questions details { border-bottom: 1px solid #dde3de; }
.home-questions summary { list-style: none; position: relative; padding: 17px 30px 17px 0; font-size: 14px; font-weight: 500; }
.home-questions summary::-webkit-details-marker { display: none; }
.home-questions summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 20px; color: #7d8981; font-weight: 400; }
.home-questions details[open] summary::after { content: '−'; }
.home-questions details p { font-size: 13px; color: #68736c; line-height: 1.8; margin: 0 24px 18px 0; }
.tracking-home .error { max-width: none; margin: 18px 0 0; font-size: 13px; border-radius: 4px; }
@media (max-width: 900px) {
  .home-hero { gap: 32px; }
  .home-track-card { padding: 28px; }
  .home-help { gap: 35px; }
}
@media (max-width: 650px) {
  .tracking-home .brand-header { height: 80px; }
  .tracking-home .brand-header img { max-height: 36px; }
  .home-header-label { display: none; }
  .tracking-home .layout #trackingPane { padding-top: 36px; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; }
  .home-intro h1 { font-size: 42px; }
  .home-lead { font-size: 15px; max-width: 100%; }
  .home-route { display: none; }
  .home-track-card { padding: 28px 24px; border-radius: 18px; }
  .home-features { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .home-features article { position: relative; padding-left: 40px; }
  .home-feature-number { position: absolute; left: 0; top: 4px; }
  .home-features h2 { margin-top: 0; }
  .home-features p { max-width: none; }
  .home-help { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; padding-top: 30px; }
}
