.bh-psf {
	--bh-psf-brand: #d64d5a;
	--bh-psf-brand-dark: #a02040;
	--bh-psf-border: #e8eaef;
	--bh-psf-muted: #6b7280;
	--bh-psf-surface: #fff;
	max-width: 920px;
	margin: 0 auto;
	padding: 0 0 2.5rem;
}

.bh-psf-hero {
	margin-bottom: 1.5rem;
	padding: 1.5rem 1.25rem;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--bh-psf-brand-dark), var(--bh-psf-brand));
	color: #fff;
}

.bh-psf-hero__title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
}

.bh-psf-simple-toggle {
	margin-top: 0.75rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.14);
}

.bh-psf-simple-toggle__label {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.55;
	cursor: pointer;
}

.bh-psf-simple-toggle__input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: #fff;
	cursor: pointer;
}

.bh-psf-alert {
	padding: 0.85rem 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
}

.bh-psf-alert--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.bh-psf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.bh-psf-grid__item--wide {
	grid-column: 1 / -1;
}

.bh-psf-section {
	margin: 0.5rem 0 0;
	padding-top: 0.5rem;
	font-size: 1.05rem;
	color: var(--bh-psf-brand-dark);
	border-top: 1px solid var(--bh-psf-border);
}

.bh-psf-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bh-psf-label {
	font-weight: 600;
	color: #1f2937;
}

.bh-psf-req {
	color: var(--bh-psf-brand);
}

.bh-psf-desc {
	margin: 0;
	font-size: 0.85rem;
	color: var(--bh-psf-muted);
}

.bh-psf-input,
.bh-psf-textarea {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--bh-psf-border);
	border-radius: 10px;
	background: var(--bh-psf-surface);
	font: inherit;
}

.bh-psf-textarea {
	min-height: 140px;
	resize: vertical;
}

.bh-psf-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.bh-psf-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	font-size: 0.95rem;
}

.bh-psf-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.bh-psf-check {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.92rem;
}

.bh-psf-uploader {
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 0.85rem;
	background: #fafbfc;
}

.bh-psf-uploader__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
}

.bh-psf-uploader__item {
	position: relative;
	width: 88px;
	height: 88px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--bh-psf-border);
	background: #fff;
}

.bh-psf-uploader__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bh-psf-uploader__file {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0.35rem;
	font-size: 0.7rem;
	text-align: center;
	word-break: break-word;
}

.bh-psf-uploader__remove {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.bh-psf-uploader__pick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.5rem 1rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--bh-psf-border);
	cursor: pointer;
	font-weight: 600;
	color: var(--bh-psf-brand-dark);
}

.bh-psf-uploader__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.bh-psf-uploader__status {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--bh-psf-muted);
}

.bh-psf-uploader__status.is-error {
	color: #b91c1c;
}

.bh-psf-map.cmb-type-pw-map .pw-map-search-wrapper {
	margin-bottom: 0.5rem;
}

.bh-psf-map .pw-map,
.bh-psf-map__canvas {
	min-height: 320px;
	border-radius: 12px;
	overflow: hidden;
}

.begard-site-layout .bh-psf-map.cmb-type-pw-map .pw-map,
.begard-site-layout .bh-psf-map.cmb-type-pw-map .leaflet-container {
	min-height: 400px;
}

.bh-psf-map .pw-map-latitude,
.bh-psf-map .pw-map-longitude {
	margin-top: 0.5rem;
	width: 100%;
}

.bh-psf-map__coords {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.bh-psf-group__row {
	display: grid;
	gap: 0.65rem;
	padding: 0.85rem;
	margin-bottom: 0.65rem;
	border: 1px solid var(--bh-psf-border);
	border-radius: 10px;
	background: #fafbfc;
}

.bh-psf-group__cell {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.bh-psf-group__label {
	font-size: 0.85rem;
	color: var(--bh-psf-muted);
}

.bh-psf-group__add,
.bh-psf-group__remove {
	border: 0;
	background: transparent;
	color: var(--bh-psf-brand);
	cursor: pointer;
	font: inherit;
}

.bh-psf-actions {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bh-psf-border);
}

.bh-psf-actions__hint {
	margin: 0.65rem 0 0;
	font-size: 0.85rem;
	color: var(--bh-psf-muted);
}

.bh-psf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1.25rem;
	border-radius: 10px;
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.bh-psf-btn--primary {
	background: var(--bh-psf-brand);
	color: #fff;
}

.bh-psf-btn--ghost {
	background: #fff;
	border-color: var(--bh-psf-border);
	color: #374151;
}

.bh-psf-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bh-psf-preview__content {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--bh-psf-border);
	border-radius: 12px;
	background: #fff;
}

.bh-psf-preview__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.bh-psf-done__card {
	text-align: center;
	padding: 2rem 1.25rem;
	border-radius: 16px;
	border: 1px solid var(--bh-psf-border);
	background: #fff;
}

.bh-psf-done__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	border-radius: 999px;
	background: #ecfdf5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
}

.bh-psf-done__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin-top: 1.25rem;
}

.bh-psf--denied {
	padding: 1.5rem;
	text-align: center;
}

.bh-psf-dup[hidden] {
	display: none !important;
}

.bh-psf-dup {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.bh-psf-dup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.bh-psf-dup__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 1.25rem 1.15rem 1.15rem;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--bh-psf-border);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.bh-psf-dup__title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	color: var(--bh-psf-brand-dark);
}

.bh-psf-dup__intro {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--bh-psf-muted);
}

.bh-psf-dup__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.bh-psf-dup__card {
	display: flex;
	gap: 0.85rem;
	padding: 0.75rem;
	border: 1px solid var(--bh-psf-border);
	border-radius: 12px;
	background: #fafbfc;
}

.bh-psf-dup__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	background: #eef1f5;
}

.bh-psf-dup__thumb--empty {
	display: block;
}

.bh-psf-dup__card-body {
	min-width: 0;
	flex: 1;
}

.bh-psf-dup__card-title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	line-height: 1.35;
}

.bh-psf-dup__card-meta {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: var(--bh-psf-muted);
}

.bh-psf-dup__card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
}

.bh-psf-dup__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bh-psf-brand-dark);
	text-decoration: none;
}

.bh-psf-dup__link:hover {
	text-decoration: underline;
}

.bh-psf-dup__link--review {
	color: #047857;
}

.bh-psf-dup__note {
	font-size: 0.82rem;
	color: var(--bh-psf-muted);
}

.bh-psf-dup__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.65rem;
	padding-top: 0.25rem;
	border-top: 1px solid var(--bh-psf-border);
}

html.bh-psf-dup-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.bh-psf-grid {
		grid-template-columns: 1fr;
	}

	.bh-psf-map__coords {
		grid-template-columns: 1fr;
	}

	.bh-psf-dup__actions {
		flex-direction: column-reverse;
	}

	.bh-psf-dup__actions .bh-psf-btn {
		width: 100%;
	}
}
