/* Reusable modal base. */
.has-bc-modal {
	overflow: hidden;
}

.bc-modal[hidden] {
	display: none;
}

.bc-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.bc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.55);
}

.bc-modal__dialog {
	position: relative;
	z-index: 1;
	inline-size: min(100%, 56rem);
	max-block-size: calc(100dvh - 2rem);
	overflow: auto;
	padding: clamp(1rem, 2vw, 1.5rem);
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.25);
}

.bc-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 1rem;
}

.bc-modal__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	line-height: 1.2;
}

.bc-modal__close {
	display: inline-grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.bc-modal__close {
	/* display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 50%;
	border: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	position: absolute;
	right: 20px;
	top: 6px;
	z-index: 10; */
}

.bc-modal__close__icon {
	/* display: block;
	width: 18px;
	height: 18px; */
}

.bc-modal__content .df-product-facts {
	max-inline-size: none;
	margin: 0;
}

/* Product content modal trigger. */
.bc-product-content__facts-trigger {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: currentColor;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}
