/**
 * PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
 *
 * @author    VEKIA MiĹosz Myszczuk VATEU PL9730945634
 * @copyright 2010-9999 VEKIA
 * @license   This program is not free software and you can't resell and redistribute it
 *
 * CONTACT WITH DEVELOPER http://mypresta.eu
 * support@mypresta.eu
 */

#ct_matrix .ctp_checked {
    background: #F8FCC9;
}

#ct_matrix .ctp_checked:hover {
    background: #F0F5BD !important;
}

#add_to_cart_bulk {
    clear: both;
    overflow: hidden;
    float: right;
    display: inline-block;
}

#add_to_cart_bulk button {
    float: right;
}

#ct_matrix thead th.tablesorter-headerAsc div:after{
    transform: rotate(180deg);
}

#ct_matrix thead th.cth_addtocart div:after {
    display: none;
}


#ct_matrix thead th.nosort {
    padding: 5px !important;
    margin-right: 0px !important;
    cursor: default !important;
}

#ct_matrix thead {
    cursor: pointer;
}

#ct_matrix thead.nosort {
    cursor: default;
}

#ct_matrix thead.nosort th {
    background: none !important;
    padding: 5px !important;
    margin-right: 0px !important;
    cursor: default !important;
}

#ct_matrix {
    background: #FFF;
}

#ct_matrix {
    width: 100%;
    border-spacing: 2px;
    border-collapse: separate;
    font-size: 12px;
}

#ct_matrix tr.ct_matrix_row:hover {
    background: #f1f1f1;
}

/*#ct_matrix tr.ct_matrix_row:hover td {
    border: 1px solid #f2f2f2;
}*/

th.przebieg:before {
    content: url(/themes/iselo/assets/img/przebieg.svg);
}
th.ram:before {
    content: url(/themes/iselo/assets/img/RAM.svg);
}

th.black:before {
    content: url(/themes/iselo/assets/img/black.svg);
}

th.cyan:before {
    content: url(/themes/iselo/assets/img/blue.svg);
}
th.magenta:before {
    content: url(/themes/iselo/assets/img/pink.svg);
}
th.yellow:before {
    content: url(/themes/iselo/assets/img/yellow.svg);
}
th.pas:before {
    content: url(/themes/iselo/assets/img/stan.svg);
}
th.fuser:before {
    content: url(/themes/iselo/assets/img/stan_fusera.svg);
}
th.ctd_attr_group_sort_price:before {
    content: url(/themes/iselo/assets/img/pricetag.svg);
}

#ct_matrix .volume_discount {
    display: block;
    clear: both;
    margin-bottom: 5px;
}

#ct_matrix td, #ct_matrix th {

    text-align: center;
}
table#ct_matrix {
    border-collapse: collapse;
    border: 1px solid #D6D6D6;
}

table#ct_matrix, table#ct_matrix th, table#ct_matrix td {
    border: 1px solid #D6D6D6;
}

#ct_matrix .qty {
    padding: 1px;
    margin: 0px;
    border: 1px solid #c0c0c0;
    font-size: 11px;
    text-align: center;
    border-left: none;
    border-right: none;
    width: 30px;
    /*
    top: 1px;
    */
    position: relative;
    margin-bottom: 10px;
}

#ct_matrix .qty.no_plus_minus_buttons {
    border: 1px solid #c0c0c0;
}

#ct_matrix .ct_submit {
    padding: 1px 5px 2px 5px;
    cursor: pointer;
    /* top: 1px; */
    /* position: relative; */
}

#ct_matrix .ct_submit_nostock {
    opacity: 0.4;
    cursor: not-allowed;
}

.bulk_option_add_to_cart {
    display: block;
    clear: both;
    overflow: hidden;
    padding: 5px;
}

.bulk_option_add_to_cart p {
    display: block;
    clear: both;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
}

.bulk_option_add_to_cart .buttons_bottom_block {
    padding: 0px;
}

.increase_quantity, .decrease_quantity {
    cursor: pointer;
}

.ctd_price {
    font-size: 12px;
}

.ctd_price strike {
    color: #c0c0c0;
}

.combinations_tab_price {
    text-align: right;
    margin-left: 10px;
    display: block;
    float: right;
}

.combinations_tab_price img {
    height: 20px;
    width: auto;
}

.colormobile {
    display: none;
}


.ct_submit .material-icons {
    font-size: 17px;
    padding: 0px;
    margin-right: 2px;
    position: relative;
    top: -1px;
}

.pagination_show {
    display: table-row !important;
}

.pagination_hide {
    display: none !important;
}

nav.ct_pagination {
    margin: 0px;
}

.coloroncolor {
    background: #000;
    color: #FFF;
    padding: 1px 3px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    h4.leasingtitle{
        font-size: 24px;
    }
    td.ctd_reference {
        padding-top: 20px;
        padding-bottom: 10px;
    }
    .coloroncolor {
        display: none !important
    }

    .colormobile {
        display: block !important;
    }

    table#ct_matrix tbody, table#ct_matrix {
        display: block !important;
        width: 100%;
    }

    table#ct_matrix th {
        display: none;
    }

    td.ctd_price.ctd_attr_group_price {
        margin: 15px 0;
    }


    td.ctd_reference{
        width: 100%;
    }
    table#ct_matrix td {
        border-top: 0;
        flex: 1 1 10%;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .fancybox-wrap.fancybox-desktop.fancybox-type-inline{
        left: 0 !important;
        margin: 0 auto;
        right: 0;
    }
    table#ct_matrix tr {
        margin-bottom: 40px;
        border: 1px solid #d6d6d6;
        border-radius: 5px;
    }
    table#ct_matrix, table#ct_matrix th, table#ct_matrix td{
        border: 0;
    }
    table#ct_matrix tbody tr:nth-child(odd){
        background: #fff !important;
    }

    section#main .tablescroll{
        height: auto;
    }
    table#ct_matrix td:after{
        background-repeat: no-repeat;
        background-position: center;
        height: 45px;
        width: 100%;
        background-size: 100% 82%;
    }

    td.przebieg:after{
        background: url(/themes/iselo/assets/img/przebieg.svg);
        content:'';
        background-size: 61% 65% !important;}
    td.ram:after{
        background: url(/themes/iselo/assets/img/RAM.svg);
        content:'';
    }

    td.black:after{
        background: url(/themes/iselo/assets/img/black.svg);
        content:'';
    }

    td.cyan:after{
        background: url(/themes/iselo/assets/img/blue.svg);
        content:'';
    }
    td.magenta:after{
        background: url(/themes/iselo/assets/img/pink.svg);
        content:'';
    }
    td.yellow:after{
        background: url(/themes/iselo/assets/img/yellow.svg);
        content:'';
    }
    td.pas:after{
        background: url(/themes/iselo/assets/img/stan.svg);
        content:'';
    }
    td.fuser:after{
        background: url(/themes/iselo/assets/img/stan_fusera.svg);
        content:'';
    }
    td.ctd_attr_group_sort_price:after{
        background: url(/themes/iselo/assets/img/pricetag.svg);
        content:'';
    }
    table#ct_matrix tbody tr{
        display: flex;
        flex-wrap: wrap;
        position: relative;
    }

    .ctd_attr_group_price,
    table#ct_matrix td.ctd_price.ctd_attr_group_price{
        width: 50%;
        flex: 0 0 50% !important;
    }
    table#ct_matrix td.ctd_reference,
    table#ct_matrix td.ctd_question{
        width: 100%;
        display: block;
        flex:0 0 100%;
    }
    table#ct_matrix td {
        border-top: 1px;
        padding: 0;
    }
    td.ctda.ctd1yes.ctd_attr_group_2.ctd1 {
        width: 14%;
    }
    td.ctd_reference {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    td.ctd_reference {
        color: #0b456e;
        font-size: 14px;
    }

    table#ct_matrix td:not(.toner):before {
        content: attr(data-label);
        font-weight: bold;
    }

    table#ct_matrix td:before {
        width: 100%;
        text-align: center;
        height: 100%;
    }

    table#ct_matrix .ctd_image::before {
        display: none !important;
    }

    #ct_matrix td,
    #ct_matrix th {
        padding: 5px;
        border: 0px;
        text-align: center;
    }

    #ct_matrix tr.ct_matrix_row:hover {
        background: none;
    }

    .pagination_show {
        display: block !important;
    }

    .pagination_hide {
        display: none !important;
    }
    table#ct_matrix td.ctd_price.ctd_attr_group_price {
        width: 100%;
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        margin-left: 20px;
    }
    table#ct_matrix td.ctd_price:before {
        width: auto;
        max-width: 100%;
        display: block;
        height: auto;
    }
    .ctd_price strike,
    table#ct_matrix td:not(.toner):before{
        padding-right: 3px;
    }
    table#ct_matrix td.ctd_addtocart{
        width: 49%;
        flex: 0 0 49% !important;
        flex-basis: 49% !important;
        position: absolute;
        bottom: 5px;
        right: 0;
    }
}

@media (max-width: 540px){
    table#ct_matrix td:after {
        background-repeat: no-repeat;
        background-position: center;
        height: 45px;
        width: 100%;
        background-size: 84% 52%;
    }
    table#ct_matrix td:before{
        word-break: inherit;
        text-overflow: ellipsis;
        white-space: pre-wrap;
        font-size: 9px;
        height: 32px;
    }
    table#ct_matrix td:not(.ctd_reference){
        font-size: 9px;
    }
}

.atc_spinner {
    -webkit-animation-name: spin;
    -webkit-animation-duration: 2000ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: cubic-bezier(0.04, 0.71, 0.75, 0.2);
    -moz-animation-name: spin;
    -moz-animation-duration: 2000ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: cubic-bezier(0.04, 0.71, 0.75, 0.2);
    -ms-animation-name: spin;
    -ms-animation-duration: 2000ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: cubic-bezier(0.04, 0.71, 0.75, 0.2);
    animation-name: spin;
    animation-duration: 2000ms;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.04, 0.71, 0.75, 0.2);
}

@-ms-keyframes spin {
    from {
        -ms-transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
    }
}

@-moz-keyframes spin {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ctpAlert {
    margin: 0px;
    text-align: center;
}

#ct_matrix_head_hide {
    display: none !important;
}

.cth_addtocart {
    min-width: 95px !important;
}

.ctp_switch td {
    cursor: pointer;
}

#ct_matrix .percentageBadge {
    background: red;
    padding: 2px;
    color: #FFF;
    font-weight: bold;
}

a.ctpf {
    opacity: 0.6;
}

a.ctpf.active {
    opacity: 1.0;
}

.table-ct-filters {
    background: #FFF;
    font-size: 12px;
}


.table-ct-filters-label {
    vertical-align: middle!important;
    text-align: right;
}

#ct_matrix .referencedots{
    display: none;
}

.fancybox-inner{
    text-align: center;
    padding: 10px;
}

.fancybox-inner .submit{
    text-align: center !important;
}