/* ============================================================
 * Currency selector
 * ============================================================ */
.site-shell-currency {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.site-shell-currency__toggle {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 1px solid transparent !important;
	border-radius: 999px;
	color: var(--site-ink, #171717);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-shell-currency__toggle::before,
.site-shell-currency__toggle::after {
	content: none !important;
	display: none !important;
}

.site-shell-currency__toggle > span,
.site-shell-currency__toggle > svg {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.site-shell-currency__toggle:hover,
.site-shell-currency__toggle:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	border-color: rgba(23, 23, 23, 0.34) !important;
	box-shadow: 0 10px 20px rgba(23, 23, 23, 0.1) !important;
	transform: translateY(-1px);
	outline: none !important;
}

.site-shell-currency__toggle[aria-expanded="true"] {
	background: transparent !important;
	background-color: transparent !important;
	border-color: rgba(23, 23, 23, 0.4) !important;
	box-shadow: 0 12px 24px rgba(23, 23, 23, 0.12) !important;
	transform: translateY(-1px);
}

.site-shell-currency__flag {
	display: inline-flex;
	width: 22px;
	height: 15px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.1);
	flex-shrink: 0;
}

.site-shell-currency__flag svg {
	width: 100%;
	height: 100%;
	display: block;
}

.site-shell-currency__code {
	font-weight: 700;
}

.site-shell-currency__caret {
	width: 10px;
	height: 7px;
	transition: transform 0.2s ease;
}

.site-shell-currency__toggle[aria-expanded="true"] .site-shell-currency__caret {
	transform: rotate(180deg);
}

.site-shell-currency__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 240px;
	max-width: calc(100vw - 24px);
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(23, 23, 23, 0.12);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(23, 23, 23, 0.15);
	z-index: 1000;
	overflow-y: auto;
	max-height: 70vh;
}

@media (max-width: 640px) {
	.site-shell-currency__list {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		min-width: 220px;
	}
}

.site-shell-currency__list[hidden] {
	display: none;
}

.site-shell-currency__item {
	margin: 0;
	padding: 0;
	background: transparent !important;
	box-shadow: none !important;
	position: relative;
	isolation: isolate;
}

.site-shell-currency__item::before,
.site-shell-currency__item::after {
	content: none !important;
	display: none !important;
}

/* Override Astra parent theme button defaults that paint a colored background. */
.site-shell-currency button.site-shell-currency__option,
.site-shell-currency button.site-shell-currency__option:hover,
.site-shell-currency button.site-shell-currency__option:focus,
.site-shell-currency button.site-shell-currency__option:focus-visible,
.site-shell-currency button.site-shell-currency__option:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--site-ink, #171717) !important;
	-webkit-tap-highlight-color: transparent;
}

.site-shell-currency button.site-shell-currency__option {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid transparent !important;
	border-radius: 6px;
	font: inherit;
	font-size: 0.85rem;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.site-shell-currency button.site-shell-currency__option::before,
.site-shell-currency button.site-shell-currency__option::after {
	content: none !important;
	display: none !important;
}

.site-shell-currency button.site-shell-currency__option > span {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.site-shell-currency button.site-shell-currency__option:hover,
.site-shell-currency button.site-shell-currency__option:focus-visible {
	border-color: rgba(23, 23, 23, 0.35) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(23, 23, 23, 0.08) !important;
	outline: none !important;
}

.site-shell-currency .site-shell-currency__item.is-selected button.site-shell-currency__option {
	border-color: rgba(23, 23, 23, 0.5) !important;
	font-weight: 600;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: 0 8px 18px rgba(23, 23, 23, 0.1) !important;
}

.site-shell-currency__option-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	line-height: 1.2;
}

.site-shell-currency__option-code {
	font-weight: 700;
	font-size: 0.85rem;
}

.site-shell-currency__option-name {
	font-size: 0.72rem;
	color: rgba(23, 23, 23, 0.6);
	font-weight: 400;
}

.site-shell-currency__option-symbol {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(23, 23, 23, 0.55);
	min-width: 30px;
	text-align: right;
}
