/* AI Multilingual – frontend styles */

/* --------------------------------------------------------------------------
   Preference switcher (navigation / custom sandbox)
   -------------------------------------------------------------------------- */

.aiml-menu-shortcode-wrap {
	display: block;
}

.aiml-preference-switcher {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0;
}

.aiml-preference-field {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

/* Flag glyphs only (regional indicators); all other characters use the next font. */
@font-face {
font-display:swap;
	font-family: "AIML Flags";
	src: url('/wp-content/plugins/wp-i18-ai/assets/css/../fonts/TwemojiCountryFlags.woff2') format("woff2");
	unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
	font-display: swap;
}

.aiml-preference-switcher select {
	font-family: "AIML Flags", "Plus Jakarta Sans", HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
	min-width: 5.5rem;
	padding: 0.3rem 0.45rem;
}

.aiml-preference-submit {
	padding: 0.3rem 0.6rem;
	line-height: 1.2;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Original-text toggle (comments & product reviews)
   -------------------------------------------------------------------------- */

.aiml-original-toggle {
	margin-top: 0.6em;
}

.aiml-read-original {
	display: inline-block;
	font-size: 0.85em;
	opacity: 0.65;
	text-decoration: none;
	cursor: pointer;
}

.aiml-read-original:hover,
.aiml-read-original:focus {
	opacity: 1;
	text-decoration: underline;
	outline: none;
}

.aiml-original-content {
	margin-top: 0.65em;
	padding: 0.6em 0.75em;
	border-left: 3px solid #d4d4d4;
	background: transparent;
}

.aiml-original-text {
	font-style: italic;
	font-size: 0.9em;
	color: #555;
	margin-bottom: 0.5em;
}

.aiml-close-original {
	display: inline-block;
	font-size: 0.82em;
	opacity: 0.65;
	text-decoration: none;
	cursor: pointer;
}

.aiml-close-original:hover,
.aiml-close-original:focus {
	opacity: 1;
	text-decoration: underline;
	outline: none;
}

/* --------------------------------------------------------------------------
   AJAX live search – "show all results" button (mirrors Elementor button markup)
   -------------------------------------------------------------------------- */

.aiml-search-view-all {
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

.aiml-expanded-product-section-label {
	display: inline-block;
	margin-bottom: 1em;
}
