/**
 * Top Banner Language & Currency — utility bar layout and dropdowns.
 */

.tbls-top-banner {
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	padding: 0 20px;
	background: var(--tbls-bg, #1b3a5d);
	color: var(--tbls-fg, #ffffff);
	border: 0;
	border-bottom: 1px solid var(--tbls-fg, #ffffff);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	z-index: 99998;
}

.tbls-top-banner *,
.tbls-top-banner *::before,
.tbls-top-banner *::after {
	box-sizing: border-box;
}

.tbls-top-banner__inner {
	width: 100%;
	max-width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.tbls-top-banner__group {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
}

.tbls-dropdown {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.tbls-dropdown--currency {
	margin-left: 2px;
}

/* Mini flag (paired with language) */
.tbls-flag {
	display: inline-block;
	width: 20px;
	height: 14px;
	border-radius: 1px;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 0 0 1px var(--tbls-fg, #ffffff);
}

.tbls-flag svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Trigger button — looks like plain text + chevron */
.tbls-top-banner .tbls-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: var(--tbls-fg, #ffffff);
	font: inherit;
	cursor: pointer;
	line-height: 1;
}

.tbls-trigger:hover,
.tbls-trigger:focus-visible {
	opacity: 0.92;
	outline: none;
}

.tbls-trigger:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbls-chevron {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-top: 2px;
	opacity: 0.95;
}

.tbls-dropdown.is-open .tbls-chevron {
	transform: rotate(180deg);
	margin-top: 0;
}

/* Dropdown menus */
.tbls-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 140px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #ffffff;
	color: #1b3a5d;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 99999;
}

.tbls-menu[hidden] {
	display: none !important;
}

.tbls-menu li {
	margin: 0;
}

.tbls-menu button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 14px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.tbls-menu button:hover,
.tbls-menu button:focus-visible {
	background: rgba(27, 58, 93, 0.08);
	outline: none;
}

.tbls-menu button[aria-selected="true"] {
	font-weight: 600;
}
