/* Native shortcode navigation cannot depend on the core Navigation block CSS.
 * Keep this correction separate from unrelated theme stylesheet revisions. */
.wt-nav .wp-block-navigation__container {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-nav .wp-block-navigation-item {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-nav .wp-block-navigation-item::marker {
	content: "";
}

.wt-nav .wp-block-navigation-item__content {
	display: block;
	line-height: 1.35;
}

/* Formatting line breaks must not become empty recognition-card grid rows. */
.wt-award-gallery > br,
.wt-award-gallery > p:empty,
.wt-sidebar-navigation > p:empty {
	display: none;
}

.wt-energy-brand-identity {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.wt-energy-brand-wordmark {
	color: var(--wt-ink);
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: 0.04em;
}

/* Match the existing currency selector, retaining native language links. */
.wt-currency-tools .x-currency-shortcode > p:empty {
	display: none;
}

.wt-currency-tools .wp-block-x-currency-currency-switcher {
	display: flex;
	align-items: center;
	margin: 0;
}

.wt-header-language-switcher {
	display: flex;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: 3px;
	background: var(--wt-canvas);
	border: 1px solid var(--wt-line);
	border-radius: 999px;
}

.wt-header-language-switcher .wpm-language-switcher {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-header-language-switcher .wpm-language-switcher li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-header-language-switcher .wpm-language-switcher li > a,
.wt-header-language-switcher .wpm-language-switcher li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 41px;
	min-height: 28px;
	padding: 5px 8px;
	color: var(--wt-ink);
	background: transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0;
	font-weight: 900;
	letter-spacing: 0.03em;
	line-height: 1;
	text-decoration: none;
}

.wt-header-language-switcher .wpm-language-switcher li > a::after,
.wt-header-language-switcher .wpm-language-switcher li > span::after {
	content: attr(data-lang);
	font-size: 15px;
	line-height: 15px;
	text-transform: uppercase;
}

.wt-header-language-switcher .wpm-language-switcher li > a:hover {
	background: #fff3cf;
}

.wt-header-language-switcher .wpm-language-switcher li.active > span {
	color: var(--wt-white);
	background: var(--wt-ink);
}

.wt-header-language-switcher .wpm-language-switcher img,
.wt-header-language-switcher .wpm-language-switcher br,
.wt-header-language-switcher .wpm-language-switcher li > a > span,
.wt-header-language-switcher .wpm-language-switcher li > span > span {
	display: none !important;
}

@media (max-width: 782px) {
	.wt-nav-primary .wp-block-navigation__container {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.wt-nav-primary .wp-block-navigation-item {
		width: auto !important;
	}

	.wt-nav-primary .wp-block-navigation-item__content {
		padding: 8px 9px 8px 28px;
		font-size: 0.7rem;
	}
}

/* Reserve the real height when the mobile header wraps its controls. */
@media (max-width: 782px) {
  .wp-site-blocks {
    padding-top: var(--wt-measured-topbar-height, var(--wt-topbar-height));
  }
  .wt-sidebar {
    top: var(--wt-measured-topbar-height, var(--wt-topbar-height));
  }
  body.admin-bar .wt-sidebar {
    top: calc(var(--wt-measured-topbar-height, var(--wt-topbar-height)) + 46px);
  }
}

/* Keep native availability and details actions in separate, uncompressed rows. */
.wt-home-products .products.columns-3 {
  grid-auto-rows: auto;
}
.wt-home-products .products.columns-3 li.product {
  height: auto;
  min-height: var(--wt-home-card-height, 455px);
}
.wt-home-products .products.columns-3 li.product > .woocommerce-LoopProduct-link {
  flex: 1 0 auto;
}
.wt-home-products .products.columns-3 li.product > p {
  flex-shrink: 0;
  margin: 10px 0 0;
}

/* Let article cards keep complete text lines at every column width. */
.wt-home-news .wt-news-feed { grid-auto-rows: auto; }
.wt-home-news .wt-news-card { height: auto; min-height: var(--wt-home-card-height,455px); }
.wt-home-news .wt-news-card > * { flex-shrink: 0; }