/* Libellule – Personalizacja */
.lp-box {
	margin: 0 0 24px;
	padding: 20px;
	background: #f7f3ec;
	border: 1px solid #e8e1d5;
	clear: both;
}
.lp-title {
	margin: 0 0 14px;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.lp-optional {
	margin-left: 6px;
	font-size: 12px;
	text-transform: none;
	letter-spacing: 0;
	opacity: .6;
}
.lp-preview-wrap { margin: 0 0 16px; }
.lp-canvas {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
	border: 1px solid #e8e1d5;
}
.lp-no-image .lp-preview-wrap { display: none; }
.lp-note {
	margin: 6px 0 0;
	font-size: 11px;
	font-style: italic;
	opacity: .65;
}
.lp-field { margin: 0 0 14px; }
.lp-field label,
.lp-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
}
.lp-field textarea,
.lp-field input[type="text"],
.lp-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 10px;
	background: #fff;
	border: 1px solid #d9d0c1;
	font-size: 14px;
}
.lp-field textarea { resize: vertical; min-height: 60px; }
.lp-field input[type="text"] { height: auto; font-size: 14px; letter-spacing: .05em; }
.lp-field select { font-size: 14px; height: auto; }
.lp-counter {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	text-align: right;
	opacity: .6;
}
.lp-error-msg { display: none; margin-top: 4px; font-size: 12px; color: #b3261e; }
.lp-error .lp-error-msg { display: block; }
.lp-error textarea,
.lp-error input[type="text"] { border-color: #b3261e; }

.lp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-swatch { position: relative; margin: 0 !important; cursor: pointer; }
.lp-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.lp-swatch span {
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .18);
	box-shadow: inset 0 0 0 3px #fff;
	transition: transform .15s;
}
.lp-swatch input:checked + span { outline: 2px solid #333; outline-offset: 2px; }
.lp-swatch input:focus-visible + span { outline: 2px dashed #333; outline-offset: 2px; }
.lp-swatch:hover span { transform: scale(1.08); }
.lp-fee { margin: 0; font-size: 13px; }

.lp-positions { display: flex; gap: 8px; }
.lp-pos { flex: 1; margin: 0 !important; cursor: pointer; }
.lp-pos input { position: absolute; opacity: 0; width: 0; height: 0; }
.lp-pos span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 6px;
	background: #fff;
	border: 1px solid #d9d0c1;
	font-size: 13px;
	transition: border-color .15s, background .15s;
}
.lp-pos input:checked + span { border-color: #333; background: #efe8dc; }
.lp-pos input:focus-visible + span { outline: 2px dashed #333; outline-offset: 2px; }
.lp-pos-icon {
	position: relative;
	width: 14px;
	height: 14px;
	border: 1px solid currentColor;
	border-radius: 50%;
	opacity: .7;
}
.lp-pos-icon::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	height: 2px;
	background: currentColor;
	top: 5px;
}
.lp-pos-icon-top::after { top: 2px; }
.lp-pos-icon-bottom::after { top: 8px; }

/* Ukryj przyciski szybkiej płatności, gdy jest personalizacja (lub gdy jest wymagana). */
body.lp-has-text.single-product #wc-stripe-payment-request-wrapper,
body.lp-has-text.single-product #wc-stripe-payment-request-button-separator,
body.lp-has-text.single-product #wc-stripe-express-checkout-element,
body.lp-has-text.single-product #wc-stripe-express-checkout-button-separator,
body.lp-has-text.single-product .wc-stripe-product-checkout-container,
body.lp-has-text.single-product #wcpay-payment-request-wrapper,
body.lp-has-text.single-product #wcpay-payment-request-button-separator,
body.lp-has-text.single-product #wcpay-express-checkout-element,
body.lp-has-text.single-product #wcpay-express-checkout-wrapper,
body.lp-has-text.single-product .wcpay-express-checkout-wrapper,
body.lp-has-text.single-product .wc-block-components-express-payment,
body.lp-has-text.single-product .ppc-button-wrapper,
body.lp-express-off.single-product #wc-stripe-payment-request-wrapper,
body.lp-express-off.single-product #wc-stripe-payment-request-button-separator,
body.lp-express-off.single-product #wc-stripe-express-checkout-element,
body.lp-express-off.single-product #wc-stripe-express-checkout-button-separator,
body.lp-express-off.single-product .wc-stripe-product-checkout-container,
body.lp-express-off.single-product #wcpay-payment-request-wrapper,
body.lp-express-off.single-product #wcpay-payment-request-button-separator,
body.lp-express-off.single-product #wcpay-express-checkout-element,
body.lp-express-off.single-product #wcpay-express-checkout-wrapper,
body.lp-express-off.single-product .wcpay-express-checkout-wrapper,
body.lp-express-off.single-product .wc-block-components-express-payment,
body.lp-express-off.single-product .ppc-button-wrapper {
	display: none !important;
}

/* Przesuwanie napisu */
.lp-drag-hint { margin: 6px 0 0; font-size: 12px; }
.lp-canvas { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lp-dragging .lp-canvas { cursor: grabbing !important; }

/* Na telefonach 16px – przy mniejszej czcionce iPhone powiększa stronę po kliknięciu w pole. */
@media (max-width: 768px) {
	.lp-field textarea,
	.lp-field input[type="text"],
	.lp-field select { font-size: 16px; }
}
