/*
 Theme Name:     ExpertHive Child
 Theme URI:      https://example.com/experthive-child
 Description:    A child theme for the ExpertHive WordPress theme
 Author:         Stefano Pizzolato
 Author URI:     https://example.com
 Template:       experthive
 Version:        1.0.0
 Text Domain:    experthive-child
*/

/* 
 * ---- Child Theme Overrides Below ----
 */


h1, h2, h3, h4{
	letter-spacing: normal;
	font-weight: 700;
}

/* When no users are logged in, show both buttons */
body:not(.logged-in) .hp-menu__item--request-submit,
body:not(.logged-in) .hp-menu__item--listing-submit {
    display: none;
}

/* For all logged in users, hide both buttons initially */
body.role-contributor .hp-menu__item--listing-submit {
    display: block !important;
}

/* For all logged in users, hide both buttons initially */
body.role-customer .hp-menu__item--listing-submit {
    display: none !important;
}

/* For all logged in users, hide both buttons initially */
body.role-subscriber .hp-menu__item--listing-submit {
    display: none !important;
}

body .hp-menu__item--request-submit{
	display: none;
}

/*
body.role-customer section.woocommerce-customer-details > address{
	display: none;
}

body.role-subscri section.woocommerce-customer-details > address{
	display: none;
}*/

/* When a subscriber is logged in, only show the hp-menu__item--request-submit button */
/*.role-subscriber .hp-menu__item--request-submit {
    display: block !important;
}*/

/* When a contributor is logged in, only show the hp-menu__item--listing-submit button */
/*.role-contributor .hp-menu__item--listing-submit {
    display: block !important;
}
*/

#content > div > div > div > div > div > section.woocommerce-customer-details{
	display: none;
}


/* listing's picture is a square */
.hp-listing--view-block .hp-listing__image img {
	border-radius: 5% !important;
	width: 100%;
  	height: 100%;
  	object-fit: cover;
}

.hp-listing--view-block .hp-listing__image{
	/*width: 200px;       any fixed or relative size */
  	aspect-ratio: 1/1; /* ensures it's a square */
  	overflow: hidden;  /* crop anything that overflows */
}