/**
 * Copyright since 2022 Antonio Baena Sánchez
 *
 * MODULE AbsFrequentlyBoughtTogether
 *
 * @author    Antonio Baena SÃ¡nchez
 * @copyright Since 2022 Antonio Baena Sánchez
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 * @version   2.0.0
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * Don't use this module on several shops. The license provided by PrestaShop Addons
 * for all its modules is valid only once for a single shop.
 */

#abs_usually_bought_together {
    color: #232323;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 5px 0;
}

#abs_usually_bought_together hr {
    background: 0 0 !important;
    border-top: 1px solid #CCC !important;
    margin-bottom: -36px !important;
    clear: left;
}

h3.abs_usually_bought_together {
    color: #232323;
    font-weight: 600;
    font-size: 1.350rem;
    line-height: 20px;
    padding: 0;
    margin: 25px 0 15px;
    position: relative;
}

.block_abs_usually_bought {
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #FFF;
    overflow: auto;
    padding: 20px 0 15px 0;
    border: 1px solid #ccc;
}

ul.products_abs_u_b_together, ul.list_products_abs_u_b_together {
    display: block;
    margin-left: 0;
    float: left;
    margin: 0 25px 0 0;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    padding-top: 0;
}

ul.list_products_abs_u_b_together {
    margin-left: 18px;
    padding-bottom: 0;
    margin-bottom: 0;
}

ul.products_abs_u_b_together:after, ul.list_products_abs_u_b_together:after {
    clear: both;
}

ul.products_abs_u_b_together li {
    display: inline-block;
    margin: 0 10px 0 0;
    list-style: none;
    word-wrap: break-word;
    vertical-align: middle;
}

ul.list_products_abs_u_b_together li{
    display: block;
    list-style: none;
    word-wrap: break-word;
    vertical-align: top;
}

ul.products_abs_u_b_together img {
    vertical-align: top;
}

ul.products_abs_u_b_together li .abs_u_b_t_plus {
    text-rendering: optimizeLegibility;
    font-size: 24px !important;
    line-height: 32px !important;
}

ul.products_abs_u_b_together li div {
    text-align:center;
    padding-bottom: 4px;
}

ul.products_abs_u_b_together li .price-abs-u-b-tog, ul.list_products_abs_u_b_together li .price-abs-u-b-tog {
    display: inline-block;
    margin-left: 5px !important;
}

ul.list_products_abs_u_b_together li .price-abs-u-b-tog.abs-old-price {
    font-size: 0.813rem;
    text-decoration: line-through;
    color: #7a7a7a;
}

ul.products_abs_u_b_together li .price-abs-u-b-tog.abs-currency, ul.list_products_abs_u_b_together li .price-abs-u-b-tog.abs-currency {
    display: inline-block;
    color: #B12704 !important;
    margin: 0;
}

ul.list_products_abs_u_b_together li label {
    position: relative;
    font-weight: 400;
    color: #0F1111;
    padding-left: 15px;
    text-indent: -15px;
    margin-left: 3px;
    top: -2px;
    padding-bottom: 0;
    margin-bottom: .5rem;
}

ul.list_products_abs_u_b_together li input[type="checkbox"] {
    height: 15px;
    width: 15px;
    vertical-align: top;
    position: relative;
    bottom: -2px;
    margin-right: 5px;
    cursor: pointer;
}

ul.list_products_abs_u_b_together li input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

ul.list_products_abs_u_b_together li .txt-abs-u-b {
    font-weight: 400;
    color: #0F1111;
    text-indent: -15px;
}

ul.list_products_abs_u_b_together li .txt-abs-u-b a, .abs-size-mini a {
    color: #007185;
    text-decoration: none;
}

ul.list_products_abs_u_b_together label {
    text-align: left;
}

ul.list_products_abs_u_b_together li .txt-abs-u-b a:hover, .abs-size-mini a:hover {
    color: #c7511f !important;
}

.abs-size-mini a:hover {
    text-decoration: underline;
}

.block-abs-list_products_u_b_together {
    clear: left;
}

label[class^='labelabsfreqb'].unselected {
    opacity: 0.2;
}

.abs-aclarat-list_u_b_together, .abs-freq-bo-t-no-sel {
    padding-bottom: 0.875rem;
    clear: left;
    margin-left: 18px;
    margin-right: 18px;
    padding-left: 1.188rem;
    padding-right: 1.5rem;
}

.abs-aclarat_list_u_b_container, .abs-freq-bo-t-no-sel-container {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.abs-aclarat_list_u_b_container.abs-size-mini, .abs-freq-bo-t-no-sel-container.abs-size-mini {
    font-size: 12px;
    line-height: 16px;
}

.abs-aclarat_list_u_b_container i.material-icons, .abs-freq-bo-t-no-sel-container i.material-icons {
    color: #1196ab;
    font-size: 1.5rem;
    position: relative;
    top: -1px;
}

ul.products_abs_u_b_together {
    margin-bottom: 0;
}

.block_abs_usually_bought .txt-abs-s-b, .block_abs_usually_bought [id^='abs-min-quantity-txt'] {
    font-size: 12px !important;
    color: #565959 !important;
    padding-left: 5px;
}

.block_abs_usually_bought [id^='abs-min-quantity-txt'] {
    font-weight: 700;
}

.block_abs_usually_bought .abs-f-b-t-details {
    display: none;
    margin-top: .5rem;
    clear: both;
}

.block_abs_usually_bought .abs-f-b-t-details span {
    display: inline-block;
    padding-right: 5px;
    width: auto;
    font-size: 12px;
    padding-bottom: 5px;
}

.block_abs_usually_bought .abs-f-b-t-details .abs-section-f-b-t {
    padding-left: 25px;
}

.block_abs_usually_bought .abs-f-b-t-details .abs-select-f-b-t {
    padding-left: 0px;
    padding-right: 25px;
}

.block_abs_usually_bought [class*='inproductabs'] {
   font-size: 0.75rem;
    background: #ffffff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAPklEQVR4Ae3TwREAEBQD0V/6do4SXPZg7EsBhsQ8IEmSMOsiuEfg3gL3oXC7wK0bd1G4o8X9F4yIkyQfSrIByQBjp7QuND8AAAAASUVORK5CYII=") no-repeat scroll right 0.5rem center/1.25rem 1.25rem;
    height: 1.625rem !important;
    cursor: pointer;
}

.block_abs_usually_bought [class*="inproductabs"] {
    font-size: 0.75rem;
    background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAPklEQVR4Ae3TwREAEBQD0V/6do4SXPZg7EsBhsQ8IEmSMOsiuEfg3gL3oXC7wK0bd1G4o8X9F4yIkyQfSrIByQBjp7QuND8AAAAASUVORK5CYII=") no-repeat scroll right 0px center/1.25rem 1.25rem;
    height: 1.625rem !important;
    cursor: pointer;
    /* padding-left: 5px; */
    padding-right: 20px;
}

.block-abs--u-b-tt {
    position: relative;
    text-indent: 0;
    display: inline-block;
}

.hide-abs-details-f-q {
    display: none;
}

.abs_freq_stock {
    clear: both;
}

.abs_freq_stock span {
    display: block !important;
    font-size: 14px !important;
}

.abs_sred {
    color: #d00000;
}

.abs_sgreen {
    color: #008a00;
}

.bt-abs-fbt-modal {
    background: #eff1f3;
    background: -webkit-linear-gradient(top,#f7f8fa,#e7e9ec);
    background: linear-gradient(to bottom,#f7f8fa,#e7e9ec);
    border-radius: 3px;
    border-color: #ADB1B8 #A2A6AC #8D9096;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    display: inline-block;
    padding: 0;
    text-align: center;
    text-decoration: none !important;
}

.bt-abs-fbt-modal.abs-fbt-bt2 {
    background: #f4d078;
    background: -webkit-linear-gradient(top,#f7dfa5,#f0c14b);
    background: linear-gradient(to bottom,#f7dfa5,#f0c14b);
    border-color: #a88734 #9c7e31 #846a29;
    color: #111;
}

.bt-abs-fbt-modal button {
    height: 29px;
    color: inherit;
    background-color: transparent;
    border: 0;
    font-size: 13px;
    padding: 0 10px 0 11px;
    text-align: center;
    cursor: pointer;
}

.bt-abs-fbt-modal.abs-fbt-bt2:hover {
    background: #f1c861;
    background: -webkit-linear-gradient(top,#f5d78e,#eeb933);
    background: linear-gradient(to bottom,#f5d78e,#eeb933);
    border-color: #a88734 #9c7e31 #846a29;
}

#blockcart-modal.absfreqbtmodal .product-image {
    display: block;
    width: 100%;
    max-width: 5rem;
    margin: 0 0 0 auto;
}

#blockcart-modal.absfreqbtmodal .product-name {
    font-size: 0.9375rem;
    color: #24b9d7;
}

#blockcart-modal.absfreqbtmodal .product-price {
    display: block;
    color: #363a42;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#blockcart-modal.absfreqbtmodal .absfreqbpropertie {
    font-size: 0.75rem;
    margin-bottom: 0 !important;
}

#blockcart-modal.absfreqbtmodal .product-quantity.absfreqbpropertie {
    font-size: 0.75rem;
    margin-bottom: 1.25rem !important;
}

.abs-freq-b-t-error {
    font-size: 0.813rem;
    color: #bd2130;
}

.abs-freq-b-t-error i {
    position: relative;
    top: -3px;
}

.abs-freq-bo-t-no-sel-container {
    height: 130px;
    display: table-cell;
    vertical-align: middle;
}

.abs-has-discount {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 3.125rem;
    padding: 0.125rem 0.4375rem;
    margin-left: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    pointer-events: auto;
    background-color: #f39d72;
}

.abs-has-discount.abs-percentage {
    margin-right: 0.5rem;
}

.isabspromo {
    text-align: right !important;
}

.isabspromo .abs-old-price {
    font-size: 0.813rem;
    text-decoration: line-through;
    color: #7a7a7a;
}

.block_abs_usually_bought li[class^='absimgfbt'] .img {
    max-width: 130px;
    height: auto;

}

.block_abs_usually_bought li.absini {
    width: 1px;
    height: 130px;
    margin-right: 0;
}

.block_abs_usually_bought .abs-line {
    display: none;
}

.abs-has-discount.abs-free-shipping {
    font-size: 12px;
}

/* START readjust css according to hook */

    .abs-small-fqb-container h3.abs_usually_bought_together {
       margin: 15px 0 0;
       line-height: 26px;
    }

    .abs-small-fqb-container .block_abs_usually_bought {
       margin-top: 8px;
       padding: 20px 0 8px;
    }

    .abs-small-fqb-container ul.products_abs_u_b_together, .abs-small-fqb-container ul.list_products_abs_u_b_together {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .abs-small-fqb-container ul.products_abs_u_b_together li {
        margin-right: 2px;
    }

    .abs-small-fqb-container .block_abs_usually_bought li.absini {
        height: 76px;
    }

    .abs-small-fqb-container .block_abs_usually_bought li[class^="absimgfbt"] .img {
       max-width: 76px;
       height: auto;
    }

    .abs-small-fqb-container .block_abs_usually_bought li#price-abs-u-b-tog {
        padding-top: 8px;
    }

    .abs-small-fqb-container .bt-abs-fbt-modal.abs-fbt-bt2 {
        margin-right: 14px;
    }

    .abs-small-fqb-container .abs-aclarat-list_u_b_together, .abs-small-fqb-container .abs-freq-bo-t-no-sel {
       margin-left: 0;
       margin-right: 0;
       white-space: nowrap;
       padding-bottom: 0.5rem;
    }

    .abs-small-fqb-container .abs-aclarat_list_u_b_container {
       vertical-align: text-top;
    }

    .abs-small-fqb-container .abs-aclarat_list_u_b_container.abs-size-mini, .abs-small-fqb-container .abs-freq-bo-t-no-sel-container.abs-size-mini {
       white-space: normal;
       width: 90%;
    }

    .abs-small-fqb-container .abs-aclarat_list_u_b_container.abs-size-mini.show-abs-details-f-q, .abs-small-fqb-container .abs-aclarat_list_u_b_container.abs-size-mini.hide-abs-details-f-q {
       display: block;
       padding-left: 28px;
       padding-top: 2px;
    }

    .abs-small-fqb-container ul.list_products_abs_u_b_together li label {
        white-space: nowrap;
        width: 100%;
    }

    .abs-small-fqb-container .block-abs--u-b-tt {
       white-space: normal;
    }

    .abs-small-fqb-container ul.list_products_abs_u_b_together li .txt-abs-u-b {
       font-size: 13px;
    }

    .abs-small-fqb-container ul.list_products_abs_u_b_together .abs-sep {
       display: block;
    }

    .abs-small-fqb-container ul.list_products_abs_u_b_together li .price-abs-u-b-tog {
        margin-left: 0 !important;
        margin-right: 5px;
    }

    .abs-small-fqb-container .block_abs_usually_bought .txt-abs-s-b, .abs-small-fqb-container .block_abs_usually_bought [id^="abs-min-quantity-txt"] {
       display: block;
       padding-left: 0;
    }

    .abs-small-fqb-container .abs-f-b-t-details {
       margin-top: 0 !important;
    }

    .abs-small-fqb-container .block_abs_usually_bought .abs-line {
       border-bottom: 1px solid #ccc;
       margin-bottom: 0.875rem;
       display: block;
       clear: both;
    }

    .abs-small-fqb-container .abs-freq-bo-t-no-sel-container {
       height: 76px;
    }

    .abs-small-fqb-container .block_abs_usually_bought li[class^="absimgfbt"] .img {
        max-width: 76px;
        height: auto;
    }

    .abs-small-fqb-container .block_abs_usually_bought li.absini, .abs-small-fqb-container .abs-freq-bo-t-no-sel-container {
        height: 86px;
    }

/* END readjust css according to hook */

@media (max-width: 576px){

    #abs-is-thin-absfreqbought {
        display: none;
    }

    h3.abs_usually_bought_together {
       margin: 15px 0 0;
       line-height: 26px;
    }

    .block_abs_usually_bought {
       margin-top: 8px;
       padding: 20px 0 8px;
    }

    ul.products_abs_u_b_together, ul.list_products_abs_u_b_together {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    ul.products_abs_u_b_together li {
        margin-right: 2px;
    }

    .block_abs_usually_bought li.absini {
        height: 76px;
    }

    .block_abs_usually_bought li[class^="absimgfbt"] .img {
       max-width: 76px;
       height: auto;
    }

    .block_abs_usually_bought li#price-abs-u-b-tog {
        width: 100%;
        padding-top: 8px;
    }

    .bt-abs-fbt-modal.abs-fbt-bt2 {
        margin-right: 14px;
    }

    .abs-aclarat-list_u_b_together, .abs-freq-bo-t-no-sel {
       margin-left: 0;
       margin-right: 0;
       white-space: nowrap;
       padding-bottom: 0.5rem;
    }

    .abs-aclarat_list_u_b_container {
       vertical-align: text-top;
    }

    .abs-aclarat_list_u_b_container.abs-size-mini, .abs-freq-bo-t-no-sel-container.abs-size-mini {
       white-space: normal;
       width: 90%;
    }

    .abs-aclarat_list_u_b_container.abs-size-mini.show-abs-details-f-q, .abs-aclarat_list_u_b_container.abs-size-mini.hide-abs-details-f-q {
       display: block;
       padding-left: 28px;
       padding-top: 2px;
    }

    ul.list_products_abs_u_b_together li label {
        white-space: nowrap;
        width: 100%;
    }

    .block-abs--u-b-tt {
       white-space: normal;
    }

    ul.list_products_abs_u_b_together li .txt-abs-u-b {
       font-size: 13px;
    }

    ul.list_products_abs_u_b_together .abs-sep {
       display: block;
    }

    ul.list_products_abs_u_b_together li .price-abs-u-b-tog {
        margin-left: 0 !important;
        margin-right: 5px;
    }

    .block_abs_usually_bought .txt-abs-s-b, .block_abs_usually_bought [id^="abs-min-quantity-txt"] {
       display: block;
       padding-left: 0;
    }

    .abs-f-b-t-details {
       margin-top: 0 !important;
    }

    .block_abs_usually_bought .abs-line {
       border-bottom: 1px solid #ccc;
       margin-bottom: 0.875rem;
       display: block;
       clear: both;
    }

    .abs-freq-bo-t-no-sel-container {
       height: 76px;
    }
}

@media (min-width: 411px) and (max-width: 576px) {
    .block_abs_usually_bought li[class^="absimgfbt"] .img {
        max-width: 86px;
        height: auto;
    }

    .block_abs_usually_bought li.absini, .abs-freq-bo-t-no-sel-container {
        height: 86px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .block_abs_usually_bought li[class^="absimgfbt"] .img {
        max-width: 115px;
        height: auto;
    }

    .block_abs_usually_bought li.absini, .abs-freq-bo-t-no-sel-container {
        height: 115px;
    }
}

#addcartabsfbt .fa-spinner {
    display: none;
}

#addcartabsfbt .fa-check {
    display: none;
}

#addcartabsfbt:disabled .fa-spinner {
    display: inline-block;
    margin-right: 5px;
}

#addcartabsfbt.added .fa-check {
    display: inline-block;
    margin-right: 5px;
}