/**
 * Brightline: price and "Add to basket" box on product pages.
 * Matches the Helloprint plugin's price summary box.
 */
.bl-buybox {
	clear: both;
	margin: 14px 0 6px;
	padding: 14px 18px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px;
	background: #fff;
	text-align: left;
}
.bl-buybox .bl-bb-line { margin: 0; font-size: 14px; line-height: 1.5; color: #666; }
.bl-buybox .bl-bb-line:empty { display: none; }
.bl-buybox .bl-bb-row {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 8px;
}
.bl-buybox .bl-bb-line:empty + .bl-bb-row { margin-top: 0; }
.bl-buybox:not(.has-price) .bl-bb-row { margin-top: 10px; }
.bl-buybox .bl-bb-main { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; }
.bl-buybox .bl-bb-main .bl-bb-from { font-size: 15px; font-weight: 400; color: #666; }
.bl-buybox .bl-bb-vat { font-size: 13px; font-weight: 400; color: #666; }
.bl-buybox .bl-bb-sub { margin: 2px 0 0; font-size: 13px; color: #666; }
.bl-buybox .bl-bb-sub:empty { display: none; }

/* Quantity and button(s) beside the price */
.bl-buybox .bl-bb-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.bl-buybox .bl-bb-action .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.woocommerce div.product form.cart .bl-buybox .quantity,
.woocommerce div.product form.cart .bl-buybox div.quantity { float: none; margin: 0 !important; }
.woocommerce div.product form.cart .bl-buybox .button,
.woocommerce div.product form.cart .bl-buybox .single_add_to_cart_button { float: none !important; margin: 0 !important; }

/* The original price lines are shown in the box instead */
.bl-bb-src { display: none !important; }
form.bl-has-buybox .woocommerce-variation-price { display: none; }

@media (max-width: 480px) {
	.bl-buybox .bl-bb-action,
	.bl-buybox .bl-bb-action .woocommerce-variation-add-to-cart { width: 100%; }
	.woocommerce div.product form.cart .bl-buybox .single_add_to_cart_button { flex: 1 1 auto; }
}

/* "From" in price lines (product page fallback and sticky bar) */
.price .bl-from { font-weight: 400; font-size: .85em; opacity: .75; margin-right: .15em; }
