/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * 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.
 *
 * @author    DevBlinders <soporte@devblinders.com>
 * @copyright Copyright (c) DevBlinders
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */

.dbjointpurchase_product.product_card {
    margin-top: 2rem;
}
.dbjointpurchase_product .dbjointpurchase {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    background-color: inherit;
    position: relative;
    margin-top: 32px !important;
}

.dbjointpurchase .dbjointpurchase_header .title {
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
}

.dbjointpurchase .dbjointpurchase_footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.dbjointpurchase .dbjointpurchase_footer > span {
    margin-right: 10px;
}

.dbjointpurchase .dbjointpurchase_footer .super_oferta {
    font-weight: 400;
    font-size: 25px;
    line-height: 24px;
    text-transform: uppercase;
}

.dbjointpurchase .dbjointpurchase_footer .num_products {
    font-weight: 500;
    color: var(--dbjoint_color);
    margin-bottom: 4px;
}

.dbjointpurchase .dbjointpurchase_footer .regular_price {
    font-weight: 700;
    font-size: 21px;
    line-height: 21px;
}

.dbjointpurchase .dbjointpurchase_footer .iva {
    font-size: 0.8rem;
    font-weight: 400;
}

.dbjointpurchase .dbjointpurchase_footer .btn-primary {
    padding: 1rem 2rem;
}

.dbjointpurchase .dbjointpurchase_footer .btn-primary .complete_text {
    display: none;
}

.dbjointpurchase .dbjointpurchase_footer .btn-primary .complete_text svg path {
    color: #FFF;
}

.dbjointpurchase .dbjointpurchase_footer .btn-primary.complete {
    background-color: #77ac3e;
    cursor: not-allowed;
    border-color: #77ac3e;
}

.dbjointpurchase .dbjointpurchase_footer .btn-primary.complete .add_text {
    display: none;
}

.dbjointpurchase .dbjointpurchase_footer .btn-primary.complete .complete_text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.dbjointpurchase .dbjointpurchase_footer .precio_pack_product {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0 25px 0 15px;
}

.dbjointpurchase .dbjointpurchase_products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.dbjointpurchase .dbjointpurchase_products > .dbjointpurchase_product {
    width: calc(25% - 34px);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;

    border: 1px solid #ddd;
    opacity: 0.4;
    border-radius: 5px;
    background-color: #FFF;
    margin: 0 10px;
}

.dbjointpurchase .dbjointpurchase_products .productjoint_img {
    width: 100%;
    margin-top: 10px;
}

.dbjointpurchase .dbjointpurchase_products .productjoint_img img {
    width: 100%;
    height: auto;
}

.dbjointpurchase .dbjointpurchase_products .productjoint_content {
    width: 100%;
}

.dbjointpurchase .dbjointpurchase_products .dbjointpurchase_product.active {
    border-color: rgb(240 240 237);
    opacity: 1;
}

.dbjointpurchase .dbjointpurchase_products .name_product {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 35px;
}

.dbjointpurchase .dbjointpurchase_products .name_product a {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    color: #232323;
}

.dbjointpurchase .dbjointpurchase_products .name_product a:hover {
    text-decoration: underline;
}

.dbjointpurchase .dbjointpurchase_products .outstanding_feature {
    color: #232323;
    font-size: 13px;
    line-height: 1.35;
    width: 100%;
}

.dbjointpurchase .dbjointpurchase_products .product_prices {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

.dbjointpurchase .dbjointpurchase_products .product_prices .price_product {
    font-weight: 800;
    font-size: 1.1rem;
}

.dbjointpurchase .dbjointpurchase_products .product_prices .discount {
    font-size: 0.9rem;
    color: #c00810;
    font-weight: 400;
}

.dbjointpurchase .dbjointpurchase_products .product_prices .old_price {
    font-size: 0.9rem;
    color: #808080;
    margin: 0 8px;
    font-weight: 400 !important;
    margin-left: auto;
    text-decoration: line-through;
}

.dbjointpurchase .dbjointpurchase_products .change_product {
    margin-top: 1rem;
    font-size: 0.93rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    color: var(--dbjoint_color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dbjointpurchase .dbjointpurchase_products .change_product svg path {
    fill: var(--dbjoint_color);
}

.dbjointpurchase .dbjointpurchase_products .change_product i {
    font-size: 1.5rem;
}

.dbjointpurchase_product .custom-checkbox {
    margin-top: 0.5rem;
    position: relative;
}

.dbjointpurchase_product .custom-checkbox input[type="checkbox"] {
    margin-top: 0;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    width: 20px;
    height: 20px;
}

.dbjointpurchase_product .custom-checkbox input[type="checkbox"] + span {
    margin-right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid var(--dbjoint_color);
    border-radius: 5px;
}

.dbjointpurchase_product .custom-checkbox input[type="checkbox"] + span .checkbox-checked {
    display: none;
    margin: -0.25rem -0.125rem;
    font-size: 1.5rem;
    color: #FFF;
    font-weight: 700;
}

.dbjointpurchase_product .custom-checkbox input[type="checkbox"] + span .checkbox-checked svg {
    width: 16px;
    height: 16px;
    margin: 2px;
}

.dbjointpurchase_product .custom-checkbox input[type="checkbox"] + span .checkbox-checked svg path {
    fill: #FFF;
}

.dbjointpurchase_product.active .custom-checkbox input[type="checkbox"] + span {
    background-color: var(--dbjoint_color);
}

.dbjointpurchase_product .custom-checkbox input[type="checkbox"]:checked + span .checkbox-checked {
    display: block;
}

.dbjointpurchase_header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#product .dbjointpurchase_header > span.product_current {
    color: #DDDDDD;
    width: 35%;
}

.dbjointpurchase_products .icon_more_purchase {
    display: flex;
    align-items: center;
    width: 50px;
    justify-content: center;
}

.dbjointpurchase_products .icon_more_purchase i {
    border-radius: 50%;
    color: #FFF;
    background-color: var(--dbjoint_color);
    font-size: 30px;
    line-height: 30px;
    display: block;
    height: 30px;
    width: 30px;
}

.buttons_show {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

@media (max-width: 991px) {
    .dbjointpurchase_product.product_card {
        margin-top: 1rem;
    }
    .dbjointpurchase_product .dbjointpurchase {
        margin-top: 0;
    }
    .dbjointpurchase .dbjointpurchase_products {
        flex-direction: column;
    }
    .dbjointpurchase .dbjointpurchase_products > div {
        width: 100%;
    }
    .dbjointpurchase .dbjointpurchase_products .dbjointpurchase_product {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        margin: 10px 0;
    }
    .dbjointpurchase .dbjointpurchase_products .productjoint_content {
        width: calc(100% - 120px);
    }
    .dbjointpurchase .dbjointpurchase_products .productjoint_img {
        width: 120px;
        margin-top: 0;
    }
    .dbjointpurchase .dbjointpurchase_products .dbjointpurchase_product img {
        width: 100px;
    }
    .dbjointpurchase .dbjointpurchase_products .change_product {
        margin-left: auto;
        margin-top: 15px;
    }
    .dbjointpurchase .dbjointpurchase_footer {
        margin-top: 1rem;
    }
    #btn_dbjointpurchase {
        margin-top: 8px;
    }
    .dbjointpurchase .dbjointpurchase_footer {
        justify-content: center;
    }
    .dbjointpurchase .dbjointpurchase_footer .precio_pack_product {
        align-items: center;
    }
}

/* modal cambiar */
.dbchangeproduct_modal .modal-content {
    border: 0;
    border-radius: 5px;
}
.dbchangeproduct_modal .modal-header {
    font-weight: 600;
    font-size: 20px;
    padding: 20px 15px 15px 15px;
}
.dbchangeproduct_modal .modal-header:before {
    content: " ";
    width: 100%;
    height: 6px;
    background: linear-gradient(
            90.06deg , var(--dbjoint_color) -1.59%, var(--dbjoint_color) 102.19%);
    border-radius: 4px 4px 0px 0px;
    position: absolute;
    top: 0;
    left: 0;
}
.jointmodal_product {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}
.jointmodal_product:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.jointmodal_product img {
    max-width: 100px;
}
.jointmodal_product .content_product {
    width: calc(100% - 115px);
    margin-left: 15px;
}
.jointmodal_product .content_product .product_prices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}
.jointmodal_product .content_product .product_prices .price_product {
    font-weight: 600;
}
.jointmodal_product .content_product .product_prices .discount {
    margin-left: 15px;
    font-size: 12px;
    color: #c00810;
    background-color: #c0081020;
    padding: 4px 8px;
    border-radius: 5px;
    line-height: 12px;
}
.jointmodal_product .product_prices .btn {
    margin-left: auto;
    border: 1px solid var(--dbjoint_color);
    color: var(--dbjoint_color);
    border-radius: 5px;
    background-color: inherit;
    font-size: 0.9rem;
}
.jointmodal_product .product_prices .btn.btn-selected {
    margin-left: auto;
    background-color: #77ac3e;
    border-color: #77ac3e;
    color: #FFF;
    cursor: not-allowed;
}
.jointmodal_product .product_prices .btn.btn-select:hover {
    background-color: var(--dbjoint_color);
    color: #FFF;
}
.dbchangeproduct_modal .modal-footer .btn.btn-selection {
    border-radius: 5px;
}

@media (max-width: 576px) {
    .jointmodal_product .product_prices .btn {
        margin-top: 15px;
        width: 100%;
    }
}
