/**
 * Product page v2. Loaded only on product pages when nvm_pdp_v2_enabled() (inc/pdp-v2.php).
 * Every rule is scoped to body.nvm-pdp-v2.
 */

.nvm-pdp-v2 {
	--pdp-accent: var(--main-strong-color, #c38f1e);
	--pdp-accent-dark: #a5770f;
	--pdp-text: #222;
	--pdp-muted: #6b6b6b;
	--pdp-line: #e6e3dc;
	--pdp-soft: #faf7f0;
	--pdp-save: #2f7d4f;
	--pdp-radius: 10px;
}

/* ---------- Spacing around the product ---------- */

.nvm-pdp-v2 .storefront-breadcrumb {
	margin-bottom: 16px !important;
}

.nvm-pdp-v2 #primary {
	margin-top: 0;
}

.nvm-pdp-v2 div.product {
	position: relative;
	padding: 32px;
	border-radius: 12px;
}

/* ---------- Two-column layout (tablet/desktop) ---------- */

@media (min-width: 768px) {
	.nvm-pdp-v2 div.product {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		column-gap: 48px;
		align-items: start;
	}

	.nvm-pdp-v2 div.product > * {
		grid-column: 1 / -1;
	}

	.nvm-pdp-v2 div.product > .woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
	}

	.nvm-pdp-v2 div.product > .summary {
		grid-column: 2;
		grid-row: 1;
	}

	.nvm-pdp-v2 div.product .woocommerce-product-gallery,
	.nvm-pdp-v2 div.product .summary {
		float: none !important;
		width: auto !important;
		margin: 0 !important;
	}
}

/* ---------- Gallery ---------- */

.nvm-pdp-v2 .woocommerce-product-gallery {
	position: relative;
}

.nvm-pdp-v2 .woocommerce-product-gallery .flex-viewport {
	border-radius: var(--pdp-radius);
	background: #fff;
}

body.nvm-pdp-v2 div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	left: calc(100% - 44px) !important;
	right: auto !important;
	top: 12px !important;
	z-index: 3;
	border-radius: 50% !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.nvm-pdp-v2 .flex-control-thumbs li img {
	border-radius: 8px;
	border: 2px solid transparent;
	opacity: 0.65;
	transition: opacity 0.15s, border-color 0.15s;
}

.nvm-pdp-v2 .flex-control-thumbs li img.flex-active,
.nvm-pdp-v2 .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--pdp-accent);
}

/* Desktop: thumbnails in a vertical strip beside the main image. */
@media (min-width: 768px) {
	.nvm-pdp-v2 .woocommerce-product-gallery {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 14px;
		align-items: start;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-viewport,
	.nvm-pdp-v2 .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
		grid-column: 2;
		grid-row: 1;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin: 0 !important;
		padding: 0;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs li {
		width: 100% !important;
		margin: 0 !important;
		float: none !important;
	}
}

/* Mobile: edge-to-edge image with dots instead of thumbnails. */
@media (max-width: 767px) {
	.nvm-pdp-v2 div.product {
		padding: 0 0 24px;
		border-radius: 0;
		overflow: visible;
	}

	.nvm-pdp-v2 div.product .woocommerce-product-gallery {
		width: 100vw !important;
		margin: 0 0 8px calc(50% - 50vw) !important;
		padding: 0 !important;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-viewport {
		border-radius: 0;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin: 10px 0 0 !important;
		padding: 0;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs li {
		width: 8px !important;
		height: 8px;
		margin: 0 !important;
		float: none !important;
		border-radius: 50%;
		background: #d4cfc4;
		overflow: hidden;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
		background: var(--pdp-accent);
		width: 20px !important;
		border-radius: 4px;
	}

	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs li img {
		opacity: 0 !important;
		width: 100%;
		height: 100%;
		border: 0;
	}

	/* Lone image: no dots. */
	.nvm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs:has(li:only-child) {
		display: none;
	}
}

/* Sale ribbon as a badge on the image. */
.nvm-pdp-v2 .nvm-pdp-image-badge {
	position: absolute;
	top: 44px;
	left: 44px;
	z-index: 4;
	pointer-events: none;
}

@media (min-width: 768px) {
	/* Offset by the thumbnail strip. */
	.nvm-pdp-v2 .nvm-pdp-image-badge {
		left: calc(32px + 72px + 14px + 12px);
	}
}

@media (max-width: 767px) {
	.nvm-pdp-v2 .nvm-pdp-image-badge {
		top: 12px;
		left: 0;
	}
}

.nvm-pdp-v2 .nvm-pdp-image-badge .ribbon-black {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nvm-pdp-v2 .nvm-pdp-image-badge .ribbon-black.golden {
	background: var(--pdp-accent);
	color: #fff;
}

/* ---------- Summary ---------- */

.nvm-pdp-v2 div.product .summary {
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
	color: var(--pdp-text);
}

@media (max-width: 767px) {
	.nvm-pdp-v2 div.product .summary {
		padding: 0 4px !important;
	}
}

.nvm-pdp-v2 .summary .product_title {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--pdp-text);
}

@media (max-width: 767px) {
	.nvm-pdp-v2 .summary .product_title {
		font-size: 21px;
	}
}

.nvm-pdp-v2 .summary > .sku_wrapper {
	display: block;
	font-size: 13px;
	color: var(--pdp-muted);
	margin-bottom: 14px;
}

.nvm-pdp-v2 .summary > .sku_wrapper .sku {
	font-weight: 400;
}

/* Price */
.nvm-pdp-v2 .summary p.price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 6px;
	line-height: 1.1;
}

.nvm-pdp-v2 .summary p.price ins {
	order: -1;
	font-size: 32px !important;
	font-weight: 700 !important;
	color: var(--pdp-accent);
	text-decoration: none;
}

.nvm-pdp-v2 .summary p.price del {
	font-size: 18px;
	color: var(--pdp-muted);
	opacity: 1;
	font-weight: 400;
}

.nvm-pdp-v2 .summary p.price > .amount {
	font-size: 32px;
	font-weight: 700;
	color: var(--pdp-accent);
}

/* No percentage discounts on the product page. */
.nvm-pdp-v2 div.product .discount-percentage {
	display: none;
}

.nvm-pdp-savings {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 18px;
	font-size: 14px;
}

.nvm-pdp-savings__amount {
	color: var(--pdp-save);
	font-weight: 600;
}

/* Variations / sizes */
.nvm-pdp-v2 .summary table.variations {
	margin: 18px 0 8px;
	border: 0;
}

/* Child combinators: the size guide table now lives inside th.label. */
.nvm-pdp-v2 .summary table.variations,
.nvm-pdp-v2 .summary table.variations > tbody,
.nvm-pdp-v2 .summary table.variations > tbody > tr,
.nvm-pdp-v2 .summary table.variations > tbody > tr > th,
.nvm-pdp-v2 .summary table.variations > tbody > tr > td {
	display: block;
	width: 100%;
	padding: 0;
	background: transparent !important;
	border: 0;
}

.nvm-pdp-v2 .summary table.variations > tbody > tr > td.value {
	margin: 0 !important;
}

.nvm-pdp-v2 .summary table.variations > tbody > tr > th.label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.nvm-pdp-v2 .summary table.variations th.label label {
	font-size: 15px;
	font-weight: 600;
	color: var(--pdp-text);
	margin: 0;
}

.nvm-pdp-v2 .summary .wecom-size-guide {
	margin: 0;
}

.nvm-pdp-v2 .summary .wecom-size-guide__btn {
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	color: var(--pdp-accent) !important;
	font-size: 13px !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	height: auto !important;
	width: auto !important;
	line-height: 1.4 !important;
	white-space: nowrap;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term {
	min-width: 48px;
	height: 44px !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 12px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 8px !important;
	border: 1.5px solid #cfcac0 !important;
	box-shadow: none !important;
	background: #fff !important;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term:hover {
	border-color: var(--pdp-text) !important;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term.selected {
	border-color: var(--pdp-text) !important;
	background: var(--pdp-text) !important;
	color: #fff;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term.selected .rtwpvs-term-span {
	color: #fff;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term.disabled {
	background: #f4f2ee !important;
	border-style: dashed !important;
	cursor: not-allowed;
}

/* Replace the plugin's red X with a strike-through. */
.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term.disabled::before,
.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term.disabled::after {
	display: none !important;
}

.nvm-pdp-v2 .rtwpvs-terms-wrapper .rtwpvs-term.disabled .rtwpvs-term-span {
	text-decoration: line-through;
	opacity: 0.45 !important;
}

/* WooCommerce hides it with inline visibility:hidden, which still takes up space. */
.nvm-pdp-v2 .summary .reset_variations[style*="hidden"] {
	display: none !important;
}

.nvm-pdp-v2 .summary .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--pdp-muted);
}

.nvm-pdp-v2 table.variations.nvm-pdp-attention {
	animation: nvm-pdp-attention 1.2s ease-out;
	border-radius: 8px;
}

@keyframes nvm-pdp-attention {
	0% {
		box-shadow: 0 0 0 0 rgba(195, 143, 30, 0.6);
	}
	100% {
		box-shadow: 0 0 0 14px rgba(195, 143, 30, 0);
	}
}

/* Add to cart */
.nvm-pdp-v2 .summary .woocommerce-variation-add-to-cart,
.nvm-pdp-v2 .summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 0 !important;
}

.nvm-pdp-v2 .summary form.variations_form {
	padding-top: 0 !important;
}

.nvm-pdp-v2 .summary .woocommerce-variation.single_variation:not(:empty) {
	margin: 4px 0 10px;
	font-size: 14px;
}

.nvm-pdp-v2 .summary .single_add_to_cart_button {
	flex: 1 1 100%;
	width: 100% !important;
	max-width: none !important;
	height: 54px !important;
	margin: 6px 0 0 !important;
	border-radius: var(--pdp-radius) !important;
	background: var(--pdp-accent) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-indent: 0 !important;
	opacity: 1 !important;
	box-shadow: 0 4px 12px rgba(195, 143, 30, 0.3);
	transition: background-color 0.15s, transform 0.1s;
}

.nvm-pdp-v2 .summary .single_add_to_cart_button:hover {
	background: var(--pdp-accent-dark) !important;
}

.nvm-pdp-v2 .summary .single_add_to_cart_button:active {
	transform: translateY(1px);
}

.nvm-pdp-v2 .summary .note-availability {
	order: 5;
	flex: 1 1 100%;
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--pdp-muted);
}

/* Trust row */
.nvm-pdp-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 22px 0 0;
	padding: 16px;
	list-style: none;
	background: var(--pdp-soft);
	border: 1px solid var(--pdp-line);
	border-radius: var(--pdp-radius);
}

.nvm-pdp-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--pdp-text);
}

.nvm-pdp-trust svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--pdp-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nvm-pdp-trust a {
	color: var(--pdp-text);
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 380px) {
	.nvm-pdp-trust {
		grid-template-columns: 1fr;
	}
}

/* Categories, below the purchase area */
.nvm-pdp-v2 .summary .product_meta {
	margin: 18px 0 0;
	padding: 0;
	border: 0;
	font-size: 13px;
	color: var(--pdp-muted);
}

.nvm-pdp-v2 .summary .product_meta a {
	color: var(--pdp-muted) !important;
	text-transform: none;
	font-weight: 400 !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Payment card logos */
.nvm-pdp-v2 .single-product-summary-badges {
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}

.nvm-pdp-v2 .single-product-summary-badges > span {
	display: none;
}

.nvm-pdp-v2 .single-product-summary-badges img {
	max-width: 210px;
	height: auto;
}

/* ---------- Tabs ---------- */

.nvm-pdp-v2 .woocommerce-tabs {
	margin-top: 48px;
	padding: 0 !important;
	border: 0;
}

.nvm-pdp-v2 #safe-easy-shopping {
	display: none;
}

.nvm-pdp-v2 .woocommerce-tabs .panel p,
.nvm-pdp-v2 .woocommerce-tabs .panel li {
	text-align: left !important;
	font-size: 16px !important;
	line-height: 1.7;
	color: #333;
	max-width: 75ch;
}

.nvm-pdp-v2 .woocommerce-tabs table.shop_attributes {
	max-width: 640px;
	border: 0;
}

.nvm-pdp-v2 .woocommerce-tabs table.shop_attributes th,
.nvm-pdp-v2 .woocommerce-tabs table.shop_attributes td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--pdp-line);
	background: transparent !important;
	font-size: 15px;
	text-align: left;
}

.nvm-pdp-v2 .woocommerce-tabs table.shop_attributes td p {
	margin: 0;
	font-size: 15px !important;
}

/* Desktop: underlined tabs */
@media (min-width: 768px) {
	.nvm-pdp-v2 .woocommerce-tabs ul.tabs {
		display: flex;
		gap: 32px;
		width: 100% !important;
		float: none !important;
		margin: 0 0 24px !important;
		padding: 0 !important;
		border: 0 !important;
		border-bottom: 1px solid var(--pdp-line) !important;
	}

	.nvm-pdp-v2 .woocommerce-tabs ul.tabs::before,
	.nvm-pdp-v2 .woocommerce-tabs ul.tabs li::before,
	.nvm-pdp-v2 .woocommerce-tabs ul.tabs li::after {
		display: none !important;
	}

	.nvm-pdp-v2 .woocommerce-tabs ul.tabs li {
		width: auto !important;
		flex: 0 0 auto;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
	}

	.nvm-pdp-v2 .woocommerce-tabs ul.tabs li a {
		display: block;
		padding: 12px 0 !important;
		margin-bottom: -1px;
		border-bottom: 2px solid transparent;
		background: none !important;
		color: var(--pdp-muted) !important;
		font-size: 16px;
		font-weight: 600;
		text-align: left;
	}

	.nvm-pdp-v2 .woocommerce-tabs ul.tabs li.active a,
	.nvm-pdp-v2 .woocommerce-tabs ul.tabs li a:hover {
		color: var(--pdp-text) !important;
		border-bottom-color: var(--pdp-accent);
	}

	.nvm-pdp-v2 .woocommerce-tabs .panel {
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* The tab already names the panel. */
	.nvm-pdp-v2 .woocommerce-tabs .panel > h2:first-child {
		display: none;
	}
}

/* Mobile: collapsible sections */
@media (max-width: 767px) {
	.nvm-pdp-v2 .woocommerce-tabs {
		margin-top: 28px;
		border-top: 1px solid var(--pdp-line);
	}

	.nvm-pdp-v2 .woocommerce-tabs ul.tabs {
		display: none !important;
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel {
		display: block !important;
		margin: 0 !important;
		padding: 0 4px !important;
		border-bottom: 1px solid var(--pdp-line);
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
		position: relative;
		margin: 0;
		padding: 16px 32px 16px 0;
		font-size: 16px;
		font-weight: 600;
		text-align: left;
		cursor: pointer;
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child::after {
		content: "";
		position: absolute;
		right: 6px;
		top: 50%;
		width: 9px;
		height: 9px;
		border-right: 2px solid var(--pdp-text);
		border-bottom: 2px solid var(--pdp-text);
		transform: translateY(-70%) rotate(45deg);
		transition: transform 0.2s;
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel.is-open > h2:first-child::after {
		transform: translateY(-30%) rotate(-135deg);
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel > :not(h2:first-child) {
		display: none;
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel.is-open > :not(h2:first-child) {
		display: revert;
	}

	.nvm-pdp-v2 .woocommerce-tabs .woocommerce-Tabs-panel.is-open {
		padding-bottom: 16px !important;
	}

	.nvm-pdp-v2 .woocommerce-tabs .panel p,
	.nvm-pdp-v2 .woocommerce-tabs .panel li {
		font-size: 15px !important;
	}
}

/* ---------- Gift button ---------- */

.nvm-pdp-v2 .wcpr_gift__outer {
	left: auto !important;
	right: 16px !important;
	bottom: 16px !important;
	top: auto !important;
	transform: scale(0.78);
	transform-origin: bottom right;
	transition: bottom 0.2s;
}

.nvm-pdp-v2.nvm-pdp-sticky-on .wcpr_gift__outer {
	bottom: 84px !important;
}

/* ---------- Mobile sticky add to cart ---------- */

.nvm-pdp-sticky {
	display: none;
}

@media (max-width: 767px) {
	.nvm-pdp-sticky {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--pdp-line);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
		transform: translateY(110%);
		transition: transform 0.25s ease;
	}

	.nvm-pdp-sticky.is-visible {
		transform: translateY(0);
	}

	.nvm-pdp-sticky-on {
		padding-bottom: 72px;
	}

	.nvm-pdp-sticky__info {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
	}

	.nvm-pdp-sticky__name {
		font-size: 12px;
		color: var(--pdp-muted);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.nvm-pdp-sticky__price {
		font-size: 17px;
		font-weight: 700;
		color: var(--pdp-accent);
	}

	.nvm-pdp-sticky__price del {
		font-size: 13px;
		font-weight: 400;
		color: var(--pdp-muted);
		margin-right: 4px;
	}

	.nvm-pdp-sticky__price ins {
		text-decoration: none;
	}

	.nvm-pdp-sticky__price .amount,
	.nvm-pdp-sticky__price .woocommerce-Price-currencySymbol {
		font-size: inherit !important;
		font-weight: inherit !important;
	}

	.nvm-pdp-sticky__price .screen-reader-text {
		position: absolute !important;
		clip: rect(1px, 1px, 1px, 1px);
		width: 1px;
		height: 1px;
		overflow: hidden;
	}

	.nvm-pdp-sticky__btn {
		flex: 0 0 auto;
		height: 48px;
		padding: 0 22px;
		border: 0;
		border-radius: var(--pdp-radius);
		background: var(--main-strong-color, #c38f1e);
		color: #fff;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}

	/* Mobile breadcrumb: the 120px offset dates from the old fixed header. */
	.nvm-pdp-v2 .storefront-breadcrumb {
		margin-top: 0 !important;
		margin-bottom: 8px !important;
	}
}

/* The size guide now sits inside table.variations, whose th/td Storefront turns into
   list-items. Give its own table normal table layout back. */
.nvm-pdp-v2 .wecom-size-guide__modal table {
	display: table !important;
	width: 100%;
}

.nvm-pdp-v2 .wecom-size-guide__modal thead {
	display: table-header-group !important;
}

.nvm-pdp-v2 .wecom-size-guide__modal tbody {
	display: table-row-group !important;
}

.nvm-pdp-v2 .wecom-size-guide__modal tr {
	display: table-row !important;
}

.nvm-pdp-v2 .wecom-size-guide__modal th,
.nvm-pdp-v2 .wecom-size-guide__modal td {
	display: table-cell !important;
	width: auto !important;
	padding: 8px 10px !important;
	border: 1px solid #e6e2d9 !important;
	background: #fff !important;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	white-space: normal;
}

.nvm-pdp-v2 .wecom-size-guide__modal th {
	background: #faf7f0 !important;
	font-weight: 700;
}

/* Keep the label row layout ("Μέγεθος" left, link right) unaffected by the modal markup. */
.nvm-pdp-v2 .summary table.variations th.label .wecom-size-guide {
	font-weight: 400;
	text-align: left;
}

/* Size guide modal as a centred card. */
.nvm-pdp-v2 .wecom-size-guide__modal--visible {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.nvm-pdp-v2 .wecom-size-guide__modalInner {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	margin: 0 !important;
	padding: 24px 24px 20px;
	overflow: auto;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	cursor: default;
}

.nvm-pdp-v2 .wecom-size-guide__modalInner > p {
	margin: 0 40px 16px 0;
	font-size: 18px;
	font-weight: 700;
	color: #222;
	text-transform: none;
}

.nvm-pdp-v2 .wecom-size-guide__modalClose {
	top: 18px !important;
	right: 18px !important;
	width: 24px !important;
	height: 24px !important;
}

.nvm-pdp-v2 .wecom-size-guide__modalClose::before,
.nvm-pdp-v2 .wecom-size-guide__modalClose::after {
	top: 11px !important;
	height: 2px !important;
	background-color: #222 !important;
}

@media (max-width: 480px) {
	.nvm-pdp-v2 .wecom-size-guide__modalInner {
		padding: 20px 14px 16px;
	}

	.nvm-pdp-v2 .wecom-size-guide__modalInner > p {
		font-size: 16px;
	}

	/* Fit three columns in the card: fixed layout, smaller type, wrap long headers. */
	.nvm-pdp-v2 .wecom-size-guide__modal table {
		table-layout: fixed;
	}

	.nvm-pdp-v2 .wecom-size-guide__modal th,
	.nvm-pdp-v2 .wecom-size-guide__modal td {
		padding: 7px 4px !important;
		font-size: 12.5px;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.nvm-pdp-v2 .wecom-size-guide__modal th {
		font-size: 11px;
		letter-spacing: 0;
	}
}
