.carbone-market-popup {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.carbone-market-popup__box {
	border-radius: 16px;
	background: #E8E8E8;
	padding: 24px;
	max-width: 450px;
	width: 90%;
	text-align: center;
	.carbone-market-popup__option{
		background:#FFF!important;
	}
}
.carbone-market-switcher-item{
	width:100%;
	.carbone-market-switcher{
		width:100%;
	}
	.carbone-market-switcher__toggle{
		width:100%;
		flex: 1 1 0%;
		padding: 5px 20px;
		min-height: 50px;
		border: none;
		border-bottom: 1px solid var(--brdcolor-gray-300);
		text-align:left;
		justify-content: flex-start;
	}
	.carbone-market-switcher__code{
		color:#333;
		font-weight:600;
		font-size:13px;
	}
	.carbone-market-switcher__chevron{
		border-top: 5px solid #333;
	}
	.carbone-market-switcher__menu{
		left:10px!important;
	}
}

.carbone-market-popup__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: #000;
}

.carbone-market-popup__subtitle {
	margin: 0 0 22px;
	font-size: 16px;
	font-weight: 400;
	color: #000;
}

.carbone-market-popup__options {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.carbone-market-popup__option {
	flex: 1 1 160px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;

	border-radius: 8px!important;
	border: 1px solid var(--brown-opacity-20, rgba(119, 98, 92, 0.20));
	background:transparent!important;


}

/* Deterministic stacked layout on mobile instead of relying on flex-wrap -
   at this width, option widths sit right at the wrap threshold, so content
   changes after a click (spinner appearing, label text, disabled state)
   could nudge a button's width just enough to flip whether two buttons sit
   side by side or stack, causing a visible jump mid-interaction. Forcing
   a single column removes that uncertainty entirely - same breakpoint as
   the rest of the theme's mobile layout. Placed AFTER the base
   .carbone-market-popup__option rule above (not just inside a media query)
   so flex:1 1 auto actually wins the cascade - equal specificity means
   source order decides the winner regardless of the media query, and the
   base rule's flex-basis:160px, sized along the now-vertical main axis
   once flex-direction:column applies, is exactly what inflated the
   buttons' height when this was ordered the other way round. */
@media (max-width: 767px) {
	.carbone-market-popup__options {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.carbone-market-popup__option {
		flex: 1 1 50px;
		width: 100%;
	}
}

.carbone-market-popup__option:hover,
.carbone-market-popup__option:focus {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
	outline: none;
}

.carbone-market-popup__option:disabled {
	cursor: default;
	transform: none !important;
	box-shadow: none !important;
}

.carbone-market-popup.is-loading .carbone-market-popup__box {
	opacity: 0.85;
}

.carbone-market-popup__option:not(.is-current-action):disabled {
	opacity: 0.5;
}

.carbone-market-popup__spinner {
	display: none;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-left: 6px;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-top-color: #333;
	animation: carbone-market-spin 0.7s linear infinite;
}

.carbone-market-popup__option.is-current-action .carbone-market-popup__spinner {
	display: inline-block;
}

.carbone-market-popup__error {
	margin: 12px 0 0;
	font-size: 13px;
	color: #b42318;
}

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

.carbone-market-popup__flag {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
}

.carbone-market-popup__flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carbone-market-popup__label {
	font-weight: 700;
	font-size: 14px;
	color: #000;
}

.carbone-market-popup__currency {
	margin-left: auto;
	font-size: 13px;
	color: #9a9a9a;
}

/* [carbone_market_switcher] shortcode dropdown */
.carbone-market-switcher {
	position: relative;
	display: inline-block;
}

.carbone-market-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px!important;
	padding: 6px 12px 6px 6px;
	border: none;
	border-radius: 999px;
	background: transparent!important;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	color: #1a1a1a;
}

.carbone-market-switcher__toggle:hover,
.carbone-market-switcher__toggle:focus {
	background: #d3ccc2;
	outline: none;
}

.carbone-market-switcher__flag {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
}

.carbone-market-switcher__flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.carbone-market-switcher__code{
	color:white;
	font-weight:400;
	font-size:16px;
}

.carbone-market-switcher__chevron {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #fff;
	margin-left: 2px;
	transition: transform 0.15s ease;
}

.carbone-market-switcher.is-open .carbone-market-switcher__chevron {
	transform: rotate(180deg);
}

.whb-sticked .whb-color-light:not(.whb-with-bg) {
    .carbone-market-switcher__chevron {
        border-top: 5px solid #292929;
    }
}

.carbone-market-switcher.is-loading .carbone-market-switcher__toggle {
	opacity: 0.6;
	pointer-events: none;
}

/* Closes the gap where only the closed toggle dimmed, but an already-open
   menu's options stayed fully clickable while a switch was in flight. */
.carbone-market-switcher.is-loading .carbone-market-switcher__option {
	pointer-events: none;
	opacity: 0.5;
}

.carbone-market-switcher.is-loading .carbone-market-switcher__option.is-current-action {
	opacity: 1;
}

.carbone-market-switcher__option.is-current-action {
	display: flex;
	align-items: center;
}

.carbone-market-switcher__option.is-current-action::after {
	content: '';
	width: 12px;
	height: 12px;
	margin-left: auto;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-top-color: #333;
	animation: carbone-market-spin 0.7s linear infinite;
}

.carbone-market-switcher__error {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 160px;
	margin: 0;
	padding: 6px 10px 0;
	font-size: 12px;
	color: #b42318;
	background: #fff;
	border-radius: 0 0 12px 12px;
}

.carbone-market-switcher__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 160px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	z-index: 1000;
}

.carbone-market-switcher__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #1a1a1a;
	white-space: nowrap;
}

.carbone-market-switcher__option:hover {
	background: #f2f0ee;
}

.carbone-market-switcher__option.is-current {
	background: #f2f0ee;
	cursor: default;
}

.carbone-market-switcher__option .carbone-market-switcher__flag {
	width: 22px;
	height: 22px;
}

.carbone-market-switcher__currency {
	margin-left: auto;
	font-size: 12px;
	color: #9a9a9a;
}

/* Nav menu item: device visibility (set per-item in Appearance > Menus) */
.carbone-market-switcher-item {
	display: flex;
	align-items: center;
}

@media (max-width: 767px) {
	.carbone-hide-on-mobile.carbone-market-switcher-item {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.carbone-hide-on-tablet.carbone-market-switcher-item {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.carbone-hide-on-desktop.carbone-market-switcher-item {
		display: none !important;
	}
}
