/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2015 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
body.megarelatedproduct_hiddenaddtocart form#add-to-cart-or-refresh .ecommaddtocart_productlist, #product .product-add-to-cart .product-quantity .qty, #product .product-add-to-cart .control-label{
    display: none
}

body.megarelatedproduct_hiddenprice .js-product-container .js-product-prices, body.megarelatedproduct_hiddenprice .js-product-container .product-reference{
    display: none
}

.subcontainer_table_megarelatedproducts tr td.discount_up > * {
    display: block;
}

.list_relatedproducts img {
    height: auto;
}

.list_relatedproducts {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}


.show_table_megarelatedproducts {
    cursor:pointer;
}

.black_capa {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0.5;
}
.popup_table_megarelatedproducts .container_table_megarelatedproducts {
    z-index: 10001;
    width: calc(100% - 30px);
    background: white;
    max-width: 902px;
    padding: 67px 15px;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
 }



.subcontainer_table_megarelatedproducts {
    max-width: 100%;
    margin: 0 auto;
    overflow: auto;
    width: 100%;
   
}
.subcontainer_table_megarelatedproducts tr td:last-child {
    min-width: 60px;
}
.popup_table_megarelatedproducts .subcontainer_table_megarelatedproducts{
     max-height: 500px;
}
.popup_table_megarelatedproducts .subcontainer_table_megarelatedproducts tr td:last-child {
    min-width: 70px;
    padding-right: 5px;
}
.popup_table_megarelatedproducts .subcontainer_table_megarelatedproducts::-webkit-scrollbar {
    width: 6px;               /* width of the entire scrollbar */
}

.popup_table_megarelatedproducts .subcontainer_table_megarelatedproducts::-webkit-scrollbar-track {
    background: #e3e3e3;        /* color of the tracking area */
}

.popup_table_megarelatedproducts .subcontainer_table_megarelatedproducts::-webkit-scrollbar-thumb {
    background-color: var(--color1);    /* color of the scroll thumb */
}
.subcontainer_table_megarelatedproducts th {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}
.subcontainer_table_megarelatedproducts tr span {
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    word-break: break-all;
}
.subcontainer_table_megarelatedproducts table {
    width: 100%;
       table-layout: fixed;
}
.subcontainer_table_megarelatedproducts thead {
    background: #E8E8E8;
    border-radius: 10px;
}
.subcontainer_table_megarelatedproducts td {
    text-align: center;
    border-bottom: 1px solid #D5D5D5;
}
.subcontainer_table_megarelatedproducts td.discount_up span:nth-child(1) {
    font-size: 12px;
    text-decoration: line-through;
}
.subcontainer_table_megarelatedproducts .ecommaddtocart_productlist .product-quantity.show {
    /*height: 40px;
    background: var(--color3);
    border-color: var(--color3);
    line-height: 38px;*/
    font-family: 'Montserrat';
}
.subcontainer_table_megarelatedproducts  .ecommaddtocart_productlist .add-to-cart-productlist {
    height: 40px;
    line-height: 40px;
}
.container_table_megarelatedproducts img {
    max-width: 66px;
    height: auto;
}
span.close_popup_table_megarelatedproducts:after {
    content: "";
    background: url(../../../../../themes/charlytherapy/assets/img/svg/close.svg);
    position: absolute;
    top: 18px;
    right: 30px;
    width: 20px;
    height: 20px;
    cursor:pointer;
}

.subcontainer_table_megarelatedproducts tr td {
    padding: 6px 0px;
}
.container_ecommsync {
    max-width: 333px;
}
.subcontainer_table_megarelatedproducts tr {
    position: relative;
}
.subcontainer_table_megarelatedproducts .alert-success.alert.addtocartmessage {
    position: absolute;
    left: 0px;
    top: 10px;
    max-width: calc(100% - 120px);
    line-height: 20px;
    bottom: 10px;
}
.subcontainer_table_megarelatedproducts .ecommaddtocart_productlist .product-quantity.show {
    justify-content: left;
}
td.column_name {
    width: 150px;
}

td.column_name a {
    
    display: block;
    margin: 0 auto;
} 
/*.list_mode td.column_name {
     width: auto;
}*/
#product .subcontainer_table_megarelatedproducts .ecommaddtocart_productlist a.add-to-cart-productlist-more {
    font-size: 14px;
    padding: 0px 13px;
}
.subcontainer_table_megarelatedproducts .ecommaddtocart_productlist {
    min-width: initial;
  
        margin: 0 auto;
}

#product .subcontainer_table_megarelatedproducts .ecommaddtocart_productlist {
    width: auto;
        margin: 0;
}
span.btn.btn-primary.link_to_models {
    width: 100%;
    margin-top: 15px;
}
.subcontainer_table_megarelatedproducts tr td:first-child {
    width: 95px;
}
#product .subcontainer_table_megarelatedproducts .ecommaddtocart_productlist {
    /* width: 100%; */
    /* max-width: 100%; */
    min-width: 60px;
    margin: 0 auto;
}

@media(min-width:992px) {
    table.mobile_table {
        display:none; 
    }
}
@media(max-width:991px) {
    .desktop_table {
        display: none;
    } 
    td.column_name {
        min-width: 140px;
            width: auto;
    }
    td.column_name span {
        display: block;
    }
}
@media(max-width:767px) {
    .subcontainer_table_megarelatedproducts .alert-success.alert.addtocartmessage {
        max-width: 100%;
    }
    .container_table_megarelatedproducts img {
        max-width: 56px;
    }   
    .subcontainer_table_megarelatedproducts tr span {
        font-size: 12px;
    } 
        
}	