/**
 * Flags + CTA layout
 * Desktop: flags centered over CTA (JS sets left)
 * Mobile: flags top-right of header/screen; CTA centered
 */

.elementor-element-c7d737b {
	position: relative !important;
}

.elementor-element-86ff91b.e-con,
.elementor-element-86ff91b {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: center !important;
	row-gap: 0 !important;
}

.elementor-element-0ae274f {
	position: absolute !important;
	top: 8px !important;
	left: 0;
	right: auto;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 30;
	line-height: 0;
	pointer-events: none;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-element-0ae274f .elementor-widget-container,
.elementor-element-0ae274f .elementor-shortcode {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	line-height: 0;
	pointer-events: auto;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-element-bd0ff2b {
	width: 100% !important;
	margin: 0 !important;
}

.yonsen-lang-switcher {
	display: inline-flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	line-height: 0;
	box-sizing: border-box;
	visibility: visible !important;
	opacity: 1 !important;
}

.yonsen-lang-flag {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 30px !important;
	height: 22px !important;
	min-width: 30px !important;
	min-height: 22px !important;
	margin: 0;
	padding: 3px !important;
	border: 1px solid #c8cdd3;
	border-radius: 4px;
	background-color: #ffffff !important;
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
	flex: 0 0 30px !important;
	visibility: visible !important;
	opacity: 1 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.yonsen-lang-flag img,
.yonsen-lang-flag > img {
	display: block !important;
	width: 22px !important;
	height: 14px !important;
	min-width: 22px !important;
	min-height: 14px !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: fill !important;
	object-position: center center !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
	visibility: visible !important;
	opacity: 1 !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	position: static !important;
	clip: auto !important;
	clip-path: none !important;
}

.yonsen-lang-flag:hover {
	background-color: #0468BF !important;
	border-color: #0468BF !important;
}

.yonsen-lang-flag:focus-visible {
	outline: 2px solid #0468BF;
	outline-offset: 2px;
}

.yonsen-lang-flag.is-active {
	border-color: #0468BF !important;
	background-color: #ffffff !important;
}

.yonsen-lang-flag.is-active:hover {
	background-color: #0468BF !important;
	border-color: #0468BF !important;
}

.yonsen-google-translate,
#google_translate_element {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
	display: none !important;
}

body {
	top: 0 !important;
}

.goog-text-highlight {
	background: none !important;
	box-shadow: none !important;
}

.skiptranslate,
.goog-te-spinner-pos {
	display: none !important;
}

iframe.skiptranslate {
	display: none !important;
	visibility: hidden !important;
}

html.premium-modal-open,
body.premium-modal-open {
	overflow: hidden !important;
}

.premium-modal-box-modal .premium-modal-box-modal-dialog {
	overscroll-behavior: contain;
}

.premium-modal-box-modal .premium-modal-box-modal-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: 48px;
	background: #ffffff;
}

.premium-modal-box-modal .premium-modal-box-close-button-container {
	margin-inline-start: auto;
}

.premium-modal-box-modal .premium-modal-box-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: auto;
	font-size: 28px;
	line-height: 1;
}

.premium-modal-box-modal .premium-modal-box-modal-close:focus-visible {
	outline: 2px solid #0468BF;
	outline-offset: 2px;
}

/* ---------- Mobile: CTA centered; flags top-right of header/screen ---------- */
@media (max-width: 767px) {
	/* Header = positioning context for flags at top of screen */
	.elementor-element-c7d737b {
		position: relative !important;
		overflow: visible !important;
	}

	/* Logo centered */
	.elementor-element-9c9c90a.e-con,
	.elementor-element-9c9c90a {
		width: 100% !important;
		max-width: 100% !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.elementor-element-b6fde47 {
		text-align: center !important;
	}

	.elementor-element-b6fde47 img {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	/*
	 * CRITICAL: CTA column static so absolute flags position against HEADER,
	 * not against the CTA block (which sits below the logo).
	 */
	.elementor-element-86ff91b.e-con,
	.elementor-element-86ff91b {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		align-items: center !important;
		justify-content: center !important;
		padding-top: 0 !important;
		row-gap: 0 !important;
	}

	/* Flags: top-right of the header / top of the mobile screen */
	.elementor-element-0ae274f {
		position: absolute !important;
		top: 8px !important;
		right: 10px !important;
		left: auto !important;
		bottom: auto !important;
		z-index: 100 !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
		pointer-events: none;
	}

	.elementor-element-0ae274f .elementor-widget-container,
	.elementor-element-0ae274f .elementor-shortcode {
		pointer-events: auto;
	}

	/* CTA centered — leave as-is (user says perfect) */
	.elementor-element-bd0ff2b {
		width: 100% !important;
		max-width: 100% !important;
		align-self: center !important;
	}

	.elementor-element-bd0ff2b.elementor-align-right,
	.elementor-element-bd0ff2b .elementor-widget-container,
	.elementor-element-bd0ff2b .elementor-button-wrapper {
		text-align: center !important;
		width: 100% !important;
	}

	.elementor-element-bd0ff2b .elementor-button {
		display: inline-flex !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.premium-modal-box-modal .premium-modal-box-modal-dialog {
		width: calc(100% - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
	}

	.yonsen-lang-flag {
		width: 28px !important;
		height: 20px !important;
		min-width: 28px !important;
		min-height: 20px !important;
		flex-basis: 28px !important;
		padding: 2px !important;
	}

	.yonsen-lang-flag img,
	.yonsen-lang-flag > img {
		width: 20px !important;
		height: 12px !important;
		min-width: 20px !important;
		min-height: 12px !important;
	}
}
