.nps-selector {
	--nps-radius: 14px;
	--nps-button-radius: 999px;
	--nps-accent: #D52D4E;
	--nps-button-bg: #FDE8EC;
	--nps-button-hover-bg: #F8D5DC;
	margin: 0 0 24px;
	font: inherit;
	color: inherit;
}

.nps-selector__title,
.nps-selector__footer-title {
	margin-bottom: 14px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.nps-selector__details {
	display: grid;
	gap: 12px;
	margin-bottom: 22px;
}

.nps-detail-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	min-height: 28px;
}

.nps-detail-label {
	font-weight: 700;
	color: inherit;
}

.nps-detail-divider {
	border-bottom: 1px dashed var(--brdcolor-gray-300, rgba(0, 0, 0, .24));
	height: 0;
	transform: translateY(2px);
}

.nps-detail-value {
	font-weight: 700;
	text-align: left;
	justify-self: start;
}

.nps-detail-price .nps-detail-value,
.nps-detail-price .woocommerce-Price-amount,
.nps-detail-price .woocommerce-Price-currencySymbol {
	color: var(--nps-accent);
}

.nps-detail-price .woocommerce-Price-amount {
	white-space: nowrap;
	unicode-bidi: isolate;
}

/* Preserve the entered dimension order without reversing individual digits. */
.nps-size-button bdi,
.nps-size-value {
	direction: ltr !important;
	unicode-bidi: isolate !important;
}

/* Keep regular price, sale price and currency on one line. */
.nps-price-inline {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 4px;
	max-width: 100%;
	white-space: nowrap;
}

.nps-price-inline del,
.nps-price-inline ins,
.nps-price-inline .woocommerce-Price-amount,
.nps-price-inline .woocommerce-Price-currencySymbol {
	display: inline-block;
	white-space: nowrap;
}

/* WoodMart may remove WooCommerce's default strike-through. */
.nps-price-inline del,
.nps-price-inline del .woocommerce-Price-amount,
.nps-price-inline del .woocommerce-Price-currencySymbol {
	text-decoration-line: line-through !important;
	text-decoration-style: solid !important;
}

.nps-price-inline ins {
	text-decoration: none !important;
}

/* Use two rows only when PHP detects more than 14 price digits. */
.nps-price-inline.nps-price-inline--long {
	display: inline-grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	row-gap: 2px;
	white-space: normal;
}

.nps-price-inline.nps-price-inline--long del,
.nps-price-inline.nps-price-inline--long ins {
	display: block;
	width: 100%;
	white-space: nowrap;
	text-align: center;
}

.nps-detail-description {
	padding-top: 6px;
	line-height: 1.9;
}

.nps-detail-description__title {
	margin-bottom: 5px;
	font-weight: 700;
}

.nps-selector .is-empty {
	display: none;
}

.nps-selector__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.nps-size-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 112px;
	max-width: 170px;
	min-height: 54px;
	padding: 8px 18px;
	border: 1px solid transparent;
	border-radius: var(--nps-button-radius);
	background: var(--nps-button-bg);
	color: var(--nps-accent);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.nps-size-button bdi {
	display: -webkit-box;
	overflow: hidden;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Hover only applies to options that are not selected. */
.nps-size-button:not(.is-selected):not(:disabled):hover,
.nps-size-button:not(.is-selected):not(:disabled):focus-visible {
	border-color: rgba(213, 45, 78, .18);
	background: var(--nps-button-hover-bg);
	color: var(--nps-accent);
	outline: none;
}

/* The active option stays visually identical on hover and focus. */
.nps-size-button.is-selected,
.nps-size-button.is-selected:hover,
.nps-size-button.is-selected:focus,
.nps-size-button.is-selected:focus-visible {
	background: var(--nps-accent);
	border-color: var(--nps-accent);
	color: #fff;
	box-shadow: none;
	outline: none;
}

.nps-size-button.is-disabled,
.nps-size-button:disabled {
	opacity: .45;
	cursor: not-allowed;
	text-decoration: line-through;
}

.nps-no-sizes {
	margin-bottom: 15px;
}

@media (max-width: 575px) {
	.nps-selector__buttons {
		gap: 10px;
	}

	.nps-size-button {
		padding-inline: 14px;
	}

	.nps-detail-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.nps-detail-divider {
		display: none;
	}

	.nps-detail-value {
		text-align: right;
	}
}

.nps-selector__colors {
	margin-top: 22px;
}

.nps-selector__colors-title {
	margin-bottom: 14px;
}

.nps-color-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.nps-color-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-items: center;
	gap: 5px;
	min-width: 82px;
	max-width: 120px;
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid #E9E9E9;
	border-radius: var(--btn-brd-radius, 0px);
	background: var(--btn-bgcolor, #F3F3F3);
	color: var(--btn-color, #3E3E3E);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: all .25s ease;
	text-transform: var(--btn-transform, uppercase);
	line-height: 1.2;
}

.nps-color-swatch__sample {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 50%;
	background: var(--nps-swatch-color, transparent);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.nps-color-swatch__name {
	display: -webkit-box;
	overflow: hidden;
	max-width: 100%;
	overflow-wrap: anywhere;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nps-color-swatch.has-no-hex .nps-color-swatch__sample {
	background:
		linear-gradient(45deg, #eee 25%, transparent 25%),
		linear-gradient(-45deg, #eee 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #eee 75%),
		linear-gradient(-45deg, transparent 75%, #eee 75%),
		#fff;
	background-position: 0 0, 0 7px, 7px -7px, -7px 0;
	background-size: 14px 14px;
}

@media (max-width: 575px) {
	.nps-color-swatches {
		gap: 10px;
	}

	.nps-color-swatch {
		padding-inline: 14px;
	}
}


.nps-color-swatch:hover {
	background: var(--nps-accent);
	border-color: var(--nps-accent);
	color: #fff;
}

.nps-color-swatch.is-selected {
	background: var(--nps-accent);
	border-color: var(--nps-accent);
	color: #fff;
	box-shadow: none;
	outline: none;
}
.nps-size-button { min-width:82px; min-height:38px; padding:5px 12px; }
.nps-size-button.is-selected {background:var(--nps-accent);border-color:var(--nps-accent);color:#fff;box-shadow:none;outline:none;}
.nps-color-swatch {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;outline:none;border-radius:999px;vertical-align:middle;text-align:center;text-decoration:none!important;text-shadow:none;line-height:1.2;cursor:pointer;transition:all .25s ease;color:#3E3E3E;background:#F3F3F3;border:1px solid #E9E9E9;min-width:82px;min-height:38px;padding:5px 12px;}
.nps-color-swatch:hover {background:var(--nps-accent);border-color:var(--nps-accent);color:#fff;}
.nps-color-swatch.is-selected {background:var(--nps-accent);border-color:var(--nps-accent);color:#fff;box-shadow:none;outline:none;}


/* Final size/color button overrides */
.nps-selector .nps-size-button,
.nps-selector .nps-color-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	outline: none;
	border-radius: 999px !important;
	vertical-align: middle;
	text-align: center;
	text-decoration: none !important;
	text-shadow: none;
	line-height: 1.2;
	cursor: pointer;
	transition: all .25s ease;
}

.nps-selector .nps-size-button {
	padding: 5px 20px;
	min-height: 42px;
	font-size: 13px;
}

.nps-selector .nps-size-button:not(.is-selected):hover,
.nps-selector .nps-color-swatch:not(.is-selected):hover {
	background: var(--nps-accent);
	border-color: var(--nps-accent);
	color: #fff;
}

.nps-selector .nps-size-button.is-selected,
.nps-selector .nps-color-swatch.is-selected {
	background: var(--nps-accent) !important;
	border-color: var(--nps-accent) !important;
	color: #fff !important;
	box-shadow: none !important;
	outline: none !important;
}

.nps-selector .nps-color-swatch {
	min-width: 72px;
	height: 36px;
	padding: 5px 10px;
	background:#F3F3F3;
	border:1px solid #E9E9E9;
	color:#3E3E3E;
}

.nps-color-swatch__sample {
	width:22px;
	height:22px;
	border-radius:50%;
	flex:0 0 22px;
	border:1px solid rgba(0,0,0,.15);
	background:var(--nps-swatch-color);
}
