/**
 * 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 3.0 (AFL-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.
 *
 * 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 https://devdocs.prestashop.com/ for more information.
 *
 * @author    JA Modules <info@jamodules.com>
 * @copyright Since 2007 JA Modules
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

#header .header-nav .wishlist-top {
    background: none;
    padding: .75rem 0px;
    margin-left: .9375rem;
    min-width: 128px;
    text-align: right;
}

.wishlist_button {
    margin-top: 25px;
}

.submitAddWishlist,
.submitSelectWishlist {
    margin-top: 29px;
    padding: 0.5rem 1.5rem;
    font-size: 14px;
    height: auto;
    line-height: 1.5;
}

.wishlist_form.modal {
    z-index: 9999 !important;
}

.wishlist_form.modal .modal-dialog {
    z-index: 10000 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

.wishlist_form .modal-footer {
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.wishlist_form .view-all-wishlists-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wishlist_form .view-all-wishlists-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: #fff;
}

.wishlist_form .view-all-wishlists-btn i {
    font-size: 20px;
}

.wishlist_form .view-all-wishlists-btn i:first-child {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.wishlist_form .view-all-wishlists-btn i:last-child {
    transition: transform 0.3s ease;
}

.wishlist_form .view-all-wishlists-btn:hover i:last-child {
    transform: translateX(5px);
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

.wishlist-forms {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.wishlist-select {
    width: 50%;
    padding: 15px;
    min-height: 140px;
    border: 1px solid #dadada;
    background-color: #f6f6f6;
}

.wishlist-select-form,
.wishlist-add-form {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.wishlist-select-form .form-group,
.wishlist-add-form .form-group {
    margin-bottom: 0;
}

.wishlist-select-form .form-control,
.wishlist-add-form .form-control {
    height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 0.75rem;
    font-size: 14px;
}

.wishlist-add {
    width: 50%;
    padding: 15px;
    min-height: 140px;
    border: 1px solid #dadada;
    background-color: #f6f6f6;
}

select#id_customer_wishlist {
    max-width: 100%;
}

.wishlist-suggestions {
    width: 100%;
    float: left;
}

.wishlist-suggestions p {
    margin-bottom: 2px;
}

.wishlist-suggestions button {
    margin-right: 4px;
    margin-bottom: 8px;
}

#formAddWishlist label {
    text-align: left;
}

ul.product-flags li.wishlist {
    right: 10px;
    margin-top: 10px !important;
    background: none;
    box-shadow: none;
    position: absolute;
}

/*.product-miniature ul.product-flags li.wishlist {
    margin-top: 0rem !important;
}*/

ul.product-flags li.wishlist a {
    color: #2fb5d2;
    text-decoration: none;
}

ul.product-flags li.wishlist i {
    font-size: 40px;
}

.product-flag-wishlist {
    /*right: 7px;
    background: none;
    box-shadow: none;
    position: absolute;
    bottom: 275px;*/
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-miniature .product-flag-wishlist {
    margin-top: 0rem !important;
}

.product-flag-wishlist a {
    color: #2fb5d2;
    text-decoration: none;
}

.product-flag-wishlist i {
    font-size: 40px;
}

/* Estilo para botón de wishlist en miniaturas similar a product.tpl */
.product-flag-wishlist .btn-secondary {
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-flag-wishlist .btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #2fb5d2;
}

.product-flag-wishlist .btn-secondary i {
    font-size: 24px;
    color: #2fb5d2;
    transition: all 0.3s ease;
    line-height: 1;
}

.product-flag-wishlist .btn-secondary i.favorite {
    color: #dc3545;
}

.product-flag-wishlist .btn-secondary:hover i.favorite_border {
    color: #dc3545;
}

.product-additional-info .open_wishlist_form,
.product-additional-info .nopen_wishlist_form {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-additional-info .open_wishlist_form:hover,
.product-additional-info .nopen_wishlist_form:hover {
    background-color: transparent;
    border-color: #dc3545;
}

.product-additional-info .open_wishlist_form i,
.product-additional-info .nopen_wishlist_form i {
    font-size: 28px;
    color: #dc3545;
    transition: all 0.3s ease;
    line-height: 1;
}

.product-additional-info .open_wishlist_form i.favorite,
.product-additional-info .nopen_wishlist_form i.favorite {
    color: #dc3545;
}

.product-additional-info .open_wishlist_form:hover i.favorite_border,
.product-additional-info .nopen_wishlist_form:hover i.favorite_border {
    color: #dc3545;
}

/*list*/
.jwishlist_breadcrumb {
    margin-bottom: 15px;
}

.jwishlist_breadcrumb a {
    color: #232323;
}

.customer-wishlist .btn-list {
    box-shadow: none;
    text-transform: none;
    font-weight: normal;
    font-size: 11px;
    padding: 3px 5px;
    margin-bottom: 5px;
}

#module-jwishlist-list .buttons-container .btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.share-link-copied {
    display: none;
}

.customer-wishlist .btn-list i {
    font-weight: normal;
    font-size: 17px;
    margin-right: 10px;
}

ul.footer_links {
    border-top: 1px solid #d6d4d4;
    float: left;
    height: 65px;
    padding: 20px 0 0;
    margin-top: 15px;
    width: 100%;
}

.wishlist-products-mobile input.quantity-selected {
    text-align: center;
}

.wishlist-products-mobile small.dropped {
    font-style: italic;
    color: #ff4c4c;
}

.wishlist-products-mobile small.date_add {
    font-style: italic;
}

#module-jwishlist-view .modal-header .close,
#module-jwishlist-list .modal-header .close {
    margin-top: -25px;
}

#module-jwishlist-list .customer-wishlist {
    padding: 10px;
    background: #f6f6f6;
    margin-bottom: 20px;
}

#module-jwishlist-list .customer-wishlist .card-header {
    border-bottom: 1px solid #f6f6f6;
}

#module-jwishlist-list .customer-wishlist .card-body {
    padding: 10px 15px;
}

#module-jwishlist-list .customer-wishlist .card-footer {
    border-top: 1px solid #f6f6f6;
}

/*.buttons-container {
    margin-top: 15px;
}*/

.wishlist_form .modal-header .close {
    margin-top: -25px;
}

#module-jwishlist-view .wishlist-products-mobile {
    display: flex;
    flex-direction: column;
}

#module-jwishlist-view .wishlist-products-mobile .buttons-container {
    justify-content: left;
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

#module-jwishlist-view .flex-product {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#module-jwishlist-view .product-mobile {
    background-color: #ffffff;
    padding: 15px;
    border-bottom: 2px solid #f6f6f6;
}

#module-jwishlist-view .product-box {
    flex: 0 1 calc(5%);
}

#module-jwishlist-view .product-image {
    flex: 0 1 calc(10%);
}

#module-jwishlist-view .product-name {
    flex: 0 1 calc(50%);
}

#module-jwishlist-view .price,
#module-jwishlist-view .total {
    flex: 0 1 calc(15%);
    text-align: right;
}

#module-jwishlist-view .total-whislist {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#module-jwishlist-view .total-whislist .item {
    font-weight: bold;
    background-color: #ffffff;
    padding: 10px;
    flex: 0 1 calc(50%);
}

#module-jwishlist-view #total_wishlist {
    text-align: right;
}

.open_wishlist_form i:hover {
    opacity: 0.7;
}

@media only screen and (max-width:767px) {
    .wishlist_form h2 {
        font-size: 16px;
    }

    .wishlist-select,
    .wishlist-add {
        width: 100%;
        margin-bottom: 10px;
    }

    .submitAddWishlist,
    .submitSelectWishlist {
        padding: .5rem 1rem;
    }

    .submitAddWishlist span,
    .submitSelectWishlist span {
        font-size: 13px;
    }

    .mobile-hidden {
        display: none;
    }

    #module-jwishlist-list .customer-wishlist {
        background: #ffffff;
    }

    #module-jwishlist-view .product-box {
        flex: 0 1 calc(5%);
    }

    #module-jwishlist-view .product-image {
        flex: 0 1 calc(15%);
    }

    #module-jwishlist-view .product-name {
        flex: 0 1 calc(75%);
    }

    #module-jwishlist-view .total {
        padding-top: 10px;
        border-top: 1px solid #dadada;
        margin-top: 10px;
        flex: 0 1 calc(50%);
    }

    #module-jwishlist-view .price {
        padding-top: 10px;
        border-top: 1px solid #dadada;
        margin-top: 10px;
        flex: 0 1 calc(50%);
    }
}

@media only screen and (max-width:480px) {
    #module-jwishlist-view .product-box {
        flex: 0 1 calc(5%);
    }

    #module-jwishlist-view .product-image {
        flex: 0 1 calc(90%);
        text-align: center;
        margin-bottom: 15px;
    }

    #module-jwishlist-view .product-name {
        flex: 0 1 calc(100%);
        text-align: center;
    }

    #module-jwishlist-view .total {
        padding-top: 10px;
        border-top: 1px solid #dadada;
        margin-top: 10px;
        flex: 0 1 calc(50%);
    }

    #module-jwishlist-view .price {
        padding-top: 10px;
        border-top: 1px solid #dadada;
        margin-top: 10px;
        flex: 0 1 calc(50%);
    }
}

.card-searcher {
    border-bottom: 5px solid #f6f6f6;
    padding-bottom: 7px;
}

#jwishlistSuggestions {
    display: none;
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
    background-color: #fff;
    height: auto;
    position: absolute;
    top: 53px;
    z-index: 99;
    width: 100%;
    padding: 10px;
}

.suggest-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f6f6f6;
    margin-bottom: 15px;

}

#jwishlistSuggestions .suggest-product .product-name {
    flex: 0 1 calc(30%) !important;
}