/**
 * EMPIRE — Tip Montaj + Extra selectat (ARTBuilding expert UI)
 * #052454 navy · #56ad56 green
 */
.product-product .empire-extra-selected-wrap {
	margin: 12px 0 0;
	display: none;
}

.product-product .empire-extra-selected-wrap.is-visible {
	display: block;
}

.product-product .empire-extra-selected {
	display: flex;
	align-items: stretch;
	background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 55%, #eef6ee 100%);
	border: 1px solid #c8d8e8;
	border-left: 4px solid #56ad56;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(5, 36, 84, 0.08);
	overflow: hidden;
}

.product-product .empire-extra-selected__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	background: rgba(86, 173, 86, 0.12);
	color: #56ad56 !important;
	font-size: 18px;
}

.product-product .empire-extra-selected__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.product-product .empire-extra-selected__kicker {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #56ad56 !important;
	line-height: 1;
	margin-right: 6px;
	flex: 0 0 auto;
}

.product-product .empire-extra-selected__value {
	font-size: 13px;
	font-weight: 600;
	color: #052454 !important;
	line-height: 1.35;
}

.product-product .empire-extra-selected__remove {
	flex: 0 0 auto;
	align-self: center;
	margin: 6px 8px 6px 0;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #c5d4e4;
	background: #fff;
	color: #052454 !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 7px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	white-space: nowrap;
}

.product-product .empire-extra-selected__remove:hover,
.product-product .empire-extra-selected__remove:focus {
	background: #052454;
	border-color: #052454;
	color: #fff !important;
	outline: none;
}

/* —— Montaj block —— */
.product-product .extra-groups-wrapper.empire-extra-montaj {
	margin-top: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #d8e2ec;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(5, 36, 84, 0.04);
}

.product-product .empire-extra-montaj__title {
	color: #052454 !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e8eef4;
	line-height: 1.2;
}

.product-product .empire-extra-montaj__title-link {
	font-weight: 600;
	font-size: 10px;
	text-transform: none;
	letter-spacing: 0;
}

.product-product .empire-extra-montaj__title a {
	color: #56ad56 !important;
	text-decoration: none;
	font-weight: 600;
}

.product-product .empire-extra-montaj__title a:hover {
	text-decoration: underline;
}

.product-product .empire-extra-montaj__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.product-product .extra-group-value-off {
	display: none !important;
}

.product-product .extra-group-option--extra {
	margin: 0 !important;
	padding: 0 !important;
	background: #fafbfc;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	transition: border-color 0.15s, background 0.15s;
}

.product-product .extra-group-option--extra.is-selected {
	border-color: #56ad56;
	background: #f6fbf6;
	box-shadow: none;
}

.product-product .extra-group-option--extra.is-selected .extra-group-option-text {
	color: #052454 !important;
	font-weight: 600;
}

.product-product .extra-group-option--extra.is-selected .extra-group-price {
	background: #e4f3e4;
	border-color: #b8ddb8;
	color: #2d6b2d !important;
}

.product-product .extra-group-bulina-visual.is-on,
.product-product .extra-group-option--extra.is-selected .extra-group-bulina-visual {
	border-color: #56ad56 !important;
	background: #56ad56 !important;
	box-shadow: inset 0 0 0 3px #fff !important;
}

.product-product .extra-group-option--extra:not(.is-selected) .extra-group-bulina-visual:not(.is-on) {
	border-color: #b0bec8 !important;
	background: #fff !important;
	box-shadow: none !important;
}

.product-product .extra-group-option-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 7px 10px !important;
	width: 100%;
	box-sizing: border-box;
	min-height: 0;
}

.product-product .extra-group-bulina-only {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px !important;
	flex-shrink: 0 !important;
	width: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	max-height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	line-height: 0;
	align-self: center;
	overflow: visible;
}

.product-product .extra-group-bulina-only input[type="radio"] {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	max-width: 18px;
	min-height: 18px;
	max-height: 18px;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	z-index: 1;
	pointer-events: none !important;
}

.product-product .extra-group-bulina-visual {
	display: block;
	flex: 0 0 18px;
	width: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	max-height: 18px !important;
	aspect-ratio: 1 / 1;
	border: 2px solid #b0bec8;
	border-radius: 50% !important;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	pointer-events: none;
	position: relative;
	z-index: 2;
}

.product-product .extra-group-bulina-only input[type="radio"]:focus-visible + .extra-group-bulina-visual {
	outline: 2px solid #052454;
	outline-offset: 1px;
}

.product-product .extra-group-option-body {
	flex: 1 1 auto;
	min-width: 0;
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	line-height: 1.25;
}

.product-product .extra-group-option-text {
	pointer-events: none;
	display: inline;
	color: #334155 !important;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	margin: 0;
	padding: 0;
}

.product-product .extra-group-price {
	flex: 0 0 auto;
	flex-shrink: 0;
	pointer-events: none;
	font-weight: 700;
	font-size: 11px;
	color: #052454 !important;
	white-space: nowrap;
	padding: 2px 7px;
	background: #eef3f9;
	border: 1px solid #d0dce8;
	border-radius: 12px;
	line-height: 1.3;
}

.product-product .extra-group-option--extra.is-selected .extra-group-price {
	background: #e4f3e4;
	border-color: #b8ddb8;
	color: #2d6b2d !important;
}

/* Link info — lipit de text, fără underline */
.product-product .empire-extra-montaj .empire-montaj-info,
.product-product .empire-extra-montaj .btn-extra-info {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	gap: 2px !important;
	margin: 0 0 0 3px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	font-size: 11px !important;
	font-weight: 500;
	color: #56ad56 !important;
	text-decoration: none !important;
	cursor: pointer;
	line-height: 1.2;
	vertical-align: baseline;
	flex: 0 0 auto;
	min-width: auto !important;
	width: auto !important;
	pointer-events: auto;
	white-space: nowrap;
}

.product-product .empire-extra-montaj .empire-montaj-info:hover,
.product-product .empire-extra-montaj .empire-montaj-info:focus,
.product-product .empire-extra-montaj .btn-extra-info:hover,
.product-product .empire-extra-montaj .btn-extra-info:focus {
	color: #449d44 !important;
	text-decoration: none !important;
	outline: none;
}

.product-product .empire-montaj-info__text {
	font-size: 11px !important;
	color: inherit !important;
}

.product-product .empire-montaj-info__icon {
	font-size: 11px !important;
	color: inherit !important;
	line-height: 1;
}

.product-product .extra-group-option-inner .btn-extra-info {
	pointer-events: auto;
}

/* Ascunde rânduri fantomă (fără montaj) */
.product-product .extra-groups-wrapper .extra-group-option:not(.extra-group-option--extra):not(.radio),
.product-product .extra-groups-wrapper .extra-group-radio-off {
	display: none !important;
}

@media (max-width: 575px) {
	.product-product .extra-group-option-inner {
		flex-wrap: wrap !important;
		gap: 6px !important;
		padding: 7px 8px !important;
	}
	.product-product .extra-group-price {
		margin-left: 26px;
	}
	.product-product .empire-extra-selected__remove {
		width: calc(100% - 16px);
		margin: 0 8px 8px;
		text-align: center;
	}
}

/* Fallback markup OCMOD vechi */
.product-product .extra-groups-wrapper .extra-group-option:has(input[value="0"]),
.product-product .extra-groups-wrapper .radio.extra-group-option:has(input[value="0"]) {
	display: none !important;
}

.product-product .extra-groups-wrapper .radio.extra-group-option {
	margin: 0 0 6px !important;
	padding: 0 !important;
	background: #fafbfc;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
}

.product-product .extra-groups-wrapper .radio.extra-group-option:last-child {
	margin-bottom: 0 !important;
}

.product-product .extra-groups-wrapper .radio.extra-group-option.is-selected {
	border-color: #56ad56;
	background: #f6fbf6;
	box-shadow: none;
}

.product-product .extra-groups-wrapper .radio.extra-group-option > label {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 7px 10px !important;
	margin: 0 !important;
	width: 100%;
	box-sizing: border-box;
	font-weight: 500;
	font-size: 12px;
	color: #334155 !important;
	line-height: 1.25;
	position: relative;
}

.product-product .extra-groups-wrapper .radio.extra-group-option > label > input[type="radio"] {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	flex: none;
	z-index: 2;
	cursor: pointer;
}

.product-product .extra-groups-wrapper .radio.extra-group-option > label::before {
	content: '';
	flex: 0 0 18px !important;
	flex-shrink: 0 !important;
	width: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	max-height: 18px !important;
	aspect-ratio: 1 / 1;
	border: 2px solid #b0bec8;
	border-radius: 50% !important;
	background: #fff;
	box-sizing: border-box;
}

.product-product .extra-groups-wrapper .radio.extra-group-option.is-selected > label::before {
	border-color: #56ad56;
	background: #56ad56;
	box-shadow: inset 0 0 0 3px #fff;
}

.product-product .extra-groups-wrapper .extra-group-title:not(.empire-extra-montaj__title) {
	color: #052454 !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e8eef4;
}

.product-product .extra-groups-wrapper:not(.empire-extra-montaj) {
	margin-top: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #d8e2ec;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(5, 36, 84, 0.04);
}

.product-product .extra-groups-wrapper .extra-group-price {
	pointer-events: none;
	flex: 0 0 auto;
	flex-shrink: 0;
	margin-left: auto !important;
	font-size: 11px !important;
	padding: 2px 7px !important;
}

.product-product .extra-groups-wrapper .radio.extra-group-option > label > *:not(input) {
	pointer-events: none;
}

.product-product .extra-groups-wrapper .radio.extra-group-option > label .btn-extra-info {
	pointer-events: auto;
}
