/**
 * 2008-2026 Prestaworld
 *
 * NOTICE OF LICENSE
 *
 * The source code of this module is under a commercial license.
 * Each license is unique and can be installed and used on only one website.
 * Any reproduction or representation total or partial of the module, one or more of its components,
 * by any means whatsoever, without express permission from us is prohibited.
 *
 * DISCLAIMER
 *
 * Do not alter or add/update to this file if you wish to upgrade this module to newer
 * versions in the future.
 *
 * @author    prestaworld
 * @copyright 2008-2026 Prestaworld
 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 * International Registered Trademark & Property of prestaworld
 */

.combo-options {
    padding-top: 10px;
}

#combo_modal_combinations {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.combo-option {
    cursor: pointer;
}

.combo-option input {
    display: none;
}

.combo-box {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: 0.2s;
}

/* Hover effect */
.combo-option:hover .combo-box {
    border-color: #000;
}

/* Active (selected) */
.combo-option input:checked+.combo-box {
    /* border: 2px solid #007bff; */
    background: #eaf3ff;
}

.presta_combo_confirm_add_btn {
    margin-top: 15px;
    text-align: end;
}

.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.combo-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.combo_close_modal {
    font-size: 30px;
    cursor: pointer;
}

#combo_product_modal {
    display: none;
}

#combo_product_modal.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

#combo_search_results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    /* margin-top: 15px; */
    overflow-y: auto;
    max-height: 60vh;
    /* padding-right: 5px; */
}

.search_item_card {
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    padding: 10px;
}

.search_item_card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.combo_card_img {
    text-align: center;
}

.combo_card_img img {
    max-width: 100%;
    /* height: 120px; */
    object-fit: contain;
}

.combo_card_body {
    text-align: center;
    margin-top: 10px;
}

.combo_card_name {
    font-size: 14px;
    min-height: 40px;
}

.combo_card_price {
    font-weight: bold;
    margin: 5px 0px 5px 0px;
}

.combo_selected_wrapper {
    position: relative;
    display: inline-block;
}

.combo_selected_wrapper img {
    width: 100px;
}

.combo_remove_btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #d41717;
    color: #fff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 20px;
    text-align: center;
    line-height: 17px;
    cursor: pointer;
    z-index: 10;
}

#combo_selected_products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.combo_item {
    display: flex;
    align-items: center;
}

.combo_box {
    width: 90px;
    height: 90px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.combo_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo_plus {
    margin: 0 10px;
    font-size: 20px;
    font-weight: bold;
}

.combo_add_btn {
    background: #2fb5d2;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.combo_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */

    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.combo_popup_content {
    width: 900px;
    max-width: 90%;
    max-height: 80vh;

    background: #fff;
    border-radius: 8px;
    padding: 15px;

    overflow: hidden;
}


/* SEARCH FIXED */
.combo_search_wrapper {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: 10px;
}

#combo_search_results::-webkit-scrollbar {
    width: 6px;
}

#combo_search_results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}


.combo_close {
    position: absolute;
    top: -22px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    margin-right: -10px;
}

#combo_search {
    margin-top: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.search_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search_item:hover {
    background: #f5f5f5;
}

.presta_combo-cart-btn {
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

/* Presta Cart List */
.combo-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.combo-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.combo-img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.combo-info {
    flex-grow: 1;
}

.combo-name {
    font-weight: bold;
}

.combo-attr {
    font-size: 12px;
    color: #777;
}

/* .combo-badge {
    background: #007bff;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
} */