/* Child Theme - Custom CSS File for Buyers to Modify */

/* Agent page "Progress & Stats": the three chart columns sat in one non-wrapping row,
   so on phones the third column ran off the right edge and made the page scroll sideways.
   Let the columns wrap on small screens. */
@media (max-width: 767px) {
	.stats-charts-wrap .stats-wrapper {
		flex-wrap: wrap;
	}
	.stats-charts-wrap .stats-wrapper .tax-stats {
		flex: 1 1 100%;
		margin-bottom: 20px;
	}
}

/* Agent "Send Message" form: the site's custom CSS hides every label in the form
   (the fields use placeholders), which also hid the validation messages, so pressing
   Send with empty or wrong fields gave no feedback. Show the error messages again. */
.agent-form .error-container label.error {
	display: block !important;
	color: #e74c3c;
	font-size: 13px;
	line-height: 1.5;
	padding: 2px 20px;
}
.agent-form .error-container:not(:empty) {
	padding: 8px 0;
}

/* Favorites page (child template templates/favorites.php): two cards per row on
   tablets and desktops, one per row on phones. */
@media (min-width: 768px) {
	.rh-child-favorites .rh_prop_card {
		width: 50%;
	}
}
.rh-child-favorites-empty {
	margin: 10px 0 30px;
}

/* Location (property) pages on phones: the hidden "Share" fly-out is 300px wide and
   started 48px left of the share icon, so it ran past the right edge of the screen and
   the whole page could be scrolled sideways (3-46px, depending on the phone).
   Centre the fly-out on the screen instead. */
@media (max-width: 479px) {
	.rh_property__print .share-this.sharer-0:not(.realhomes-line-social-share-enabled) .social.networks-5.center {
		margin-left: -97px;
	}
}

/* Small phones (under 375px wide): a long unbreakable word in the page text - the e-mail
   address in the Contact page list, the site address in the Privacy Policy - could not
   wrap, so it ran past the right edge of the screen and the page could be scrolled
   sideways. Let such words wrap inside the page content there. */
@media (max-width: 374px) {
	.wpb_text_column li,
	.rh_content {
		overflow-wrap: break-word;
	}
}
