.quantity .button.plus,
.quantity .button.minus {
	border: 0 !important;
	background: #f0f0f0;
	text-shadow: none;
	font-weight: bold;
	font-size: 1.2em;
	font-family: monospace;
}

.quantity input[type="number"] {
	box-shadow: none;
	border: 0;
	background: #fafafa;
	height: auto;
	font-weight: bold;
}

/* Tabella informazioni vini */

.wine_information_table {
	--wit-columns: 2;
	--icons-width: 25px;
	display: grid;
	grid-template-columns: repeat(var(--wit-columns), var(--icons-width) auto);
	align-items: center;
	gap: 16px;
}

.wine_information_tag {
	font-size: 12px;
	line-height: 15px;
}

.wine_information_tag strong {
	text-transform: uppercase;
}

.wine_info_nutritional_popup {
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 30px;
	box-shadow: 0 0 0 100vh rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 0, 0, 0.3);
	width: 95%;
	max-width: 600px;
	border-radius: 4px;
}

.product_custom_message {
	color: #333333;
	background: #f1f1f1;
	border: 1px solid #ddd;
	margin: 0 0 1em;
	padding: 0.7em;
	display: block;
}

.pronta_consegna_text {
	display: flex;
	align-items: center;
	text-transform: uppercase;
	font-size: 0.75em;
}

.pronta_consegna_text img {
	width: 40px;
	margin-right: 10px;
}

.global_products_text {
	width: 100%;
	border: 0;
	padding: 0;
	margin: 0 0 15px;
}

.global_products_text td {
	padding: 8px;
	border: 0;
}

.global_products_text tr>td:first-child {
	width: 50px;
}

.global_products_text small {
	text-transform: uppercase;
}

.bib-advantages {
	border-top: 1px solid #ececec;
}

.bib-advantages-img,
.bib-advantages-description {
	padding-top: 30px;
}

.xoo-wl-action-btn {
	font-size: 12px;
	line-height: 1.6;
	border-radius: 0 !important;
	padding: 5px;
}

.flag_lang_banner {
	border-radius: 20px;
	display: inline-block;
	width: 35px;
	margin-top: -8px;
	outline: 3px solid white;
	margin-right: 5px;
}

/* Personalizzazione loop prodotti */

.badge-container {
	display: flex;
	flex-flow: column wrap;
	margin: 10px;
	gap: 5px;
	align-items: center;
}

.badge.badge-circle {
	pointer-events:unset;
	margin: 0;
}

.badge-circle .badge-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.85em;
	width: 65px;
	aspect-ratio: 1/1;
	padding: 10px;
}

.badge-container:not(.is-larger) .badge-circle .badge-inner,
.badge-container:not(.is-larger) a.freeshipping {
	width: 50px;
}

.yith-wcwl-add-button {

	.single_add_to_wishlist,
	.delete_item {
		font-size: 0;
		padding: 6px !important;
		background: transparent !important;
		color: var(--fs-color-primary);
		border: 0;
	}

	.single_add_to_wishlist i,
	.delete_item i {
		font-size: 15px;
	}

	.single_add_to_wishlist a,
	.single_add_to_wishlist i,
	.delete_item a,
	.delete_item i {
		padding: 0 !important;
		margin: 0 !important;
	}
}

.badge-inner.new-bubble {
	mask: url('../img/new-bubble.svg') no-repeat;
	max-width: 5.5em;
	white-space: break-spaces;
	line-height: 1;
}

.button.single_add_to_cart_button:before,
.add_to_cart_button:before {
	font-family: "Font Awesome 6 Free";
	float: left;
	content: "\f217";
	font-weight: 900;
	margin-right: 0.5em;
}


.product-small {
	--bg-product-color: #fff;
	/* #f9f9f9; */
	--bg-product-border: none;
	/* 1px solid #f2f2f2; */
}

.product-small .box-image {
	background: var(--bg-product-color);
}

.product-small .box-image img,
.type-product .product-gallery-slider img,
.type-product .product-thumbnails img {
	object-fit: contain !important;
	height: 100%;
	padding: 5px;
	transform: none !important;
	background: #fafafa;
}

.type-product .product-gallery-slider img {
	max-height: 580px;
	padding: 8.5%;
	border-radius: 5px;
}

.product-small .box-image img,
.product-small .box-image img.fill {
	padding: 5% !important;
	background: var(--bg-product-color);
	max-height: 290px !important;
}

.box-text-short-tags {
	display: flex;
	justify-content: center;
	flex-flow: row wrap;
	background: var(--bg-product-color);
	font-size: 0.8em;
	gap: 10px;
}

.box-text-short-tags .tag {
	margin: 0;
}

.box-text-short-tags .tag.is-bio i {
	color: var(--fs-color-success);
}

.box-text-short-tags .tag.review-star i {
	color: #ff9900;
}

.box-text-short-tags .tag.par-point i {
	color: tomato;
}

.organic-stamp {
	position: absolute;
	top: -1px;
	right: 30px;
	width: max-content;
	text-align: center;
	border-radius: 0px 0px 4px 4px;
	color: #01AF13;
	font-size: 0.75em;
	background-color: white;
	box-shadow: 0 3px 2px rgba(0,0,0,0.1);
	padding: 20px 10px 10px;
}

.product-small .box-text>* {
	margin: 0;
}

.product-small .box-text {
	padding-top: 0;
	display: flex;
	flex-direction: column;
	gap: .7em;
}

.product-small .box-text p {
	margin: 0;
	font-size: 14.4px;
	font-weight: bold;
}

.product-small .box-text p a {
	color: #555;
}

.product-small .price {
	font-size: 1.15em;
}

.product-small .price del {
	font-size: 0.85em;
}

.product-small .loop-product-buttons-container {
	display: flex;
}

.product-small .loop-product-buttons-container .add-to-cart-button {
	flex: 1;
}

.product-small .loop-product-buttons-container .add-to-cart-button a {
	width: 100%;
}

h1.product-title.entry-title {
	margin-bottom: 0;
}

h1.product-title.entry-title+.is-divider {
	display: none;
}

.woocommerce-product-rating {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 5px;
}

.woocommerce-product-rating .woocommerce-review-link {
	font-size: 0;
}

.woocommerce-product-rating .woocommerce-review-link .count {
	font-size: 14px
}

.product_meta {

	margin: 30px 0 0 0 !important;
	display: flex;
	flex-direction: column;
	gap: 2.5em;

	& > span {
		border: 0 !important
	}
	
	& > .product_codes span {
		display: inline-block;
		margin-right:20px;
	}

	& > span.sku_wrapper,
	& > span.tagged_as {
		display: none;
	}
	
	& > span.posted_in {
		font-size: 0
	}
	
	& > span.posted_in::before {
		content: "\f02c";
		font-family: "Font Awesome 5 Free";
		font-size: 15px;
		font-weight: bold;
		margin-right: 10px;
	}
	
	& > span.posted_in a {
		font-size: 11px;
		display: inline-block;
		padding: 4px;
		background: #454545;
		border-radius: 4px;
		margin: 0 5px 0 0;
		line-height: 1;
		margin-bottom:5px;
		color: white;
		text-transform: uppercase;
	}
}

.type-product.product .yith-par-message.yith-par-message-product {
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 0 !important;
}

.type-product.product .woocommerce-product-rating + .yith-par-message.yith-par-message-product {
	margin: 0 0 0 10px !important;
	padding: 0 10px !important;
	border-left: 1px solid #dedede;
}

.yith-par-message.yith-par-message-product .product-points-badge {
	background: var(--wp--preset--gradient--luminous-dusk);
	display: inline-block;
	font-size: 11px;
	padding: 0px 3px;
	border-radius: 3px;
	color: white;
	font-weight: bold;
	text-decoration: none;
}

.bundle_items_list,
.bundle_form.bundle_sells_form {
	--bundle-items-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--bundle-items-cols), 1fr);
	gap: 10px;
}

.bundle_form.bundle_sells_form .bundled_product_excerpt {
	display:none;
}

.cart.cart_group.bundle_form {
	margin-top: 30px;
}

/* Stile prodotti bundle pagina di prodotto */
div.bundled_product_summary {

	padding: 10px 5px !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: none !important;
	border-radius: 5px;
	gap: 5px;
	background: #FAFAFA;
	position: relative;
	
	&:not(.thumbnail_hidden) .details {
		float: none !important;
		width: auto !important;
		display: flex;
		flex-grow: 1;
		flex-direction: column;
		justify-content: space-between;
		gap: 5px;
	}

	.price,
	.woocommerce-Price-currencySymbol {
		font-size: inherit;
		margin: 0;
		vertical-align: unset;
	}

	figure.bundled_product_image  {
		margin: 0;
	}

	.bundled_product_images img {
		height: 80px !important;
		object-fit: contain;
		aspect-ratio: 1/1;
	}

	h4.bundled_product_title {
		margin: 0;
		font-weight: normal;
		font-size: 14px;
		line-height: 1.25;
	}

	p {
		font-size: 12px;
		margin:0;
	}

	.bundled_product_title_inner {
		margin: 0;
	}

	.item_qty {
		font-weight:bold;
		font-size:16px;
		color:#333;
	}

	&.has_qty_input .item_qty,
	.bundled_product_title_link,
	.quantity_hidden {
		display: none;
	}

	.cart {
		z-index: 10;
	}

	.quantity .button,
	input[type="number"] {
		background: none;
		min-height: auto;
		line-height: 1.4;
	}

	table.variations,
	table.variations * {
		margin:0;
	}

	table.variations td.label {
		display:none
	}

	table.variations .reset_variations {
		bottom: auto;
		position: relative;
		right: auto;
		text-transform: none;
	}

	.variations_button,
	.woocommerce-variation-price {
		padding: 0;
	}

}

/* Torri Plus Elements */

body {
	--torri-plus-gradient: linear-gradient(135deg, #0578ff 0%, #2c5389 100%);
	--torri-plus-bg-gradient: linear-gradient(135deg, #dfeff3 0%, #bbceff 100%);
}

.torri-plus-notice{
	background: var(--torri-plus-bg-gradient);
	padding: 25px;
	margin: 15px 0;
	border-radius: 4px;
}

.torri-plus-notice h3{
	color: #2c5389;
	text-transform: uppercase;
}

.torri-plus-notice .button {
	background:linear-gradient(135deg, #0dba04 0%, #366b00 100%);
	color: white;
	border: none;
	padding: 15px 30px;
	font-size: 1.2em;
	border-radius: 4px;
}

.plus-payment-notice {
	display:flex;
	gap:10px;
	margin: 15px 0;
	padding: 15px;
	background: linear-gradient(135deg, #0578ff 0%, #2c5389 100%);
	color: white;
	border-radius: 7px;
}

.torri-plus-tag {
	background: var(--torri-plus-gradient);
	color: white;
	font-weight: bold;
	padding: 3px 5px;
	border-radius:3px;
}
.torri-plus-tag-light {
	background: var(--torri-plus-bg-gradient);
	color: #2c5389;
	font-weight: bold;
	padding: 3px 5px;
	border-radius:3px;
}

.plus-hero {
	background: url('../img/torri-plus/hero-bg.jpg') no-repeat top center;
	background-size: 100% 100%;
	padding: 30px;
}

/* Stili recensioni */ 

#reviews-container {
	position: relative;
	min-height: 10rem;
	margin-bottom:2rem;
}

#commentform {
	margin: 0;
	padding: 1rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	border-radius: 4px;
}

#commentform > * {
	padding: 0 !important;
	flex-direction: column;
}

#reviews.torri-reviews {
	& {
		display: flex;
	}

	#review_form_wrapper .review-form-inner {
		background: none;
		border: 0;
		padding: 0px;
	}

	#review_form_wrapper .review-form-inner p {
		margin: 0;
	}

	p.stars > span {
		display: block;
		position: relative;
	}

	p.stars a {
		border: 0 !important;
		font-size: 0;
		margin: 0;
		line-height: 1;
	}

	p.stars a::after
	{
		font-size: 25px;
		content: "" !important;
		line-height: 1;
	}

	p.stars a.hover::after,
	p.stars a.selected::after {
		color:#ff9900;
	}

	ol.commentlist {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr) );
		align-items: center;
		gap: 30px;
		padding: 0 5px;
	}

	ol.commentlist li {
		margin: 0;
		padding: 0;
		border: 0;
	}

	& ol.commentlist .comment_container {
		gap: 15px;
		box-shadow: 0px 1px 5px rgba(0,0,0,.1);
		padding:20px;
	}

	& ol.commentlist li .comment-text {
		padding:0;
	}

	& ol.commentlist .comment-text .description {
		clear:both;
		position: relative;
	}

	& ol.commentlist .comment-text .description p {
		font-size: 0.9em;
		line-height: 1.2em;
		font-style: normal;
		margin: 5px 0 0 0;
	}

	& ol.commentlist .comment-text .star-rating {
		font-size: 0.8em;
		font-style: normal;
		float: right;
		margin: 3px 0;
	}

	& ol.commentlist .comment-text .description p.comment-more:not(.open) {
		max-height: 55px;
		overflow: hidden;
		cursor: pointer;
	}

	& ol.commentlist .comment-text .description p.comment-more:not(.open)::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 20px;
		background: rgb(245,245,245);
		background: linear-gradient(0deg, rgb(255, 255, 255) 20%, rgba(255,255,255,0) 100%);
	}

	& ol.commentlist .comment-text p.meta {
		line-height: 1;
		font-size: 0.9em;
	}

	ol.commentlist .comment-text p.meta .woocommerce-review__dash,
	ol.commentlist .comment-text p.meta .woocommerce-review__published-date,
	ol.commentlist .comment-text p.meta .woocommerce-review__verified {
		display:none;
	}

	ol.commentlist .comment-text p.meta .woocommerce-review__published-date {
		font-size: 0.7em;
	}

	& #reviews-next, & #reviews-prev {
		position: absolute;
		color: #999;
		font-size: 1.5em;
		top: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 5px;
		bottom: 0;
		opacity: 0;
		transition: all 0.3s ease;
		width: 1.5rem;
		background: #fff;
		height: 105%;
		transform: translate(0, -50%);
	}

	& #reviews-next:hover {
		color: var(--fs-color-primary);
		box-shadow: -10px 0 10px -10px rgba(0,0,0,0.7);
	}
	& #reviews-prev:hover {
		color: var(--fs-color-primary);
		box-shadow: 10px 0 10px -10px rgba(0,0,0,0.7);
	}

	& #reviews-next {
		left: 100%;
	}

	& #reviews-prev {
		right: 100%;
	}

	#reviews-container:hover #reviews-next {
		transform: translate(-100%, -50%);
		opacity: 1;
		box-shadow: -10px 0 10px -10px rgba(0,0,0,0.4);
	}
	#reviews-container:hover #reviews-prev {
		transform: translate(100%, -50%);
		opacity: 1;
		box-shadow: 10px 0 10px -10px rgba(0,0,0,0.4);
	}

	& .loading-reviews {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(255,255,255,0.6);
		backdrop-filter: blur(2px);
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 2em;
		color: #666;
	}

	@media (max-width: 767px) {
		#reviews-container {
			padding: 3rem 0;
		}

		& ol.commentlist {
			grid-template-columns: 1fr;
		}
		
		& #reviews-next, & #reviews-prev {
			display: flex !important;
			bottom: 0%;
			top: auto;
			opacity: 1;
			position: absolute;
			transform: none;
			height: auto;
		}

		& #reviews-next, & #reviews-prev {
			left: 0;
			right: auto;
		}

		& #reviews-next, & #reviews-next {
			right:0;
			left: auto;
		}
	}

}

.bundle_error {
	margin-bottom:30px;
}
.bundle_error * {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.bundle_error .woocommerce-info.message-wrapper {
	background: #ffba00;
	color: white;
	padding: 5px 10px !important;
	border-radius: 5px;
}

.woocommerce-info.message-wrapper .status_msg span {
	padding-right: 10px !important;
}
/* Iubenda Styles */

ul.for_boxes {
	list-style: none
}

ul.for_boxes li {
	margin: 0
}

.expand-click {
	background: #f0f0f0;
	padding: .7rem 1rem .7rem 3rem;
	cursor: pointer;
	margin: .5em 0 0 0;
	position: relative;
}

.expand-click:hover {
	background: #dedede;
}

.expand-click::before {
	content: "";
	font-family: fl-icons !important;
	position: absolute;
	top: 50%;
	left: 19px;
	font-size: 1.2em;
	line-height: 1;
	transform: translateY(-50%);
}

.expand-click.open::before {
	content: "";
}

.expand-content {
	padding: .7rem 1rem .7rem 3rem;
	display: none;
	background: #fbfbfb;
}

.expand-content>ul {
	font-family: 'Courier New', monospace;
	list-style: none;
	margin: 0 0 1.3em 1em;
}

.iub-subheading {
	align-items: center;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	position: relative;
	width: 100%;
	border-bottom: 2px solid rgba(0, 0, 0, .1);
	margin-right: 15px;
	padding-bottom: 7.5px;
	margin-top: 50px;
}

.iub-service {
	border-bottom: 1px solid #dedede;
	color: #922A24;
	font-size: 1.1em;
}

.iub-purpose-stack {
	color: #922A24;
	margin-top: 30px;
}

.iub_footer {
	padding: 5em 0;
	font-size: 0.8em;
}

.woocommerce-billing-fields__field-wrapper::after,
.woocommerce-shipping-fields__field-wrapper::after {
	content: '';
	display: block;
	clear: both;
}

#universal-form label.error {
	color: red;
}

@media only screen and (max-width: 48em) {

	div.bundled_product_summary .bundled_product_images img {
		height: 70px !important;
	}

	.bundle_items_list {
		--bundle-items-cols: 2;
		gap:5px;
	}

	.wine_information_table {
		--wit-columns: 1;
		--icons-width: 30px;
	}

	.bundle_button {
		display: flex;
	}

	/* Fix sovrapposizione Purechat con menu */
	.mfp-wrap {
		z-index: 9999999999 !important;
	}

}