/*---------------- Number of peoples watching and sold in last two months----------------- */
:root {
	--imgContWidth: 60px;
}


/* @media only screen and (min-width: 850px) {
	.product-info.summary {
		display: flex;
		flex-direction: column;

		.product-title{
			order: 1 !important;
		}
		.price-wrapper{
			order: 2 !important;
		}

		.product-tax-and-shipping{
			order: 3 !important;
		}

		.jdgm-widget{
			order: 4 !important;
		}
		
		.custom-packs-buttons{
			order: 5 !important;
		}
		
		.custom-variation-section {
			order: 6 !important;
		}

		.add-to-cart-scroll-to{
			order: 7 !important;
		}


		.product-shipping-terms-modal__wrapper{
			order: 8 !important;
		}

		.product-short-description{
			order: 9 !important;
		}

		.delivery-heading-custom{
			order: 10 !important;
		}

		.number-of-sales{
			order: 11 !important;
		}

		.number-of-users{
			order: 12 !important;
		}

		.bollsen-payment-methods{
			order: 13 !important;
		}


	}
}
 */

.number-of-sales {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 10px 0;
	
	.number-of-sales-images {
		display: flex;
		align-items: center;
    	justify-content: flex-start;
		width: calc(var(--imgContWidth) * 0.75);
		
		& img{
			display: block;
			width: calc(var(--imgContWidth) / 2);
			height: calc(var(--imgContWidth) / 2);
			object-fit: cover;
			border-radius: 50%;
			border: 2px solid #fff;
		}
		
		& img:nth-child(2){
			transform: translatex(-50%);
		}
	}
	
	.number-of-sales-text{
		font-weight: bold;
		margin-bottom: 0 !important;
		width: 100%;
		text-align: left;
		font-size: 0.9em;
		padding-left: 10px;
		color: var(--fs-color-primary) !important;
	}
}

.number-of-users {
	display: flex;
    align-items: center;
	justify-content: start;
	gap: 10px;
	margin: 10px 0;
	
	.number-of-users-images {
		display: flex;
		align-items: center;
    	justify-content: end;
		width: calc(var(--imgContWidth) * 0.75);
		
		img {
			height: calc(var(--imgContWidth) / 2 - 5px);
			
		}
		
	}
	.number-of-users-text {
		margin-bottom: 0 !important;
		width: 100%;
		text-align: left;
		font-weight: 600;
		font-size: 0.9em;
		padding-left: 10px;
		color: var(--fs-color-primary) !important;
	}
}

.estimated-delivery-date{
	display: flex;
    align-items: center;
	justify-content: start;
	gap:10px;
    margin:10px 0;
	font-size: 0.9em;
	font-weight: bold;
	
	 .estimated-delivery-date-images {
		display: flex;
		align-items: center;
    	justify-content: end;
		width: calc(var(--imgContWidth) * 0.75);
		 img {
			height: calc(var(--imgContWidth) / 2 - 5px);
			
		}
	}
	
	.delivery-heading-custom{
		display: flex;
    	flex-direction: column;
		margin-bottom: 0 !important;
		width: 100%;
		text-align: left;
		padding-left: 10px;
	}
	
}

/*---------------- Free shipping progress bar----------------- */
:root {
  --colorGreenEmerald: 129, 215, 66;
	
}

.custom-free-shipping-progress {
	padding: 10px;
	background-color: rgba(var(--colorGreenEmerald), 0.1);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	border-radius: 4px;
	border: 2px solid rgba(var(--colorGreenEmerald), 0.4);
	
	.free-shipping-progress-bar-container {
		border-radius: 5px; 
		width: 100%;
/* 		border: 1px solid var(--wp--preset--color--cyan-bluish-gray); */
	}

	.free-shipping-message {
		text-align: center;
		margin-bottom: 0 !important;
		font-size: 1.1em;
		font-weight: bold;
		color: var(--wp--preset--color--primary) !important;
		
		.woocommerce-Price-amount.amount{
			 color: var(--wp--preset--color--alert) !important;
		}
	}
}

/*---------------- Delivery estimation text----------------- */


/*---------------- Product custom packs buttons ----------------- */

.custom-packs-buttons {
	width: 100%;
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	scroll-margin-top: 40vh;

	margin: 30px 0;

	.join-quantity {
		border: 2px solid;
		position: relative;
		padding: 10px 10px 10px 15px;
		border-radius: 5px;
		transition: all 0.3s ease;
		cursor: pointer;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 4em;
	}

	.join-quantity:hover,
	.join-quantity.btn-active-border {
		color: inherit !important;
		border-color: var(--wp--preset--color--primary);
		background-color: rgba(255, 188, 3, 0.8);
	}


	.join-quantity input.pack-checkbox {
		margin: 0;
		accent-color: var(--wp--preset--color--secondary);
		pointer-events: none;
		border-width: 0;
		position: absolute;
		left: 0;
		top: 50%;
		transform: translate(50%, -50%);
	}

	.join-quantity input.pack-checkbox:hover {
		border-width: 0;
	}

	.join-quantity .custom-packs-buttons__best-offer {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translate(-50%, -60%);
		background-color: var(--wp--preset--color--primary);
		color: #fff;
		font-weight: bold;
		font-size: 0.8em;
		padding: 3px 7px;
		border-radius: 3px;
		width: max-content;
	}
	
	.join-quantity .custom-packs-buttons__percentage-discount{
		position: absolute;
		right: -15px;
		bottom: -5px;
		animation: beat .5s infinite alternate;
		background: var(--wp--preset--color--success);
		font-weight: bold;
		border-radius: 500px;
		font-size: 0.8em;
		padding: 3px 6px;
		rotate: -15deg;
		z-index: 1;
		color: #fff;
	}

	.join-quantity .big {
		font-size: 1.3em;
	}

	.join-quantity .strike {
		display: block;
		font-size: 0.85em;
	}
	
	
}

.custom-packs-buttons .join-quantity span.amount,
.woocommerce-Price-amount.amount {
		color: var(--fs-color-primary) !important;
	}

.custom-variation-section {
	margin-bottom: 30px;
	p {
		margin-bottom: 10px !important;
		margin-top: 20px !important;
	}
	
	select {
		border-radius: 3px !important;
	}
}

.add-to-cart-scroll-to {
    width: max-content;
    margin: auto;
    position: static; /* Default, non-fixed position */
    /*transition: all 0.3s ease-in-out;  Smooth transition for state changes */
    opacity: 1; /* Initially visible */
}

.eb-column-inner > *:not(#single_add_to_cart_button) {
	position: initial;
}
#single_add_to_cart_button {
	border-radius: 3px !important;
	width: 100% !important;
	
}

#single_add_to_cart_button.add-to-cart-scroll-to-fixed {
    position: fixed !important;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    margin-bottom: 0 !important;
    opacity: 1; /* Visible when fixed */
}

@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {

  .add-to-cart-scroll-to-fixed.add-to-cart-scroll-to_safari {
	padding-bottom: 15px !important;
  }

}

.initial-state {
    position: static; /* Start with static position */
    opacity: 0; /* Hide the button initially to avoid flickering */
  /*  transition: opacity 0.3s ease-in-out;  Fade-in transition */ 
}



.add-to-cart-scroll-to::before{
	content: "";
    position: absolute;
    width: 100dvw;
    height: calc(100% + 1px);
    left: 50%;
	bottom: 0;
    background-color: rgba(0,0,0,0);
    transform: translateX(-50%);
	z-index: -1;
}

@media only screen and (min-width: 500px) {
	.custom-packs-buttons {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}
@media only screen and (min-width: 650px) {
	.custom-packs-buttons {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}
@media only screen and (min-width: 850px) {
	.custom-packs-buttons {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
/* 		margin: 15px 0; */
		
		.join-quantity .custom-packs-buttons__percentage-discount {
			right: -5px;
		}
	}
}
@media only screen and (min-width: 1000px) {
	.custom-packs-buttons {
/* 		margin-top: 60px; */
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}



/*---------------- Product custom single button ----------------- */
.woocommerce-popup-product {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px;
	border: 1px solid;
	margin-bottom: 10px;
}

.woocommerce-popup-product-title {
	padding-bottom: 0 !important;
}

.woocommerce-popup-product-image {
	display: block;
	width: 100px;
	padding: 10px;
}

.woocommerce-popup-product-price {
	flex: 1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	font-size: 0.8em;
	/*     padding: 20px 0; */

	.woocommerce-Price-amount {
		padding-left: 10px;
	}

	.woocommerce-popup-product-quantity {
		padding-right: 10px;
	}
}

.woocommerce-popup-product-form {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: auto;

	input {
		width: min-content;
		display: block;
		margin: 20px auto 20px auto;
	}

	.single_add_to_cart_button {
		display: block !important;
		font-size: 0.7em !important;
		margin-bottom: 0 !important;
		margin-right: 20px !important;
		margin-left: 20px !important;
		line-height: 1.2 !important;
		width: 100%;
		
	
	}
}
.woocommerce-popup-product-form-button {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Custom styling of input number */
/* Chrome, Safari, Edge, Opera */
.woocommerce-popup-product-form input::-webkit-outer-spin-button,
.woocommerce-popup-product-form input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
.woocommerce-popup-product-form input[type='number'] {
	-moz-appearance: textfield;
}
.woocommerce-popup-product-form input.input-number {
	all: unset;

	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	padding: 12px;
	vertical-align: top;
	text-align: center;
	appearance: none;
}

.woocommerce-popup-product-form input.input-number,
.woocommerce-popup-product-form .input-number-decrement,
.woocommerce-popup-product-form .input-number-increment {
	width: 20px;
	height: 20px;
}
.woocommerce-popup-product-form .input-number-increment {
	margin-right: 20px;
}

.woocommerce-popup-product-form .input-number-decrement,
.woocommerce-popup-product-form .input-number-increment {
	display: inline-block;
	width: 30px;
	font-size: 2em;
	padding: 10px;
	color: #444;
	text-align: center;
	font-weight: bold;
	cursor: pointer;
	height: fit-content;
}

.grid-preset-1.eb-woo-products-gallery {
	margin-bottom: 20px !important;
	flex-wrap: nowrap !important;
	overflow-x: scroll;

	.eb-woo-products-col {
		max-width: 220px !important;
		width: 100% !important;
		padding-bottom: 0;
	}
}
.eb-woo-product-image img {
	object-fit: contain !important;
}

.woocommerce-popup-perks-icons {
	padding-bottom: 10px !important;

	p {
		margin-bottom: 0 !important;
		line-height: 1.1 !important;
	}
}

.simple-checkout-custom {
	width: 100%;
}

@media screen and (min-width: 700px) {
	.woocommerce-popup-product {
		width: 100%;

		.woocommerce-popup-product-form {
			width: min-content;
		}

		.single_add_to_cart_button {
			width: max-content;
		}
	}

	.woocommerce-popup-product-price {
		font-size: 1em;
	}
}

/*---------------- Custom added to cart notification ----------------- */

.custom-cart-notification {
	padding: 10px 30px;
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	text-align: left;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
	border-radius: 5px;
	position: fixed;
	width: fit-content;
	top: 200px;
	left: 50%;
	transform: translatex(-50%);
	z-index: 10000;

	.bullet-checkmark::before {
		color: var(--wp--preset--color--primary) !important;
	}
}

.custom-cart-notification.fadeOut {
	transition: opacity 1s ease-out;
	opacity: 0;
}


/*---------------- Add to cart button custom loader ----------------- */
.add-to-cart-btn-loader {
	width: 20px;
	height: 20px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #FFF;
    border-right: 3px solid transparent;
    box-sizing: border-box;
	padding-left: 10px;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
    	transform: rotate(0deg);
    }
    100% {
    	transform: rotate(360deg);
    }
} 

@keyframes beat{
	to { transform: scale(1.2); }
}