/* Benetech Header Icons – front */
.bhi-nav {
	--bhi-icon-size: 28px;
	--bhi-font-size: 14px;
	--bhi-gap: 28px;
	--bhi-color: #1a1a1a;
	--bhi-hover: #ff5a00;
	--bhi-badge-bg: #ff5a00;
	--bhi-badge-color: #fff;
	--bhi-align: flex-end;
	position: relative;
	display: flex;
	justify-content: var(--bhi-align);
}

.bhi-nav .bhi-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: var(--bhi-align);
	gap: var(--bhi-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhi-nav .bhi-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhi-nav .bhi-item::before,
.bhi-nav .bhi-item::marker {
	content: none;
}

.bhi-nav .bhi-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--bhi-color);
	text-decoration: none;
	line-height: 1.2;
	transition: color .2s ease, background-color .2s ease;
}

.bhi-nav .bhi-link:hover,
.bhi-nav .bhi-link:focus-visible,
.bhi-nav .bhi-toggle[aria-expanded="true"] {
	color: var(--bhi-hover);
	text-decoration: none;
}

.bhi-nav .bhi-link:focus-visible,
.bhi-nav .bhi-close:focus-visible {
	outline: 2px solid var(--bhi-hover);
	outline-offset: 3px;
	border-radius: 4px;
}

.bhi-nav .bhi-icon {
	position: relative;
	display: inline-flex;
	flex: none;
	width: var(--bhi-icon-size);
	height: var(--bhi-icon-size);
}

.bhi-nav .bhi-icon svg,
.bhi-nav .bhi-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bhi-nav .bhi-label {
	font-size: var(--bhi-font-size);
	white-space: nowrap;
}

.bhi-nav .bhi-badge {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--bhi-badge-bg);
	color: var(--bhi-badge-color);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

.bhi-nav .bhi-badge--hidden {
	display: none;
}

.bhi-nav--no-labels .bhi-list--row .bhi-label,
.bhi-nav--no-labels .bhi-toggle__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Widok mobilny: przycisk + rozwijany panel ----------
 * Domyślnie ukryte. Reguły pokazujące je są dodawane w media query
 * (szerokość ustawiana w panelu: Ustawienia → Ikony nagłówka).
 */
.bhi-nav .bhi-toggle {
	display: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bhi-nav .bhi-toggle:hover,
.bhi-nav .bhi-toggle:focus {
	background: none;
}

.bhi-nav .bhi-panel,
.bhi-nav .bhi-overlay {
	display: none;
}

.bhi-nav .bhi-list.bhi-list--panel {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 2px;
}

.bhi-nav .bhi-list--panel .bhi-link {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 8px;
}

.bhi-nav .bhi-list--panel .bhi-link:hover,
.bhi-nav .bhi-list--panel .bhi-link:focus-visible {
	background: rgba(0, 0, 0, .04);
}

.bhi-nav .bhi-list--panel .bhi-icon {
	width: min(var(--bhi-icon-size), 26px);
	height: min(var(--bhi-icon-size), 26px);
}

.bhi-nav .bhi-list--panel .bhi-label {
	font-size: max(var(--bhi-font-size), 15px);
}

/* Rozwijane menu pod przyciskiem, wyrównane do prawej */
.bhi-nav .bhi-panel--dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 9999;
	min-width: 220px;
	max-width: calc(100vw - 24px);
	padding: 6px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05);
	animation: bhi-drop .18s ease-out;
}

.bhi-nav .bhi-panel--dropdown::before {
	content: "";
	position: absolute;
	top: -6px;
	right: calc(var(--bhi-icon-size) / 2 - 6px);
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -1px -1px 0 rgba(0, 0, 0, .05);
}

@keyframes bhi-drop {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

/* Panel wysuwany z prawej krawędzi ekranu */
.bhi-nav .bhi-panel--offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	flex-direction: column;
	width: min(320px, 85vw);
	background: #fff;
	box-shadow: -12px 0 32px rgba(0, 0, 0, .16);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
	overflow-y: auto;
}

.bhi-nav .bhi-panel--offcanvas.is-open {
	transform: none;
	visibility: visible;
}

.bhi-nav .bhi-panel--offcanvas .bhi-list--panel {
	padding: 8px;
}

.bhi-nav .bhi-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 14px 14px 22px;
	border-bottom: 1px solid #eee;
	color: var(--bhi-color);
	font-size: 17px;
	font-weight: 700;
}

.bhi-nav .bhi-close {
	display: inline-flex;
	width: 36px;
	height: 36px;
	padding: 6px;
	margin: 0;
	border: 0;
	background: none;
	color: var(--bhi-color);
	cursor: pointer;
}

.bhi-nav .bhi-close svg {
	width: 100%;
	height: 100%;
}

.bhi-nav .bhi-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, .4);
	animation: bhi-fade .2s ease-out;
}

@keyframes bhi-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

html.bhi-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.bhi-nav .bhi-panel--offcanvas,
	.bhi-nav .bhi-panel--dropdown,
	.bhi-nav .bhi-overlay {
		transition: none;
		animation: none;
	}
}

/* Elementy z shortcode innych wtyczek */
.bhi-nav .bhi-link--shortcode {
	cursor: default;
}

.bhi-nav .bhi-sc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--bhi-icon-size);
	line-height: 1.2;
}

.bhi-nav .bhi-sc > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bhi-nav .bhi-sc a {
	color: inherit;
	text-decoration: none;
}

.bhi-nav .bhi-list--panel .bhi-sc {
	min-height: 0;
	min-width: min(var(--bhi-icon-size), 26px);
}

.bhi-nav .bhi-sc-placeholder {
	display: inline-block;
	max-width: 140px;
	padding: 4px 6px;
	overflow: hidden;
	border: 1px dashed #a7aaad;
	border-radius: 4px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 11px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Ukryty oryginalny przycisk wtyczki (klikany przez ikonę z tego panelu) */
.bhi-nav .bhi-sc-source {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
