/* XCO Order Tracker styles */
:root { --xco-ot-accent: #0b5cab; }

.xco-ot-noscroll { overflow: hidden; }

/* Trigger buttons */
.xco-ot-btn {
	display: inline-block;
	background: var(--xco-ot-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s ease;
}
.xco-ot-btn:hover { filter: brightness( .92 ); }
.xco-ot-trigger--link {
	background: none;
	border: none;
	color: var(--xco-ot-accent);
	padding: 0;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* Floating button */
.xco-ot-float {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99998;
	background: var(--xco-ot-accent);
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 13px 22px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .25 );
	cursor: pointer;
}
.xco-ot-float:hover { filter: brightness( .92 ); }

/* Overlay + modal */
.xco-ot-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba( 15, 23, 42, .55 );
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 6vh 16px 16px;
	overflow-y: auto;
}
.xco-ot-overlay[hidden] { display: none; }

.xco-ot-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 460px;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, .3 );
	padding: 28px 26px 30px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1e293b;
	animation: xco-ot-pop .18s ease;
}
@keyframes xco-ot-pop {
	from { transform: translateY( 8px ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}

.xco-ot-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
}
.xco-ot-close:hover { color: #475569; }

.xco-ot-h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; color: #0f172a; }
.xco-ot-sub { margin: 0 0 18px; font-size: 14px; color: #64748b; }

/* Form */
.xco-ot-label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; color: #334155; }
.xco-ot-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 15px;
	color: #0f172a;
	background: #fff;
}
.xco-ot-input:focus {
	outline: none;
	border-color: var(--xco-ot-accent);
	box-shadow: 0 0 0 3px rgba( 11, 92, 171, .15 );
}
.xco-ot-submit { width: 100%; margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.xco-ot-submit[disabled] { opacity: .7; cursor: default; }

.xco-ot-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba( 255, 255, 255, .5 );
	border-top-color: #fff;
	border-radius: 50%;
	animation: xco-ot-spin .7s linear infinite;
}
@keyframes xco-ot-spin { to { transform: rotate( 360deg ); } }

.xco-ot-error {
	margin: 14px 0 0;
	padding: 10px 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 8px;
	font-size: 13.5px;
}

/* Result */
.xco-ot-back {
	background: none; border: none; padding: 0; margin: 0 0 14px;
	color: var(--xco-ot-accent); font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.xco-ot-result-head { margin-bottom: 6px; }
.xco-ot-job { margin: 0 0 10px; font-size: 14px; color: #64748b; }
.xco-ot-status-badge {
	display: inline-block;
	background: var(--xco-ot-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 5px 13px;
	border-radius: 20px;
	margin-bottom: 6px;
}
.xco-ot-meta { font-size: 13px; color: #64748b; margin: 6px 0 20px; }

/* Timeline */
.xco-ot-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.xco-ot-step {
	position: relative;
	padding: 0 0 22px 30px;
	display: flex;
	align-items: flex-start;
}
.xco-ot-step:last-child { padding-bottom: 0; }
/* connector line */
.xco-ot-step::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 18px;
	bottom: -4px;
	width: 2px;
	background: #e2e8f0;
}
.xco-ot-step:last-child::before { display: none; }

.xco-ot-dot {
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #cbd5e1;
	box-sizing: border-box;
	z-index: 1;
}
.xco-ot-step-body { display: flex; flex-direction: column; }
.xco-ot-step-label { font-size: 14.5px; color: #94a3b8; font-weight: 500; }
.xco-ot-step-date { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }

/* done */
.xco-ot-step--done .xco-ot-dot { background: var(--xco-ot-accent); border-color: var(--xco-ot-accent); }
.xco-ot-step--done::before { background: var(--xco-ot-accent); }
.xco-ot-step--done .xco-ot-step-label { color: #334155; }

/* current */
.xco-ot-step--current .xco-ot-dot {
	background: var(--xco-ot-accent);
	border-color: var(--xco-ot-accent);
	box-shadow: 0 0 0 4px rgba( 11, 92, 171, .18 );
}
.xco-ot-step--current .xco-ot-step-label { color: #0f172a; font-weight: 700; }

@media ( max-width: 480px ) {
	.xco-ot-modal { padding: 24px 18px 26px; border-radius: 14px; }
	.xco-ot-overlay { padding-top: 3vh; }
}
