/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/* Sugar Calendar: hide the calendar name in the event popup */
.sugar-calendar-block__popover__event__container__content__calendar {
	display: none !important;
}

/* WooCommerce cart & checkout: match site colors */
:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.button, button.button) {
	background-color: var(--secondary-d-2);
	color: var(--white);
	border: 0;
	border-radius: var(--radius-s);
	font-weight: 700;
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.button, button.button):hover {
	background-color: var(--secondary-d-3);
	color: var(--white);
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.checkout-button, #place_order) {
	background-color: var(--primary-d-2);
	font-size: var(--text-m);
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.checkout-button, #place_order):hover {
	background-color: var(--primary-d-3);
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content .shop_table {
	border: 1px solid var(--primary-l-5);
	border-radius: var(--radius-m);
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.shop_table th, .shop_table td) {
	border-color: var(--primary-l-5);
}

/* Keep table content off the box edges (cart totals, order review, coupon row) */
:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.shop_table th, .shop_table td):first-child {
	padding-inline-start: var(--space-s);
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.shop_table th, .shop_table td):last-child {
	padding-inline-end: var(--space-s);
}

:is(.woocommerce-cart, .woocommerce-checkout) #brx-content :is(.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3) {
	color: var(--primary-d-2);
}

/* Site-wide white (used by the cart, checkout, event and next-event styles) */
:root {
	--white: #ffffff;
}

/* Sticky footer: footer sits at the bottom of the window on short pages */
body.brx-body {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

body.brx-body > #brx-content {
	flex: 1 0 auto;
}

body.brx-body > :is(#brx-header, #brx-footer) {
	flex-shrink: 0;
}
