/**
 * Listing currency row — landlord + tenant create/edit forms.
 */

.pts-landlord-listing-form .hp-form__field.pts-price-currency-section,
.pts-landlord-listing-form .hp-form__field:has(.pts-price-currency-row) {
	overflow: visible;
}

.pts-landlord-listing-form .hp-form__field.pts-price-currency-field--merged {
	display: none !important;
}

.pts-landlord-listing-form .pts-price-currency-row,
.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row,
.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
	box-sizing: border-box;
	border-bottom: 2px solid rgba(7, 36, 86, 0.075);
	margin-top: 0.25rem;
}

.pts-landlord-listing-form .pts-price-currency-row__currency,
.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row__currency,
.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row__currency {
	flex: 0 0 16rem;
	width: 16rem;
	max-width: 42%;
	min-width: 12rem;
}

.pts-landlord-listing-form .pts-price-currency-row__amount,
.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row__amount,
.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row__amount {
	flex: 1 1 auto;
	min-width: 6rem;
}

.pts-landlord-listing-form .pts-price-currency-row__sub-label {
	display: block;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.6875rem;
	font-weight: 400;
	color: rgba(15, 23, 39, 0.65);
	line-height: 1.5;
	margin: 0 0 0.35rem 0;
}

.pts-landlord-listing-form .pts-price-currency-row .hp-input,
.pts-landlord-listing-form .pts-price-currency-row select,
.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row .hp-input,
.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row select,
.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row .hp-input,
.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row select {
	width: 100%;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background-color: transparent;
	padding: 0.625rem 0;
	min-height: 2.75rem;
	line-height: 1.5;
	vertical-align: middle;
}

.pts-listing-currency-select-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.pts-listing-currency-select-wrap::after {
	content: '';
	position: absolute;
	right: 0.35rem;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -0.15rem;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #4a5568;
	pointer-events: none;
}

.pts-landlord-listing-form .pts-price-currency-row select,
.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row select,
.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row select,
.pts-listing-currency-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: none;
	padding-right: 1.75rem;
	cursor: pointer;
}

@media (max-width: 640px) {
	.pts-landlord-listing-form .pts-price-currency-row,
	.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row,
	.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row {
		flex-wrap: wrap;
	}

	.pts-landlord-listing-form .pts-price-currency-row__currency,
	.pts-tenant-listing-form .hp-form-field--max-price .pts-price-currency-row__currency,
	.pts-account-dashboard__page-body .hp-form-field--max-price .pts-price-currency-row__currency {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}
