/* ── location field flex fix ──────────────────────────── */
/* original HP: input + button in a flex row, our map goes below */
.hp-field--location {
	display: flex;
	flex-wrap: wrap;
}

.hp-field--location > input[type="text"] {
	flex: 1;
	padding-right: 3rem;
	box-sizing: border-box;
}

.hp-field--location > a {
	flex: 0 0 3rem;
	margin-left: -3rem;
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 3;
}

/* ── form inline map: сначала карта, потом «Адрес на карте» ── */
.hp-form__field--location .hp-location-map {
	width: 100%;
	height: 320px;
	margin-top: 0;
	margin-bottom: 1rem;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f4f4;
}
/* карта внизу в flex (если осталась внутри hp-field) */
.hp-field--location > .hp-location-map {
	flex-basis: 100%;
	order: 10;
	margin-top: 8px;
}

/* ── catalog / category page fix ─────────────────────── */
.post-type-archive-hp_vendor .hp-row,
.tax-hp_vendor_category .hp-row {
	margin-left: 0;
	margin-right: 0;
}

/* ── форма профиля вендора: только чекбокс согласия по центру, черта сверху ── */
.hp-form--user-update-profile .hp-form__field--checkbox:has(input[name="agree_placement_rules"]) {
	text-align: center;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	padding-top: 1.25rem;
	margin-top: 1rem;
}

.hp-form--user-update-profile .hp-form__field--checkbox:has(input[name="agree_placement_rules"]) .hp-field--checkbox {
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

.hp-form--user-update-profile .hp-form__footer {
	display: flex;
	justify-content: center;
	text-align: center;
	padding-top: 0.75rem;
}

.hp-form--user-update-profile .hp-form__footer .hp-form__button {
	margin-left: 0;
}
