/* CBX Picking Lite — «Preparación y entrega» para el cliente (Mi cuenta y /track-order/).
   Usa los tokens del tema Everiz (con valores por defecto). */
.cbxpl-fulfil, .cbxpl-track {
	--c-brand: var(--evz-brand, #00a6ef);
	--c-brand-dark: var(--evz-brand-dark, #0078c4);
	--c-brand-soft: var(--evz-brand-soft, #e5f5fe);
	--c-ink: var(--evz-ink, #0e1b22);
	--c-text: var(--evz-text, #2c3940);
	--c-muted: var(--evz-muted, #6a7780);
	--c-line: var(--evz-line, #e4eaed);
	--c-surface: var(--evz-surface, #fff);
	--c-alt: var(--evz-surface-alt, #f6f8fa);
	--c-ok: var(--evz-success, #1e9e4a);
	--c-ok-soft: var(--evz-success-soft, #e8f6ed);
	--c-warn: var(--evz-warn, #b26a00);
	--c-warn-soft: var(--evz-warn-bg, #fff4e5);
	--c-r: var(--evz-r-card, 12px);
	font-family: var(--evz-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--c-text);
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
}
.cbxpl-anchor { position: relative; top: -120px; }
.cbxpl-card {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--c-r);
	padding: 16px;
	box-shadow: var(--evz-sh-soft, 0 2px 8px rgba(0, 0, 0, .05));
}
.cbxpl-eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-muted);
}
.cbxpl-muted { margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.45; }
.cbxpl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--c-brand);
	border-radius: 999px;
	background: var(--c-brand);
	color: #fff !important;
	font: 700 14px/1 inherit;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--evz-fast, 150ms), background var(--evz-fast, 150ms);
}
.cbxpl-btn:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); }
.cbxpl-btn:active { transform: scale(.98); }
.cbxpl-btn--ghost { background: transparent; color: var(--c-brand-dark) !important; }
.cbxpl-btn--ghost:hover { background: var(--c-brand-soft); color: var(--c-brand-dark) !important; }

/* Titular y pasos */
.cbxpl-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cbxpl-hero__title { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--c-ink); }
.cbxpl-hero__sub { margin: 4px 0 0; font-size: 14px; color: var(--c-text); }
.cbxpl-hero--steps { padding-top: 14px; }
.cbxpl-hero--steps > .cbxpl-hero__sub { margin: 0 0 4px; color: var(--c-muted); font-size: 13.5px; }
.cbxpl-hero--steps .cbxpl-steps { margin-top: 6px; }
.cbxpl-fulfil--ready .cbxpl-hero__title, .cbxpl-fulfil--shipped .cbxpl-hero__title { color: var(--c-brand-dark); }
.cbxpl-fulfil--delivered .cbxpl-hero__title { color: var(--c-ok); }
.cbxpl-fulfil--payment .cbxpl-hero__title { color: var(--c-warn); }
.cbxpl-fulfil--cancelled .cbxpl-hero__title { color: var(--c-muted); }
.cbxpl-steps {
	--n: 5;
	--cbxpl-f: 0;
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.cbxpl-steps::before, .cbxpl-steps::after {
	content: "";
	position: absolute;
	top: 7px;
	left: calc(100% / var(--n) / 2);
	height: 3px;
	border-radius: 3px;
	background: var(--c-line);
	right: calc(100% / var(--n) / 2);
}
.cbxpl-steps::after {
	right: auto;
	width: calc((100% - 100% / var(--n)) * var(--cbxpl-f));
	background: var(--c-brand);
	animation: cbxpl-grow .9s var(--evz-ease, ease) both;
}
@keyframes cbxpl-grow { from { width: 0; } }
@keyframes cbxpl-grow-v { from { height: 0; } }
.cbxpl-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 2px; }
.cbxpl-step__dot {
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--c-surface);
	border: 3px solid var(--c-line);
	box-sizing: border-box;
}
.cbxpl-step.is-done .cbxpl-step__dot { background: var(--c-brand); border-color: var(--c-brand); }
.cbxpl-step.is-current .cbxpl-step__dot { border-color: var(--c-brand); box-shadow: 0 0 0 5px var(--c-brand-soft); animation: cbxpl-pulse 1.8s ease-in-out infinite; }
@keyframes cbxpl-pulse { 50% { box-shadow: 0 0 0 9px rgba(0, 166, 239, .12); } }
.cbxpl-step__label { font-size: 12px; font-weight: 700; color: var(--c-muted); line-height: 1.25; }
.cbxpl-step.is-done .cbxpl-step__label, .cbxpl-step.is-current .cbxpl-step__label { color: var(--c-ink); }
.cbxpl-step__at { font-size: 11px; color: var(--c-muted); }

/* Recogida */
.cbxpl-pickup { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; border-color: var(--c-brand); background: linear-gradient(180deg, var(--c-brand-soft), var(--c-surface) 65%); }
.cbxpl-pickup__qr { width: 148px; height: 148px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--c-line); box-sizing: border-box; }
.cbxpl-pickup__qr svg { width: 100%; height: 100%; display: block; }
.cbxpl-pickup__code { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: 30px; font-weight: 800; letter-spacing: .02em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cbxpl-pickup__code span { display: inline-grid; place-items: center; width: 1.25em; height: 1.55em; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.cbxpl-pickup__code i { width: 8px; }
.cbxpl-pickup__where { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.cbxpl-pickup__where a { color: var(--c-brand-dark); font-weight: 700; }
.cbxpl-note { font-size: 14px; background: var(--c-brand-soft); border-color: transparent; }

/* Envío */
.cbxpl-ship { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cbxpl-ship__tracking { margin: 0; font-size: 17px; font-weight: 800; color: var(--c-ink); letter-spacing: .03em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cbxpl-copy, .cbxpl-sn {
	border: 1px solid var(--c-line);
	background: var(--c-alt);
	color: var(--c-text);
	border-radius: 999px;
	padding: 3px 10px;
	font: 600 12px/1.4 inherit;
	cursor: pointer;
}
.cbxpl-copy.is-copied, .cbxpl-sn.is-copied { background: var(--c-ok-soft); border-color: var(--c-ok); color: var(--c-ok); }

/* Bultos y verificación */
.cbxpl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cbxpl-pkgs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.cbxpl-pkgs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--c-alt); }
.cbxpl-pkgs__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 12px; font-weight: 800; color: var(--c-ink); }
.cbxpl-pkgs__t { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--c-ink); overflow-wrap: anywhere; }
.cbxpl-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-brand-dark); white-space: nowrap; }
.cbxpl-chip.is-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.cbxpl-scan summary, .cbxpl-timeline summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.cbxpl-scan summary::-webkit-details-marker, .cbxpl-timeline summary::-webkit-details-marker { display: none; }
.cbxpl-scan__sum { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.cbxpl-bar { display: block; height: 6px; border-radius: 6px; background: var(--c-line); overflow: hidden; margin-top: 4px; }
.cbxpl-bar span { display: block; height: 100%; border-radius: 6px; background: var(--c-brand); animation: cbxpl-grow .9s var(--evz-ease, ease) both; }
.cbxpl-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cbxpl-items li { border-top: 1px solid var(--c-line); padding-top: 8px; }
.cbxpl-items__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.cbxpl-items__name { color: var(--c-ink); font-weight: 600; }
.cbxpl-items__qty { font-weight: 800; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.cbxpl-items__qty.is-ok { color: var(--c-ok); }
.cbxpl-items__sn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cbxpl-sn { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }

/* Historial */
.cbxpl-timeline ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.cbxpl-timeline li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--c-line); }
.cbxpl-timeline li:first-child { border-top: 0; }
.cbxpl-timeline__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-alt); color: var(--c-muted); }
.cbxpl-timeline li:first-child .cbxpl-timeline__icon { background: var(--c-brand-soft); color: var(--c-brand-dark); }
.cbxpl-timeline li.is-payment_rejected .cbxpl-timeline__icon, .cbxpl-timeline li.is-failed .cbxpl-timeline__icon { background: var(--c-warn-soft); color: var(--c-warn); }
.cbxpl-timeline li.is-picked_up .cbxpl-timeline__icon, .cbxpl-timeline li.is-delivered .cbxpl-timeline__icon { background: var(--c-ok-soft); color: var(--c-ok); }
.cbxpl-timeline__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--c-ink); }
.cbxpl-timeline time { font-size: 12px; color: var(--c-muted); white-space: nowrap; padding-top: 2px; }

/* /track-order/ */
.cbxpl-track { max-width: 860px; margin: 0 auto 32px; }
.cbxpl-track__form label { display: block; font-size: 18px; font-weight: 800; color: var(--c-ink); margin-bottom: 10px; }
.cbxpl-track__row { display: flex; gap: 8px; }
.cbxpl-track__row input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--evz-field, #d5dee3); border-radius: 999px; padding: 0 16px; font: 600 15px/1 inherit; }
.cbxpl-track__empty { color: var(--c-warn); background: var(--c-warn-soft); border-color: transparent; }
.cbxpl-track__more { text-align: center; margin: 0; }
.cbxpl-track__more a { color: var(--c-brand-dark); font-weight: 700; }

@media (max-width: 600px) {
	.cbxpl-card { padding: 14px; }
	.cbxpl-hero__title { font-size: 19px; }
	.cbxpl-steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 14px; padding-left: 4px; }
	.cbxpl-steps::before, .cbxpl-steps::after { top: 8px; bottom: 8px; left: 11px; right: auto; width: 3px; height: auto; }
	.cbxpl-steps::after { height: calc((100% - 16px) * var(--cbxpl-f)); bottom: auto; animation: cbxpl-grow-v .9s var(--evz-ease, ease) both; }
	.cbxpl-step { flex-direction: row; text-align: left; gap: 10px; flex-wrap: wrap; }
	.cbxpl-step__label { font-size: 13.5px; }
	.cbxpl-step__at { flex-basis: 100%; padding-left: 27px; margin-top: -6px; }
	.cbxpl-pickup { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.cbxpl-pickup__code { justify-content: center; font-size: 26px; }
	.cbxpl-timeline li { grid-template-columns: 30px 1fr; }
	.cbxpl-timeline time { grid-column: 2; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cbxpl-steps::after, .cbxpl-bar span, .cbxpl-step.is-current .cbxpl-step__dot { animation: none; }
}
