/* Mobile product details dialog. Loaded with media="(max-width: 767px)". */
body:has(> dialog.nf-product-details[open]) {
	overflow: hidden;
}

dialog.nf-product-details {
	position: fixed;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	background: #fff;
	color: #222;
	font-family: inherit;
	box-sizing: border-box;
	overflow: hidden;
}

dialog.nf-product-details[open] {
	display: flex;
	flex-direction: column;
}

dialog.nf-product-details::backdrop {
	background: rgba(0,0,0,.45);
}

.nf-product-details *, .nf-product-details *::before, .nf-product-details *::after {
	box-sizing: border-box;
}

.nf-product-details .nf-details-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: none;
	padding: 18px 16px;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.nf-product-details .nf-details-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

.nf-product-details .nf-details-x {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #222;
	box-shadow: none;
}

.nf-product-details .nf-details-x svg {
	width: 25px;
	height: 25px;
}

.nf-product-details .nf-tabs-row {
	position: relative;
	flex: none;
	min-width: 0;
	width: 100%;
	border-bottom: 1px solid #ddd;
	background: #fff;
}

.nf-product-details .nf-details-tabs {
	display: flex;
	align-items: stretch;
	gap: 24px;
	width: 100%;
	padding: 0 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.nf-product-details .nf-tabs-row.nf-tabs-overflow .nf-details-tabs {
	padding-inline: 52px;
}

.nf-product-details .nf-tabs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: #111;
	box-shadow: none;
}

.nf-product-details .nf-tabs-arrow[hidden] {
	display: none!important;
}

.nf-product-details .nf-tabs-arrow svg {
	width: 18px;
	height: 18px;
}

.nf-product-details .nf-tabs-prev {
	left: 6px;
}

.nf-product-details .nf-tabs-next {
	right: 6px;
}

.nf-product-details .nf-details-tabs::-webkit-scrollbar {
	display: none;
}

.nf-product-details .nf-details-tab {
	flex: none;
	display: block;
	margin: 0;
	padding: 16px 0 13px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #333;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: none;
	white-space: nowrap;
	min-height: 52px;
	box-shadow: none;
}

.nf-product-details .nf-details-tab[aria-selected="true"] {
	border-bottom-color: #111;
	color: #111;
	font-weight: 600;
}

.nf-product-details button:focus {
	outline: none!important;
}

.nf-product-details[data-nf-keyboard-focus="true"] button:focus-visible {
	outline: 2px solid #111!important;
	outline-offset: -3px;
}

.nf-product-details .nf-details-content {
	flex: 1;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 20px 16px;
	-webkit-overflow-scrolling: touch;
}

.nf-product-details .nf-details-content > .woocommerce-Tabs-panel {
	display: block!important;
	position: static!important;
	width: 100%!important;
	height: auto!important;
	max-height: none!important;
	margin: 0!important;
	padding: 0!important;
	overflow: visible!important;
	transform: none!important;
	visibility: visible!important;
	opacity: 1!important;
}

.nf-product-details .nf-details-footer {
	flex: none;
	padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #ddd;
	background: #fff;
}

.nf-product-details .nf-details-close {
	display: block;
	width: 100%;
	min-height: 40px;
	border: 0;
	border-radius: 6px;
	padding: 8px 12px;
	background: #111;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	text-transform: none;
	box-shadow: none;
}
