/* Color swatches + font preview controls (variable products) */

.single-product-wrapper .bf-variation-select-hidden,
.single-product-wrapper table.variations td.value select.bf-variation-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.single-product-wrapper .bf-variation-swatches,
.single-product-wrapper .bf-variation-fonts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.single-product-wrapper .bf-swatch {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	border: 2px solid #e5e7eb;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	background-clip: padding-box;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.single-product-wrapper .bf-swatch:hover {
	transform: scale(1.08);
	border-color: #d1d5db;
}

.single-product-wrapper .bf-swatch.is-selected {
	border-color: #ff4b93;
	box-shadow: 0 0 0 3px rgba(255, 75, 147, 0.25);
}

/* Gender reveal motiv: half pink, half blue */
.single-product-wrapper .bf-swatch.bf-swatch--gender-reveal {
	background: linear-gradient(90deg, #f9a8d4 0%, #f9a8d4 50%, #60a5fa 50%, #60a5fa 100%) !important;
	background-color: transparent !important;
}

.single-product-wrapper .bf-swatch:disabled,
.single-product-wrapper .bf-swatch.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.single-product-wrapper .bf-font-choice {
	min-width: 4.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.75rem;
	border: 2px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	font-size: 1.125rem;
	line-height: 1.2;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	color: #111827;
}

.single-product-wrapper .bf-font-choice:hover {
	border-color: #d1d5db;
}

.single-product-wrapper .bf-font-choice.is-selected {
	border-color: #ff4b93;
	box-shadow: 0 0 0 3px rgba(255, 75, 147, 0.15);
}

.single-product-wrapper .bf-font-choice:disabled,
.single-product-wrapper .bf-font-choice.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.single-product-wrapper .bf-font-choice .bf-font-choice-label {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 0.25rem;
	font-family: ui-sans-serif, system-ui, sans-serif;
	color: #6b7280;
}

.single-product-wrapper .bf-font-choice--has-image {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 4.5rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.single-product-wrapper .bf-font-choice--has-image .bf-font-preview-img {
	display: block;
	max-height: 2.85rem;
	width: auto;
	max-width: 100%;
	margin: 0 auto 0.15rem;
	object-fit: contain;
}

.single-product-wrapper .bf-font-live-preview__img {
	display: none;
	max-width: 100%;
	width: auto;
	max-height: 14rem;
	height: auto;
	margin: 0.25rem auto 0;
	object-fit: contain;
	border-radius: 0.5rem;
	border: 1px solid #e5e7eb;
}

.single-product-wrapper .bf-font-live-preview {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	border: 2px solid #e5e7eb;
	background: #fff;
	max-width: 100%;
}

.single-product-wrapper .bf-font-live-preview__heading {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #111827;
	margin: 0 0 0.5rem;
	font-family: ui-sans-serif, system-ui, sans-serif;
}

.single-product-wrapper .bf-font-live-preview__sample {
	margin: 0;
	font-size: clamp(1.2rem, 2.4vw, 1.65rem);
	line-height: 1.4;
	word-break: break-word;
	min-height: 2.4em;
}

.single-product-wrapper .baby-flamingo-personalization-fields {
	width: 100%;
	flex-basis: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.single-product-wrapper .baby-flamingo-personalization-field {
	width: 100%;
	margin: 0;
}

.single-product-wrapper .baby-flamingo-personalization-field label {
	display: block;
	color: #111827;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.single-product-wrapper .baby-flamingo-personalization-field input.input-text {
	width: 100%;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	background: #fff;
	color: #111827;
	font-weight: 500;
	transition: border-color 0.3s, box-shadow 0.3s;
	outline: none;
	box-sizing: border-box;
}

.single-product-wrapper .baby-flamingo-personalization-field input.input-text:focus {
	border-color: #ff4b93;
	box-shadow: 0 0 0 4px rgba(255, 75, 147, 0.1);
}

.single-product-wrapper tr.bf-color-dependency-source-row td.value .bf-variation-swatches {
	display: none;
}

.single-product-wrapper tr.bf-color-dependency-row td {
	padding-top: 0;
	border-top: 0;
}

.single-product-wrapper .bf-color-dependency-panel {
	margin-top: 0.25rem;
}

.single-product-wrapper .bf-color-dependency-panel__label {
	display: block;
	color: #111827;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	margin: 0 0 0.5rem;
}

.single-product-wrapper .bf-dependent-color-swatches {
	margin-top: 0;
}

.single-product-wrapper .baby-flamingo-image-upload-field {
	width: 100%;
	flex-basis: 100%;
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.single-product-wrapper .baby-flamingo-file-upload-field {
	width: 100%;
	flex-basis: 100%;
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.single-product-wrapper .baby-flamingo-image-upload-field__row {
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.single-product-wrapper .baby-flamingo-file-upload-field__row {
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.single-product-wrapper .baby-flamingo-image-upload-field__row label {
	display: block;
	color: #111827;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

.single-product-wrapper .baby-flamingo-file-upload-field__row label {
	display: block;
	color: #111827;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

.single-product-wrapper .baby-flamingo-image-upload-field__row input[type="file"] {
	width: 100%;
	max-width: 100%;
	font-size: 0.9375rem;
	padding: 0.5rem 0;
	box-sizing: border-box;
}

.single-product-wrapper .baby-flamingo-file-upload-field__row input[type="file"] {
	width: 100%;
	max-width: 100%;
	font-size: 0.9375rem;
	padding: 0.5rem 0;
	box-sizing: border-box;
}

.single-product-wrapper .baby-flamingo-image-upload-hint {
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.4;
}

.single-product-wrapper .baby-flamingo-file-upload-hint {
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.4;
}

.single-product-wrapper .baby-flamingo-date-picker-field {
	width: 100%;
	flex-basis: 100%;
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.single-product-wrapper .baby-flamingo-date-picker-field__row {
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.single-product-wrapper .baby-flamingo-date-picker-field__row label {
	display: block;
	color: #111827;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

.single-product-wrapper .baby-flamingo-date-picker-field__row input[type="date"],
.single-product-wrapper .baby-flamingo-date-picker-field__row input[type="datetime-local"],
.single-product-wrapper .baby-flamingo-date-picker-field__row input[type="month"] {
	width: 100%;
	max-width: 100%;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	background: #fff;
	color: #111827;
	font-weight: 500;
	transition: border-color 0.3s, box-shadow 0.3s;
	outline: none;
	box-sizing: border-box;
}

.single-product-wrapper .baby-flamingo-date-picker-field__row input[type="date"]:focus,
.single-product-wrapper .baby-flamingo-date-picker-field__row input[type="datetime-local"]:focus,
.single-product-wrapper .baby-flamingo-date-picker-field__row input[type="month"]:focus {
	border-color: #ff4b93;
	box-shadow: 0 0 0 4px rgba(255, 75, 147, 0.1);
}

.single-product-wrapper .baby-flamingo-cart-upload img {
	border-radius: 0.5rem;
	border: 1px solid #e5e7eb;
	vertical-align: middle;
	object-fit: cover;
}

.baby-flamingo-template-fields {
	width: 100%;
	flex-basis: 100%;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.baby-flamingo-template-group {
	width: 100%;
	padding: 1rem 0 0;
	border-top: 1px solid #fce7f3;
}

.baby-flamingo-template-group:first-child {
	border-top: 0;
	padding-top: 0;
}

.baby-flamingo-template-group__preview {
	color: #4b5563;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0 0 0.75rem;
	font-style: italic;
}

.baby-flamingo-template-field {
	width: 100%;
	margin: 0 0 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.baby-flamingo-template-field label {
	display: block;
	color: #111827;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

.baby-flamingo-template-field input.input-text {
	width: 100%;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	background: #fff;
	color: #111827;
	font-weight: 500;
	transition: border-color 0.3s, box-shadow 0.3s;
	outline: none;
	box-sizing: border-box;
}

.baby-flamingo-template-field input.input-text:focus {
	border-color: #ff4b93;
	box-shadow: 0 0 0 4px rgba(255, 75, 147, 0.1);
}
