/* Additional styles for the table with product-listings */

.elementor-widget-enoteca-products .wine-container {
/* 	list-style-type: none; */
/* 	padding-left:0; */
/* 	text-align: center; */
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: flex-start;
}

.elementor-widget-enoteca-products .wine-item {
	width: 240px;
	min-width: 240px;
	margin: 4px;
	display: flex;
	flex-direction: column;	
}

.elementor-widget-enoteca-products .wine-item .img-container {
	border: 4px solid rgba(240, 236, 244, 0.5);
	padding: 12px 0;
	transition: border-color .2s ease;
}
	
.elementor-widget-enoteca-products .wine-item .img {
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	height: 160px;
}

.elementor-widget-enoteca-products .wine-item:hover .img-container {
	border-color: rgba(240, 236, 244, 1);
}

.elementor-widget-enoteca-products label {
	cursor: pointer !important;
	text-align: center;
}

.elementor-widget-enoteca-products label span {
	display: block;
	margin: 8px 0px 8px 0px;
	font-weight: 300;
	font-style: italic;
	font-size: 16px;
	line-height: 1.2;
	padding: 4px 12px;
}




label.modal__bg {
	margin-bottom: 0;
}




/* Table within modal */
.modal-view{height: 100%;}
.modal-view h2 {padding: 0 8px;}

.modal-table {
	float: left;
	z-index: 99;
/* 	width: 65%; */
}

.modal-table tr {
	display: flex;
	flex-direction: row;
	padding: 0.75rem;
	vertical-align: top;
	border-top: 1px solid #dee2e6;
}
.modal-table td {
	display: flex;
	flex-direction: row;
	font-family: 'Lato', sans-serif;
	
/* 	Overrrule default JupiterX values */
	border: 0 !important;
	padding: 0 !important;
}


.modal-table td:nth-child(1) {
	min-width: 132px;
	font-weight: 300;
}

.modal-table tr.awards + tr td {
	border-top: none !important;	
}

.modal-table tr.awards td {
	width: 100% !important;
}
.modal-table td ul li {
	line-height: 1.6;
	font-weight: 400;
}

.modal-table td:nth-child(2) {
	flex-grow: 1;
	font-weight: 400;
}

/* Icons */
.modal-table svg {
	height: 20px;
	width: 20px;
	min-width: 20px;
	margin-right: 10px;
	fill: #5f3889;
}

.modal-product-image {
	text-align: center;		
}
.modal-product-image img{
  transition: transform .5s ease;
}
.modal-product-image:hover img{
  transform: scale(1.1);
  transform-style: flat;
}
.modal-bottle-img {
	max-height: 320px;
	width:auto;
	height:auto;
}



/* [Object] Modal
 * =============================== */
.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  
  transition: opacity .7s ease;
  z-index: 201;
  box-shadow: 0 2px 4px 0 #CCCCCC;
}

.modal__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,0.8);
  transition: background-color .2s ease;
}

#modal__contents{
	height: 100%;
	opacity: 0;
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
}


#modal__contents.show{
	opacity: 1;
}

.modal-state {
  display: none;
}

.modal-state:checked + .modal {
  opacity: 1;
  visibility: visible;
}

.modal-state:checked + .modal .modal__inner {
  top: -40px;
}

.modal__inner {
	border-radius: 20px;
  transition: top .6s ease;
  position: absolute;
  top: -20%;
  right: 0;
  bottom: 0;
  left: 0;
  width: calc(100% - 64px);
  max-width: 840px;
  margin: auto;
  overflow: auto;
  background: #fff;
  padding: 1em 2em;
  max-height: 600px;
}

.modal__close {
  position: absolute;
  right: 1em;
  top: 1em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.modal__close:after,
.modal__close:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: #ccc;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: -3px 0 0 -1px;
  top: 0;
}

.modal__close:hover:after,
.modal__close:hover:before {
  background: #aaa;
}

.modal__close:before {
  transform: rotate(-45deg);
}