/* Geong Currency Converter Styles */

.geong-currency-selector-wrapper {
	margin: 20px 0;
	position: relative;
}

.geong-cc-dropdown {
	position: relative;
	display: inline-block;
	font-family: inherit;
}

.geong-cc-control {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: auto;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 1.4;
	background-color: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.geong-cc-control:hover {
	border-color: #2563eb;
	box-shadow: 0 1px 4px rgba(37, 99, 235, 0.18);
}

.geong-cc-control:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.geong-cc-selected-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #111827;
	font-weight: 500;
}

.geong-cc-arrow {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #6b7280;
	margin-left: 8px;
	transition: transform 0.15s ease;
}

.geong-cc-dropdown.is-open .geong-cc-arrow {
	transform: rotate(180deg);
}

.geong-cc-panel {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 4px);
	left: 0;
	min-width: 260px;
	width: 260px;
	max-height: 320px;
	background-color: #ffffff;
	border-radius: 8px;
	border: 1px solid #d0d7de;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.geong-cc-dropdown.is-open .geong-cc-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.geong-cc-search {
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	padding: 10px 12px;
	font-size: 14px;
	outline: none;
}

.geong-cc-search::placeholder {
	color: #9ca3af;
}

.geong-cc-list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 260px;
	overflow-y: auto;
}

.geong-cc-item {
	display: flex;
	align-items: center;
	padding: 6px 10px;
	cursor: pointer;
	transition: background-color 0.08s ease;
}

.geong-cc-item:hover,
.geong-cc-item.is-highlighted {
	background-color: #eff6ff;
}

.geong-cc-item-flag {
	font-size: 16px;
	margin-right: 8px;
}

.geong-cc-item-main {
	display: flex;
	flex-direction: column;
}

.geong-cc-item-name {
	font-size: 13px;
	color: #111827;
}

.geong-cc-item-meta {
	font-size: 11px;
	color: #6b7280;
}

/* Visually hide native select but keep it in DOM for JS logic */
.geong-currency-selector {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	border: 0;
	padding: 0;
	margin: 0;
}

.geong-cc-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	width: 18px;
	height: 18px;
}

.geong-cc-loading:before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #ccc;
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: geong-spin 0.8s linear infinite;
	vertical-align: middle;
}

@keyframes geong-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive styles */
@media (max-width: 768px) {
	.geong-cc-dropdown {
		max-width: 100%;
	}
}

