.mbps-selectors {
	--mbps-text: #111;
	--mbps-muted: #8a8a8a;
	--mbps-line: #d9d9d6;
	--mbps-surface: #f4f3f0;
	width: 100%;
	margin: 24px 0 10px;
	color: var(--mbps-text);
}

.mbps-selector + .mbps-selector {
	margin-top: 10px;
}

.mbps-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 88px;
	padding: 8px 16px 8px 8px;
	border: 1px solid var(--mbps-line);
	border-radius: 0;
	background: transparent;
	color: var(--mbps-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease;
	appearance: none;
}

.mbps-trigger__media {
	display: block;
	flex: 0 0 56px;
	width: 56px;
	aspect-ratio: 4 / 5;
	margin-right: 14px;
	overflow: hidden;
	background: var(--mbps-surface);
}

.mbps-trigger__image,
.mbps-trigger__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mbps-trigger__placeholder {
	background: var(--mbps-surface);
}

.mbps-trigger:hover,
.mbps-trigger:focus-visible {
	border-color: var(--mbps-text);
	background: #fafaf8;
}

.mbps-trigger__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}

.mbps-trigger__label {
	overflow: hidden;
	max-width: 100%;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mbps-trigger__info {
	overflow: hidden;
	max-width: 100%;
	color: var(--mbps-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mbps-trigger__arrow {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-left: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.mbps-drawer-layer[hidden] {
	display: none !important;
}

.mbps-drawer-layer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
}

.mbps-drawer-layer.is-open {
	visibility: visible;
}

.mbps-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.34);
	opacity: 0;
	cursor: pointer;
	transition: opacity 260ms ease;
}

.mbps-drawer {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(520px, 92vw);
	height: 100%;
	max-height: 100dvh;
	overflow: hidden;
	background: #fff;
	box-shadow: -14px 0 40px rgba(0, 0, 0, 0.12);
	transform: translate3d(100%, 0, 0);
	transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbps-drawer-layer.is-open .mbps-drawer-backdrop {
	opacity: 1;
}

.mbps-drawer-layer.is-open .mbps-drawer {
	transform: translate3d(0, 0, 0);
}

.mbps-drawer__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	padding: 14px 20px 14px 24px;
	border-bottom: 1px solid #e7e7e4;
}

.mbps-drawer__header h2 {
	margin: 0;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.mbps-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mbps-text);
	cursor: pointer;
	appearance: none;
}

.mbps-drawer__close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.4;
}

.mbps-drawer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 14px;
	padding: 22px 20px 40px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.mbps-card-wrap {
	min-width: 0;
}

.mbps-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: var(--mbps-text);
	text-decoration: none;
}

.mbps-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--mbps-surface);
	outline: 1px solid transparent;
	outline-offset: -1px;
	transition: outline-color 160ms ease, opacity 160ms ease;
}

.mbps-card:hover .mbps-card__media,
.mbps-card:focus-visible .mbps-card__media {
	outline-color: #888;
}

.mbps-card.is-current .mbps-card__media {
	outline: 2px solid var(--mbps-text);
	outline-offset: -2px;
}

.mbps-card__image,
.mbps-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbps-card__placeholder {
	background: var(--mbps-surface);
}

.mbps-card__copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 9px;
}

.mbps-card__label {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mbps-card__info {
	overflow: hidden;
	color: var(--mbps-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mbps-card.is-loading {
	opacity: 0.48;
}

body.mbps-drawer-open {
	overflow: hidden;
}

.single-product div.product .summary {
	transition: opacity 180ms ease;
}

.single-product div.product.mbps-is-switching .summary {
	opacity: 0.52;
	pointer-events: none;
	cursor: progress;
}

@media (max-width: 689px) {
	.mbps-selectors {
		margin-top: 20px;
	}

	.mbps-trigger {
		min-height: 64px;
		padding: 7px 14px 7px 7px;
	}

	.mbps-trigger__media {
		flex-basis: 48px;
		width: 48px;
		aspect-ratio: 1 / 1;
		margin-right: 12px;
	}

	.mbps-drawer {
		width: 100%;
	}

	.mbps-drawer__header {
		min-height: 64px;
		padding: 10px 12px 10px 18px;
	}

	.mbps-drawer__grid {
		gap: 20px 10px;
		padding: 16px 12px 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbps-trigger,
	.mbps-drawer-backdrop,
	.mbps-drawer,
	.mbps-card__media,
	.single-product div.product .summary {
		transition: none;
	}
}
