/*
 * Consolidated front-end styles, merged from the fwc-styles.css / dwc-styles.css
 * files present in all 3 source themes (they were ~95% identical). Styles the
 * markup produced by this plugin's shortcodes (category nav, discount labels)
 * plus a handful of Breakdance/WooCommerce/WP-Grid-Builder/FiboSearch/
 * Variation-Swatches presentation fixes the themes shipped. Loaded via
 * FourWoo_Connector_Module_Asset_Loader (wp_enqueue_style), not a raw <link> tag.
 */

.dropdown-links {
	padding: 0;
	list-style: inside;
	list-style-type: unset;
	columns: 3;
}
.dropdown-links li {
	padding: 0.25em 0;
}

.breakdance .dropdown-links a {
	color: var(--link-color);
}

.breakdance .dropdown-links a:hover {
	color: var(--bde-links-color);
}

.breakdance-woocommerce .quantity {
	min-width: 70px;
}

@media (max-width: 1023px) {
	ul.dropdown-links {
		columns: 1;
	}
}

.breakdance-woocommerce ul.products li.product.outofstock a.button {
	color: var(--bde-palette-color-1);
	background: var(--bde-palette-color-3);
}

.breakdance-woocommerce ul.products li.product.outofstock a.button:after {
	display: none;
}

.breakdance-woocommerce ul.products li.product .bde-woo-product-footer {
	width: calc(100% - 2em);
}

.breakdance .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
	background: transparent;
}

.breakdance .dgwt-wcas-style-pirx.dgwt-wcas-active .dgwt-wcas-sf-wrapp {
	background: #fff;
}

.breakdance .wpgb-facet .wpgb-facet-title {
	border-bottom: 1px solid var(--bde-palette-color-4);
	padding-bottom: 1rem;
}

.breakdance .wpgb-facet .wpgb-button {
	background: #fff;
	border-width: 1px;
}

.breakdance .wpgb-facet > fieldset:last-child {
	margin-bottom: 0;
}

.cfvsw-product-page .breakdance-woocommerce [swatches-attr="attribute_pa_kleuren"] .cfvsw-swatches-option {
	border-radius: 50%;
}
.cfvsw-product-page .breakdance-woocommerce .cfvsw-swatches-option {
	min-width: 3.5rem;
}

.woocommerce-product-gallery__image > a,
.bde-woo-product-image {
	width: 100%;
	height: 0;
	padding-top: 100%;
	background: #fff;
	display: block;
}

.dgwt-wcas-si img,
.dgwt-wcas-tpd-image img,
.bde-woo-product-image img,
.woocommerce-product-gallery__image img {
	height: 100%;
	width: 100%;
	object-fit: contain;
	position: absolute;
	top: 0;
}

.breakdance-woocommerce .flex-viewport .woocommerce-product-gallery__wrapper {
	position: absolute;
	top: 0;
}

.dgwt-wcas-tpd-image {
	width: 60px;
	height: 0;
	padding-top: 60px;
	position: relative;
	flex-basis: 31%;
}

.dgwt-wcas-si {
	width: 30px;
	height: 0;
	padding-top: 30px;
	position: relative;
}

.dgwt-wcas-tpd-rest {
	flex-basis: 63%;
}

.woocommerce-product-gallery--with-images > figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.woocommerce-product-gallery--with-images > .flex-viewport {
	height: 0 !important;
	padding-top: 100%;
	position: relative;
}

.woocommerce-product-gallery--with-images > figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image > a > img,
.woocommerce-product-gallery--with-images > .flex-viewport figure {
	position: absolute;
	top: 0;
	height: 100%;
}

.woocommerce-product-gallery--with-images .woocommerce-product-gallery__image img,
.woocommerce-product-gallery--with-images .woocommerce-product-gallery__image--placeholder img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.woocommerce-product-gallery__image.flex-active-slide {
	overflow: hidden;
	top: 0;
	width: 100%;
	height: 100%;
}

.woocommerce-product-gallery__image.flex-active-slide > a {
	display: inline-block;
	height: 100%;
	position: relative;
}

.woocommerce-product-gallery--with-images > figure.woocommerce-product-gallery__wrapper > a > img,
.woocommerce-product-gallery--with-images > figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image > a > img {
	object-fit: contain;
	height: 100% !important;
}

/* Discount label (my_discount_title / my_pricing_table shortcodes) */
.bde-shortcode .discountLabel,
.discountLabel {
	color: var(--bde-palette-color-2);
	font-size: 1.35em;
	font-weight: 700;
}

.breakdance-woocommerce li.product .onsale {
	top: -2.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 70%;
	border-radius: 0 0 10px 10px;
	font-size: 0.9em;
	text-align: center;
}

.breakdance-woocommerce a.woocommerce-LoopProduct-link {
	flex-grow: 1;
}

.breakdance-woocommerce ul.products li.product .woocommerce-LoopProduct-link .price {
	margin-top: auto;
}

/* dropdown_categories_tabs shortcode */
.product-cat-vertical-tabs {
	font-size: var(--menu-base-font-size, 1rem);
}
.breakdance-dropdown-body {
	overflow: visible;
}
.tab-list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 300px;
}
.tab-list li {
	cursor: pointer;
	padding: 1em 0;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}
.tab-list li.active,
.tab-list li:hover {
	background: #fff;
	margin-left: -30px;
	padding-left: 30px;
	margin-right: -30px;
	padding-right: 30px;
}
.tab-list > li {
	border-top: var(--link-border, 1px solid #eee);
}
.tab-list li.active a,
.tab-list li:hover a {
	color: var(--bde-links-color-hover, inherit);
	display: flex;
	flex-grow: 1;
}
.tab-contents {
	flex-grow: 1;
}
.tab-contents .cat_title {
	font-size: var(--bde-h2-font-size, 1.5em);
	color: var(--bde-headings-color, inherit);
}
.tab-content {
	display: none;
	position: absolute;
	top: 0;
	left: 300px;
	width: calc(800px - 340px);
	background: #fff;
	border-radius: 0 1rem 1rem 0;
	padding: 2rem 3rem;
	min-height: 100%;
}
.tab-content.active {
	display: block;
}
.tab-content ul {
	list-style: none;
	padding: 0;
}
.tab-content > ul {
	columns: 2;
	column-gap: 3rem;
}
.tab-content ul li {
	break-inside: avoid-column;
	padding: 0.25em 0;
}
.tab-content ul li a {
	text-decoration: none;
}
.tab-content ul li a:hover {
	text-decoration: underline;
}
.view-all-link {
	display: inline-block;
	margin-top: 10px;
	text-decoration: none;
}
.view-all-link:hover {
	text-decoration: underline;
}
.tab-list li.active .mobile-tab-content,
.tab-list li .mobile-tab-content {
	display: none;
}
.tab-content ul li.sub-item {
	margin-bottom: 1em;
}
.sub-item > a {
	font-weight: bold;
	display: block;
	border-bottom: var(--link-border, 1px solid #eee);
	padding: 0.5em 0;
}

@media (min-width: 1024px) {
	.tab-list {
		background: var(--bde-palette-color-3);
	}
	.tab-list,
	.tab-content {
		padding: var(--dropdown-section-padding, 1rem);
	}
}

@media (max-width: 1023px) {
	.product-cat-vertical-tabs {
		flex-direction: column;
	}
	.tab-list {
		width: 100%;
		max-width: 100%;
	}
	.tab-list ul {
		list-style-type: none;
		padding: 0;
	}
	.tab-content > ul {
		columns: 1;
	}
	.tab-list li {
		margin-bottom: 0;
		display: block;
		padding: 0;
	}
	.tab-list li a {
		color: var(--link-color);
		position: relative;
		display: block;
		border-top: var(--link-border, 1px solid #eee);
		outline-offset: -1px;
		padding: var(--mobile-link-padding-top, 0.75em) var(--mobile-link-padding-right, 0) var(--mobile-link-padding-bottom, 0.75em) var(--mobile-link-padding-left, 0);
	}
	.tab-list li.active a,
	.tab-list li:hover a {
		color: var(--link-color);
		display: block;
	}
	.tab-list li.sub-item a {
		border-top: none;
	}
	.tab-list li.sub-item {
		border-top: var(--link-border, 1px solid #eee);
	}
	.tab-list ul.sub-child-list {
		padding-bottom: 1em;
		display: none;
	}
	.tab-list ul.sub-child-list a {
		padding-top: 0.25em;
		padding-bottom: 0.25em;
	}
	.tab-contents {
		display: none;
	}
	.mobile-tab-content {
		display: none;
	}
	.tab-list li.active .mobile-tab-content {
		display: block;
	}
}
