/* Pro result templates: Timeline (.cbwct-tl), Parcel pass (.cbwct-pp), Glance (.cbwct-gl).
   Fonts are inherited from the theme. Colours are custom properties on each root, so a theme can override them. */

.cbwct-pro,
.cbwct-pro *,
.cbwct-pro *::before,
.cbwct-pro *::after { box-sizing: border-box; }
.cbwct-pro { margin: 24px auto 0; text-align: left; font-size: 16px; line-height: 1.5; letter-spacing: normal; text-transform: none; }
.cbwct-pro p,
.cbwct-pro ol,
.cbwct-pro ul,
.cbwct-pro li,
.cbwct-pro dl,
.cbwct-pro dt,
.cbwct-pro dd { margin: 0; padding: 0; list-style: none; }
.cbwct-pro li::before,
.cbwct-pro li::marker { content: none; }
.cbwct-pro a { color: inherit; box-shadow: none; }
.cbwct-pro svg { display: block; }
.cbwct-pro .woocommerce-Price-amount { font: inherit; color: inherit; }
.cbwct-pro ins { text-decoration: none; background: none; }
.cbwct-pro del { opacity: .55; font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
	.cbwct-pro *,
	.cbwct-pro *::after { animation: none !important; transition: none !important; }
}

/* ───────── Timeline ───────── */
.cbwct-tl { --cbwct-accent: #0c8a5f; --cbwct-accent-soft: #e3f4ec; --cbwct-ink: #17201b; --cbwct-muted: #5f6b64; --cbwct-line: #e3e7e2; max-width: 940px; color: var(--cbwct-ink); background: #fff; border: 1px solid var(--cbwct-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(23, 32, 27, .04), 0 12px 32px rgba(23, 32, 27, .06); }
.cbwct-tl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 24px 28px; border-bottom: 1px solid var(--cbwct-line); }
.cbwct-tl .cbwct-tl-title { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.cbwct-tl .cbwct-tl-dates { font-size: 14px; color: var(--cbwct-muted); }
.cbwct-tl-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--cbwct-accent); background: var(--cbwct-accent-soft); padding: 7px 14px; border-radius: 999px; }
.cbwct-tl-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cbwct-tl.is-cancelled .cbwct-tl-pill { color: #b42318; background: #fde8e6; }
.cbwct-tl-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.cbwct-tl.is-single .cbwct-tl-body { grid-template-columns: 1fr; }
.cbwct-tl-col { padding: 26px 28px; min-width: 0; }
.cbwct-tl-col + .cbwct-tl-col { border-left: 1px solid var(--cbwct-line); }
.cbwct-tl .cbwct-tl-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cbwct-muted); margin-bottom: 16px; }
.cbwct-tl-steps { display: flex; flex-direction: column; }
.cbwct-tl .cbwct-tl-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; }
.cbwct-tl .cbwct-tl-step:last-child { padding-bottom: 0; }
.cbwct-tl .cbwct-tl-step::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--cbwct-line); }
.cbwct-tl .cbwct-tl-step:last-child::after { display: none; }
.cbwct-tl .cbwct-tl-step.is-done::after { background: var(--cbwct-accent); }
.cbwct-tl-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cbwct-line); background: #fff; display: grid; place-items: center; color: #fff; }
.cbwct-tl-dot svg { width: 14px; height: 14px; opacity: 0; }
.cbwct-tl-step.is-done .cbwct-tl-dot { background: var(--cbwct-accent); border-color: var(--cbwct-accent); }
.cbwct-tl-step.is-done .cbwct-tl-dot svg { opacity: 1; }
.cbwct-tl-step.is-current .cbwct-tl-dot { border-color: var(--cbwct-accent); box-shadow: 0 0 0 5px var(--cbwct-accent-soft); }
.cbwct-tl-step.is-current .cbwct-tl-dot svg { display: none; }
.cbwct-tl-step.is-current .cbwct-tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cbwct-accent); animation: cbwct-tl-pulse 1.8s ease-in-out infinite; }
@keyframes cbwct-tl-pulse { 50% { transform: scale(.6); opacity: .6; } }
.cbwct-tl .cbwct-tl-step-name { margin-top: 2px; font-size: 16px; font-weight: 600; }
.cbwct-tl .cbwct-tl-step-hint { font-size: 14px; color: var(--cbwct-muted); }
.cbwct-tl .is-todo .cbwct-tl-step-name,
.cbwct-tl .is-todo .cbwct-tl-step-hint { color: #8d9790; }
.cbwct-tl .is-current .cbwct-tl-step-name { color: var(--cbwct-accent); font-weight: 700; }
.cbwct-tl .cbwct-tl-alert { padding: 16px; border-radius: 12px; background: #fde8e6; color: #7a1a12; font-size: 15px; font-weight: 600; }
.cbwct-tl .cbwct-tl-items { display: flex; flex-direction: column; gap: 10px; }
.cbwct-tl .cbwct-tl-items li { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.cbwct-tl-items a { text-decoration: none; overflow-wrap: anywhere; }
.cbwct-tl-items a:hover { text-decoration: underline; }
.cbwct-tl-items span { color: var(--cbwct-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cbwct-tl .cbwct-tl-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.cbwct-tl .cbwct-tl-items + .cbwct-tl-facts { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--cbwct-line); }
.cbwct-tl-facts dt { color: var(--cbwct-muted); font-weight: 400; }
.cbwct-tl-facts dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.cbwct-tl .cbwct-tl-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-weight: 700; }
.cbwct-tl .cbwct-tl-label ~ .cbwct-tl-total:not(:nth-child(2)) { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cbwct-line); }
.cbwct-tl-total span:last-child { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
	.cbwct-tl-body { grid-template-columns: 1fr; }
	.cbwct-tl-col + .cbwct-tl-col { border-left: 0; border-top: 1px solid var(--cbwct-line); }
	.cbwct-tl-top,
	.cbwct-tl-col { padding: 20px; }
}

/* ───────── Parcel pass ───────── */
.cbwct-pp { --cbwct-ink: #0f1113; --cbwct-accent: #ffd60a; --cbwct-paper: #fbfbf8; --cbwct-line: #c9ccc7; --cbwct-muted: #5f6468; --cbwct-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; max-width: 860px; color: var(--cbwct-ink); background: var(--cbwct-paper); border-radius: 6px; box-shadow: 0 18px 40px rgba(15, 17, 19, .22); }
.cbwct-pp .cbwct-pp-cap { display: block; font-family: var(--cbwct-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--cbwct-muted); }
.cbwct-pp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; padding: 22px 26px; background: var(--cbwct-ink); color: #fff; border-radius: 6px 6px 0 0; }
.cbwct-pp-head .cbwct-pp-cap { color: #9aa0a6; }
.cbwct-pp-no { font-family: var(--cbwct-mono); font-size: 20px; font-weight: 500; }
.cbwct-pp .cbwct-pp-status { font-size: clamp(34px, 7vw, 56px); line-height: .95; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: var(--cbwct-accent); overflow-wrap: anywhere; }
.cbwct-pp.is-cancelled .cbwct-pp-status { color: #ff6b5e; }
.cbwct-pp-route { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 30px; }
.cbwct-pp-ends { display: flex; justify-content: space-between; gap: 16px; }
.cbwct-pp-ends div:last-child { text-align: right; }
.cbwct-pp-ends strong { font-size: 18px; font-weight: 700; }
.cbwct-pp-track { position: relative; height: 44px; }
.cbwct-pp-rail { position: absolute; left: 0; right: 0; top: 30px; height: 6px; background: repeating-linear-gradient(90deg, var(--cbwct-line) 0 8px, transparent 8px 14px); }
.cbwct-pp-fill { position: absolute; left: 0; top: 30px; height: 6px; width: var(--cbwct-pct, 0%); background: var(--cbwct-ink); }
.cbwct-pp-truck { position: absolute; top: 0; left: clamp(23px, var(--cbwct-pct, 0%), calc(100% - 23px)); transform: translateX(-50%); width: 46px; height: 28px; background: var(--cbwct-accent); border: 2px solid var(--cbwct-ink); border-radius: 4px; display: grid; place-items: center; animation: cbwct-pp-drive .7s ease-out; }
.cbwct-pp-truck svg { width: 22px; height: 22px; }
@keyframes cbwct-pp-drive { from { left: 23px; } }
.cbwct-pp .cbwct-pp-ticks { display: grid; grid-template-columns: repeat(6, 1fr); font-family: var(--cbwct-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cbwct-muted); }
.cbwct-pp .cbwct-pp-ticks li { text-align: center; padding-top: 6px; }
.cbwct-pp .cbwct-pp-ticks li:first-child { text-align: left; }
.cbwct-pp .cbwct-pp-ticks li:last-child { text-align: right; }
.cbwct-pp-ticks .is-done { color: var(--cbwct-ink); }
.cbwct-pp-ticks .is-current { color: var(--cbwct-ink); font-weight: 700; }
.cbwct-pp-ticks .is-current span { background: var(--cbwct-accent); padding: 2px 6px; }
.cbwct-pp .cbwct-pp-stamp { margin: 6px auto 0; width: fit-content; border: 4px solid #d92d20; color: #d92d20; font-weight: 800; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 20px; transform: rotate(-4deg); border-radius: 4px; }
.cbwct-pp .cbwct-pp-stamp-note { text-align: center; font-size: 14px; color: var(--cbwct-muted); margin-top: 14px; }
/* Flex, so a last row with fewer cells still fills the label's width. */
.cbwct-pp-grid { display: flex; flex-wrap: wrap; border-top: 2px dashed var(--cbwct-line); }
.cbwct-pp-cell { flex: 1 1 33.33%; padding: 16px 26px; border-bottom: 1px solid var(--cbwct-line); box-shadow: 1px 0 0 var(--cbwct-line); min-width: 0; }
.cbwct-pp-cell.is-wide { flex-basis: 100%; }
.cbwct-pp-cell .cbwct-pp-cap { margin-bottom: 4px; }
.cbwct-pp-cell b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cbwct-pp-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px dotted var(--cbwct-line); font-size: 14px; }
.cbwct-pp-row.is-head { padding-top: 0; border-top: 0; }
.cbwct-pp-row a { overflow-wrap: anywhere; }
.cbwct-pp-row > span:last-child { font-family: var(--cbwct-mono); white-space: nowrap; }
.cbwct-pp { overflow: hidden; }
.cbwct-pp-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 26px 24px; }
.cbwct-pp-barcode { display: flex; flex-direction: column; gap: 6px; font-family: var(--cbwct-mono); font-size: 11px; letter-spacing: .3em; }
.cbwct-pp-barcode i { display: block; width: 210px; max-width: 100%; height: 44px; background: repeating-linear-gradient(90deg, var(--cbwct-ink) 0 2px, transparent 2px 5px, var(--cbwct-ink) 5px 9px, transparent 9px 11px, var(--cbwct-ink) 11px 12px, transparent 12px 16px); }
.cbwct-pp-sum { margin-left: auto; text-align: right; }
.cbwct-pp-sum strong { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
	.cbwct-pp-cell { flex-basis: 50%; }
	.cbwct-pp-head,
	.cbwct-pp-route,
	.cbwct-pp-cell,
	.cbwct-pp-bottom { padding-left: 18px; padding-right: 18px; }
	/* Six labels do not fit a phone: only the step the order has reached is named, right under the truck.
	   The shift by the same percentage keeps the label inside the card at both ends of the track. */
	.cbwct-pp .cbwct-pp-ticks { display: block; position: relative; height: 26px; font-size: 11px; letter-spacing: .04em; }
	.cbwct-pp .cbwct-pp-ticks li { display: none; }
	.cbwct-pp .cbwct-pp-ticks li.is-current { display: block; position: absolute; top: 0; left: var(--cbwct-pct, 0%); transform: translateX(calc(-1 * var(--cbwct-pct, 0%))); white-space: nowrap; text-align: left; }
	.cbwct-pp-ends strong { font-size: 15px; }
}

/* ───────── Glance ───────── */
.cbwct-gl { --cbwct-ink: #101828; --cbwct-muted: #5d6779; --cbwct-accent: #0e7c86; --cbwct-accent-soft: #dff3f4; --cbwct-warm: #d9502b; --cbwct-stage: #eef1f6; max-width: 980px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding: 14px; color: var(--cbwct-ink); background: var(--cbwct-stage); border-radius: 30px; }
.cbwct-gl-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; background: #fff; border-radius: 22px; }
.cbwct-gl .cbwct-gl-cap { font-size: 12px; font-weight: 600; color: var(--cbwct-muted); letter-spacing: .02em; }
.cbwct-gl-hero { grid-column: span 4; flex-direction: row; align-items: center; gap: 24px; padding: 26px; background: var(--cbwct-ink); color: #fff; }
.cbwct-gl.no-total .cbwct-gl-hero { grid-column: 1 / -1; }
.cbwct-gl-ring { position: relative; flex: 0 0 132px; width: 132px; height: 132px; }
.cbwct-gl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cbwct-gl-ring circle { fill: none; stroke-width: 10; }
.cbwct-gl-ring-bg { stroke: rgba(255, 255, 255, .14); }
.cbwct-gl-ring-fg { stroke: #4fd1c5; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--cbwct-p, 0)); animation: cbwct-gl-fill .8s ease-out; }
@keyframes cbwct-gl-fill { from { stroke-dashoffset: 327; } }
.cbwct-gl.is-cancelled .cbwct-gl-ring-fg { stroke: #ff7a66; stroke-dashoffset: 0; }
.cbwct-gl-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cbwct-gl-hero-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cbwct-gl-hero-text > span { font-size: 13px; color: #a8b3c7; }
.cbwct-gl .cbwct-gl-status { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
.cbwct-gl .cbwct-gl-hint { font-size: 14.5px; color: #cdd5e3; }
.cbwct-gl-side { grid-column: span 2; justify-content: space-between; background: var(--cbwct-accent-soft); }
.cbwct-gl-side strong { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cbwct-gl .cbwct-gl-side p { font-size: 14px; color: #33565a; }
.cbwct-gl-chips { grid-column: 1 / -1; padding: 16px 22px; }
.cbwct-gl .cbwct-gl-chips ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cbwct-gl .cbwct-gl-chips li { font-size: 13px; font-weight: 600; text-align: center; padding: 10px 6px; border-radius: 12px; background: #f2f4f7; color: #6b7585; }
.cbwct-gl .cbwct-gl-chips li.is-done { background: var(--cbwct-accent-soft); color: var(--cbwct-accent); }
.cbwct-gl .cbwct-gl-chips li.is-current { background: var(--cbwct-accent); color: #fff; }
.cbwct-gl-goods { grid-column: span 3; }
.cbwct-gl .cbwct-gl-goods ul { display: flex; flex-direction: column; gap: 12px; }
.cbwct-gl .cbwct-gl-goods li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.cbwct-gl-thumb { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--cbwct-warm); }
.cbwct-gl-goods li:nth-child(3n+2) .cbwct-gl-thumb { background: var(--cbwct-accent); }
.cbwct-gl-goods li:nth-child(3n) .cbwct-gl-thumb { background: #6a4ae4; }
.cbwct-gl-goods a { flex: 1; min-width: 0; text-decoration: none; overflow-wrap: anywhere; }
.cbwct-gl-goods a:hover { text-decoration: underline; }
.cbwct-gl-goods em { font-style: normal; color: var(--cbwct-muted); white-space: nowrap; }
.cbwct-gl-info { grid-column: span 3; }
.cbwct-gl.no-products .cbwct-gl-info { grid-column: 1 / -1; }
.cbwct-gl .cbwct-gl-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 14px; }
.cbwct-gl-info dt { font-size: 12px; font-weight: 400; color: var(--cbwct-muted); }
.cbwct-gl-info dd { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cbwct-gl-note { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 16px 22px; font-size: 14.5px; }
.cbwct-gl-note svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--cbwct-warm); }
@media (max-width: 760px) {
	.cbwct-gl-hero,
	.cbwct-gl-side,
	.cbwct-gl-goods,
	.cbwct-gl-info { grid-column: 1 / -1; }
	.cbwct-gl .cbwct-gl-chips ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cbwct-gl .cbwct-gl-chips li { font-size: 12px; padding: 10px 2px; }
}
@media (max-width: 460px) {
	.cbwct-gl-hero { flex-direction: column; align-items: flex-start; }
}

.cbwct-pro .cbwct-status-link { color: inherit; text-decoration: underline; font-weight: 700; }
