/**
* 2007-2023 PrestaShop
*
* NOTICE OF LICENSE
*
* This id_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://openid_source.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-2023 PrestaShop SA
*  @license   http://openid_source.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.
*/
table#product-attribute-table thead {

}

table#product-attribute-table tbody td {
    padding: 4px 8px;
    border-top: 1px solid #ccc;
    line-height: 1rem;
}

table#product-attribute-table tbody td .smart-content {
    margin: 0;
}


#product-attribute-table {max-width: 100%;}

#product-attribute-table tr {}

#product-attribute-table tr td {}

#product-attribute-table tr th {
    background: #eee;
    text-align: center;
    line-height: 15px;
    padding: 10px 5px;
}

#product-attribute-table tr th:last-child {
    border-right: 0px solid #ccc;
    background: transparent;
}

table#product-attribute-table tbody td .product-quantity {
    display: flex;
    flex-direction: row;
}
#product-attribute-table .btn-primary {
    font-size: 34px;
    height: 50px;
    padding: 0;
    width: 50px;
}

#product-attribute-table .smart-title {display: none;}

#product-attribute-table span.price.dicount-price {
    font-style: italic;
    text-decoration: line-through;
    font-size: 0.775rem;
    font-weight: normal;
    line-height: 0.9rem;
}

#product-attribute-table span.price {
    font-weight: 700;
    color: #f27c00;
}

table#product-attribute-table tbody tr {
    border-bottom: 1px solid #ccc;
}

table#product-attribute-table tfoot {
    display: table-row-group;

    select {width: 100%}
}

@media only screen and (max-width: 1024px) {
    #product-attribute-table tr.product-attribute-line td p {
        margin: 8px 0;
    }

    #product-attribute-table {display: flex;flex-direction: column;}

    #product-attribute-table tr {display: flex;flex-direction: column;}

    #product-attribute-table tr td {display: flex;flex-direction: row;}

    #product-attribute-table tr th {display: none;}

    #product-attribute-table .smart-title {display: block;width: 50%;font-weight: bold}

    #product-attribute-table .smart-content {width: 50%;}

    #product-attribute-table tr td.variant-reference {
        order: 1;
        font-size: 18px;
        display: flex;
        font-weight: 700;
    }

    #product-attribute-table tr td.variant-prices,
    #product-attribute-table tr td.variant-attribute {
        font-weight: 700;
        display: flex;
        background: #d40000;
        color: #fff;
        padding: 10px;
        line-height: 0.8rem;
        font-size: 18px;
    }

    #product-attribute-table tr td {order: 3;}

    table#product-attribute-table tbody td .product-quantity {
        flex-direction: row-reverse;
    }

    #product-attribute-table tr td .qty {
        border: 1px solid #ccc;
        margin-right: 0;
        margin-left: 20px;
    }

    #product-attribute-table tr td input#qty-wanted {padding: 0;
        border: 0px solid #ccc;font-size: 16px !important;
        font-weight: 400 !important;}


    #product-attribute-table .btn-primary {
        font-size: 34px;
        height: inherit;
        padding: 10px 15px;
        width: inherit;
    }
    #product-attribute-table .btn-primary span{font-size: 24px;}

    #product-attribute-table tbody tr.product-attribute-line {
        margin-top: 60px;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
    }


    body#product #product-attribute-table div.qty {display: flex;flex-direction: row;}

    body#product #product-attribute-table div.qty input {order: 1;
        max-width: 50px;
        text-align: center;
        font-weight: 700;
        font-size: 24px;}

    body#product #product-attribute-table div.qty input#plus {order: 2;height: 45px;
        width: 45px;
        border: 1px solid #222;
        background: #222;
        color: white;}

    body#product #product-attribute-table div.qty input#minus {order: 0;height: 45px;
        width: 45px;
        border: 1px solid #222;
        background: #222;
        color: white;}

    #product-attribute-table span.price {
        margin-right: 15px;
        color: #fff;
        font-size: 18px;
    }

    #product-attribute-table span.price.dicount-price {
        margin-right: 15px;
        font-size: 16px;
    }

    #product-attribute-table form {
        width: 100%;
        display: flex;
        align-content: space-evenly;
        justify-content: center;
        margin: 10px 0 0;
    }

   table#product-attribute-table tfoot td {
       display: flex;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 150px;
       padding: 0 20%;
       background-color: #d40000;
       transform: translate(0, -100%);
       transition: transform .05s ease-out;
       opacity: 0;
       max-height: 20%;
       color: #fff;
       align-items: center;
       flex-direction: column;
    }

    table#product-attribute-table tfoot td span{
        display: block;
        width: 100%;
        text-align: center;
    }

    table#product-attribute-table tfoot td span .smart-title {
        display: block;
        width: inherit;
        font-weight: bold;
        font-size: 24px;
    }
    table#product-attribute-table tfoot td .svgic.svg-cross {
        position: absolute;
        right: 10px;
        bottom: 10px;
        margin: 10px;
        width: 20px;
        height: 20px;
        display: block;
        font-size: 34px;
    }
    table#product-attribute-table tfoot td select {
        font-size: 24px;
        background-color: #fff;
    }

    table#product-attribute-table tfoot td.open_filter {
        opacity: 1;
        transform: translate(0, 0);
    }

    table#product-attribute-table td .svgic {
        pointer-events: auto;
        cursor: pointer;
    }
    table#product-attribute-table td .svgic.svg-lock2 {
        display: none;
    }

    table#product-attribute-table td.locked {
        opacity: 0.7;
    }

}

@media only screen and (min-width: 1025px) {
    #product-attribute-table tr.product-attribute-line td.variant-attribute p {
        white-space: nowrap;
        font-weight: 700;
        color: #f49531;
        margin: 0;
    }

    #product-attribute-table span.smart-action {display: none;}

    #product-attribute-table .btn-primary {
        padding: 0 8px;
        font-size: 26px;
    }

    #product-attribute-table .product-quantity .qty {
        grid-template-columns: 60% 40% !important
    }

    .product-quantity .qty input.change-qty {
        font-size: 20px;
    }

    #product-attribute-table input#qty-wanted {
        max-width: 50px !important;
        text-align: center;
    }

    table#product-attribute-table tbody tr:nth-child(even) {
        background: #fafafa;
    }

    #product-attribute-table {
        font-size: 0.675rem;
        text-align: center;
    }

    #product-attribute-table td.variant-attribute {
        text-align: left;
    }

    #product-attribute-table span.price {
        font-size: 0.9rem;
    }

    table#product-attribute-table svg:not(.cart) {
        display: none;
    }
}