/* Pasek na dole ekranu (moduł pasek-dolny). Widoczność: media query w stylu inline (próg z ustawień). */
.tbt-pasek {
	display: none;
	position: fixed;
	z-index: 9990;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(var(--tbt-pasek-h, 64px) + env(safe-area-inset-bottom, 0px));
	padding: 0 4px env(safe-area-inset-bottom, 0px);
	background: var(--tbt-pasek-tlo, #1b1b1b);
	color: var(--tbt-pasek-kolor, #fff);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
	align-items: stretch;
	justify-content: space-around;
	transition: transform .25s ease;
}
.tbt-pasek.is-schowany { transform: translateY(100%); }

.tbt-pasek__poz {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	margin: 0;
	padding: 6px 2px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.tbt-pasek__poz:hover, .tbt-pasek__poz:focus-visible { color: inherit; text-decoration: none; opacity: .85; }
.tbt-pasek__poz:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; border-radius: 8px; }
.tbt-pasek__poz.is-aktywny, .tbt-pasek__poz[aria-expanded="true"] { color: var(--tbt-pasek-aktywny, var(--tbt-kolor-akcent, #d4a72c)); }
.tbt-pasek__ikona { position: relative; display: inline-flex; line-height: 0; }
.tbt-pasek__ikona svg { width: 24px; height: 24px; }
.tbt-pasek__podpis { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbt-pasek--bez-podpisow .tbt-pasek__podpis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbt-pasek--bez-podpisow .tbt-pasek__ikona svg { width: 26px; height: 26px; }

.tbt-pasek__licznik {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--tbt-pasek-licznik, var(--tbt-kolor-akcent, #c00));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}
.tbt-pasek__licznik[hidden] { display: none; }

.tbt-pasek__szukaj {
	position: fixed;
	z-index: 9989;
	left: 0;
	right: 0;
	bottom: calc(var(--tbt-pasek-h, 64px) + env(safe-area-inset-bottom, 0px));
	padding: 10px 12px;
	background: var(--tbt-pasek-tlo, #1b1b1b);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.tbt-pasek__szukaj[hidden] { display: none; }
.tbt-pasek__szukaj form { display: flex; gap: 8px; margin: 0; }
.tbt-pasek__szukaj input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: #fff; color: #1b1b1b; font-size: 16px; }
.tbt-pasek__szukaj button { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--tbt-pasek-aktywny, var(--tbt-kolor-akcent, #d4a72c)); color: #fff; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .tbt-pasek { transition: none; } }
@media print { .tbt-pasek, .tbt-pasek__szukaj { display: none !important; } }
