/* Sledovani objednavky v2 (app/templates/Tracking). Bez zavislosti, svetly i tmavy rezim. */

:root {
	--bg: #f4f5f7;
	--surface: #ffffff;
	--text: #16181d;
	--muted: #5d6370;
	--border: #e3e5ea;
	--accent: #1f5bd8;
	--accent-text: #ffffff;
	--accent-ink: #1f5bd8;
	--accent-soft: #e8effc;
	--ok: #17803d;
	--ok-soft: #e5f4ea;
	--warn: #9a5b00;
	--warn-soft: #fdf1dc;
	--danger: #c0262d;
	--danger-soft: #fce9ea;
	--upcoming: #c9cdd5;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	--ill-paper: #ffffff;
	--ill-ink: #2a3140;
	--ill-line: #cdd2db;
	--ill-ground: #e2e5eb;
	--ill-box: #e0ab70;
	--ill-box-side: #c4884b;
	--ill-box-top: #ecc28e;
	--ill-tape: #f6dcb4;
	--ill-on-color: #ffffff;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* tmavy motiv: podle systemu (pokud navstevnik nezvolil svetly) nebo explicitni volba prepinacem */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f1115;
		--surface: #181b21;
		--text: #eceef2;
		--muted: #9aa1ad;
		--border: #2a2e37;
		--accent: #6d9bff;
		--accent-text: #0b1020;
		--accent-ink: #6d9bff;
		--accent-soft: #1b2740;
		--ok: #5cc98a;
		--ok-soft: #15281d;
		--warn: #f0b660;
		--warn-soft: #2d2313;
		--danger: #ff7a80;
		--danger-soft: #331819;
		--upcoming: #3a3f4a;
		--shadow: none;
		--ill-paper: #262b35;
		--ill-ink: #c5ccd8;
		--ill-line: #48505f;
		--ill-ground: #1d2129;
		--ill-box: #c99561;
		--ill-box-side: #a1703e;
		--ill-box-top: #dcab77;
		--ill-tape: #ebd1a9;
		--ill-on-color: #10131a;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0f1115;
	--surface: #181b21;
	--text: #eceef2;
	--muted: #9aa1ad;
	--border: #2a2e37;
	--accent: #6d9bff;
	--accent-text: #0b1020;
	--accent-ink: #6d9bff;
	--accent-soft: #1b2740;
	--ok: #5cc98a;
	--ok-soft: #15281d;
	--warn: #f0b660;
	--warn-soft: #2d2313;
	--danger: #ff7a80;
	--danger-soft: #331819;
	--upcoming: #3a3f4a;
	--shadow: none;
	--ill-paper: #262b35;
	--ill-ink: #c5ccd8;
	--ill-line: #48505f;
	--ill-ground: #1d2129;
	--ill-box: #c99561;
	--ill-box-side: #a1703e;
	--ill-box-top: #dcab77;
	--ill-tape: #ebd1a9;
	--ill-on-color: #10131a;
	color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
address { font-style: normal; }
h1, h2, p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.muted { color: var(--muted); font-size: 14px; }

/* stranka bez hlavicky: logo e-shopu je v karte se stavem */
.page { padding-top: 24px; }
@media (max-width: 600px) { .page { padding-top: 12px; } }

.theme-toggle {
	display: grid; place-items: center; flex: none;
	width: 40px; height: 40px; border-radius: 10px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
/* ikona ukazuje, kam se prepne: v tmavem slunce, ve svetlem mesic */
.theme-toggle__sun { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

/* karty */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	margin-bottom: 16px;
}
.card__title { font-size: 18px; font-weight: 650; margin-bottom: 12px; }
@media (max-width: 600px) { .card { padding: 20px 16px; } }

/* obsah pod stavem: detail + dotaz vlevo, adresy vpravo */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 16px; align-items: start; }
@media (max-width: 880px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* stav */
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.hero {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "top top" "main art";
	gap: 0 40px; align-items: center; padding: 0 32px 28px;
	border-top: 4px solid var(--accent); /* pruh v barve znacky */
}
.hero__top {
	grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 -32px 24px; padding: 18px 32px; border-bottom: 1px solid var(--border);
}
.hero__main { grid-area: main; min-width: 0; }
.hero__art { grid-area: art; }
.hero__brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; color: var(--text); }
.hero__logo { display: block; width: auto; height: 32px; max-width: min(280px, 60vw); object-fit: contain; object-position: left center; }
.hero__shopname { font-size: 22px; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.hero__headline { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__headline .hero__number { margin-bottom: 0; }
.hero__cta { flex: none; }
.btn--lg { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
@media (max-width: 600px) { .hero__cta { width: 100%; } }
.hero__number {
	font-size: clamp(28px, 5vw, 40px); line-height: 1.1; font-weight: 750; letter-spacing: -.01em;
	font-variant-numeric: tabular-nums; margin: 2px 0 24px; overflow-wrap: anywhere;
}
/* loga jsou kreslena na bilou; v tmavem motivu dostanou svetly podklad */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .hero__logo { box-sizing: content-box; background: #fff; padding: 6px 10px; border-radius: 10px; }
}
:root[data-theme="dark"] .hero__logo { box-sizing: content-box; background: #fff; padding: 6px 10px; border-radius: 10px; }
@media (max-width: 880px) {
	.hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "art" "main"; padding: 0 24px 24px; }
	.hero__top { margin: 0 -24px 16px; padding: 16px 24px; }
	.hero__art { width: 100%; max-width: 220px; margin: 0 auto 8px; }
}
@media (max-width: 600px) {
	.hero { padding: 0 16px 20px; }
	.hero__top { margin: 0 -16px 12px; padding: 14px 16px; }
	.hero__logo { height: 28px; }
	.hero__art { max-width: 160px; }
}
/* vyhledani objednavky (search.latte): stejna karta jako stav objednavky, misto cisla formular */
.search { max-width: 880px; margin: 6vh auto 0; }
@media (max-width: 600px) { .search { margin-top: 0; } }
.search .hero__main { padding: 8px 0; }
.search__form { display: grid; gap: 16px; margin-top: 24px; }
.search__form .notice { margin: 0; }
.search__field { display: grid; gap: 6px; }
.search__field .label { margin-bottom: 0; }
.search__optional { color: var(--muted); font-weight: 400; }
.search__hint { color: var(--muted); font-size: 13px; }
.search__error { color: var(--danger); font-size: 13px; font-weight: 500; }
.input--lg { min-height: 52px; font-size: 17px; border-radius: 12px; }
.input--lg:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
#frm-searchForm-number { text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
#frm-searchForm-number::placeholder { text-transform: none; letter-spacing: normal; }
.search__submit { justify-self: start; }
@media (max-width: 600px) { .search__submit { justify-self: stretch; } }
.hero__status { font-size: clamp(24px, 5vw, 30px); line-height: 1.2; font-weight: 700; margin: 4px 0 6px; text-wrap: balance; }
.hero--storno { border-top-color: var(--danger); }
.hero__storno { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 12px 14px; font-weight: 600; }

/* prubeh objednavky - spolecne */
.progress { list-style: none; margin: 0; padding: 0; }
.progress__step { position: relative; }
.progress__dot {
	display: grid; place-items: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--surface); border: 2px solid var(--upcoming);
	color: var(--accent-text); position: relative; z-index: 1; flex: none;
}
.is-done .progress__dot { background: var(--accent); border-color: var(--accent); }
.is-current .progress__dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.is-current .progress__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.progress__label { display: block; font-size: 14px; font-weight: 600; }
.is-upcoming .progress__label { color: var(--muted); font-weight: 500; }
.progress__time { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* vodorovny ukazatel prubehu */
.progress--horizontal { display: flex; }
.progress--horizontal .progress__step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.progress--horizontal .progress__step + .progress__step::before {
	content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--upcoming);
}
.progress--horizontal .is-done + .progress__step::before { background: var(--accent); }
.progress--horizontal .progress__text { margin-top: 10px; }
@media (max-width: 600px) {
	/* na mobilu jen tecky; popisek ma aktualni krok (je i v nadpisu) */
	.progress--horizontal .progress__text { display: none; }
	.progress--horizontal .is-current .progress__text { display: block; position: absolute; top: 28px; white-space: nowrap; }
	.progress--horizontal .is-current:first-child .progress__text { left: 0; text-align: left; }
	.progress--horizontal .is-current:last-child .progress__text { right: 0; text-align: right; }
	.progress--horizontal { padding-bottom: 44px; }
}

/* polozky */
.items { list-style: none; margin: 0; padding: 0; }
.items__head {
	display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 4px;
	border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .04em;
}
.items__row {
	display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
	padding: 12px 0; border-top: 1px solid var(--border);
}
.items__row:first-child { border-top: 0; }
.items__row--extra { padding: 8px 0; color: var(--muted); font-size: 14px; }
.items__name { font-weight: 500; overflow-wrap: anywhere; }
.items__row--extra .items__name { font-weight: 400; grid-column: 2 / -1; }
.items__row--extra.items__row--shipping { color: var(--text); }
.items__row--shipping .items__name { grid-column: 2; display: grid; gap: 2px; }
.items__carrier { font-weight: 600; font-size: 14px; }
.items__point { color: var(--muted); font-size: 13px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.items__change { justify-self: end; }
.items__media { position: relative; display: grid; place-items: center; }
/* nahled produktu (zatim zastupny obrazek) */
.items__thumb {
	width: 56px; height: 56px; border-radius: 10px;
	background: var(--bg); border: 1px solid var(--border); color: var(--upcoming);
}
.items__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.items__thumb svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* pocet kusu a kolik z nich je skladem (jako v1) */
.items__qty { display: grid; justify-items: end; gap: 4px; text-align: right; white-space: nowrap; }
.items__qty strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.stock {
	display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--ok { background: var(--ok-soft); color: var(--ok); }
.stock--partial { background: var(--warn-soft); color: var(--warn); }
/* ikony dopravy, dobirky, poplatku a baleni */
.items__icon { justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.items__icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.items__icon--cod { background: var(--ok-soft); color: var(--ok); }
.items__icon--fee, .items__icon--other { background: var(--bg); color: var(--muted); }
.items__icon--packaging { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 600px) {
	/* pocet kusu a dostupnost pod nazev */
	.items__row { grid-template-columns: 56px minmax(0, 1fr); }
	.items__qty { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
	.items__head span:last-child { display: none; }
}

.summary { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary__total { font-size: 18px; font-weight: 700; padding-top: 8px !important; }
.summary__total dt { color: var(--text); }
.contact-lines { margin-top: 10px; overflow-wrap: anywhere; }
.layout__side .card { margin-bottom: 16px; }

/* fakturacni adresa pod dorucovaci (vzdy, mensim pismem) */
.billing { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.billing__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.billing__same {
	display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 5px; border-radius: 999px;
	background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600;
}
.billing__same svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.billing address { color: var(--muted); line-height: 1.5; }
.billing__ids { margin-top: 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* tlacitka */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.actions--end { justify-content: flex-end; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 10px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text);
	font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:focus-visible, .input:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn--primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger-ghost { color: var(--danger); }
.btn--danger-ghost:hover { background: var(--danger-soft); border-color: var(--danger); }

/* formulare */
.input {
	width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
	border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
textarea.input { resize: vertical; min-height: 110px; }
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; width: 100%; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.inline-form .input { flex: 1 1 220px; width: auto; }
.inline-form .notice { width: 100%; margin: 0; }

.notice { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 500; }
.notice--success { background: var(--ok-soft); color: var(--ok); }
.notice--error { background: var(--danger-soft); color: var(--danger); }




.footer { padding-top: 8px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.footer a { color: inherit; }
.footer__powered { margin-top: 6px; opacity: .7; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ilustrace stavu (app/templates/Tracking/illustrations) */
.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill-blob { fill: var(--accent-soft); }
.ill-ground { fill: var(--ill-ground); }
.ill-paper { fill: var(--ill-paper); }
.ill-ink { fill: var(--ill-ink); }
.ill-line { fill: var(--ill-line); }
.ill-accent { fill: var(--accent); }
.ill-ok { fill: var(--ok); }
.ill-danger { fill: var(--danger); }
.ill-box { fill: var(--ill-box); }
.ill-box-side { fill: var(--ill-box-side); }
.ill-box-top { fill: var(--ill-box-top); }
.ill-tape { fill: var(--ill-tape); }
.ill-glass { fill: var(--accent-soft); }
.ill-pin { fill: var(--accent); stroke: var(--ill-paper); stroke-width: 3; }
.ill-stroke { stroke: var(--ill-ink); stroke-width: 3; }
.ill-stroke-accent { stroke: var(--accent); stroke-width: 4; }
.ill-round { stroke: var(--accent); stroke-width: 6; stroke-linejoin: round; }
.ill-soft { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.ill-teeth { fill: none; stroke: var(--accent); }
.ill-teeth--ink { stroke: var(--ill-ink); }
.ill-awning { fill: none; stroke: var(--ill-ink); stroke-width: 3; }
.ill-tick, .ill-hand, .ill-motion, .ill-handle, .ill-check { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill-tick { stroke: var(--accent); stroke-width: 2.5; }
.ill-hand { stroke: var(--ill-ink); stroke-width: 3.5; }
.ill-motion { stroke: var(--ill-line); stroke-width: 5; }
.ill-handle { stroke: var(--ill-ink); stroke-width: 5; }
.ill-check { stroke: var(--ill-on-color); stroke-width: 4.5; }

/* jemny pohyb: ozubena kola se toci, dodavka poskakuje, predmety se vznaseji */
.ill-spin { transform-box: fill-box; transform-origin: center; animation: ill-spin 8s linear infinite; }
.ill-spin--rev { animation-direction: reverse; animation-duration: 5.5s; }
.ill-bob { animation: ill-bob .9s ease-in-out infinite alternate; }
.ill-float { animation: ill-float 3s ease-in-out infinite alternate; }
@keyframes ill-spin { to { transform: rotate(360deg); } }
@keyframes ill-bob { to { transform: translateY(-2.5px); } }
@keyframes ill-float { to { transform: translateY(-5px); } }

/* akcni rozcestnik: plovouci tlacitko + panel ve stylu chatu (app/templates/Tracking/default.latte, blok hub) */
.footer { padding-bottom: 112px; } /* misto pro plovouci tlacitko */
.hub-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hub__fab {
	position: fixed; right: 24px; bottom: 24px; z-index: 60;
	display: inline-flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
	background: var(--accent); color: var(--accent-text);
	font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
	box-shadow: 0 10px 28px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .12);
	transition: transform .15s, filter .15s;
}
.hub__fab:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hub__fab:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.hub__fab-open, .hub__fab-close { display: inline-flex; }
.hub__fab-close, .hub.is-open .hub__fab-open { display: none; }
.hub.is-open .hub__fab-close { display: inline-flex; }

.hub__panel {
	position: fixed; right: 24px; bottom: 96px; z-index: 61;
	width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 128px));
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: 20px;
	box-shadow: 0 24px 56px rgba(16, 24, 40, .24);
	animation: hub-in .18s ease-out;
}
.hub__panel[hidden] { display: none; }
@keyframes hub-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.hub__header {
	display: flex; align-items: center; gap: 12px; flex: none;
	padding: 16px 12px 16px 18px; background: var(--accent); color: var(--accent-text);
}
.hub__avatar {
	width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center; background: #fff; color: #16181d; font-weight: 700;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.hub__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hub__heading { min-width: 0; flex: 1; }
.hub__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.hub__subtitle { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub__close {
	width: 38px; height: 38px; flex: none; display: grid; place-items: center;
	border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer;
}
.hub__close:hover { background: rgba(255, 255, 255, .16); }

.hub__body { padding: 18px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.hub__bubble {
	display: inline-block; max-width: 90%; margin-bottom: 14px; padding: 10px 14px;
	border-radius: 4px 16px 16px 16px; background: var(--bg); font-size: 14px;
}
.hub__bubble--ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }

.hub__actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hub__action {
	width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
	padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px;
	background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.hub__action:hover { border-color: var(--accent); }
.hub__action:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.hub__action strong { display: block; font-size: 15px; font-weight: 600; }
.hub__action small { display: block; font-size: 13px; color: var(--muted); }
.hub__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.hub__arrow { display: grid; place-items: center; color: var(--muted); }
.hub__arrow .hub-icon { width: 18px; height: 18px; }
.hub__action--danger strong { color: var(--danger); }
.hub__action--danger .hub__ico { background: var(--danger-soft); color: var(--danger); }
.hub__action--danger:hover { border-color: var(--danger); }

.hub__back {
	display: flex; width: fit-content; align-items: center; gap: 2px; margin: -4px 0 12px -6px; padding: 4px 8px 4px 2px;
	border: 0; border-radius: 8px; background: none; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.hub__back .hub-icon { width: 18px; height: 18px; }
.hub__composer { display: grid; gap: 10px; }
.hub__composer .btn { justify-self: end; }
.hub__confirm { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hub__backdrop { display: none; }
.hub__recaptcha { margin-top: 14px; display: flex; justify-content: flex-end; }
.hub__recaptcha:empty { display: none; }
.hub__bubble--error { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.hub__bubble[hidden], .hub__confirm [hidden] { display: none; }

/* zmena vydejniho mista: aktualni a nove misto v bublinach, mapa PPL / GLS pres celou obrazovku */
.pickup__caption { display: block; font-size: 12px; color: var(--muted); }
.pickup__label { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pickup__new { background: var(--accent-soft); }
.pickup__note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pickup-map {
	position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
	background: var(--surface); color: var(--text);
}
.pickup-map[hidden] { display: none; }
.pickup-map__bar {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
	border-bottom: 1px solid var(--border); background: var(--surface);
}
.pickup-map__title { flex: 1; font-size: 16px; font-weight: 700; }
.pickup-map__close {
	width: 40px; height: 40px; flex: none; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.pickup-map__close:hover { background: var(--bg); }
.pickup-map__close:focus-visible { outline: 3px solid var(--accent-soft); }
.pickup-map__error { margin: 0; padding: 10px 16px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; }
.pickup-map__error[hidden] { display: none; }
/* mapy dopravcu jsou svetle, nezavisle na motivu stranky */
.pickup-map__body { flex: 1; min-height: 0; overflow: auto; background: #fff; color: #16181d; }
.pickup-map__body iframe { display: block; width: 100%; height: 100%; border: 0; }
/* mapa PPL si vysku dopocita az po nacteni; bez vysky predem by se platno mapy vykreslilo jen v pruhu nahore */
#ppl-parcelshop-map, #ppl-parcelshop-map .ppl-parcelshop-map-theme { height: 100%; }
html.pickup-map-open { overflow: hidden; }

@media (max-width: 600px) {
	.hub__fab { right: 16px; bottom: 16px; height: 52px; padding: 0 18px 0 16px; }
	/* na mobilu panel vyjede zespodu pres celou sirku, tlacitko se schova (zavira se krizkem nebo klepnutim vedle) */
	.hub.is-open .hub__fab { display: none; }
	.hub.is-open .hub__backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 16, .45); }
	.hub__panel {
		left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh;
		border-radius: 20px 20px 0 0; border-bottom: 0;
		padding-bottom: env(safe-area-inset-bottom);
		animation-name: hub-sheet;
	}
	html.hub-open { overflow: hidden; }
}
@keyframes hub-sheet { from { transform: translateY(100%); } }

/* doporucene produkty ("mohlo by se vam hodit"), nacitane asynchronne */
.reco__head { margin-bottom: 16px; }
.reco__head .card__title { margin-bottom: 2px; }
.reco__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.reco__card {
	display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 12px;
	border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none;
	transition: border-color .15s, transform .15s;
}
.reco__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.reco__card:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.reco__thumb { aspect-ratio: 1; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--upcoming); overflow: hidden; }
.reco__thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.reco__thumb svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.reco__name {
	flex: 1; font-size: 14px; font-weight: 500; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.reco__cta { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.reco__cta::after { content: " →"; }
.reco.is-loaded { animation: reco-in .25s ease-out; }
@keyframes reco-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1100px) { .reco__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	/* na mobilu vodorovne posouvani s prichytavanim karet */
	.reco__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.reco__list::-webkit-scrollbar { display: none; }
	.reco__item { flex: 0 0 58%; scroll-snap-align: start; }
}
