/* Product details. WooCommerce owns the panels, reviews and selected state. */
.single-product .fdm-pdp .woocommerce-tabs {
	width: 100%;
	min-width: 0;
	border: 0;
}

.single-product .fdm-pdp .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	align-items: flex-start;
	scrollbar-width: none;
	overflow-x: auto;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	border-block-end: 1px solid var(--wp--preset--color--border);
	list-style: none;
}

.single-product .fdm-pdp .woocommerce-tabs ul.tabs::before,
.single-product .fdm-pdp .woocommerce-tabs ul.tabs::after,
.single-product .fdm-pdp .woocommerce-tabs ul.tabs li::before,
.single-product .fdm-pdp .woocommerce-tabs ul.tabs li::after {
	content: none;
}

.single-product .fdm-pdp .woocommerce-tabs ul.tabs li {
	position: relative;
	flex: none;
	margin: 0;
	padding: 0 0 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.single-product .fdm-pdp .woocommerce-tabs ul.tabs a:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: -2px;
}

.single-product .fdm-pdp .woocommerce-tabs .wc-tab {
	margin: 0;
	padding: 0;
	border: 0;
}

.single-product .fdm-pdp .woocommerce-tabs :is(.wc-tab > h2, .woocommerce-Reviews-title, .comment-reply-title) {
	display: block;
	margin: 0 0 12px;
	color: var(--wp--preset--color--text);
	font: 600 22px/1.35 var(--fdm-editorial);
}

.single-product .fdm-pdp .woocommerce-tabs .woocommerce-Tabs-panel--description p {
	max-width: 68ch;
	line-height: 1.55;
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes {
	display: table;
	width: 100%;
	max-width: 680px;
	margin: 0;
	border: 0;
	border-spacing: 0;
	table-layout: fixed;
	border-collapse: collapse;
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes tbody {
	display: table-row-group;
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes tr {
	display: table-row;
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes tr:nth-child(n),
.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes tr:nth-child(n) > :is(th, td) {
	border: 0;
	background: transparent;
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes :is(th, td) {
	display: table-cell;
	padding: 6px 0;
	text-align: start;
	vertical-align: top;
	font-style: normal;
	overflow-wrap: anywhere;
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes th {
	width: 160px;
	padding-inline-end: 16px;
	font-weight: 600;
}

@media (max-width: 600px) {

	.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes th {
		width: 34%;
	}
}

.single-product .fdm-pdp .woocommerce-tabs table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

.single-product .fdm-pdp .woocommerce-tabs #review_form_wrapper {
	margin-block-start: 28px;
	max-width: 560px;
}

.single-product .fdm-pdp .woocommerce-tabs #respond {
	padding: 0;
	border: 0;
	background: transparent;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	container-type: inline-size;
	margin: 0;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform > * {
	grid-column: 1 / -1;
	padding: 0;
	min-width: 0;
}

.single-product .fdm-pdp .woocommerce-tabs #review_form #respond #commentform > * {
	margin: 0;
}

@container (min-width: 30rem) {

	.single-product .fdm-pdp .woocommerce-tabs #commentform:has(> .comment-form-author + .comment-form-email) > :is(.comment-form-author, .comment-form-email) {
		grid-column: span 1;
	}
}

.single-product .fdm-pdp .woocommerce-tabs #commentform :is(.comment-form-rating, .comment-form-comment, .comment-form-author, .comment-form-email) > label {
	display: block;
	margin-block-end: 6px;
	font-weight: 600;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform :is(#author, #email, #comment) {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform #comment {
	display: block;
	height: 92px;
	resize: vertical;
}

.single-product .fdm-pdp .woocommerce-tabs #review_form #respond #commentform .stars {
	display: flex;
	margin: 0;
	color: var(--wp--preset--color--brand);
	font-size: 22px;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform .stars span {
	display: inline-flex;
	flex-wrap: wrap;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform .stars a {
	margin-inline-end: 0;
	width: 40px;
	height: 40px;
	color: inherit;
}

.single-product .fdm-pdp .woocommerce-tabs #commentform .stars a::before {
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
}

.single-product .fdm-pdp .woocommerce-tabs #commentform .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	min-height: 44px;
	gap: 8px;
}

.single-product .fdm-pdp .woocommerce-tabs #wp-comment-cookies-consent {
	width: 20px;
	height: 20px;
	min-height: 0;
	flex: none;
	margin: 0 4px;
}

.single-product .fdm-pdp .woocommerce-tabs #respond input#submit {
	min-height: 48px;
	min-width: 152px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--on-brand);
	font: 600 14px/20px var(--fdm-body);
	cursor: pointer;
}

.single-product .fdm-pdp .woocommerce-tabs #respond input#submit:hover {
	background: var(--wp--preset--color--hover);
}

.single-product .fdm-pdp .woocommerce-tabs #respond input#submit:disabled {
	background: var(--wp--preset--color--disabled-surface);
	color: var(--wp--preset--color--disabled-text);
	cursor: default;
}

/*
 * Show the form's initial state while keeping submit available for
 * native validation.
 */
.single-product .fdm-pdp .woocommerce-tabs #respond #commentform:has(:required:invalid) input#submit:not(:hover, :focus-visible) {
	background: var(--wp--preset--color--disabled-surface);
	color: var(--wp--preset--color--disabled-text);
}

.single-product .fdm-pdp .woocommerce-tabs .comment-notes {
	color: var(--muted);
	font: 400 14px/20px var(--body);
}

/* Consent labels have their own layout. */
/* stylelint-disable-next-line no-descending-specificity */
.single-product .fdm-pdp .woocommerce-tabs .comment-form-cookies-consent label {
	font: 400 14px/20px var(--body);
}
