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

/*-------------------------------------------------------------------------------------------------------------------*/
.page-product-configurable .columns .column.main {
    max-width: 100%;
}

.clearfix::after {
    clear: both;
    content: " ";
    display: block;
    height: 0;
    visibility: hidden;
}


/*  Frontend Tabs */

.fcpm-tabs {
    bottom: -1px;
    position: relative;
    z-index: 1;
}

.fcpm-tabs ul {
    background: #fff none repeat scroll 0 0;
    border-color: #ccc #ccc -moz-use-text-color;
    -o-border-image: none;
    border-image: none;
    border-style: solid solid none;
    border-width: 1px 1px 0;
    margin: 0;
    padding: 0;
}

.fcpm-tabs .accordion-title {
    border: 0;
    cursor: pointer;
    float: left;
    font-weight: 600;
    line-height: 50px;
    list-style: outside none none;
    margin: 0;
    text-align: center;
    width: 50%;
}

#order-one {
    border-width: 1px 0 0 1px;
}

#order-one {
    background: #3d3d3d url("../images/order-one.png") no-repeat scroll center center / auto 90%;
    color: transparent;
}

#order-multiple {
    background: #3d3d3d url("../images/order-multiple.png") no-repeat scroll center center / auto 90%;
    color: transparent;
}

#order-one.active {
    background: #fff url("../images/order-one-active.png") no-repeat scroll center center / auto 90%;
}

#order-multiple.active {
    background: #fff url("../images/order-multiple-active.png") no-repeat scroll center center / auto 90%;
}

.fcpm-tabs .accordion-title.active {
    background: #fff none repeat scroll 0 0;
}

.fcpm-tab-content {
    border: 1px solid #ccc;
    clear: both;
    display: block;
    padding: 20px;
    position: relative;
    z-index: 0;
    margin-bottom: 15px;
}

.fcpm-tab-content .swatch-opt {
    margin: 0;
}

.fcpm-tab-content h3 {
    margin: 5px 0 20px;
    text-transform: uppercase;
}

#order-multiple-content .global-settings {
    margin-bottom: 28px;
}

#order-multiple-content .global-qty-wrapper {
    display: inline-block;
    max-width: 83px;
}

.tier-price-tooltip {
    max-width: 230px;
    max-height: 100%;
    min-height: 20px;
    min-width: 20px;
    position: absolute;
    padding: 5px;
    background: #fff;
    color: #444;
    border: 1px solid #adadad;
    display: none;
    z-index: 999;
    text-align: center;
    font-size: 12px;
}

.tier-price-tooltip .corner {
    left: 40%;
    position: absolute;
    bottom: 0;
    height: 8px;
}

.tier-price-tooltip .corner:after {
    content: '';
    position: relative;
    top: 3px;
    left: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 7.5px 0 7.5px;
    border-color: #fff transparent transparent transparent;
    font-size: 1px;
}

.tier-price-tooltip .corner:before {
    content: '';
    position: relative;
    top: 4px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8.5px 0 8.5px;
    border-color: #adadad transparent transparent transparent;
    font-size: 1px;
}

.qty-wrap {
    text-align: right;
    margin-top: 10px;
}

.qty-wrap span {
    display: inline-block;
    vertical-align: top;
    line-height: 36px;
    font-weight: 600;
}

.global-qty-wrapper .global-qty {
    width: 60px !important;
}

.reset-all-wrapper.has-checkbox {
    text-align: right;
}

#order-multiple-content .set-all,
#order-multiple-content .reset-all {
    float: right;
    background: #eee;
    padding: 5px;
    cursor: pointer;
}

#order-multiple-content .has-checkbox .reset-all,
#order-multiple-content .has-checkbox .set-all {
    float: none;
    display: inline-block;
}

#order-multiple-content .set-all:hover,
#order-multiple-content .reset-all:hover {
    background: #ddd;
}

#order-multiple-content .set-icon,
#order-multiple-content .reset-icon {
    float: left;
    height: 24px;
    width: 24px;
}

#order-multiple-content .reset-icon {
    background: transparent url("../images/reset.png") no-repeat scroll center center;
}

#order-multiple-content .has-checkbox .reset-icon {
    background: transparent url("../images/uncheck.png") no-repeat scroll center center;
}

#order-multiple-content .has-checkbox .set-icon {
    background: transparent url("../images/check.png") no-repeat scroll center center;
}

#order-multiple-content .set-text,
#order-multiple-content .reset-text {
    line-height: 24px;
    float: left;
    height: 24px;
    margin-left: 5px;
    font-size: 16px;
}


/* Matrix layout */

/* The container */
.checkbox-container {
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 21px;
    width: 21px;
    margin: 2px auto;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    border-color: #666;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #666;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.product-matrix-wrapper {
    /*display: inline-block;*/
    height: 10px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-transition: all 1s ease 0s;
    transition: all 1s ease 0s;
    visibility: hidden;
    width: auto;
    font-size: 12px;
    background-color: #f5f6f5;
    margin-bottom: 20px;
}

.product-matrix-wrapper li {
    margin-bottom: 1rem;
}

.product-matrix-wrapper li:first-child {
    font-size: 14px;
}

.product-matrix-wrapper .fixed {
    position: absolute;
    text-align: center;
    z-index: 9;
}

.product-matrix-left.fixed {
    left: 0;
    top: 0;
    width: 50px;
}

.product-matrix-right.fixed {
    right: 0;
    top: 0;
    width: 100px;
}

.product-matrix-left.fixed > ul {
    display: inline-block;
    list-style: outside none none;
    padding: 0;
}

.product-matrix-right.fixed > ul {
    display: block;
    list-style: outside none none;
    float: left;
    padding: 0;
}

.product-matrix-right.fixed > ul.total-qty-col {
    width: 30%;
}

.product-matrix-right.fixed > ul.grand-total-col {
    margin-left: 2%;
    width: 68%;
}

.look-two .product-matrix-right.fixed > ul.total-qty-col {
    width: 35%;
}

.look-two .product-matrix-right.fixed > ul.grand-total-col {
    width: 63%;
}

.look-two .product-matrix-right.fixed.wide-section > ul.total-qty-col {
    width: 50%;
}

.look-two .product-matrix-right.fixed.wide-section > ul.grand-total-col {
    width: 48%;
}

.product-matrix-left li .swatch-option.color {
    margin-top: 4px;
}

.product-matrix-wrapper .nav {
    cursor: pointer;
    display: block;
    line-height: 28px;
    margin: auto auto 1rem;
    max-width: 30px;
    width: 30px;
}

.product-matrix-wrapper .prev {
    background: transparent url("../images/back.png") no-repeat scroll center center / 20px auto;
}

.product-matrix-wrapper .next {
    background: transparent url('../images/next.png') no-repeat scroll center center / 20px auto;
}

.product-matrix-wrapper .swatch-option {
    display: inline-block;
    float: none;
    height: 28px;
    margin: auto;
    min-width: 24px;
    padding: 0;
    vertical-align: middle;
    width: 40px;
}

.product-matrix-wrapper .swatch-option.text,
.product-grid-wrapper .swatch-option.text {
    line-height: 28px;
}

.product-matrix-center.owl-carousel {
    margin: 0 110px 0 60px;
    overflow: hidden;
    position: relative;
    width: auto;
    padding-top: 0;
}

.product-matrix-center .owl-stage-outer {
    padding: 0;
}

.item > ul {
    display: inline-block;
    list-style: outside none none;
    margin: 0;
    padding: 1px;
}

#product-matrix .item
.grid-look .item {
    text-align: center;
}

/*#product-matrix .qty-wrapper,*/
.product-matrix-wrapper .qty-wrapper,
.grid-look .qty-wrapper {
    margin: 0 auto 5px;
    width: 65px;
}

/*#product-matrix .qty-wrapper .qty-control,*/
.product-matrix-wrapper .qty-wrapper .qty-control,
.grid-look .qty-wrapper .qty-control,
.global-qty-wrapper .qty-control {
    float: left;
    width: 23px;
    height: 18px;
    line-height: 18px;
    background: #c2c2c2;
    cursor: pointer;
    position: relative;
    color: transparent;
    text-indent: 1000px;
    overflow: hidden;
}

/*#product-matrix .qty-wrapper .qty-control:hover,*/
.product-matrix-wrapper .qty-wrapper .qty-control:hover,
.grid-look .qty-wrapper .qty-control:hover,
.global-qty-wrapper .qty-control:hover {
    background-color: #ddd !important;
}

/*#product-matrix .qty-wrapper .qty-minus.qty-control,*/
.product-matrix-wrapper .qty-wrapper .qty-minus.qty-control,
.grid-look .qty-wrapper .qty-minus.qty-control,
.global-qty-wrapper .qty-minus.qty-control {
    background: #c2c2c2 url("../images/2-minus.png") no-repeat scroll center center/9px;
    top: 0;
    left: 0;
}

/*#product-matrix .qty-wrapper .qty-plus.qty-control,*/
.product-matrix-wrapper .qty-wrapper .qty-plus.qty-control,
.grid-look .qty-wrapper .qty-plus.qty-control,
.global-qty-wrapper .qty-plus.qty-control {
    background: #c2c2c2 url("../images/2-plus.png") no-repeat scroll center center/9px;
    top: 0;
    left: 0;
}

#product-matrix .matrix-qty,
.product-matrix-wrapper .qty-wrapper .matrix-qty,
.grid-look .matrix-qty,
.global-qty-wrapper .global-qty {
    height: 36px;
    margin: 0;
    padding: 2px;
    text-align: center;
    width: 40px;
}

#product-matrix .qty-wrapper .matrix-qty,
.product-matrix-wrapper .qty-wrapper .matrix-qty,
.grid-look .qty-wrapper .matrix-qty,
.global-qty-wrapper .global-qty {
    float: left;
}

.matrix-product-thumb:hover {
    cursor: pointer;
}

#product-matrix .item span {
    display: inline-block;
    overflow-x: hidden;
}

.look-one #product-matrix .item span,
.look-three #product-matrix .item span,
.split-look #product-matrix.compact .item span {
    font-size: 11px;
    max-width: 40px;
}

.input-text.matrix-qty {
    padding: 0;
    text-align: center;
}

.fcpm_matrix_after_media .box-tocart .action.primary.tocart,
.fcpm_matrix_in_tabs .box-tocart .action.primary.tocart {
    max-width: 200px;
}

.fcpm_matrix_after_media .product-options-bottom,
.fcpm_matrix_in_tabs .product-options-bottom {
    margin-top: 20px;
}

.fcpm_matrix_after_media {
    clear: both;
    padding: 30px 0;
}

.matrix-row, .matrix-row-total {
    line-height: 30px;
}

.fcpm-super-attribute-select {
    max-width: 250px;
}

.product-matrix-wrapper .nav.disabled {
    visibility: hidden;
}

.total-qty, .grand-total-col, .matrix-total-qty {
    text-align: right;
}

.look-two .matrix-total-qty.final {
    text-align: center;
}

.total-label {
    font-size: 1.3rem !important;
}

#product-matrix .item li > div {
    line-height: 15px;
}

.look-two #product-matrix .item li > div {
    line-height: normal;
}

#product-matrix .item li > div.swatch-option {
    line-height: 28px;
}

.product-matrix-left li.show-image img {
    border: 2px solid #e1e1e1;
    cursor: pointer;
}

.product-matrix-left li.show-image:hover img {
    border-color: #ff5216;
}

.product-matrix-left.fixed img.matrix-product-thumb {
    border: 2px solid #fff;
    width: calc(100% - 4px);
    cursor: pointer;
}

.product-matrix-left.fixed img.matrix-product-thumb:hover {
    border-color: #e3e3e3;
}

.product-matrix-left.fixed img.matrix-product-thumb.selected {
    border-color: #ff5501;
}


/* Matrix for more than 2 Attributes */
.product-matrix-outer .product-matrix-wrapper {
    margin: 20px 0;
}

.matrix-preloader {
    background: transparent url("../images/preloader.gif") no-repeat scroll center center;
    display: none;
    height: 20px;
    left: 48%;
    margin-top: 15px;
    position: absolute;
    top: 0;
    width: 20px;
}

.product-matrix-outer .matrix-preloader {
    top: auto;
    bottom: 5px;
}

.product-options-wrapper {
    position: relative;
}


/* Matrix custom options */
.matrix_options, .default_options {
    margin-top: 20px;
}

.grand-total,
.grand-total-label,
.total-label,
.matrix-grand-total,
#matrix_custom_options th {
    font-weight: 600;
}

.text-right {
    text-align: right;
}

.matrix_options .option {
    width: 60%;
}

.matrix_options .qty-col {
    width: 15%;
}

.matrix_options .total-col {
    width: 25%;
}

.configurable .label, .default_options label {
    display: inline-block;
    font-weight: 600;
    margin: 10px 0 5px;
}

.look-two .total-label {
    font-size: 1.4rem;
}

#product-matrix ul li {
    position: relative;
    text-align: center;
}

#product-matrix .matrix-qty.validation-failed {
    border-color: #D31D1D;
}

.matrix-notice {
    /*background: #fff none repeat scroll 0 0;*/
    /*-webkit-box-shadow: 0 0 2px 0 #d31d1d;*/
    /*        box-shadow: 0 0 2px 0 #d31d1d;*/
    color: #d31d1d;
    font-size: 12px;
    /*position: absolute;*/
    position: relative;
    /*top: 55px;*/
    /*right: 18px;*/
    left: -12px;
    z-index: 10;
    white-space: nowrap;
}

/* Grid look */
.grid-look-wrapper {
    width: 100%;
    max-height: 650px;
    overflow: auto;
    margin: 20px 0 0;
}

.grid-look {
    border-collapse: inherit;
    border-spacing: 0;
}

.grid-look thead td {
    z-index: 9;
    border-top: 1px solid #ccc;
}

.grid-look td {
    padding: 5px;
    text-align: center;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    vertical-align: middle;
    font-size: 12px;
}

.grid-look td:first-child {
    border-left: 1px solid #ccc;
    background: #fff;
    z-index: 9;
}

.grid-look thead tr:first-child {
    border-top: 1px solid #ccc;
}

.grid-look tbody tr:nth-child(2n+1),
.grid-look tbody tr:nth-child(2n+1) td:first-child {
    background: #f2f2f2;
}

.grid-look .swatch-option {
    float: none;
    min-width: 30px;
    margin: auto;
    height: 28px;
    width: 40px;
    line-height: 28px;
    padding: 0;
}

.grid-look .total-qty,
.grid-look .grand-total-col,
.grid-look .matrix-total-qty {
    text-align: center;
}

.product-grid-wrapper {
    margin: 15px 0 0;
}

/* sticky cart button */
.is-sticky-button {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9;
    margin-bottom: 0;
    padding: 6px 0;
    text-align: right;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px 1px #aaa;
}

.is-sticky-button .action.tocart {
    max-width: 200px;
    padding: 8px;
    margin-right: 65px;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}


@media only screen and (min-width: 640px) {
    .side-by-side {
        float: left;
    }

    .product-matrix-container.side-by-side {
        max-width: 65%;
    }

    .field.configurable.required.side-by-side {
        max-width: 35%;
    }

}


/* max-width 480px */
@media only screen and (max-width: 480px) {
    /* Styles */
    #order-multiple-content {
        padding: 20px 15px;
    }

    .look-two .product-matrix-right.fixed > ul.total-qty-col {
        width: 35%;
    }

    .look-two .product-matrix-right.fixed > ul.grand-total-col {
        width: 63%;
    }

    .product-matrix-left.fixed {
        width: 50px !important;
    }

    .product-matrix-left.fixed.no-image {
        width: 30px !important;
    }

    .product-matrix-right.fixed {
        width: 90px !important;
    }

    .product-matrix-center.owl-carousel {
        margin: 0 95px 0 55px !important;
    }

    .product-matrix-left.fixed.no-image + .product-matrix-center.owl-carousel.owl-theme.owl-loaded.owl-text-select-on {
        margin-left: 30px !important;
    }

    .product-matrix-wrapper .qty-wrapper, .grid-look .qty-wrapper {
        width: 65px;
    }

    .qty-wrap span {
        line-height: normal;
        width: calc(100% - 90px);
    }
}

.addNotMore {
    color: red;
    display: block;
    padding-bottom: 5px;
    font-size: 12px;
}

.disableSingleQty {
    opacity: 0.5;
}