/**
 * Norflo Child Theme - Airalo-Style Header Currency Switcher Styles
 * Clean Pill Trigger, Smooth Dropdown, Theme Font, Scrollable Currencies List.
 *
 * @package Norflo_Child
 */

.norflo-currency-switcher {
	position: relative;
	display: inline-block;
	font-family: inherit !important;
	vertical-align: middle;
}

/* Trigger Button */
.norflo-currency-btn {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 9999px;
	padding: 6px 14px;
	font-family: inherit !important;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.norflo-currency-btn:hover {
	background: #F9FAFB;
	border-color: #D1D5DB;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.norflo-currency-switcher.is-open .norflo-currency-btn {
	border-color: #111827;
	background: #F9FAFB;
}

.norflo-curr-symbol {
	font-weight: 700;
	color: #024DF4;
}

.norflo-curr-code {
	font-weight: 700;
	color: #111827;
	letter-spacing: 0.3px;
}

.norflo-curr-arrow {
	stroke: #6B7280;
	transition: transform 0.25s ease;
	margin-left: 2px;
}

.norflo-currency-switcher.is-open .norflo-curr-arrow {
	transform: rotate(180deg);
	stroke: #111827;
}

/* Dropdown Menu (Desktop) */
.norflo-currency-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
	width: 250px;
	max-width: 90vw;
	z-index: 99999;
	display: none;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	overflow: hidden;
	box-sizing: border-box;
}

.norflo-currency-switcher.is-open .norflo-currency-dropdown {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

/* Scrollable Currency List */
.norflo-curr-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 6px 0 !important;
	max-height: 280px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #D1D5DB transparent;
}

.norflo-curr-list::-webkit-scrollbar {
	width: 5px;
}

.norflo-curr-list::-webkit-scrollbar-thumb {
	background: #D1D5DB;
	border-radius: 4px;
}

/* Row Item */
.norflo-curr-item {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	padding: 9px 16px;
	cursor: pointer;
	transition: background 0.15s ease;
	font-family: inherit !important;
	user-select: none;
}

.norflo-curr-item:hover {
	background: #F3F4F6;
}

.norflo-curr-item.is-active {
	background: #F0F4FF;
}

.norflo-curr-item-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.norflo-curr-item-symbol {
	font-size: 13.5px;
	font-weight: 700;
	color: #024DF4;
	width: 20px;
	text-align: center;
	flex-shrink: 0;
}

.norflo-curr-item-code {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.norflo-curr-item-name {
	font-size: 12.5px;
	font-weight: 500;
	color: #6B7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 110px;
}

.norflo-curr-checkmark {
	color: #024DF4;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ==========================================================================
   Mobile & Responsive Offcanvas Menu Layout
   ========================================================================== */
@media (max-width: 991px) {
	.norflo-menu-currency-item {
		width: 100% !important;
		margin: 10px 0 !important;
		display: block !important;
	}

	.norflo-currency-switcher {
		width: 100% !important;
		display: block !important;
	}

	.norflo-currency-btn {
		width: 100% !important;
		display: flex !important;
		justify-content: space-between !important;
		padding: 10px 16px !important;
		font-size: 14px !important;
		border-radius: 10px !important;
		box-sizing: border-box !important;
	}

	.norflo-currency-btn .norflo-curr-arrow {
		margin-left: auto;
	}

	.norflo-currency-dropdown {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 8px !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
		border-radius: 10px !important;
		transform: none !important;
		right: auto !important;
		left: auto !important;
	}

	.norflo-curr-list {
		max-height: 220px !important;
	}

	.norflo-curr-item-name {
		max-width: none !important;
	}
}
