/* Site tweaks that used to live in Customizer → Additional CSS. */

/* Elements marked "from-app" are hidden when the site is opened inside the mobile app. */
body.from-app .from-app {
	display: none !important;
}

/* Product cards: titles keep the same height (2 lines). */
.woocommerce ul.products li.product h2 {
	min-height: 60px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Product cards: Martfury's footer-button row under the image stays hidden. */
.related div .footer-button,
.products .mf-product-thumbnail .footer-button {
	display: none !important;
}

/* Search results list: no bottom row under each result. */
.mf-post-list .product .entry-content-bottom {
	display: none;
}

/* Blog page header hidden. */
#page .page-header-blog {
	display: none;
}

/* Page titles a bit smaller on tablet and desktop. */
@media (min-width: 768px) {
	#page .page-header-page h1 {
		font-size: 36px;
	}
}

/* Category pages: the category description (kept for SEO) is not shown. */
.woocommerce-products-header .term-description p {
	display: none;
}

/* Advanced Woo Search field: light blue background. */
#page .aws-wrapper input[type=search] {
	background-color: #e7fbfc;
}

/* B2BKing subaccounts (My Account): site blue headers/buttons, red Delete. */
.hentry .b2bking_subaccounts_container_top_button,
.hentry .b2bking_subaccounts_new_account_container_top,
.hentry .b2bking_subaccounts_new_account_container_top_close,
.hentry .b2bking_subaccounts_account_top,
.hentry a .b2bking_subaccounts_account_button,
.hentry .b2bking_subaccounts_edit_account_container_top_close {
	background-color: #0c5da7;
}
.hentry .b2bking_subaccounts_edit_account_container_content_bottom_button_delete,
.hentry .b2bking_subaccounts_edit_account_container_content_bottom_button_delete:hover {
	background-color: #e74c3c;
}

/* Product page, B2B customers (B2BKing "SRP / Price"): both prices a little smaller, a little
   space between the lines, normal colour; only the "(ex. VAT)" suffix is grey. */
.single-product.woocommerce div.product p.price:has(.b2bking_both_prices_text) {
	line-height: 1.45;
	margin-bottom: 14px;
}
.single-product.woocommerce div.product p.price .b2bking_retail_price_text,
.single-product.woocommerce div.product p.price .b2bking_retail_price_price,
.single-product.woocommerce div.product p.price .b2bking_retail_price_price .amount {
	font-size: 16px;
	font-weight: 600;
}
.single-product.woocommerce div.product p.price .b2bking_b2b_price_text,
.single-product.woocommerce div.product p.price .b2bking_b2b_price_price,
.single-product.woocommerce div.product p.price .b2bking_b2b_price_price .amount {
	font-size: 22px;
	font-weight: 700;
}
.single-product.woocommerce div.product p.price .b2bking_both_prices_price .woocommerce-price-suffix {
	font-size: 13px;
	font-weight: 400;
	color: #666;
}

/* B2B prices everywhere else too (product cards, related products…): a little space between
   the two lines, SRP slightly smaller, "(ex. VAT)" grey. */
.price:has(.b2bking_both_prices_text),
.woocommerce ul.products li.product .price:has(.b2bking_both_prices_text) { /* beats Martfury's line-height: 1 */
	line-height: 1.45;
}
.price .b2bking_retail_price_text,
.price .b2bking_retail_price_price {
	font-size: 0.875em;
}
.price .b2bking_retail_price_price .amount {
	font-size: inherit;
}
.b2bking_both_prices_price .woocommerce-price-suffix {
	color: #666;
	font-weight: 400;
}
