.pt-transfer,
.pt-transfer *,
.pt-transfer *::before,
.pt-transfer *::after {
	box-sizing: border-box;
}

.pt-transfer {
	display: grid;
	gap: 1rem;
	margin-block-end: 1.25rem;
}

.pt-transfer .pt-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1rem;
}

.pt-transfer .pt-row[hidden] {
	display: none;
}

.pt-transfer .pt-field {
	display: grid;
	gap: 0.35rem;
}

.pt-transfer label {
	font-weight: 600;
}

.pt-transfer select,
.pt-transfer input:not([type="checkbox"]),
.pt-transfer textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	font: inherit;
}

.pt-transfer .pt-check {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.6rem;
}

/* !important: Elementor's form styles set every input to full width. */
.pt-transfer .pt-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.25rem !important;
	height: 1.25rem !important;
	min-height: 0;
	margin: 0;
}

.pt-transfer .pt-check label {
	flex: 1 1 auto;
	text-align: start;
}

/* The quote box shows the total; hide the price widgets of the legacy Elementor template. */
body:has(.pt-transfer) :is(#update_price, #custom_price) {
	display: none !important;
}

.pt-transfer .pt-hint {
	margin: 0;
	font-size: 0.875em;
	opacity: 0.8;
}

.pt-quote {
	padding: 1rem;
	border: 1px solid currentColor;
	border-radius: 0.5rem;
	border-color: color-mix(in srgb, currentColor 20%, transparent);
}

.pt-quote__lines {
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
	font-size: 0.925em;
}

.pt-quote__lines li,
.pt-quote__total {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.pt-quote__total {
	margin: 0;
	font-size: 1.15em;
}

.pt-quote__error {
	margin: 0.5rem 0 0;
	color: #b3261e;
}
