/*
Theme Name: BOAB Storefront Child
Theme URI:    https://cpro.net/
Author:       Christian Proetti
Author URI:   https://cpro.net/
Template:     storefront
Description:  This is the child theme of the WooCommerce Storefront, customised for Bathrooms On A Budget's website.
Version:      0.1.134
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  storefront
Tags:         black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready
*/

:root {
	--soft-white: #f8f9fa;
	--hard-white: #f1f1f1;
	--dark-accent: #1b649f;
	--smart-sticky-top-offset: 0px;
}





/**
 * THEME REQUIREMENT :: The parent Storefront theme neglects to include select
 * elements in its focus outline style, so we fix that here.
 */
select:focus {
	outline-color: var(--dark-accent);
}





/**
 * THEME REQUIREMENT :: Global select (dropdown) styling because the parent
 * theme neglects to include any styling whatsoever. This styling is minimal
 * because it applies globally.
 */
 select {
	width: 100%;
	max-width: 100%;
	padding: .6180469716em;
	border: 1px solid #999;
	border-radius: 0.5em;
	background-color: #fff;
	line-height: 1.2;
}

select:not([multiple]):not([size]) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: calc(.6180469716em * 2);
	background-size: 7px 7px, 7px 7px;
	background-repeat: no-repeat;
	background-position: calc(100% - 8px - 7px) 50%, calc(100% - 8px) 50%;
	background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%)
}





/**
 * THEME DESIGN :: The theme relocates the search box into where the cart widget
 * would usually be. This CSS is required to vertically align the search when
 * it's located right of the header nav menu.
 */
.storefront-primary-navigation .site-search {
	margin-bottom: 0;
	padding: 0.9884375rem 0;
}





/**
 * THEME DESIGN :: This child-theme adds a pre-footer section to the design
 * the sidebar does not enter this area so we need to cancel is width offset.
 */
.left-sidebar .pre-footer-section .content-area, .right-sidebar .pre-footer-section .content-area {
	width: 100%;
}





/**
 * THEME PREFERENCE :: The default Storefront theme will waste a lot of space on
 * the left side of the product main description section with tabs being left
 * aligned, which also prevents the use of full-width content blocks. This child
 * theme improves it by making the single-product page have horizontal tabs.
 */
 @media (min-width: 768px) {
	.woocommerce-tabs ul.tabs {
		text-align: center;
	}

	.woocommerce-tabs ul.tabs, .woocommerce-tabs .panel {
		width: 100%;
		margin-right: 0;
	}

	.woocommerce-tabs ul.tabs li.active::after {
		opacity: 0
	}

	.woocommerce-tabs ul.tabs li {
		display: inline-block;
		border-bottom: none;
	}

	.woocommerce-tabs ul.tabs li a {
		padding: 1em 1.41575em;
	}

	.woocommerce-tabs .tabs li {
		border-top: 3px solid transparent;
	}

	.woocommerce-tabs .tabs li.active {
		border-top-color: var(--dark-accent);
	}
}

.single-product div.product, .woocommerce-tabs {
	overflow: unset;
}





/**
 * THEME DESIGN :: To avoid cropping of product images, this child theme instead
 * takes the approach of fitting the image within the bounds of the product img
 * area. In product archives, the image will be allocated a square canvas that
 * the image is contained within.
 */
ul.products li.product img.attachment-woocommerce_thumbnail {
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
}





/**
 * THEME DESIGN :: The variations price is synced into the main price on the
 * single-product page, so we need to hide the varition price.
 */
.woocommerce-variation-price {
	display: none;
}





/**
 * THEME DESIGN :: By default on mobile, Storefront product archives always
 * display as a single column. Make the 3-6 column layouts display as 2 columns
 * on mobiles.
 */
@media (max-width: 767px) {
	.site-main ul.products:is(.columns-3, .columns-4, .columns-5, .columns-6) li.product {
		width: 48%;
		float: left;
		margin-right: 4%;
	}

	.site-main ul.products:is(.columns-3, .columns-4, .columns-5, .columns-6) li.product:nth-child(2n) {
		margin-right: 0;
	}

	.site-main ul.products:is(.columns-3, .columns-4, .columns-5, .columns-6) li.product:nth-child(2n+1) {
		clear: both;
	}
}





/**
 * THEME DESIGN :: Clamp the number of title lines, so its consistent and
 * so that add-to-cart & prices are aligned on columns.
 */
li.product .woocommerce-loop-product__title {
	line-height: 1.214;
	min-height: calc(1.214em * 3);
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

@media (min-width: 768px) {
	li.product .woocommerce-loop-product__title {
		-webkit-line-clamp: 2;
		min-height: calc(1.3em * 2);
	}
}





/**
 * THEME PREFRENCE :: Seperate the add-to-cart and view-cart buttons when
 * with some margin (consistent with margin between the input quantity and the
 * add-to-cart button.
 */
button[name="add-to-cart"].added + a.added_to_cart {
	margin-left: .875em;
}





/**
 * THEME DESIGN :: No margin after the breadcrumbs (but still has padding after)
 */
.storefront-breadcrumb {
	margin-bottom: 0;
}






/**
 * THEME DESIGN :: Scroll direction-aware sticky sidebar that transforms into a
 * control bar for mobiles.
 */
#secondary.widget-area .smart-sticky-sidebar {
	padding: 1.41575em;
	will-change: transform;
}

/* Only apply admin-bar offset on desktop layouts */
@media (min-width: 601px) {
	body.admin-bar #secondary.smart-sticky-sidebar-area {
		/* WP’s “narrow” admin bar height */
		--smart-sticky-top-offset: 46px;
	}
}

/* WP switches to the 32px admin bar height at 783px */
@media (min-width: 783px) {
	body.admin-bar #secondary.smart-sticky-sidebar-area {
		--smart-sticky-top-offset: 32px;
	}
}

@media (max-width: 767px) {

	/* Make room for the bar (admin-bar offset stays 0px on mobile by design) */
	body #primary {
		padding-top: calc(56px + var(--smart-sticky-top-offset) + 1.41575em);
	}

	#secondary.widget-area .smart-sticky-sidebar {
		padding: 0 1.41575em;
	}

	#secondary.smart-sticky-sidebar-area {
		position: fixed;
		top: var(--smart-sticky-top-offset);
		left: 0;
		width: 100%;
		height: 56px;
		z-index: 300; /* @todo raise this above the storefront handheld bar */
		background: #fff;
		transform: translate3d(0, 0, 0); /* JS drives this via translate3d(...) */
		box-sizing: border-box;
		box-shadow: 0 1px 5px -3px #000;
	}

	#secondary .smart-sticky-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75em;
		height: 100%;
		align-items: center;
		padding: 0.75em 0;
	}

	#secondary .smart-sticky-sidebar > .widget, #secondary .smart-sticky-sidebar .wc-block-product-categories {
		margin: 0;
	}

	.smart-sticky-sidebar button.smart-categories-toggle {
		background-color: #fff;
		color: #6d6d6d;
		font-size: .875em;
		font-weight: 600;
	}

	.smart-sticky-sidebar button.smart-categories-toggle, .wc-block-product-filters__open-overlay {
		border: 1px solid #6d6d6d;
		border-radius: .5em;
		padding: .5em 1em;
		line-height: 1.618;
		width: 140px;
	}

	/* Temporary: hide all but first two widgets */
	#secondary .smart-sticky-sidebar > .widget:nth-child(n+3) {
		display: none;
	}

	#secondary.smart-sticky-sidebar-area.is-overlay-open {
		height: 100dvh;
		transform: none;          /* important if you keep bar movement via transform */
		overflow: hidden;         /* prevent background within #secondary from scrolling */
		z-index: 10500;             /* above header bits */
	}

	#secondary.smart-sticky-sidebar-area.is-overlay-open .smart-sticky-sidebar {
		align-items: start;
	}

	#secondary.smart-sticky-sidebar-area.is-overlay-open .wc-block-product-categories-list.open-responsive-overlay {
		padding: 0 1.41575em 1.41575em 1.41575em;
		background-color: #fff;
		margin-bottom: 0;
		box-shadow: 0 -7px 5px -9px #000 inset;
	}

	#secondary.smart-sticky-sidebar-area.is-overlay-open .wc-block-product-filters__overlay,
	#secondary.smart-sticky-sidebar-area.is-overlay-open .wc-block-product-categories > ul.wc-block-product-categories-list.open-responsive-overlay {
		position: absolute;
		top: var(--smart-sticky-top-offset);
		left: 0;
		right: 0;
		bottom: 0;
		overflow: auto;
	}

	#secondary .wc-block-product-categories-list .smart-overlay-close {
		position: sticky;
		top: 0;
		background: #fff;
		z-index: 3;
		padding: 0.75em 0;
		margin: 0;
		border-top: none; /* override your list item borders */
	}

	#secondary .wc-block-product-categories-list .smart-overlay-close-btn {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: right;
		gap: 0.5em;
		padding: 0.75em 1em;
		background: #fff;
	}
}

@media (min-width: 768px) {

	/* Anchor for absolute positioning when inner wrapper is 'absolute' */
	#secondary.smart-sticky-sidebar-area {
		position: relative;
		overflow: visible;
		box-sizing: border-box;
	}

	/* Eliminate margin-collapse issues by design */
	#secondary.smart-sticky-sidebar-area .smart-sticky-sidebar {
		display: flow-root;

		/* When fixed, JS clears inline top so CSS can provide this */
		top: var(--smart-sticky-top-offset);
	}

	/* Hide the mobile-only categories button on desktop */
	#secondary .smart-categories-toggle, #secondary .wc-block-product-categories-list li.smart-overlay-close {
		display: none;
	}
}

/* Performance: helps on some GPUs with fixed + transforms */
#secondary.smart-sticky-sidebar-area,
#secondary.smart-sticky-sidebar-area .smart-sticky-sidebar {
	backface-visibility: hidden;
}





/**
 * THEME DESIGN :: Styalise the sidebar widget for product categories. All of
 * these are under the secondary content-area ID because we don't want to
 * touch styling for widgets placed in other locations.
 */
@media (min-width: 768px) {
	#secondary.widget-area .smart-sticky-sidebar {
		border-radius: .5em;
		border: 1px solid var(--hard-white)
	}
}

#secondary .wc-block-product-categories-list li {
	border-top: 1px solid #eee;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
}

#secondary .wc-block-product-categories-list li:first-child {
	border-top: none;
}

#secondary li.wc-block-product-categories-list-item a {
	text-decoration: none;
	font-weight: 400;
	padding: .5em 0;
	min-width: 0; /* Fixes edge cases with words longer than the available space, this makes them wrap */
	display: block;
	grid-column: 1;
}

#secondary li.wc-block-product-categories-list-item .wc-block-product-categories-list-item-count {
	grid-column: 2;
	justify-self: end;
	align-self: center;
	white-space: nowrap;
	opacity: .7;
}

#secondary .wc-block-product-categories-list-item > ul.wc-block-product-categories-list {
	grid-column: 1 / -1;
}





/**
 * THEME DESIGN :: Style the product items in the woocommerce product loops (catalogue)
 * We need to make each item looks like a card so that the product badges in the
 * conrer looks okay.
 */
ul.products li.product {
	background-color: #fff;
	border-radius: .5em;
	border: 1px solid var(--hard-white); /* remove this if your theme preference is set to use a soft-white page background */
}

ul.products li.product .attachment-woocommerce_thumbnail {
	border-bottom: 1px solid #f7f7f7;
}

ul.products li.product .woocommerce-loop-product__title {
	padding: 0 .5em;
}





/**
 * THEME PREFERENCE :: Make the main image area a fixed square in the single
 * product gallery.
 * 
 * WooCommerce uses FlexSlider for the gallery. If the photos are different
 * shapes, the main image area keeps changing height as you switch images. That
 * makes the page jump around and can push the thumbnails off-screen, especially
 * for tall, narrow product shots.
 * 
 * We override that behaviour by: forcing the viewport to a 1:1 square (stable
 * layout, no jumping between slides). Making each slide fill the viewport. And
 * by using object-fit to contain the image inside the square.
 */
.single-product .woocommerce-product-gallery .flex-viewport {
	aspect-ratio: 1 / 1;
	height: auto !important; /* overrides FlexSlider’s inline height */
	overflow: hidden;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
	height: 100%;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}





/**
 * THEME DESIGN :: Make the thumbnails a reasonable size whereas the default
 * is an excessive margin as big as the thumbnail itself.
 */
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 22.05%;
	margin-right: 3.9%;
}





/**
 * THEME DESIGN :: Don't show an outline on the focused active tab of products
 */
.woocommerce-tabs ul.tabs > li > a:focus {
	outline: none;
}





/**
 * THEME DESIGN :: Single product variations layout. Replaces storefronts layout
 * with a grid so all rows share the same column alignment. The label column
 * shrinks-to-fit its content to avoid wrapping multi-word labels where possible
 * but is capped at 50% of the available width so it can't starve the select
 * column. The value column takes the remaining space and uses min-width 0 to
 * prevent overflow artefacts. Below 375px the layout stacks to maximise select
 * width on very small screens.
 *
 * UPDATE :: This design doesn't work for long multi-word variation names and it
 * especially doesn't work for cross-sell variations. Using this layout then
 * causes the cross-sell variations to look different to the variables part.
 */
/*
.single-product table.variations {
	display: grid;
	grid-template-columns: fit-content(50%) minmax(0, 1fr);
	gap: 0.75rem;
	width: 100%;
	align-items: baseline;
}

.single-product table.variations tbody,
.single-product table.variations tr {
	display: contents;
}

.single-product div.product table.variations th,
.single-product div.product table.variations td {
	display: block;
	list-style: none;
	float: none;
	padding: 0;
	margin: 0;
}

.single-product table.variations .label {
	grid-column: 1;
	white-space: normal;
	overflow-wrap: anywhere;
}

table.variations label {
	font-weight: 600;
}

table.variations label:after {
	content: ":"
}
*/
.single-product div.product form.cart {
	padding-top: 0;
}

.single-product div.product table.variations .value {
	/* grid-column: 2; */
	/* min-width: 0; */
	margin-bottom: 0;
}

.single-product div.product table.variations select {
	max-width: 400px;
}
/*
@media (max-width: 374px) {
	.single-product table.variations {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.single-product div.product table.variations .label,
	.single-product div.product table.variations .value {
		grid-column: 1;
	}
}
*/




/**
 * Temporary until I do it properly via PHP code. Remove the edit links in the
 * page content.
 */
.single-product div.product .edit-link {
	display: none;
}


/**
 * THEME FEATURE :: Add CSS for the checkout progress timeline.
 */
 .checkout-progress-container {
	overflow: auto;
	margin-top: 0;
	margin-bottom: 2em;
}

.checkout-progress-item {
	position: relative;
	float: left;
	color: #ddd;
}

.checkout-progress-item.active {
	color: #000
}

.checkout-progress-content {
	text-align: center;
	width: 100px;
	float: right;
}

.checkout-progress-label {
	font-size: 13px;
	margin-bottom: 4px;
	font-weight: bold;
	white-space: nowrap;
}

.checkout-progress-icon {
	margin: 0 auto;
	width: 34px;
	height: 34px;
	line-height: 32px;
	font-size: 16px;
	border: 1px solid;
	border-radius: 50%;
}

.checkout-progress-item + .checkout-progress-item {
	width: calc(50% - 50px)
}

.checkout-progress-item + .checkout-progress-item::before {
	content: '';
	position: absolute;
	left: 0;
	right: 100px;
	bottom: 17px;
	border-bottom: 1px solid;
}





/**
 * THEME FEATURE :: Provide support for product label classes, some of which are
 * added by WooCommerce nativiely (sale & featured), and others maybe added by a
 * plugin. Grouped products in WooCommerce have no way to show a product is on
 * sale so pseudo element add's a sale badge on the product to show to the
 * customer that the product is on sale, and this is in addition to line-through
 * prices which are used for simple & variable products.
 */
.products .product:is(.sale, .new-arrival, .low-stock, .clearance, .featured)::before {
	content: 'POPULAR';
	display: block;
	position: absolute;
	top: 1px;
	left: 1px;
	color: #fff;
	background: radial-gradient(circle, #ff6347 0%, #ff4500 100%);
	padding: 5px 10px;
	font-size: 14px;
	font-weight: bold;
	z-index: 10;
	border-radius: 3px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	transform: rotate(-5deg);
}

.products .product.low-stock::before {
	content: 'low stock';
	font-variant: small-caps;
	background: radial-gradient(circle, #ffcc33 0%, #e6b800 100%);
}

.products .product.new-arrival::before {
	content: 'NEW';
	background: radial-gradient(circle, #32cd32 0%, #228b22 100%);
}

.products .product.sale::before {
	content: 'SALE';
	background: radial-gradient(circle, #f00 0%, #c80000 100%);
}

.products .product.clearance::before {
	content: 'CLEARANCE';
	background: linear-gradient(45deg, #ff9800, #ff6f00);
}





/**
 * THEME DESIGN: The site-branding will be the last-child if the search has been
 * relocated. Center the text-based site branding. And if they configured the
 * site with a logo image then center that.
 */
 @media (min-width: 768px) {
	.woocommerce-active .site-header .site-branding:last-child {
		text-align: center;
		width: 100%;
		margin-right: 0
	}

	.woocommerce-active .site-header .site-branding:last-child img {
		margin: 0 auto;
	}
}

#masthead .site-branding .custom-logo-link:focus {
	outline: none
}





/**
 * THEME PREFERENCE :: Site Header Menu.
 */
@media (min-width: 768px) {
	.main-navigation ul li {
		margin-right: .5em;
	}

	.main-navigation ul li:last-child {
		margin-right: 0;
	}

	.main-navigation ul li a, .main-navigation ul li:hover > a, .site-header .main-navigation ul li.current-menu-item > a {
		color: #fff;
	}

	.site-header .main-navigation ul.menu ul.sub-menu li a {
		color: #333;
	}

	.main-navigation ul.nav-menu > li > a {
		padding: 0.618em 1em;
		margin: 1em 0;
		border-radius: .5em;
		font-weight: 600;
	}

	.main-navigation ul.nav-menu > li:is(.current_page_item, .current-menu-item) > a, .main-navigation ul.nav-menu > li:hover > a {
		box-shadow: inset 0 0 0 50px rgba(255,255,255,0.2);
	}

	.primary-navigation ul li a:focus {
		outline: none;
	}

	.woocommerce-active .site-header .site-search .widget_product_search {
		margin-right: -1em;
	}
}

.widget_product_search form:not(.wp-block-search) input[type=search] {
	border-radius: .5em;
	background-color: #f7f7f7;
}





/**
 * BRANDING STYLING :: Navigation menu design
 */
@media (min-width: 768px) {
	#masthead {
		border-bottom: none;
	}

	.storefront-primary-navigation {
		background-color: transparent;
	}

	.storefront-primary-navigation .col-full {
		background-color: var(--dark-accent);
		border-radius: .5em;
	}

	.main-navigation ul.nav-menu > li:is(.current_page_item, .current-menu-item) > a, .main-navigation ul.nav-menu > li > a:hover {
		box-shadow: inset 0 0 0 50px #fff;
		color: #333;
	}

	.main-navigation ul.nav-menu > li.menu-item-has-children:hover > a {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		margin-bottom: 0;
		border-bottom: 0.5em solid #fff;
	}

	.main-navigation ul.nav-menu > li > a {
		margin: .5em 0;
	}

	.storefront-primary-navigation .site-search {
		padding: 0.4884375rem 0;
	}

	.primary-navigation ul.menu ul.sub-menu {
		background: #fff;
		box-shadow: 0 0 6px -3px #000;
		border-radius: 0 0 .5em .5em;
	}

	.primary-navigation ul.menu ul.sub-menu:before {
		content: "";
		display: block;
		position: absolute;
		width: 100%;
		height: 5px;
		top: -5px;
		background: #fff;
		border-radius: .5em .5em 0 0;
	}
}






/**
 * BRAND STYLING :: Make the prices in archives match brand colour, bigger & bold.
 */
ul.products li.product .price {
	color: var(--dark-accent);
	font-size: 16px;
	font-weight: 600;
}





/**
 * BRAND STYLING :: Footer
 */
 .site-footer .footer-row {
	margin: 3em auto;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
}

.site-footer .footer-col {
	min-width: 0;
	flex: 1 1 100%;
}

@media (min-width: 580px) {
	.site-footer .footer-row {
		max-width: 580px
	}

	.site-footer .footer-col {
		flex: 1 1 calc(50% - (1.5em / 2));
	}

	.site-footer .footer-col.is-double {
		max-width: 470px;
		flex-basis: 100%;
	}
}

@media (min-width: 1280px) {
	.site-footer .footer-row {
		flex-wrap: nowrap;
		max-width: 100%;
		margin: 3em 0;
	}

	.site-footer .footer-col:not(.is-double) {
		flex: 1 1 0;
		min-width: 0;
	}

	.site-footer .footer-col.is-double {
		flex: 0 1 470px;
		margin-right: 3em;
	}
}

.heading-start-underscore {
	position: relative;
}

.heading-start-underscore:before {
	content: '';
	background: var(--dark-accent);
	position: absolute;
	bottom: -.25em;
	width: 3rem;
	height: .25rem;
}

.footer-links-list {
	margin-left: 0;
	list-style: none;
	line-height: 2.25rem;
}

.footer-links-list a {
	text-decoration: none;
}

.site-info {
	border-top: 1px solid rgba(0,0,0,.05);
}





/**
 * WEBSITE CHOICE :: Hide the country field from the checkout page because
 * its auto-set to Australia and they do not sell to any other countries.
 * Because the website is limited to Australia then it's just a text field,
 * not an input.
 */
#billing_country_field, #shipping_country_field {
	display: none;
}



/**
 * WEBSITE CUSTOMISATION :: Customisations & additions for the WP Bakery elements.
 */
section.overlay-05 {
	box-shadow: -100vw 0 0 0 rgba(0,0,0,.05) inset;
}

section.overlay-15 {
	box-shadow: -100vw 0 0 0 rgba(0,0,0,.15) inset;
}

section.overlay-30 {
	box-shadow: -100vw 0 0 0 rgba(0,0,0,.3) inset;
}

section.overlay-50 {
	box-shadow: -100vw 0 0 0 rgba(0,0,0,.5) inset;
}

.dropshadow-15, .dropshadow-15 h1, .dropshadow-15 h2, .dropshadow-15 h3, .dropshadow-15 h4, .dropshadow-15 h5, .dropshadow-15 h6, .dropshadow-15 p {
	filter: drop-shadow(1px 1px 5px rgba(0,0,0,.15))
}

.dropshadow-30, .dropshadow-30 h1, .dropshadow-30 h2, .dropshadow-30 h3, .dropshadow-30 h4, .dropshadow-30 h5, .dropshadow-30 h6, .dropshadow-30 p {
	filter: drop-shadow(1px 1px 5px rgba(0,0,0,.3))
}

.dropshadow-50, .dropshadow-50 h1, .dropshadow-50 h2, .dropshadow-50 h3, .dropshadow-50 h4, .dropshadow-50 h5, .dropshadow-50 h6, .dropshadow-50 p {
	filter: drop-shadow(1px 1px 5px rgba(0,0,0,.5))
}

.square-image-thumbnail figure {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.square-image-thumbnail figure::before {
	content: '';
	display: block;
	padding-top: 100%;
}

.square-image-thumbnail img {
	object-fit: cover;
	object-position: center;
	position: absolute;
	max-width: unset;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.wpb_custom_icon .vc_icon_element-icon::before {
	content: "";
	width: 100% !important;
	height: 100% !important;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

.wpb_custom_icon .vc_icon_element-icon {
	width: calc(100% + 30px); /* inner row padding is 15px left & right */
	height: calc(100% + 30px);
}

@media (min-width: 570px) {
	.wpb_custom_icon .vc_icon_element-icon {
		width: calc(100% + 45px); /* at 570px the section padding increases adds 15px */
		height: calc(100% + 45px);
	}
}

@media (min-width: 768px) {
	/* at 768px the rows become columns and the padding is reduced again to make space */
	.wpb_custom_icon .vc_icon_element-icon {
		width: calc(100% + 30px);
		height: calc(100% + 30px);
	}
}

@media (min-width: 1094px) {
	.wpb_custom_icon .vc_icon_element-icon {
		width: calc(100% + 60px);
		height: calc(100% + 60px);
	}
}

.vc_do_toggle {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 28px 0;
	font-weight: 300;
}

.vc_do_toggle + .vc_do_toggle {
	border-top: 1px solid #eee
}

.vc_do_toggle .vc_do_custom_heading {
	margin-bottom: 0;
}

.vc_do_toggle b, .vc_do_toggle strong {
	font-weight: 500;
}

.wpb-reduced-icon-size .vc_icon_element-icon::before {
	font-size: .625em !important;
	line-height: 2;
}

@media (max-width: 768px) {
	.wpb-hide-on-mobile {display:none}
}

.aligned-bg-section .vc_row:first-child {
	min-height: 40vw;
}

@media (min-width: 601px) {
	.aligned-bg-section .vc_row:first-child {
		max-height: 70vh;
	}
}

.vc_icon_element.double-icon-size .vc_icon_element-inner {
	font-size: 2em;
}




/**
 * Temporary custom CSS for styling the home page
 */
.single-image-heading-inside-label h2 {
	position: absolute;
	font-size: 20px;
	z-index: 1;
	left: 50%;
	width: 70%;
	bottom: 25%;
	color: #111;
	background-color: rgba(255, 255, 255, .9);
	font-weight: bolder;
	transform: translate3d(-50%, 0, 0);
	margin: 0;
	padding: 10px 0;
	pointer-events: none;
	border-radius: 5px;
}

@media (min-width: 960px) {
	.single-image-heading-inside-label h2 {
		font-size: 28px;
	}
}


/**
 * Make the alternative products and cross-sell products have a consistent
 * dropdown select length as the variations does.
 */
select.wc-alt-alternatives, label.cross-sell-products-dropdown select {
	max-width: 400px;
}

.single-product .variations-row.wc-alt-variations-row + form.variations_form.cart {
	padding-top: 0;
}

.variations-row.wc-alt-variations-row {
	margin-bottom: .5em;
}

