﻿/*
 * ISC License
 *
 * Copyright (c) 2026 idnovate.com
 * idnovate is a Registered Trademark & Property of idnovate.com, innovación y desarrollo SCP
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 * @author    idnovate
 * @copyright 2026 idnovate.com
 * @license   https://www.isc.org/licenses/ https://opensource.org/licenses/ISC ISC License
 */

 /* Bootstrap compatibility */
.hidden-xs-up {
    display: none!important
}

@media (max-width: 575px) {
    .hidden-xs-down {
        display:none!important
    }
}

@media (min-width: 576px) {
    .hidden-sm-up {
        display:none!important
    }
}

@media (max-width: 767px) {
    .hidden-sm-down {
        display:none!important
    }
}

@media (min-width: 768px) {
    .hidden-md-up {
        display:none!important
    }
}

@media (max-width: 991px) {
    .hidden-md-down {
        display:none!important
    }
}

@media (min-width: 992px) {
    .hidden-lg-up {
        display:none!important
    }
}

@media (max-width: 1199px) {
    .hidden-lg-down {
        display:none!important
    }
}

@media (min-width: 1200px) {
    .hidden-xl-up {
        display:none!important
    }
}

.hidden-xl-down {
    display: none!important
}


.alert-loyalty {
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid;
    border-radius: 0;
    clear: both;
}

.loyalty-block img {
    width: auto !important;
    margin-right: .625rem;
    vertical-align: middle;
    display: inline-block;
    background: transparent;
    box-shadow: none;
}

.alert-loyalty span,
#blockcart-modal .modal-body .divide-right span {
    vertical-align: middle;
    display: inline;
}

/* Customer account */
.loyalty-block-redeem-btn {
    text-align: center;
    margin-bottom: 2rem;
}

/* Points redemption slider */
.lep-redeem-box {
    max-width: 480px;
    margin: 0 auto 2rem;
}

.lep-slider-value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.lep-slider-points,
.lep-slider-voucher {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.lep-slider-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.lep-slider-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

.lep-slider-arrow {
    font-size: 1.25rem;
    color: #adb5bd;
}

.lep-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lep-slider-wrap .custom-range {
    flex: 1;
}

.lep-slider-bound {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    min-width: 1.5rem;
    text-align: center;
}

.lep-slider-submit {
    text-align: center;
}

.lep-range-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #007bff 0%, #007bff var(--lep-fill, 100%), #dee2e6 var(--lep-fill, 100%), #dee2e6 100%) !important;
}

.lep-range-slider::-moz-range-track {
    background-color: #dee2e6;
    height: 0.5rem;
    border-radius: 1rem;
}

.lep-range-slider::-moz-range-progress {
    background-color: #007bff;
    height: 0.5rem;
    border-radius: 1rem 0 0 1rem;
}

/* Compact slider (cart / checkout) */
.lep-compact-alert {
    margin-top: 0.75rem;
}

.lep-compact-title {
    margin-bottom: 0.5rem;
}

.lep-compact-form {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.lep-compact-summary {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #495057;
}

.lep-compact-summary .lep-display-points {
    font-weight: 700;
    color: #007bff;
}

.lep-compact-summary .lep-display-voucher {
    color: #007bff;
}

.loyalty-block-redeem-btn .btn {
    white-space: normal;
}

#module-loyaltyeditpoints-points .box {
    box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
}

#module-loyaltyeditpoints-points h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #232323;
    margin-bottom: 1rem;
}

/* Product page */
.loyalty-block-product .alert-loyalty {
    margin-top: .625rem;

}

.loyalty-block-product-free .alert-loyalty {
    background-color: #d9edf7;
    border-color: #bcdff1;
    color: #31708f;
    margin-top: .625rem;
    display: inline-block;
}

.loyalty-block-product-free .alert-loyalty img {
    display: none;
}

/* Product list page */
.loyalty-block-productlist {
    clear: both;
}

.loyalty-block-productlist .alert-loyalty {
    margin: 0.2rem 0 0;
    padding: 0.1rem;
}

.owl-carousel .owl-item .loyalty-block-productlist .alert-loyalty img,
.loyalty-block-productlist .alert-loyalty img {
    width: 20px !important;
    display: inline-block !important;
}


.loyalty-block-shopping-cart-detail .alert-loyalty {
    padding: 0;
    margin: 0;
    background: inherit;
    width: 24px;
    text-align: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.loyalty-block-shopping-cart-detail img,
.cart-grid .product-image.media-middle .loyalty-block-shopping-cart-detail img {
    width: 20px;
    min-width: auto;
    margin: 0;
}

/* Shopping cart page */
.loyalty-block-checkout .alert-loyalty {
}

.loyalty-block-checkout .loyalty-block-redeem-btn .btn {
    white-space: normal;
}

.loyalty-block-checkout .loyalty-block-redeem-btn .btn:hover {
    color: white !important;
}

/* Order confirmation page */
.loyalty-block-order-confirmation .alert-loyalty {
}

/* Product added modal */
.loyalty-block-shopping-cart-modal .alert-loyalty {
}

/* Product image */
.loyalty-block-product-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #fff6ca;
    color: #777777;
    border: 1px solid #f8d100;
    padding: .2rem;
    z-index: 1;
}

.loyalty-block-product-image span {
    vertical-align: middle;
}

.loyalty-block-product-image img,
.main-product-details .product-cover .loyalty-block-product-image img {
    margin-right: 0;
    display: inline-block;
}

#module-loyaltyeditpoints-points th {
  border-left: 1px solid black;
}

#module-loyaltyeditpoints-points table {
  border-collapse: collapse;
  width: 100%;
}

#module-loyaltyeditpoints-points table {
    /*display: flex;*/
    /*flex-flow: column;*/
    width: 100%;
    /*height: 400px;*/

}

#module-loyaltyeditpoints-points thead, #module-loyaltyeditpoints-points tfoot {
    padding-right: 17px;
    flex: 0 0 auto;
}

#module-loyaltyeditpoints-points tbody {
    /*flex: 1 1 auto;*/
    display: block;
    /*overflow-y: auto;*/
    /*overflow-x: hidden;*/
}

#module-loyaltyeditpoints-points tr {
    width: 100%;
    display: table;
    table-layout: fixed;
}

#module-loyaltyeditpoints-points td {
    word-break: break-all;
    overflow-wrap: break-word;
}
