.ptm-header-currency {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.ptm-header-currency__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	box-sizing: border-box;
	width: 90px;
	min-width: 90px;
	height: 48px;
	padding: 0 14px;
	margin: 0;
	color: #fff;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 8px;
	box-shadow: none;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.ptm-header-currency__button:hover,
.ptm-header-currency__button:focus-visible,
.ptm-header-currency__button[aria-expanded="true"] {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.38);
	outline: none;
}

.ptm-header-currency__arrow {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.ptm-header-currency__button[aria-expanded="true"] .ptm-header-currency__arrow {
	margin-top: 3px;
	transform: rotate(225deg);
}

.ptm-header-currency-menu {
	position: absolute;
	z-index: 999999;
	top: calc(100% + 8px);
	right: 0;
	display: none;
	width: 270px;
	max-width: calc(100vw - 24px);
	max-height: min(420px, calc(100vh - 24px));
	padding: 8px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #dce4ea;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(11, 30, 51, 0.20);
	font-family: "Inter", sans-serif;
}

.ptm-header-currency-menu.is-open {
	display: block;
}

.ptm-header-currency-menu__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	padding: 9px 10px;
	color: #4a5a6a;
	background: transparent;
	border: 0;
	border-radius: 7px;
	font: inherit;
	font-size: 0.86rem;
	text-align: left;
	cursor: pointer;
}

.ptm-header-currency-menu__item:hover,
.ptm-header-currency-menu__item:focus-visible {
	color: #0b1e33;
	background: #f7f9fb;
	outline: none;
}

.ptm-header-currency-menu__item.is-selected {
	color: #0b1e33;
	background: #eef3f7;
	font-weight: 600;
}

.ptm-header-currency-menu__code {
	color: #0b1e33;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.8rem;
	font-weight: 700;
}

.ptm-header-currency-menu__name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ptm-mobile-currency {
	display: none;
}

@media (max-width: 900px) {
	.ptm-mobile-currency {
		display: block;
		width: 100%;
	}

	.ptm-mobile-currency .ptm-header-currency__button {
		justify-content: flex-start;
		width: 100%;
		min-width: 0;
		height: auto;
		padding: 12px 4px;
		color: #c6d2de;
		border: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 0;
		font-size: 0.92rem;
		font-weight: 500;
		text-align: left;
	}

	.ptm-mobile-currency__value {
		margin-left: auto;
		padding-left: 12px;
		color: #fff;
		font-family: "JetBrains Mono", monospace;
		font-size: 0.78rem;
		font-weight: 700;
	}

	.ptm-mobile-currency .ptm-header-currency-menu {
		position: fixed;
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		max-width: none;
	}
}
