/*
* MODULE PRESTASHOP - SPAREPARTS
*
* LICENSE :
* All rights reserved 
* COPY AND REDISTRIBUTION FORBIDDEN WITHOUT PRIOR CONSENT FROM LSDev
* LICENCE :
* Tous droits réservés, le droit d'auteur s'applique
* COPIE ET REDISTRIBUTION INTERDITES SANS ACCORD EXPRES DE LSDev
*
* @author		LSDev
* @copyright 2020 LSDev
* @license	 Proprietary - no redistribution without authorization
*/

/* Sapreparts: Categories */
.spareparts-categories .spareparts-category-miniature {text-align:center;}
.spareparts-categories .spareparts-category-miniature img {border:2px solid #CCC;}
.spareparts-categories .spareparts-category-miniature h2 {font-size:1rem; font-weight:normal; margin:5px 0 0 0; min-height:50px;}
.spareparts-categories .spareparts-category-miniature-small-desc {position:absolute; top:0; right:0; background-color:#CCC; padding:10px; color:#000; font-size:14px;}

/* Sapreparts: Products */
#spareparts-category-scene img {width:100%; height:auto;}
#spareparts-need-quantity {display:none;}
.spareparts-td-image {background-repeat:no-repeat; background-position:center center; background-size:cover; background-size:80%; width:60px;}
.spareparts-td-name a,
#spareparts-products-table .spareparts-products-name a {color:inherit;}
.spareparts-add-to-cart button.btn-primary {padding:7px !important;}
.spareparts-add-to-cart button.btn-primary .material-icons {margin:0; font-size:16px;}
.spareparts-add-to-cart input {padding:5px !important; background-color:#FFF; text-align:center;}
.spareparts-add-to-cart button.loading i.material-icons {animation:rotate 1.5s linear infinite;}
.spareparts-products-volume-discounts {color:#888; text-align:center; display:block;}
.spareparts-products-volume-discounts-popup {position:absolute; background-color:rgba(190, 190, 190, .8); width:400px; padding:10px; left:-400px; top:0; display:none; z-index:10;}
.spareparts-products-volume-discounts-popup h3 {margin:0; padding:10px; background:#FFF;text-align:center;}
.spareparts-products-volume-discounts-popup table {width:100%; background-color:#FFF; margin:0;}
.spareparts-products-volume-discounts-popup th {background-color:#444; color:#FFF;}

/* Sapreparts: Products - TABLE */
#spareparts-products-table thead th {background-color:#444; color:#FFF;}
#spareparts-products-table {background-color:#FFF;}
#spareparts-products-table td {vertical-align:middle;}
#spareparts-products-table .spareparts-early-in-cart {float:right; color:#4cbb6c; font-size:.8rem;}
#spareparts-products-table .spareparts-early-in-cart[data-hide] {display:none;}
#spareparts-products-table .spareparts-early-in-cart .material-icons {font-size:.7rem;}
#spareparts-products-table #product-availability {font-size:1rem; font-weight:normal;}
#spareparts-products-table .product-availability-date {display:block; font-size:1rem;}
#spareparts-products-table .spareparts-products-price {position:relative; white-space:nowrap;}
#spareparts-products-table .has-discount .discount {margin-left:0;}
#spareparts-products-table .spareparts-products-price:hover .spareparts-products-volume-discounts-popup {display:block;}
#spareparts-products-table .spareparts-products-image {text-align:center; padding:0;}

@media screen and (max-width:767px) {
	#spareparts-products-table .spareparts-products-name {min-width:250px;}
	#spareparts-products-table .spareparts-products-stock {min-width:150px;}
	#spareparts-products-table .spareparts-add-to-cart {min-width:80px;}
}

/* Sapreparts: Products - DIV */
.spareparts-tr {clear:both; border-bottom:1px solid #C8C8C8;}
#spareparts-th {background-color:#444; color:#FFF;}
.spareparts-th-num, .spareparts-td-num, .spareparts-th-reference, .spareparts-td-reference {text-align:center;}
.spareparts-td-price {position:relative;}
.spareparts-td-price:hover .spareparts-products-volume-discounts-popup {display:block;}
#spareparts-products-div {display:table; width:100%; border-collapse:collapse;}
#spareparts-th, .spareparts-tr {display:table-row;}
#spareparts-th > div,
.spareparts-tr > div {display:table-cell; padding:10px; border:1px solid #e4e1df; vertical-align:middle;}
.spareparts-tr:nth-of-type(2n+1) {background-color:#f5f5f5;}
.spareparts-th-cart, .spareparts-td-cart {width:110px;}

@media screen and (max-width:767px) {
	#spareparts-th {display:none;}
	#spareparts-products-div, .spareparts-tr {display:block; width:100%;}
	.spareparts-tr {border:2px solid #e4e1df; background-color:#FFF; margin-top:10px;}
	.spareparts-tr > div {display:block; float:left; width:100%; border:none;}
	.spareparts-tr .spareparts-td-num {width:20%; background-color:#e4e1df;}
	.spareparts-tr .spareparts-td-reference {width:80%; text-align:right;}
	.spareparts-tr .spareparts-td-image {clear:both; width:100%; height:100px; margin:5px 0; background-size:40%;}
	.spareparts-tr .spareparts-td-name {width:70%; clear:left;}
	.spareparts-tr .spareparts-td-condition {width:30%;}
	.spareparts-tr .spareparts-td-price {width:43%;}
	.spareparts-tr .spareparts-products-price-block {margin-top:.625rem;}
	.spareparts-tr .spareparts-td-stock {width:33%;}
	.spareparts-tr .spareparts-td-cart {width:24%; float:right;}
}

/* Spareparts HOOK */
#spareparts-hook {box-shadow:2px 2px 11px 0 rgba(0,0,0,.1); background:#fff; margin-top:2rem; color:#414141;}
#spareparts-hook h3 {padding:10px; margin:0; border-bottom:1px solid #E4E4E4;}
#spareparts-hook-category {padding:20px 20px 0 20px; overflow:auto; max-height:340px;}
#spareparts-hook-category .spareparts-hook-category-block {text-align:center;}
#spareparts-hook-category .spareparts-hook-category-block img {width:100%; height:auto; border:2px solid #CCC;}
#spareparts-hook-category .spareparts-hook-category-block h4 {font-size:1rem; font-weight:normal; min-height:40px; margin-top:5px;}

/* Animation */
@keyframes rotate{
	to {transform:rotate(360deg);}
}
