.wbp-personalization {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px;
	background: #fff;
}

.wbp-personalization * {
	box-sizing: border-box;
}

.wbp-personalization [hidden] {
	display: none !important;
}

.wbp-heading h3 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.25;
}

.wbp-heading p {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 1.55;
	opacity: .8;
}

.wbp-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 14px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .045);
	font-weight: 600;
	cursor: pointer;
}

.wbp-toggle input {
	width: 19px;
	height: 19px;
	margin: 0;
	accent-color: currentColor;
}

.wbp-fields {
	margin-top: 18px;
}


.wbp-type-selector {
	margin: 18px 0 16px;
	padding: 0;
	border: 0;
}

.wbp-type-selector legend {
	margin-bottom: 8px;
	font-weight: 600;
}

.wbp-type-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.wbp-type-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 8px;
	cursor: pointer;
}

.wbp-type-options label:has(input:checked) {
	border-color: currentColor;
	background: rgba(0, 0, 0, .045);
}

.wbp-type-options input {
	margin: 0;
}

.wbp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wbp-field-full {
	grid-column: 1 / -1;
}

.wbp-field label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
}

.wbp-field input[type="file"],
.wbp-field input[type="text"],
.wbp-field textarea,
.wbp-field select {
	width: 100%;
	max-width: 100%;
}

.wbp-field textarea {
	resize: vertical;
}

.wbp-field input[type="range"] {
	width: 100%;
}

.wbp-field small,
.wbp-file-status {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	opacity: .72;
}

.wbp-file-status.is-error {
	color: #b42318;
	opacity: 1;
}

.wbp-preview-wrap {
	margin-top: 20px;
}

.wbp-preview-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 9px;
}

.wbp-preview-header span {
	font-size: 12px;
	opacity: .65;
}

.wbp-stage {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px;
	background: #f5f5f5;
	touch-action: none;
	user-select: none;
}

.wbp-stage > img[data-wbp-background] {
	display: block;
	width: 100%;
	height: auto;
}

.wbp-overlay {
	position: absolute;
	left: 35%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	cursor: grab;
	text-align: center;
	outline: 0;
}

.wbp-overlay:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .25);
	border-radius: 4px;
}

.wbp-overlay.is-dragging {
	cursor: grabbing;
}

.wbp-text-overlay {
	max-width: 55%;
	padding: 4px 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 34px;
	line-height: 1.18;
	white-space: pre-wrap;
	word-break: break-word;
	text-shadow: 0 1px 2px rgba(255, 255, 255, .35);
}

.wbp-text-overlay.is-placeholder {
	opacity: .58;
}

.wbp-logo-overlay {
	top: 36%;
	width: 25%;
	min-width: 70px;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border: 1px dashed rgba(0, 0, 0, .35);
	border-radius: 6px;
	background: rgba(255, 255, 255, .45);
	font-size: 13px;
	line-height: 1.2;
}

.wbp-logo-overlay img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
}

.wbp-preview-note {
	margin: 9px 0 10px;
	font-size: 12px;
	line-height: 1.45;
	opacity: .72;
}

.wbp-reset-position {
	font-size: 12px !important;
}

@media (max-width: 640px) {
	.wbp-personalization {
		padding: 15px;
	}

	.wbp-type-options,
	.wbp-grid {
		grid-template-columns: 1fr;
	}

	.wbp-field-full {
		grid-column: auto;
	}

	.wbp-text-overlay {
		font-size: 27px;
	}
}
