/**
 * @package	jCart Ajax
 * @author	Konstantin Kolos
 * @copyright	Copyright (C) 2019-2020 Jnotes.net.ua. All rights reserved
 * @contact	http://jnotes.net.ua, admin@jnotes.net.ua
 * @license	http://gnu.org/licenses/gpl-3.0.html, GNU/GPLv3
**/

/* TEXT or IMAGE or IMAGE SELECT */
.jc-img-cart {
	display: inline-block;
	text-align: right;
	background: url(/media/mod_jcart_ajax/images/cart.png) no-repeat scroll 0 0;
	width: 64px;
	height: 64px;
}
.jc-img-cart-select,
.jc-img-wish-select {display: inline-block; text-align: right}

.jc-img-cart .jc-qt-product {
	position: relative;
	top: 4px;
	left: 2px;
}
.jc-img-cart .jc-qt-product,
.jc-img-cart-select .jc-qt-product {
	display: inline-block;
	text-align: center;
	font-size: small;
	color: #fff;
	background-color: #c74044;
	width: 25px;
	height: 25px;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	-o-border-radius: 50%;
	-ms-border-radius: 50%;
	border-radius: 50%;
}
.jc-img-wish {
	display: inline-block;
	background: url(/media/mod_jcart_ajax/images/wishlist.png) no-repeat scroll 0 0;
	width: 64px;
	height: 64px;
}
.jc-img-wish span,
.jc-img-wish-select span {
	display: inline-block;
	width: 0;
	height: 0;
	overflow: hidden;
}
.jc-img-cart:hover {background: url(/media/mod_jcart_ajax/images/cart_hover.png) no-repeat scroll 0 0}
.jc-img-wish:hover {background: url(/media/mod_jcart_ajax/images/wishlist_hover.png) no-repeat scroll 0 0}

.jc-content {
	opacity: 0;
	visibility: hidden;
	z-index: 99;
	position: absolute;
	margin: 10px 0 0 0;
	width: 330px;
	max-width: 500px;
	background-color: #fff;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	-o-border-radius: 4px;
	-ms-border-radius: 4px;
	border-radius: 4px;
	-moz-box-shadow: 0 0 20px 0 #ccc;
	-webkit-box-shadow: 0 0 20px 0 #ccc;
	-o-box-shadow: 0 0 20px 0 #ccc;
	-ms-box-shadow: 0 0 20px 0 #ccc;
	box-shadow: 0 0 20px 0 #ccc;
	-moz-transition: all 0.1s ease-out 0.1s;
	-webkit-transition: all 0.1s ease-out 0.1s;
	-o-transition: all 0.1s ease-out 0.1s;
	-ms-transition: all 0.1s ease-out 0.1s;
	transition: all 0.1s ease-out 0.1s;
}
.jc-cart-text,
.jc-img-cart,
.jc-img-cart-select {cursor: pointer}

.jc-cart-text:hover, .jc-cart-text:focus, .jc-cart-text:active,
.jc-qt-product:hover, .jc-qt-product:focus, .jc-qt-product:active {text-decoration: none}

.jc-cart-text:hover + .jc-qt-product + .jc-content,
.jc-img-cart:hover + .jc-content,
.jc-img-cart-select:hover + .jc-content,
.jc-qt-product:hover + .jc-content,
.jc-content:hover {opacity: 1; visibility: visible}

/* LIST */
.jc-shop {line-height: 24px}
.jc-list-empty,
.jc-list-product {padding: 20px}
.jc-list-empty h1,
.jc-list-empty h2,
.jc-list-empty h3,
.jc-list-empty h4,
.jc-list-empty h5 {text-transform: uppercase}
.jc-rows {padding: 0 5px 0 0; max-height: 400px; overflow-y: auto}
.jc-row {padding: 0 0 5px 0; border-bottom: 1px dashed #ccc}
.jc-row:last-child {border: 0}
.jc-row + .jc-row {margin-top: 15px}
.jc-img-product {
	display: block;
	float: left;
	margin: 5px 15px 0 0;
	width: 100px;
	height: 100px;
}
.jc-img-product img {max-width: 100px; max-height: 100px; border-radius: 5px;}
.jc-attr {margin: 5px 0 0 0}
.jc-control {padding: 5px 0 20px 20px}
.jc-remove {
	display: inline-block;
	margin: 0 10px 0 0;
	vertical-align: middle;
	text-align: center;
	color: #fff;
	background-color: #2d5a71;
	width: 25px;
	height: 25px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	-o-border-radius: 2px;
	-ms-border-radius: 2px;
	border-radius: 2px;
}
.jc-remove:hover,
.jc-remove:focus,
.jc-remove:active {
	text-decoration: none;
	color: #fff;
	background-color: #1e3d4d;
}
.jc-inputbox {
	margin: 0 3px !important;
	text-align: center;
	width: 30px;
	border: 1px solid #ccc;
    padding: 4px 0px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: top;
}
.jc-price {
	float: right;
	padding: 5px 5px 0 0;
	font-size: 20px;
	font-weight: bolder;
}
.jc-price span {
	margin: 0 10px 0 0;
	color: #2d5a71;
}
.jc-hr {
	margin: 0;
	margin-top: 10px;
	border: 0;
	height: 2px;
	background-color: #ccc;
	background-image: -moz-linear-gradient(left, #fff, #ccc, #fff);
	background-image: -webkit-linear-gradient(left, #fff, #ccc, #fff);
	background-image: -o-linear-gradient(left, #fff, #ccc, #fff);
	background-image: -ms-linear-gradient(left, #fff, #ccc, #fff);
}
.jc-total {
	position: relative;
	padding: 10px 0 5px 0;
	text-align: center;
	text-transform: uppercase;
	font-size: 14px;
}
.jc-total-qt {color: #000; font-weight: 900;}
.jc-btn-center {margin: 10px 0 0 0; text-align: center}

/* ADD TO CART */
.jc-in-cart-list {
	white-space: nowrap;
}
.jc-list-added,
.jc-in-cart-added {
	position: absolute;
    top: 0px;
    left: 0px;
    padding: 2px 7px;
    color: #fff;
    background-color: #8ac187;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -o-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
}
.jc-in-cart {margin: 0 0 0 5px}
.jc-in-cart-added {
	top: 0;
	left: 0;
	padding: 2px 7px;
}
.jc-loading {
	opacity: 1;
	position: absolute;
	top: 17px;
	left: 165px;
	background: url(/media/mod_jcart_ajax/images/loading.gif) no-repeat #fff;
	width: 31px;
	height: 31px;
}
.jc-hidden {display: none}

/* TOOLTIP */
[data-title] {position: relative}
[data-title]:after {
	content: attr(data-title);
	opacity: 0;
	visibility: hidden;
	z-index: 999;
	position: absolute;
	bottom: 2.3em;
	left: 50%;
	padding: 2px 8px;
	font-size: small;
	font-weight: lighter;
	white-space: nowrap;
	color: #444;
	background-image: -moz-linear-gradient(top, #fff, #ddd);
	background-image: -webkit-linear-gradient(top, #fff, #ddd);
	background-image: -o-linear-gradient(top, #fff, #ddd);
	background-image: -ms-linear-gradient(top, #fff, #ddd);
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	-o-border-radius: 2px;
	-ms-border-radius: 2px;
	border-radius: 2px;
	-moz-box-shadow: 0 0 5px #ccc;
	-webkit-box-shadow: 0 0 5px #ccc;
	-o-box-shadow: 0 0 5px #ccc;
	-ms-box-shadow: 0 0 5px #ccc;
	box-shadow: 0 0 5px #ccc;
}
[data-title]:hover:after {
	opacity: 1;
	visibility: visible;
	-moz-transition: all 0.2s ease-out 0.5s;
	-webkit-transition: all 0.2s ease-out 0.5s;
	-o-transition: all 0.2s ease-out 0.5s;
	-ms-transition: all 0.2s ease-out 0.5s;
	transition: all 0.2s ease-out 0.5s;
}
.jc-img-wish:after,
.jc-img-wish-select:after {bottom: 5em}

.jc-control .btn {
	padding: 1px 9px;
    background: #ebebeb;
    display: inline-block;
    vertical-align: top;
    border-radius: 3px;
    color: #000;
	cursor: pointer;
}

.jc-btn-center .btn-primary {
	display: inline-block;
    padding: 5px 10px;
    background: #2d5a71;
    margin: 5px;
    color: #fff;
    border-radius: 5px;
}

.jc-btn-center .btn-success {
	display: inline-block;
    padding: 5px 10px;
    background: #2d5a71;
    margin: 5px;
    color: #fff;
    border-radius: 5px;
}

.jc-name-product {
	text-align: left;
	line-height: 18px;
    font-size: 14px;
}