/**
 * Best4Mage - Frontend Configurable Product Matrix
 * @author Best4Mage
 */

/*-------------------------------------------------------------------------------------------------------------------*/
/* List page */
.page-layout-fcpmlist .column.main {
  float: right;
  order: 2;
  width: 79.1667%;
}
.page-layout-fcpmlist .sidebar-main {
  float: left;
  order: 1;
  width: 20.8333%;
}
.page-layout-fcpmlist .sidebar-additional {
  clear: left;
  float: left;
  padding-left: 0;
  padding-right: 2%;
  order: 2;
  width: 20.8333%;
}
.page-layout-fcpmlist .fcpm-col {
  display: inline-block;
  margin-bottom: 30px;
}
.product-matrix-outer.fcpm-col {
  width: 60%;
}
.product.details.product-item-details.fcpm-col {
  width: 39%;
}
.product-matrix-outer thead {
  background: #eee none repeat scroll 0 0;
}
.matrix_custom_options tbody tr {
  background: #fcfcfc none repeat scroll 0 0;
}
.product-matrix-wrapper table > thead > tr > th,
.product-matrix-wrapper table > tbody > tr > th,
.product-matrix-wrapper table > tfoot > tr > th,
.product-matrix-wrapper table > thead > tr > td,
.product-matrix-wrapper table > tbody > tr > td,
.product-matrix-wrapper table > tfoot > tr > td {
  padding: 8px 8px;
}
.product-matrix-wrapper table thead td {
  max-width: 60px;
  word-wrap: break-word;
  vertical-align: top;
}
.product-matrix-wrapper table th, table td {
  text-align: center;
}
.product-matrix-wrapper tr.odd {
  background: #fcfcfc none repeat scroll 0 0;
}
.product-matrix-wrapper tr.even {
  background: #f7f7f7 none repeat scroll 0 0;
}
.product-matrix-wrapper table .swatch-option {
  float: none;
  height: 25px;
  line-height: 25px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  min-width: 30px;
}
.product-matrix-wrapper table .swatch-option.color {
  width: 40px;
}
.product-matrix-wrapper .qty {
  max-width: 60px;
  text-align: center;
}
.fcpm-col .qty-wrapper {
	display:block;
	position: initial;
	background: none;
	max-width: 80px;
	margin: auto;
	padding: 0;
}
.fcpm-col .qty-wrapper .qty {
	float: left;
	max-width: 57px;
	height: 36px;
}
.fcpm-col .qty-wrapper .qty-control {
	width: 23px;
	height: 18px;
	background: #ccc;
	display: inline-block;
	float: left;
	text-align: center;
	line-height: 17px;
	cursor: pointer;
	color: transparent;
}
.fcpm-col .qty-wrapper .qty-control.qty-plus {
	background: #c2c2c2 url("../images/2-plus.png") no-repeat scroll center center/9px
}
.fcpm-col .qty-wrapper .qty-control.qty-minus {
	background: #c2c2c2 url("../images/2-minus.png") no-repeat scroll center center/9px
}
.fcpm-col .qty-wrapper .qty-control:hover {
	background-color: #ddd;
}


#bulk-add-to-cart .qty {
  display: none;
}
#bulk-add-to-cart {
  text-align: right;
}
#bulk-add-to-cart .action.tocart.primary {
  font-size: 16px;
  margin-right: 20px;
  padding: 10px 20px;
}
.add-to-cart-bulk-wrapper {
  background: rgba(255, 255, 255, 0.9) none repeat scroll 0 0;
  bottom: 0;
  box-shadow: 0 0 5px 1px #aaa;
  left: 0;
  padding: 7px;
  position: fixed;
  width: 100%;
  z-index: 999;
}
.fcpm_hide .modes{
  display: none;
}

@media only screen and (max-width : 900px) {
  /* Styles */
  .product.details.product-item-details.fcpm-col {
    width: 100%;
  }
  .product-matrix-outer.fcpm-col {
    width: 100%;
  }
}

@media only screen and (max-width : 379px) {
  /* Styles */
  .product-matrix-outer.fcpm-col {
    /* margin-left: -110px; */
    min-width: 290px;
  }
}
@media only screen and (max-width : 639px) {
  /* Styles */
  .products-list .product-item-photo {
    padding: 0 10px 0 0;
    text-align: left;
    width: 35%;
  }
}
@media (min-width: 640px){
  .fcpm-col .product-item-actions .actions-primary {
      display: initial;
  }
  .fcpm-col .product-item-actions .actions-primary + .actions-secondary{
    padding-left: 0px;
  }
  div .fcpm-col .product-item .price-final_price{
    margin-bottom: 10px;
  }
}
@media only screen and (min-width:768px ){
  .fcpm-col .product-item-name,.fcpm-col .product.name a {
    font-weight: 500;
    font-size: 20px;
  }
}

@media only screen and (min-width: 340px) and (max-width:379px){
  .product-matrix-outer.fcpm-col{
    width: 310px;
  }
  .page-layout-fcpmlist .fcpm-col{
    margin-bottom: 10px;
  }
}
@media only screen and (min-width: 320px) and (max-width:340px){
  .product-matrix-outer.fcpm-col{
    margin-left: -105px;
    min-width: 299px;
  }
  .page-layout-fcpmlist .fcpm-col{
    margin-bottom: 0px;
  }
  .list-per .product-item {
    margin-bottom: 20px;
  }
}

.product-matrix-outer {
  overflow: auto;
}

/* Grid look */
.modal-content .grid-look-wrapper {
  width: 100%;
  max-height: 650px;
  overflow: auto;
  margin: 20px 0 0;
}
.modal-content .grid-look {
  border-collapse: inherit;
  border-spacing: 0;
}
.modal-content .grid-look thead td {
  z-index: 9;
  max-width: 60px;
  word-wrap: break-word;
  border-top: 1px solid #ccc;
}
.modal-content .grid-look td {
  padding: 5px;
  text-align: center;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
  font-size: 12px;
}
.modal-content .grid-look td:first-child {
  border-left: 1px solid #ccc;
  background: #fff;
  z-index: 9;
  max-width: 60px;
}
.modal-content .grid-look thead tr:first-child {
  border-top: 1px solid #ccc;
}
.modal-content .grid-look tbody tr:nth-child(2n+1),
.modal-content .grid-look tbody tr:nth-child(2n+1) td:first-child {
  background: #f2f2f2;
}
.modal-content .grid-look .swatch-option {
  float: none;
  min-width: 30px;
  margin: auto;
  height: 28px;
  width: 100%;
  line-height: 28px;
  padding: 0;
}
.modal-content .grid-look .total-qty,
.modal-content .grid-look .grand-total-col,
.modal-content .grid-look .matrix-total-qty {
  text-align: center;
}
