/**
* 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
*/

.presta-pack-container {
    border: 1px solid #e5e5e5;
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pack-heading {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.pack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.pack-item:hover {
    border-color: #0d6efd;
    transform: translateY(-1px);
}

.pack-item.active {
    border: 2px solid #0d6efd;
    background: #f0f6ff;
}

.pack-left {
    display: flex;
    flex-direction: column;
}

.pack-title {
    font-weight: 600;
    font-size: 14px;
}

.pack-price {
    font-size: 13px;
    color: #28a745;
    margin-top: 4px;
    font-weight: 700;
}

.pack-qty {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-around;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    padding-left: 5px;
}

.pack-qty button {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
}

.pack-qty button:hover {
    background: #0d6efd;
    color: #fff;
}

.pack-input {
    width: 50px;
    text-align: center;
    margin: 0 5px;
}

.total-section {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.total-box, .save-box, .amount-box {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 5px;
}

.save-box {
    color: #28a745;
    font-weight: 600;
    font-style: italic;
}

.amount-box {
    color: #916402;
    font-size: 16px;
    font-weight: 600;
}

.required-badge {
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    display: inline-block;
}

.product-add-to-cart.js-product-add-to-cart {
    margin-top: 25px;
}

/* DropDown CSS */
.pack-row {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.pack-dropdown select {
    background: #0d4b8c;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
}

#custom-qty {
    width: 60px;
    text-align: center;
    border: none;
}

.units-text {
    padding: 0 10px;
    background: #eee;
}

.pack-info {
    margin-top: 12px;
}

.selected-pack {
    color: green;
    font-weight: 600;
}

.total-units {
    color: #2e7d32;
    font-weight: 600;
}

.total-price {
    font-weight: 600;
}

.total-discount {
    color: #d32f2f;
    font-weight: 600;
}

/* Radio CSS */
.pack-highlight-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.pack-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    text-align: left;
}

.pack-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pack-card.active {
    border: 2px solid #28a745;
    background: #f4fff6;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pack-name {
    font-weight: 600;
    font-size: 14px;
}

.badge {
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-row {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0;
}

.bottom-row {
    font-size: 12px;
    color: #777;
}

.product-line-grid:has(.custom-pack-container) .qty input.js-cart-line-product-quantity {
    display: none !important;
}

.product-line-grid:has(.custom-pack-container) .qty .bootstrap-touchspin {
    display: none !important;
}

button.btn.btn-primary.open-pack-modal {
    width: 100px;
    padding: 8px 10px;
    margin-left: -5px;
    font-size: 14px;
    border-radius: 5px;
}

/* CONTAINER */
.pack-container {
    margin-bottom: 15px;
}

/* TITLE */
.qty-label h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* PACK GRID */
.pack-highlight-v2 {
    display: flex;
    gap: 12px;
}

/* CARD */
.pack-card {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
}

.pack-card:hover {
    border-color: #007bff;
}

.pack-card.active {
    border: 2px solid #28a745;
    background: #f4fbf6;
}

.pack-wrapper {
    max-width: 450px;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pack-name {
    font-weight: 600;
    font-size: 14px;
}

.badge {
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 5px;
}

.price-row {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin: 6px 0;
}

.bottom-row {
    font-size: 12px;
    color: #777;
}

.global-qty-box {
    margin: 15px 0;
    text-align: center;
}

.qty-control {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-control button {
    width: 35px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
}

.qty-control input {
    width: 50px;
    text-align: center;
    border: none;
}

/* INFO SECTION */
.pack-info {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.pack-info p {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 14px;
}

/* .pack-info p span,
.pack-info p strong {
    display: inline-block;
} */

/* HIGHLIGHT VALUES */
#total-box-price {
    color: #28a745;
    font-weight: 600;
}

#selected-box-discount {
    color: #ff4d4f;
    font-weight: 600;
}

.custom-pack-wrapper {
    max-width: 450px;
    font-family: Arial;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.quantity-label h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0px 10px 10px;
    /* margin-top: 15px; */
    color: #222;
}

#pack-select {
    width: 430px;
    height: 40px;
    border: none;
    border-radius: 8px 8px 0 0;
    background: #0d4d92;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 5px 15px;
    outline: none;
    cursor: pointer;
    margin: -2px !important;
}

#pack-select option {
    color: #000;
    background: #fff;
}

#pack-discount-text {
    background: #0d4d92;
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 5px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
}

.pack-inform {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.pack-inform p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.pack-inform strong {
    font-weight: 700;
    color: #111;
}
