/**
 * Перемикач мов + спільні круглі кнопки (як соцмережі у футері).
 */

:root {
	--st-icon-btn-size: 42px;
	--st-icon-btn-border: rgba(255, 255, 255, 0.18);
	--st-icon-btn-color: #fff;
	--st-icon-btn-active-border: rgba(239, 83, 63, 0.55);
	--st-icon-btn-active-bg: rgba(239, 83, 63, 0.12);
	--st-icon-btn-active-color: #ef533f;
}

/* ——— Спільна кнопка (соцмережі + мови) ——— */

.suntime-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--st-icon-btn-size);
	height: var(--st-icon-btn-size);
	border: 1px solid var(--st-icon-btn-border);
	border-radius: 50%;
	color: var(--st-icon-btn-color);
	background: transparent;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}

.suntime-icon-btn:hover,
.suntime-icon-btn:focus-visible {
	color: var(--st-icon-btn-active-color);
	border-color: var(--st-icon-btn-active-border);
	background: var(--st-icon-btn-active-bg);
	outline: none;
}

.suntime-icon-btn.is-active,
.suntime-icon-btn[aria-current="true"],
.suntime-icon-btn[aria-current="page"] {
	color: var(--st-icon-btn-active-color);
	border-color: var(--st-icon-btn-active-border);
	background: var(--st-icon-btn-active-bg);
	box-shadow: 0 0 0 1px rgba(239, 83, 63, 0.18);
}

.suntime-icon-btn i {
	font-size: 16px;
	line-height: 1;
}

.suntime-icon-btn .trp-flag-image,
.suntime-icon-btn img.trp-flag-image {
	display: block;
	width: 22px;
	height: auto;
	border-radius: 2px;
	object-fit: cover;
}

/* ——— Top bar (desktop) ——— */

.suntime-header-lang-slot {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: 0;
}

@media (min-width: 1025px) {
	.top_panel [data-id="b39e892"] .e-con-inner {
		justify-content: flex-start !important;
		padding-top: 4px !important;
		padding-bottom: 4px !important;
		min-height: 0 !important;
		gap: 12px !important;
	}

	.top_panel [data-id="b39e892"] > .e-con,
	.top_panel [data-id="b39e892"] .elementor-element,
	.top_panel [data-id="b39e892"] .elementor-widget,
	.top_panel [data-id="b39e892"] .elementor-widget-container,
	.top_panel [data-id="b39e892"] .sc_layouts_item,
	.top_panel [data-id="b39e892"] .suntime-header-lang-slot,
	.top_panel [data-id="b39e892"] .suntime-header-right-group {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.top_panel [data-id="b39e892"] .suntime-header-right-group {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 10px;
		margin-left: auto !important;
		flex-shrink: 0;
	}

	.top_panel [data-id="b39e892"] .suntime-header-right-group .suntime-header-lang-slot,
	.top_panel [data-id="b39e892"] .suntime-header-right-group .elementor-element-76cd306 {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.suntime-lang-switcher--header {
	--st-lang-btn-h: 32px;
	position: relative;
	display: inline-flex;
	align-items: center;
}

.suntime-lang-switcher--header .suntime-lang-switcher__menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.suntime-lang-switcher--header .suntime-lang-switcher__menu > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.suntime-lang-switcher--header .suntime-icon-btn,
.suntime-lang-switcher--header .suntime-lang-switcher__trigger,
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-language-item__current,
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-language-item__current[role="button"],
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-current-language-item__wrapper,
.suntime-lang-switcher--header .trp-language-switcher-inner .trp-language-item__current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-width: 0;
	height: var(--st-lang-btn-h);
	padding: 0 12px;
	border: 1px solid rgba(3, 16, 54, 0.08);
	border-radius: 999px;
	background: #fff;
	color: #031036;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.suntime-lang-switcher--header .suntime-lang-switcher__trigger {
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.suntime-lang-switcher--header .suntime-lang-switcher__dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.suntime-lang-switcher--header .suntime-lang-switcher__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.suntime-lang-switcher--header .suntime-lang-switcher__arrow::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.55;
	transition: transform 0.2s ease;
}

.suntime-lang-switcher--header .suntime-lang-switcher__dropdown.is-open .suntime-lang-switcher__arrow::before {
	transform: rotate(-135deg) translateY(1px);
}

.suntime-lang-switcher--header .suntime-lang-switcher__panel,
.suntime-lang-switcher--header .sub-menu,
.suntime-lang-switcher--header .trp-switcher-dropdown-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: auto;
	min-width: 188px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid rgba(3, 16, 54, 0.12);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(3, 16, 54, 0.18);
	z-index: 350;
	transform: translateY(4px);
}

.suntime-lang-switcher--header .suntime-lang-switcher__panel[hidden],
.suntime-lang-switcher--header .trp-switcher-dropdown-list[hidden] {
	display: none !important;
}

/* Портал у body — opaque, поза opacity-батьками Elementor/TRX */
.suntime-lang-switcher__panel.suntime-lang-switcher__panel--portal {
	position: fixed !important;
	z-index: 100000 !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid rgba(3, 16, 54, 0.12) !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 32px rgba(3, 16, 54, 0.18) !important;
	padding: 6px !important;
	margin: 0 !important;
	min-width: 188px;
	list-style: none !important;
	isolation: isolate;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

.suntime-lang-switcher__panel.suntime-lang-switcher__panel--portal::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: #fff;
	z-index: -1;
}

.suntime-lang-switcher__panel--portal .suntime-lang-switcher__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #fff !important;
	color: #031036;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
}

.suntime-lang-switcher__panel--portal .suntime-lang-switcher__option:hover {
	background: rgba(239, 83, 63, 0.08) !important;
	color: #ef533f;
}

.suntime-lang-switcher__panel--portal .trp-flag-image {
	display: block;
	width: 18px !important;
	height: 14px !important;
	border-radius: 2px;
	object-fit: contain;
	flex-shrink: 0;
	background: #eef2f6;
	box-shadow: inset 0 0 0 1px rgba(3, 16, 54, 0.14);
}

.suntime-lang-switcher--header .suntime-lang-switcher__dropdown.is-open .suntime-lang-switcher__panel:not(.suntime-lang-switcher__panel--portal),
.suntime-lang-switcher--header .suntime-lang-switcher__item--current.is-open > .sub-menu,
.suntime-lang-switcher--header .trp-language-switcher.is-open .trp-switcher-dropdown-list,
.suntime-lang-switcher--header .trp-shortcode-overlay.is-open .trp-switcher-dropdown-list {
	opacity: 1 !important;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	background: #fff !important;
	background-color: #fff !important;
}

.suntime-lang-switcher--header .suntime-lang-switcher__panel li,
.suntime-lang-switcher--header .sub-menu li,
.suntime-lang-switcher--header .trp-switcher-dropdown-list .trp-language-item {
	margin: 0;
}

.suntime-lang-switcher--header .suntime-lang-switcher__option,
.suntime-lang-switcher--header .sub-menu a,
.suntime-lang-switcher--header .trp-switcher-dropdown-list .trp-language-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #031036;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
}

.suntime-lang-switcher--header .suntime-lang-switcher__option .trp-flag-image,
.suntime-lang-switcher--header .sub-menu a .trp-flag-image,
.suntime-lang-switcher--header .trp-switcher-dropdown-list .trp-language-item .trp-flag-image,
.suntime-lang-switcher--header .suntime-lang-switcher__trigger .trp-flag-image {
	display: block;
	width: 18px !important;
	height: 14px !important;
	border-radius: 2px;
	object-fit: contain;
	flex-shrink: 0;
	background: #eef2f6;
	box-shadow: inset 0 0 0 1px rgba(3, 16, 54, 0.14);
}

.suntime-lang-switcher--header .suntime-lang-switcher__option:hover,
.suntime-lang-switcher--header .sub-menu a:hover,
.suntime-lang-switcher--header .trp-switcher-dropdown-list .trp-language-item:hover {
	background: rgba(239, 83, 63, 0.08);
	color: #ef533f;
}

.suntime-lang-switcher--header .suntime-icon-btn:hover,
.suntime-lang-switcher--header .suntime-icon-btn:focus-visible,
.suntime-lang-switcher--header .suntime-lang-switcher__trigger:hover,
.suntime-lang-switcher--header .suntime-lang-switcher__trigger:focus-visible,
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-language-item__current:hover,
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-current-language-item__wrapper:hover,
.suntime-lang-switcher--header .trp-language-switcher-inner .trp-language-item__current:hover {
	color: #ef533f;
	border-color: rgba(239, 83, 63, 0.35);
	background: #fff;
	outline: none;
}

.suntime-lang-switcher--header .suntime-icon-btn .trp-flag-image,
.suntime-lang-switcher--header .suntime-icon-btn img.trp-flag-image,
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-language-item__current .trp-flag-image,
.suntime-lang-switcher--header .trp-shortcode-overlay .trp-language-item__current img.trp-flag-image {
	display: block;
	width: 18px !important;
	height: 14px !important;
	border-radius: 2px;
	object-fit: contain;
	flex-shrink: 0;
	background: #eef2f6;
	box-shadow: inset 0 0 0 1px rgba(3, 16, 54, 0.14);
}

.suntime-lang-switcher--header .trp-language-item-name,
.suntime-lang-switcher--header .trp-ls-language-name {
	display: inline !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	color: inherit !important;
	white-space: nowrap;
}

/* Обгортки TRP — без власного білого фону (лише кнопка всередині) */
.suntime-lang-switcher--header .trp-language-switcher,
.suntime-lang-switcher--header .trp-language-switcher.trp-shortcode-switcher,
.suntime-lang-switcher--header .trp-shortcode-switcher__wrapper,
.suntime-lang-switcher--header .trp-shortcode-overlay,
.suntime-lang-switcher--header .trp-shortcode-overlay.is-open,
.suntime-lang-switcher--header .trp-open-on-hover.is-open,
.suntime-lang-switcher--header .trp-current-language-item__wrapper,
.suntime-lang-switcher--header .trp-language-switcher-inner,
.suntime-header-lang-slot,
.suntime-header-lang-slot .suntime-lang-switcher--header,
.suntime-header-lang-slot .suntime-lang-switcher__dropdown {
	opacity: 1 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	max-width: none !important;
}

.suntime-lang-switcher--header .trp-shortcode-overlay > .trp-language-item:not(.trp-language-item__current) {
	display: none !important;
}

.suntime-lang-switcher--header .trp-shortcode-arrow {
	display: none !important;
}

.suntime-lang-switcher--header .trp-current-language-item__wrapper .trp-shortcode-arrow {
	display: inline-flex !important;
}

.suntime-lang-switcher--header .suntime-lang-switcher__item--active > a,
.suntime-lang-switcher--header .sub-menu .suntime-lang-switcher__item--active > a {
	color: #ef533f;
	border-color: rgba(239, 83, 63, 0.35);
	background: #fff;
}

.suntime-lang-switcher--header .trp-language-switcher-inner {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.suntime-lang-switcher--header .trp-shortcode-switcher__wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	--bg: transparent;
	--bg-hover: transparent;
	--text: #031036;
	--text-hover: #ef533f;
	--border: 0;
	--border-color: transparent;
	--border-radius: 999px;
	--flag-size: 18px;
	--font-size: 13px;
}

.suntime-lang-switcher--header .trp-shortcode-anchor {
	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;
	white-space: nowrap !important;
	border: 0 !important;
}

.suntime-lang-switcher--header .trp-shortcode-overlay {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.suntime-lang-switcher--header .trp-current-language-item__wrapper {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
	padding: 0 !important;
}

.suntime-lang-switcher--header .trp-switcher-dropdown-list .trp-language-item {
	width: auto;
	height: auto;
	border-radius: 8px;
	background: transparent;
}

/* ——— Мобільне меню: прапорці в ряд ——— */

.suntime-mobile-menu-aux {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
	padding-top: 24px;
}

.suntime-mobile-menu-aux__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
}

.suntime-mobile-menu-aux__lang {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	flex-shrink: 0;
}

.suntime-lang-switcher--mobile {
	--st-icon-btn-border: rgba(255, 255, 255, 0.18);
	--st-icon-btn-color: #fff;
}

.suntime-lang-switcher--mobile .suntime-lang-switcher__menu,
.suntime-lang-switcher--mobile .trp-language-switcher-inner,
.suntime-lang-switcher--mobile .suntime-lang-switcher__flags-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.suntime-lang-switcher--mobile .suntime-lang-switcher__menu > li,
.suntime-lang-switcher--mobile .trp-language-item {
	margin: 0;
	padding: 0;
}

.suntime-lang-switcher--mobile .trp-language-item-name,
.suntime-lang-switcher--mobile .trp-ls-language-name,
.suntime-lang-switcher--mobile .menu-item-language-switcher > a span:not(.trp-flag-image) {
	display: none !important;
}

.suntime-lang-switcher--mobile .suntime-icon-btn,
.suntime-lang-switcher--mobile .trp-language-item,
.suntime-lang-switcher--mobile .trp-language-item__current,
.suntime-lang-switcher--mobile .sub-menu a {
	width: var(--st-icon-btn-size);
	height: var(--st-icon-btn-size);
	padding: 0;
	border-radius: 50%;
}

.suntime-lang-switcher--mobile .suntime-icon-btn .trp-flag-image,
.suntime-lang-switcher--mobile .suntime-icon-btn img.trp-flag-image {
	display: block;
	width: 18px;
	height: 14px;
	max-width: 18px;
	max-height: 14px;
	border-radius: 2px !important;
	object-fit: cover;
}

.suntime-lang-switcher--mobile .sub-menu,
.suntime-lang-switcher--mobile .trp-switcher-dropdown-list {
	position: static;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

.suntime-lang-switcher--mobile .suntime-lang-switcher__item--current > a {
	display: none !important;
}

.suntime-lang-switcher--mobile .trp-language-item__current[role="button"] {
	display: none !important;
}

/* Active/hover у .menu_mobile — у mobile-menu-contacts.css (суцільний #ef533f) */

/* ——— Приховати плаваючий switcher ——— */

.trp-floating-switcher,
#trp-floater-ls,
.trp-language-switcher-container.trp-floater {
	display: none !important;
}

@media (max-width: 767px) {
	.suntime-header-lang-slot {
		display: none !important;
	}
}
