/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* 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 http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

#leanpay_lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#leanpay_lightbox .ll-content {
    min-width: 300px;
  max-width: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  color: #5A5A6D;
  background-color: #ffffff;
  font-weight: normal;
  border-radius: 16px;
  position: fixed;
  line-height: 130%;
  font-size: 16px;
  z-index: 2147483647 !important;
  box-sizing: border-box;
  box-shadow: 0 1px 8px rgba(0,0,0,0.5);
  user-select: none;

}

#leanpay_lightbox .ll-content .leanpay-lightbox-logo {
    width: 170px;
  height: auto;
  margin-top: 5px;
  display: block;
}

/* Installments Slider */
.leanpay_slider_wrapper {
    margin-bottom: 2em;
}

.leanpay_slider_label {
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0;
    color: #5A5A6D;
    font-size: 14px;
}

#leanpay_inst_slider {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-bottom: 48px;
    margin-top: 32px;
    justify-content: space-between;
}

/* Track background (light pink line) */
#leanpay_inst_slider::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 15px;
    width: calc(100% - 30px);
    height: 3px;
    background: #F8ACB6;
    border-radius: 100px;
}

/* Active track (pink line) */
#leanpay_bullet_path {
    position: absolute;
    bottom: -20px;
    left: 15px;
    height: 3px;
    background: #EB5A7A;
    border-radius: 100px;
    transition: width 0.15s ease-out;
}

/* Draggable bullet */
#leanpay_bullet {
    position: absolute;
    bottom: -25px;
    width: 14px;
    height: 14px;
    background: #f1697b;
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: grab;
    transition: left 0.15s ease-out;
    z-index: 10;
    /* Prevent native drag behavior */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* Each slider item (month label with bullet below) */
.leanpay_inst_slider_item {
    background: #fff;
    color: #000;
    padding: 4px 12px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    font-size: 12.8px;
    transition: all 0.15s ease-out;
}

/* Bullet below each item */
.leanpay_inst_slider_item::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #F8ACB6;
    border-radius: 50%;
}

/* Highlighted bullet (items before and including active) */
.leanpay_inst_slider_item.highlighted::after {
    background: #EB5A7A;
}

/* Active item styling */
.leanpay_inst_slider_item.active {
    background: #f1697b;
    color: #fff;
}

/* Hidden on mobile */
.leanpay_inst_slider_item.mobile-hidden {
    display: none;
}

.leanpay_amount_display_wrapper {
    position: relative;
    min-height: 40px;
    overflow: visible;
}

.leanpay_amount_display {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    transition: left 0.2s ease-out;
}

.leanpay_amount_value {
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
}

.leanpay_amount_suffix {
    font-size: 16px;
    color: #5A5A6D;
    font-weight: 400;
}

#ll-close {
    position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  cursor: pointer;
    
}

#ll-close img {
    width: 100%;
    height: auto;
}

#leanpay_lightbox .product_leanpay_desc {
  padding-top: 5px;
  margin-bottom: 16px;
}

#leanpay_lightbox .links {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  
  @media (max-width: 480px) {
    #leanpay_lightbox .links {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      text-align: center;
    }
  }

  #leanpay_lightbox #leanpay-check-limit {
    display: inline-block;
    background-color: #FE5A78;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
      text-decoration-thickness: auto;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  #leanpay_lightbox #leanpay-more-info {
    display: inline-block;
    color: #757575;
    text-decoration: underline;
      text-decoration-thickness: auto;
    font-size: 16px;
    line-height: 1.5;
    margin-left: auto;
  }

.payment-option img[src*="leanpay"] {
    max-width: 80px;
    height: auto;
}


#leanpay_product_price_wrapper.leanpay-banner-button {
    display: flex;
    max-width: 420px;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #FE5A78;
    border-radius: 16px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    min-height: 60px;
    gap: 16px;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.leanpay-banner-button .leanpay-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 !important;
}

.leanpay-banner-top-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.leanpay-banner-top {
    background-color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    padding: 8px 12px;
    color: #FE5A78;
    margin: 0 !important;
}

.leanpay-banner-bottom {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 0;
    margin: 0 !important;
}

.leanpay-banner-bottom-arrow {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-image: url(../img/chevron-right.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    margin-top: -3px;
    vertical-align: middle;
    margin-left: -5px;
}

.leanpay-banner-logo {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    text-decoration: none;
    padding-right: 6px;
    z-index: 2;
}

.leanpay-banner-logo img {
    width: 85px;
    height: auto;
    margin-top: 5px;
    display: block;
}

.leanpay_catalog_txt {
    color: #F26178;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    display: block;
    line-height: 1.5rem;
    padding-top: 0.5rem;
}

#cart_summary .leanpay_catalog_txt {
    text-align: right;
}

.leanpay_catalog_txt img {
    max-width: 85px;
    height: auto;
    vertical-align: middle;
    margin-left: 8px;
    margin-top: -3px;
}