.eupt-price-prompt {
	display: inline-block;
	font-size: 0.95em;
	font-weight: 600;
}

.eupt-rights-row-hidden {
	display: none !important;
}

.eupt-dependent-options-hidden {
	display: none !important;
}

/* Delikatne wejście opcji zależnych po wybraniu rodzaju uprawnień. */
tr.eupt-dependent-options-entering > th,
tr.eupt-dependent-options-entering > td {
	transform-origin: top center;
	animation: eupt-dependent-option-reveal 0.28s ease-out both;
}

@keyframes eupt-dependent-option-reveal {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	tr.eupt-dependent-options-entering > th,
	tr.eupt-dependent-options-entering > td {
		animation: none;
	}
}

/* Stałe szerokości kolumn zapobiegają przesuwaniu pola wyboru, gdy po
   wybraniu rodzaju uprawnień pojawiają się dłuższe etykiety certyfikatów. */
body.eupt-rights-enabled form.variations_form table.variations {
	width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed;
	box-sizing: border-box;
}

body.eupt-rights-enabled form.variations_form table.variations th.label {
	width: 56%;
	padding-right: 20px;
	box-sizing: border-box;
	vertical-align: middle;
}

body.eupt-rights-enabled form.variations_form table.variations td.value {
	width: 44%;
	box-sizing: border-box;
	vertical-align: middle;
}

.eupt-native-rights-select {
	display: none !important;
}

.eupt-native-variant-select,
.eupt-variant-row .select2-container,
.eupt-variant-row .nice-select {
	display: none !important;
}

.eupt-rights-choices {
	display: flex;
	flex-direction: row;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.eupt-rights-choice {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 0;
	width: 50%;
	min-width: 0;
	min-height: 43px;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #d7dce4;
	border-radius: 7px;
	background: #fff;
	color: #000000;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	white-space: normal;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.eupt-rights-choice:hover,
.eupt-rights-choice:focus-within {
	border-color: #000000;
	color: #000000;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.eupt-rights-choice.is-selected {
	border-color: #000000;
	background: #fff;
	color: #000000;
	box-shadow: none;
}

/* Motyw dodaje dwukropek po każdym elemencie label. Dla przycisków wyboru
   rodzaju uprawnień wyłączamy ten dekoracyjny pseudoelement. */
.eupt-rights-choice::after,
.eupt-rights-choice:after {
	display: none !important;
	content: none !important;
}

.eupt-rights-choice input {
	width: 17px;
	height: 17px;
	margin: 0 9px 0 0;
	accent-color: #000000;
}

.eupt-rights-choice-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.25;
}

.eupt-rights-choice-name {
	color: inherit;
}

.eupt-rights-choice-price {
	display: block;
	margin-top: 3px;
	color: #000;
	font-size: 0.86em;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.eupt-rights-choice-price .woocommerce-Price-amount,
.eupt-rights-choice-price .woocommerce-Price-currencySymbol {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

/* Cena wybranego wariantu — stylistycznie spójna z aktywnymi kafelkami. */
body.eupt-rights-enabled form.variations_form .woocommerce-variation-price {
	margin: 18px 0 14px;
}

body.eupt-rights-enabled form.variations_form .woocommerce-variation-price .price {
	display: inline-flex !important;
	align-items: center;
	min-height: 46px;
	box-sizing: border-box;
	padding: 10px 17px;
	border: 1px solid #000000;
	border-radius: 7px;
	background: #fff;
	color: #0b2f6b !important;
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	line-height: 1.2;
	box-shadow: none;
}

body.eupt-rights-enabled form.variations_form .woocommerce-variation-price .price bdi,
body.eupt-rights-enabled form.variations_form .woocommerce-variation-price .price .woocommerce-Price-amount,
body.eupt-rights-enabled form.variations_form .woocommerce-variation-price .price .woocommerce-Price-currencySymbol {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

body.eupt-rights-enabled form.variations_form .eupt-dual-prices {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

body.eupt-rights-enabled form.variations_form .eupt-dual-price {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

body.eupt-rights-enabled form.variations_form .eupt-dual-price-label {
	color: #000;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.eupt-variant-choices {
	flex-direction: row;
	width: 100%;
	max-width: 100%;
	gap: 8px;
}

.eupt-variant-choices .eupt-variant-choice {
	flex: 1 1 0;
	width: 50%;
	min-width: 0;
}

/* Nazwa i dopisek cenowy mają osobne linie także na desktopie. Dzięki temu
   dłuższy tekst nie wchodzi pod pole wyboru wariantu. */
body.eupt-rights-enabled .eupt-variation-label-formatted {
	display: block !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	white-space: normal !important;
	overflow-wrap: anywhere;
	line-height: 1.35;
}

body.eupt-rights-enabled .eupt-variation-label-name,
body.eupt-rights-enabled .eupt-variation-label-price {
	display: block;
}

body.eupt-rights-enabled .eupt-variation-label-price {
	margin-top: 3px;
	color: #677087;
	font-size: 0.9em;
	font-weight: 500;
}

/* Dwukropek jest już częścią dopisku cenowego. */
body.eupt-rights-enabled .eupt-variation-label-formatted::after,
body.eupt-rights-enabled .eupt-variation-label-formatted:after {
	display: none !important;
	content: none !important;
}

body.eupt-rights-enabled form.variations_form .eupt-reset {
	position: static !important;
	display: flex;
	justify-content: flex-end;
	width: 100% !important;
	max-width: 100%;
	margin: 6px 0 12px;
	box-sizing: border-box;
}

body.eupt-rights-enabled form.variations_form .eupt-reset .reset_variations {
	position: static !important;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 0;
}

@media (max-width: 1024px) {
	body.eupt-rights-enabled form.variations_form .woocommerce-variation-price .price {
		min-height: 43px;
		padding: 9px 14px;
		font-size: 1.22rem !important;
	}

	body.eupt-rights-enabled form.variations_form .eupt-dual-prices {
		align-items: stretch;
		gap: 10px;
	}

	body.eupt-rights-enabled form.variations_form .eupt-dual-price {
		flex: 1 1 145px;
	}

	body.eupt-rights-enabled form.variations_form table.variations {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		table-layout: auto;
		box-sizing: border-box;
		overflow: hidden;
	}

	body.eupt-rights-enabled form.variations_form table.variations tbody,
	body.eupt-rights-enabled form.variations_form table.variations tr,
	body.eupt-rights-enabled form.variations_form table.variations th.label,
	body.eupt-rights-enabled form.variations_form table.variations td.value {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	body.eupt-rights-enabled form.variations_form table.variations tr {
		margin: 0 0 18px;
	}

	body.eupt-rights-enabled form.variations_form table.variations th.label {
		padding-right: 0 !important;
		padding-bottom: 7px !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	/* Motyw ustawia brak zawijania bezpośrednio na elemencie label. */
	body.eupt-rights-enabled form.variations_form table.variations th.label label {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		white-space: normal !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		line-height: 1.4;
	}

	body.eupt-rights-enabled form.variations_form table.variations td.value {
		padding: 0 !important;
	}

	body.eupt-rights-enabled form.variations_form table.variations td.value select,
	body.eupt-rights-enabled form.variations_form table.variations td.value .select2-container {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	.eupt-rights-choices {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.eupt-rights-choice {
		width: 50%;
		max-width: 100%;
		min-height: 46px;
		padding-right: 14px;
		padding-left: 14px;
	}

	.eupt-variant-choices {
		max-width: 100%;
	}

	body.eupt-rights-enabled form.variations_form .eupt-reset {
		justify-content: flex-start;
		margin-top: -8px;
	}
}
