/*
Theme Name: Liberty Systems
Theme URI: https://lsn2.com
Version: 1.0
Description: A custom theme for Liberty Systems.
Author: The Snowberry Team
Author URI: https://snowberrymedia.com
template: bb-theme
*/

/************************************************************
 * GENERAL
 ***********************************************************/

@media (min-width:1250px) {
	.fl-node-s2cx8v9fgpni .fl-row-content,
	.skewed-layout--left .fl-row-content {
		width: 100% !important;
		max-width: 100%;
		margin-left: calc( ( 100vw - 1290px ) / 2 );
	}
	
	.skewed-layout--right .fl-row-content {
		width: 100% !important;
		max-width: 100%;
		margin-right: calc( ( 100vw - 1290px ) / 2 );
	}
}

.cap-card .uabb-image {
	border-radius: 22px 22px 0 0;
	overflow: hidden;
}

.bring-front > .fl-col-content {
	z-index: 5 !important;
	position: relative !important;
}

.ls-maxwidth .uabb-infobox-text p {
	max-width: 400px;
}

.wp-block-file:not(.wp-element-button) {
	aspect-ratio: 8.5/11;
}

/************************************************************
 * HEADER
 ***********************************************************/

.shop-menu .adv-icon-horizontal .adv-icon-link {
	margin-bottom: 0 !important;
}

/************************************************************
 * FOOTER
 ***********************************************************/

/************************************************************
 * FORMS
 ***********************************************************/

/************************************************************
 * PAGES
 ***********************************************************/

.column--hero-col,
.column--stat-col,
.column--tech-col {
    position: relative;
}

.column--hero-col-back,
.column--stat-col-back,
.column--tech-col-back {
    width: 100% !important;
}

.column--hero-col-front,
.column--stat-col-front,
.column--tech-col-front {
	position: absolute;
	bottom: 50px;
	z-index: 5;
}

.column--hero-col-front {
	width: 55%;
	left: 0;
}

.column--stat-col-front {
	width: 45%;
	right: 50px;
}

.column--tech-col-front {
	width: 55%;
	right: 0;
}

@media(max-width:767px) {
	.column--hero-col-back,
	.column--tech-col-back {
	    width: 75% !important;
	}

	.fl-builder-content .column--hero-col-front,
	.fl-builder-content .column--tech-col-front {
		width: 45% !important;
		bottom: -5%;
	}

	.column--stat-col-back {
		width: 100% !important;
	}

	.column--stat-col-back .uabb-photo {
		text-align: center !important;
	}

	.fl-builder-content .column--stat-col-front {
		position: relative;
		width: 100% !important;
		right: auto;
		left: auto;
		bottom: auto;
	}
}

/************************************************************
 * PRODUCTS
 ***********************************************************/

.product-card.card {
	border: none;
	border-radius: 0;
	text-align: center;
	height: 100%;
}

.product-card--image {
	overflow: hidden;
	border-radius: 22px;
}

.product-card--body {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
}

.product-card--title,
.woocommerce .product-card--title {
	font-size: 25px;
	font-weight: 500;
}

.product-card--price {
	font-size: 16px;
	display: block;
	margin-bottom: 0.5em;
}

.page-card--button,
.product-card--button {
	font-size: 16px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-family: Roboto, sans-serif;
	font-weight: 700;
	border: 2px solid #000000;
	background: none;
	padding: 0;
	border-radius: 50px;
	-moz-border-radius: 50px;
	-webkit-border-radius: 50px;
	width: 165px;
	min-height: 55px;
	position: relative;
	overflow: hidden;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.product-card--button {
	width: auto;
	padding: 4px 16px;
	min-height: 0;
	margin-top: auto;
}

.page-card--button,
.page-card--button::after,
.page-card--button-text,
.product-card--button,
.product-card--button::after,
.product-card--button-text {
	-webkit-transition: all 200ms linear;
	-moz-transition: all 200ms linear;
	-ms-transition: all 200ms linear;
	-o-transition: all 200ms linear;
	transition: all 200ms linear;
}

.page-card:hover .page-card--button,
.product-card:hover .product-card--button {
	border-color: #00a753;
}

.page-card:hover .page-card--button-text,
.product-card:hover .product-card--button-text {
	color: #ffffff;
	position: relative;
	z-index: 2;
}

.page-card--button::after,
.product-card--button::after {
  content: '';
	position: absolute;
	z-index: 1;
	background: #00a753;
	bottom: 0;
	height: 0;
	width: 100%;
}

.page-card:hover .page-card--button::after,
.product-card:hover .product-card--button::after {
    height: 100%;
}

.woocommerce div.product form.cart, .woocommerce-page div.product form.cart {
	display: flex;
	align-items: center;
	justify-content: center;
}

.woocommerce .quantity input.qty, .woocommerce-page .quantity input.qty {
	border-radius: 0;
	border-color: #c1c1c1;
}

.woocommerce div.product form.cart .button {
	text-transform: uppercase;
	letter-spacing: 1px;
}

.uabb-blog-posts .slick-prev,
.uabb-blog-posts .slick-prev:hover,
.uabb-blog-posts .slick-prev:focus {
	left: auto;
	right: calc( ( 100vw - 1290px ) / 2 );
	transform: translateX(-50px);
	top: -100px;
}

.uabb-blog-posts .slick-next,
.uabb-blog-posts .slick-next:hover,
.uabb-blog-posts .slick-next:focus {
	left: auto;
	right: calc( ( 100vw - 1290px ) / 2 );
	transform: none;
	top: -100px;
}

.image-slider {
	margin-top: 2em;
}

.image-slider .carousel-control-next,
.image-slider .carousel-control-prev,
.image-slider .carousel-control-next:hover,
.image-slider .carousel-control-prev:hover,
.image-slider .carousel-control-next:focus,
.image-slider .carousel-control-prev:focus,
.image-slider .carousel-control-next:active,
.image-slider .carousel-control-prev:active {
	position: absolute;
	width: 42px;
	height: 42px;
	line-height: 42px;
	background: transparent;
  border: 2px solid;
  color: #00a753;
	opacity: 1;
	top: 50%;
	transform: translateY(-50%);
}

.image-slider .carousel-control-prev-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%2300a753' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
	background-size: 50%;
}

.image-slider .carousel-control-next-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%2300a753' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
	background-size: 50%;
}

.image-slider .carousel-item img {
	aspect-ratio: 4/3;
	object-fit: contain;
}

/*
 * Facets
 */

.facetwp-facet {
	margin-bottom: 0 !important;
}

.product-filters {
	margin-bottom: 40px;
	gap: 20px;
}

.product-filters .facetwp-facet input.facetwp-search {
	border-radius: 0;
	border: none;
	background: none;
	border-bottom: 2px solid;
	padding-top: 12px;
	padding-bottom: 12px;
	padding-left: 0;
	line-height: 1.4;
	font-size: 16px;
}

.product-filters .facetwp-type-search .facetwp-icon {
	opacity: 1;
	width: 24px;
	height: 24px;
	line-height: 24px;
	background: none;
	text-align: center;
	font-size: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.product-filters .facetwp-type-search .facetwp-icon::before {
	background: none;
	content: "\f002";
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
	width: auto;
	font-style: normal;
}

.product-filters .fs-label-wrap {
	background: none;
	border: none;
	border-bottom: 2px solid;
	font-size: 16px;
}

.product-filters .fs-label-wrap .fs-label {
	padding-top: 12px;
	padding-bottom: 12px;
	line-height: 1.4;
}

.page-content-banner a {
	padding: 15px 30px;
	padding-right: 60px;
	font-family: Roboto, sans-serif;
    font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	border-radius:  100px;
	background-color: #00a753;
	display: inline-block;
	position: relative;

	&:hover {
		background-color: #007420;
	}
	
	&::before,
	&::after {
		content: '';
		position: absolute;
		border-top: 2px solid #fff;
		border-right: 2px solid #fff;
		width: 15px;
		height: 14px;
		right: 39px;
		top: 48%;
		transform: translate(0, -50%) rotate(45deg);
		transition: all 200ms linear;
	}
	
	&::after {
		right: 30px;
	}
	
	&:hover::before,
	&:hover::after {
		transform: translate(5px, -50%) rotate(45deg);
	}
}

.fl-page .header-nav ul.menu > li.nav-button {
	margin-left: 20px;
	
	& > a {
		background: #00a753;
		font-family: Roboto, sans-serif;
		font-weight: 700;
		color: #fff;
		text-transform: uppercase;
		border-radius: 50px;
		padding: 15px 30px;
		
		& .menu-item-text {
			color: inherit;
		}
		
		&:hover {
			background-color: #007420;
		}
	}
}

@media (max-width:991px) {
	.fl-page .header-nav ul.menu > li.nav-button {
		margin-left: 8px;
	}
}

#site-search {
	right: 170px;
}

@media (max-width:767px) {
	.header-nav .uabb-creative-menu-mobile-toggle-container {
		text-align: right;
		margin-right: 20px;
		margin-top: 10px;
	}
}

.fl-node-s1g70xck5ety .uabb-adv-accordion-buttons1g70xck5ety:hover, .fl-node-s1g70xck5ety .uabb-adv-accordion-item-active > .uabb-adv-accordion-buttons1g70xck5ety {
	background-color: #fff!important;
}

a.btn.btn-primary {
	background-color: #00a753;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 16px;
	padding: 10px 20px;
	border-radius: 50px;
	border: none;
}

a.btn.btn-primary:hover {
	background-color: #007420;
	text-decoration: none;
}

/* Landing Page Overrides */

.landing-rekurencja h2 {
	color: var(--h5-text-color);
	font-size: var(--text-size-heading-5);
	font-style: var(--h5-font-style,none);
	line-height: 100%;
	max-width: var(--measure-heading-5);
}