/* Front-end: pola na karcie produktu */
.wc-epo-fields {
	margin: 1em 0;
}

.wc-epo-field {
	margin-bottom: 0.8em;
}

.wc-epo-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

.wc-epo-required {
	color: #d94f4f;
}

.wc-epo-select {
	max-width: 100%;
}

.wc-epo-checkbox-label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.wc-epo-price {
	color: #555;
}

.wc-epo-invalid {
	outline: 2px solid #d94f4f;
}

.wc-epo-error {
	color: #d94f4f;
	margin-top: 0.5em;
}

.wc-epo-total {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0.8em 0;
}

.wc-epo-total-amount {
	color: inherit;
}

/* Admin: zakładka "Opcje dodatkowe" */
.wc-epo-group {
	border: 1px solid #ddd;
	background: #fafafa;
	padding: 1em;
	margin: 0 12px 1em;
}

.wc-epo-values input.wc-epo-value-label {
	width: 100%;
}

.wc-epo-values input.wc-epo-value-price {
	width: 100px;
}

.wc-epo-add-group,
.wc-epo-add-value {
	margin-right: 6px;
}

/* Admin: sekcje wartosci z szablonu na ekranie produktu */
.wc-epo-template-section {
	border: 1px solid #ddd;
	background: #fff;
	padding: 1em;
	margin: 0 12px 1em;
}

.wc-epo-template-section h4 {
	margin-top: 0;
}

/*
 * !important tutaj celowo - ekran produktu WooCommerce ma wlasne, dosc agresywne
 * reguly dla "label"/"input" w .options_group (float, ustalona szerokosc), ktore
 * bez nadpisania rozjezdzaly ten uklad i chowaly checkboxy.
 */
.wc-epo-template-value-row {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 1em;
	margin: 0 0 0.6em !important;
	padding: 0 !important;
	clear: both;
}

.wc-epo-template-value-row label.wc-epo-tpl-label {
	display: inline-flex !important;
	align-items: center;
	gap: 0.5em;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	flex: 1 1 260px;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400;
}

.wc-epo-template-value-row input.wc-epo-tpl-enabled {
	display: inline-block !important;
	position: static !important;
	float: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 16px !important;
	height: 16px !important;
	min-height: 0 !important;
	margin: 0 !important;
	flex: 0 0 auto;
}

.wc-epo-template-value-row .wc-epo-tpl-label-text {
	white-space: normal;
}

.wc-epo-template-value-row .wc-epo-tpl-price {
	flex: 0 0 140px;
	width: 140px !important;
	margin: 0 !important;
}
