/**
 * We override the style of the woocommerce compare products
 */

/* ###############
FIXED COLUMNS
##############*/

table.DTFC_Cloned thead,
table.DTFC_Cloned tfoot {
    background-color: white;
}

div.DTFC_Blocker {
    background-color: white;
}

div.DTFC_LeftWrapper table.dataTable,
div.DTFC_RightWrapper table.dataTable {
    margin-bottom: 0;
    z-index: 2;
}

div.DTFC_LeftWrapper table.dataTable.no-footer,
div.DTFC_RightWrapper table.dataTable.no-footer {
    border-bottom: none;
}

/*############################
 * COMPARE
#############################*/

body {
    font-family: Prompt;
    font-weight: 400;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    background: none !important;
    margin: 0;
}

body h1 {
    color: #161616;
    font-size: 2em;
    font-weight: 700;
    margin: 25px 10px 5px;
    text-align: center;
    text-transform: uppercase;
}

body #yith-woocompare {
    padding: 10px 35px 35px;
}

.dataTables_scrollHead .sorting_disabled {
    display: none;
}

.dataTables_scrollBody {
    border-left: 1px solid #eaeaea;
}

.dataTables_scrollFoot {
    display: none !important;
}

.dataTables_scrollFoot table.dataTable.compare-list tr {
    height: auto !important;
}

table.dataTable.compare-list tr {
    display: table-row;
}

table.compare-list .no-products {
    text-align: center;
}

table.dataTable.compare-list thead th,
table.dataTable.compare-list thead td,
table.dataTable.compare-list tfoot td,
table.dataTable.compare-list tfoot th {
    border: 0;
    vertical-align: middle;
}

.DTFC_LeftFootWrapper table.compare-list,
.DTFC_LeftHeadWrapper table.compare-list {
    border: 0;
}

table.compare-list td {
    width: 220px;
    max-width: 220px;
    min-width: 220px;
    vertical-align: middle;
}

table.compare-list {
    width: 100%;
    border-bottom: 0;
    border-top: 0;
    margin: 0;
    table-layout: auto;
}

table.compare-list tbody th {
    width: 150px;
    max-width: 150px;
    min-width: 150px;
    overflow: hidden;
    text-align: right;
    color: #161616;
    background-color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
}

.rtl table.compare-list tbody th {
    text-align: right;
}

table.dataTable.compare-list tbody th,
table.dataTable.compare-list tbody td {
    border-right: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
    border-bottom: none;
    border-left: none;
    padding: 10px 20px;
    vertical-align: middle;
}

table.dataTable.compare-list tbody tr:last-child th,
table.dataTable.compare-list tbody tr:last-child td {
    border-bottom: 1px solid #eaeaea;
}

table.compare-list tbody td.last-column {
    width: auto;
    border-right: 0;
}

#yith-woocompare-table_wrapper {
    margin: 10px 0;
}

table.dataTable.compare-list tbody .product_info td {
    vertical-align: top;
}

table.compare-list thead th a.close,
h1 a.close {
    float: right;
    margin-right: 10px;
    font-weight: 600;
    font-size: 0.9em;
    color: #fff;
    text-decoration: none;
}

table.compare-list .remove td a {
    color: #161616;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

table.compare-list .remove td a:hover {
    color: #ec2d9e;
}

table.compare-list .remove td a .remove {
    display: inline-block;
    font-size: 1em;
    height: 1em;
    text-align: center;
    text-decoration: none;
    width: 16px;
    text-transform: none;
    position: relative;
    top: -1.5px;
    display: none;
}

table.compare-list .remove td a:before {
    font-family: "Font Awesome 5 Free";
    content: "\f00d";
    display: inline-block;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    color: inherit;
    margin-right: 3px;
}

.yith-woocompare-widget ul.products-list a.remove {
    float: left;
}

table.compare-list .add-to-cart td a:not(.unstyled_button) {
    display: inline-block;
    margin: 10px 0;
    background-color: #333333;
    border: 0 none;
    color: #FFFFFF;
    font-weight: bold;
    line-height: 20px;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}

table.compare-list .add-to-cart td a:not(.unstyled_button):hover {
    background: #ec2d9e;
    color: #fff;
}

table.compare-list .stock td span {
    color: #009900;
}

table.compare-list .stock td span.out-of-stock {
    color: #990000;
}

table.compare-list .title td {
    font-weight: bold;
    color: #161616;
}

table.compare-list .remove td,
table.compare-list .image td {
    text-align: center;
}

table.compare-list .price td del {
    color: #aaa;
}

table.compare-list .price td ins {
    margin-left: 10px;
    text-decoration: none;
}

table.compare-list .description td {
    vertical-align: top !important;
}

table.compare-list .description td>*:first-child {
    margin-top: 5px;
}

table.compare-list .description td>*:last-child {
    margin-bottom: 8px;
}

table.compare-list .description td ul,
table.compare-list .description td ol {
    padding-left: 25px;
}

table.compare-list td.odd {
    background: #f9f9f9;
}

table.compare-list td.even {
    background: #fff;
}

table.compare-list .image td .image-wrap {
    display: flex;
}

table.compare-list .image td img {
    border: 1px solid #eaeaea;
    height: auto;
    margin: 8px auto;
}

@media(max-width: 767px) {
    table.compare-list tbody th {
        width: 100px;
        max-width: 100px;
        min-width: 100px;
        font-size: 12px;
    }
}