/* Header language switcher — stage 1 */
.cnbiz-lang-switcher {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	z-index: 2;
}

.cnbiz-lang-switcher__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 10px;
	transition: opacity 0.2s, background 0.2s;
}

.cnbiz-lang-switcher__btn:hover,
.cnbiz-lang-switcher__btn:focus-visible {
	opacity: 0.85;
	outline: 2px solid rgba(255, 255, 255, 0.35);
	outline-offset: 2px;
}

.cb-desk-actions .cnbiz-lang-switcher__btn,
.cb-app-bar .cnbiz-lang-switcher__btn {
	color: #fff;
}

.cb-app-bar .cnbiz-lang-switcher {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
}

.cb-app-bar .cnbiz-lang-switcher__btn {
	width: 36px;
	height: 36px;
}

.cnbiz-lang-switcher__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: auto;
	min-width: 148px;
	padding: 6px;
	margin: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 41, 45, 0.18);
	border: 1px solid rgba(15, 41, 45, 0.08);
	z-index: 100010;
}

[dir="rtl"] .cnbiz-lang-switcher__menu {
	left: auto;
	right: 0;
}

.cnbiz-lang-switcher__item {
	display: block;
	width: 100%;
	text-align: start;
	padding: 10px 12px;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #0f292d;
	border-radius: 8px;
	cursor: pointer;
}

.cnbiz-lang-switcher__item:hover,
.cnbiz-lang-switcher__item:focus-visible {
	background: rgba(47, 102, 86, 0.1);
	outline: none;
}

.cnbiz-lang-switcher__item--he {
	border-top: 1px solid rgba(15, 41, 45, 0.08);
	margin-top: 4px;
	padding-top: 12px;
	font-weight: 700;
}

[data-theme="dim"] .cnbiz-lang-switcher__menu {
	background: #1d1f23;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dim"] .cnbiz-lang-switcher__item {
	color: #e7e9ea;
}

[data-theme="dim"] .cnbiz-lang-switcher__item:hover,
[data-theme="dim"] .cnbiz-lang-switcher__item:focus-visible {
	background: rgba(110, 231, 183, 0.12);
}

/* Desktop: dropdown must not be clipped by .cb-desk-top-row { overflow:hidden }
   or covered by the nav row that follows in the DOM. */
@media (min-width: 992px) {
	#cb-desktop-header .cb-desk-top-row {
		overflow: visible;
		position: relative;
		z-index: 3;
	}
	#cb-desktop-header .cb-desk-nav-row {
		z-index: 2;
	}
	.cb-desk-actions .cnbiz-lang-switcher {
		z-index: 4;
	}
}

/* Hide Google top banner / offset widget (header must stay flush) */
body.cnbiz-gt-active .goog-te-banner-frame,
html.translated-ltr .goog-te-banner-frame,
html.translated-rtl .goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
body.cnbiz-gt-active .skiptranslate iframe,
html.translated-ltr .skiptranslate iframe,
html.translated-rtl .skiptranslate iframe {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	max-height: 0 !important;
}
body.cnbiz-gt-active .skiptranslate,
html.translated-ltr body > .skiptranslate,
html.translated-rtl body > .skiptranslate {
	pointer-events: none !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	width: 0 !important;
	left: -9999px !important;
	top: 0 !important;
}
body.cnbiz-gt-active,
html.translated-ltr body,
html.translated-rtl body {
	top: 0 !important;
	margin-top: 0 !important;
	position: relative !important;
}

/* Mobile: when category pills collapse, drop reserved padding (60px app bar only). */
@media (max-width: 991px) {
	body:has(#cb-mobile-app-header.pills-hidden) {
		padding-top: 60px !important;
	}
}

/* Active filter pills: keep label/value order under machine translation. */
.cb-af-pill-text {
	unicode-bidi: isolate;
}
.cb-af-pill-label-wrap,
.cb-af-pill-value-wrap {
	unicode-bidi: isolate;
}
html.translated-ltr .cb-af-pill-label-wrap,
html.translated-ltr .cb-af-pill-value-wrap {
	direction: ltr;
}
/* Desktop header search: longer translated placeholders must not clip (Hebrew unchanged). */
@media (min-width: 992px) {
	html.cnbiz-gt-active #cb-desktop-header .cb-desk-search,
	html.translated-ltr #cb-desktop-header .cb-desk-search,
	html.translated-rtl #cb-desktop-header .cb-desk-search {
		max-width: min(720px, 42vw);
		flex-shrink: 1;
	}
	html.cnbiz-gt-active #cb-desktop-header .cb-ns-input,
	html.translated-ltr #cb-desktop-header .cb-ns-input,
	html.translated-rtl #cb-desktop-header .cb-ns-input {
		font-size: 13px !important;
		padding: 8px 34px 8px 12px !important;
	}
	html.cnbiz-gt-active #cb-desktop-header .cb-ns-input::placeholder,
	html.translated-ltr #cb-desktop-header .cb-ns-input::placeholder,
	html.translated-rtl #cb-desktop-header .cb-ns-input::placeholder {
		font-size: 11.5px !important;
		font-weight: 500 !important;
		overflow: visible;
		text-overflow: clip;
	}
}

/* Product cards: space between translated "from" label and ₪ amount. */
html.cnbiz-gt-active .cb-from-label + .cb-from-currency,
html.cnbiz-gt-active .cb-from-label + .cb-price-amount,
html.translated-ltr .cb-from-label + .notranslate,
html.translated-rtl .cb-from-label + .notranslate {
	margin-inline-start: 0.25em;
}

html.translated-rtl .cb-af-pill-label-wrap,
html.translated-rtl .cb-af-pill-value-wrap {
	direction: rtl;
}

/* RU/EN GT: archive stock/filter pills — keep label:value order, no RTL ellipsis. */
html.translated-ltr .cb-af-pill-text,
html.translated-ltr .cb-af-pill-label,
html.translated-ltr .cb-af-pill-value {
	direction: ltr;
	unicode-bidi: isolate;
}
html.translated-ltr .cb-af-pill-text {
	max-width: none;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}
html.translated-ltr .cb-af-pill {
	max-width: none;
}

/* Cart totals / legal note: prevent GT from gluing adjacent spans. */
.cnbiz-cart-store-total-label::after,
.cnbiz-cart-grand-label-part + .cnbiz-cart-grand-label-count::before,
.cnbiz-cart-grand-label-count + .cnbiz-cart-grand-label-part::before {
	content: "\00a0";
}
.cnbiz-cart-handoff-note a {
	white-space: nowrap;
}
