/*
 Theme Name:   The Cadenheads Triptych
 Theme URI:    https://VerbHQ.com
 Description:  Bringing three Cadenhead sites together under one roof!
 Author:       Verb Digital
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/*
 * Gold bar under every hero (Andy, 2026-10-16): the bottom edge of the first
 * section of each page or template, in the page frame's gold and width. Only
 * where another section follows, so a one-section page (Contact) does not get
 * a bar above the footer. The product templates already drew this bar as the
 * next section's top border, which gives way here so there is only one.
 */
#brx-content > section.brxe-section:first-of-type:not(:last-of-type) {
	border-bottom: var(--vd-page-border-l, 4px) solid var(--secondary);
}

/* First of type, not first child: WooCommerce puts a notices box before the
   hero on shop, cart, account and product pages. */
#brx-content > section.brxe-section:first-of-type + #brxe-pb10ms,
#brx-content > section.brxe-section:first-of-type + #brxe-tr10ms {
	border-top-width: 0 !important;
}

/*
 * WooCommerce's loading overlays (blockUI): checkout order review and payment,
 * cart updates, the Bookings calendar. Bricks draws WooCommerce's spinning
 * loader.svg in them; this swaps in our cask animation, which animates itself,
 * so the spin is switched off. Green and cream versions sit beside it in
 * assets/img for darker or lighter backgrounds. The html prefix outranks
 * Bricks' rule when its WooCommerce CSS is loaded without a cascade layer.
 */
html .woocommerce .blockUI.blockOverlay::before,
html .blockUI.blockOverlay::before,
html .woocommerce .loader::before {
	width: 6rem;
	height: 6rem;
	margin-top: -3rem;
	margin-left: -3rem;
	background: url("assets/img/vd-loader.svg") center / contain no-repeat;
	animation: none;
}
