.novuna-container{
    margin: 20px 0;
}
.novuna-calculator {
    border: 1px solid #dce1e6;
    border-radius: 10px;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff;
}

.novuna-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.novuna-logo {
    height: 35px;
}

.novuna-finance-note {
    color: #0078c9;
    font-weight: bold;
}

.novuna-small-text {
    font-size: 0.85rem;
}

.novuna-section {
    margin-top: 20px;
}

.novuna-section label {
    /*display: block;*/
    font-weight: bold;
    margin-bottom: 5px;
}

.novuna-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

input[type=range] {
    width: 100%;
    accent-color: #0078c9;
}

.novuna-button-group button,
.novuna-term-buttons button {
    border: 1px solid #0078c9;
    background: #fff;
    color: #0078c9;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin: 3px;
    transition: 0.2s;
}

.novuna-button-group button.active,
.novuna-term-buttons button.active {
    background: #0078c9;
    color: #fff;
}

.novuna-review {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.95rem;
}

.novuna-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

/* Overlay */
.novuna-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998 !important;
    display: none;
}

/* Popup Container */
.novuna-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999 !important;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    max-width: 550px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: none;
    text-align: justify;
}

/* Close Button */
.novuna-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.novuna-close:hover {
    color: #0073e6;
}

/* Smooth open animation */
.novuna-popup {
    opacity: 0;
    transform: translate(-50%, -45%);
    transition: all 0.25s ease;
}
.novuna-popup[style*="display: block"] {
    opacity: 1;
    transform: translate(-50%, -50%);
}


/* Overlay */
.novuna-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

/* Popup */
.novuna-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    max-width: 550px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: none;
}

/* Close Button */
.novuna-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* Button styles */
.novuna-btn-box {
    text-align: center;
    margin-top: 20px;
}

#pay-by-finance-btn,
#iss-continue {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
}

#pay-by-finance-btn:hover,
#iss-continue:hover {
    background-color: #005bb5;
}

/* Animation */
.novuna-popup {
    opacity: 0;
    transform: translate(-50%, -45%);
    transition: all 0.25s ease;
}
.novuna-popup[style*="display: block"] {
    opacity: 1;
    transform: translate(-50%, -50%);
}

#novuna-popup {
   max-width: 720px ;
   padding: 35px ;
   border-radius: 10px ;
   box-shadow: 0 12px 30px rgba(0,0,0,0.25) ;
   font-family: "Inter", Arial, sans-serif ;
 }

#novuna-popup .card {
    border: none;
    box-shadow: none;
}

#novuna-popup .btn {
    min-width: 160px;
}

#novuna-popup h2.h4 {
  font-size: 26px ;
  font-weight: 700 ;
  margin-bottom: 10px ;
  color: #1a1a1a ;
}

#novuna-popup p.mb-4 {
  font-size: 16px;
  color: #555 ;
  margin-bottom: 25px ;
}
.input-group-text{
    background: #989898;
    padding: 10px;
}

.novuna-unavailable {
  padding: 15px;
  background: #ffe8e8;
  border: 1px solid #ffbcbc;
  color: #b70000;
  border-radius: 4px;
}
#novuna-popup .form-control,
#novuna-popup select {
  height: 44px ;
  border: 1px solid #d5d9dd ;
  border-radius: 6px;
  font-size: 15px;
}
#novuna-popup .form-row {
  margin-bottom: 20px ;
}

#novuna-popup .form-group label {
  font-weight: 600;
  font-size: 14px;
}

#iss-submit.btn-primary {
  background: #0078ff;
  color: #fff ;
  border-radius: 25px ;
  font-size: 16px ;
  border: none ;
}

#iss-continue.btn-outline-secondary {
  border-radius: 25px ;
  padding: 12px 22px ;
  font-size: 16px ;
  border: 1px solid #c8c8c8 ;
}
#iss-submit {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px ;
    justify-content: center;
    gap: 4px; /* IMPORTANT: spacing for spinner */
}

#iss-submit-loader {
    width: 30px !important;
    height: 30px !important;
    display: block !important;
}

.required:after {
    content: " *";
    color: red;
    font-weight: bold;
}

/* Align buttons left & right */
#novuna-popup .form-group.mt-4 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px;
}

/* highlight invalid inputs */
.is-invalid {
    border: 1px solid red !important;
}

/* Loader fix */
#iss-submit-loader {
    display: none;
}
#iss-submit.loading #iss-submit-loader {
    display: inline-block !important;
}
.novuna-banner-wrapper {
    margin-top: 15px;
}

/*novuna banner shown at cart */
.novuna-banner {
    align-items: center;
    justify-content: space-between;
}

.novuna-left{
    align-items: center;
    justify-content: center;
    display: flex;
}
.novuna-left img {
    height: 20px;
}

.novuna-center {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.novuna-center strong {
    font-weight: 700;
}
 .novuna-text-container{
     background: #F4EFFF;
     padding:20px;
     margin-top: 20px;
 }
.novuna-right {
    margin-top:5px;
    font-size: 12px;
    font-weight: 700;
    color: #7b39f3;
    text-transform: uppercase;
    text-decoration: underline;
    justify-content: center;
    display: flex;
    cursor: pointer;
}
/*novuna payment summary*/
.novuna-finance-summary {
    margin-top: 8px;
    border-top: none;
    padding:20px;
}

/* Match Prestashop summary rows */
.novuna-finance-summary .row {
    padding: 0 20px;
}

/* To pay – strong emphasis */
.novuna-finance-summary .payable {
    margin-top: .5rem;
    padding-top: .5rem;
}

body#checkout .additional-information{
    margin-left:0 !important;
}

.disabled {
    pointer-events: none;
    opacity: 0.6 !important;
}
.disabled button{
    cursor: not-allowed !important;
}

#novuna-deposit-range{
    cursor: pointer;
}
.novuna-error-message {
    color: #c00;
    margin-top: 10px;
    font-weight: 500;
}
#novuna-error-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.novuna-error-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.novuna-error-box {
    position: relative;
    max-width: 420px;
    margin: 10% auto;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.novuna-error-box h3 {
    margin-top: 0;
}

.novuna-error-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

#novuna-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.novuna-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #ddd;
    border-top: 4px solid #042642; /* brand color */
    border-radius: 50%;
    animation: novuna-spin 1s linear infinite;
}

@keyframes novuna-spin {
    to { transform: rotate(360deg); }
}

.range-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 30px; /* for labels */
    margin: 20px 0;
}

#novuna-deposit-range {
    margin: 0;
    display: block;
    width: 100%;
    -webkit-appearance: none;
    height: 1px;
    border-radius: 5px;
    background: #ddd;
    outline: none;

    transition: background 0.3s;
}

#novuna-deposit-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background-color: #007bff;
    background-image: url('/modules/sd_novunafinance/views/img/icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:3;
}

#novuna-deposit-range::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background-color: #007bff;
    background-image: url('/modules/sd_novunafinance/views/img/icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: white;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

.novuna-range-breaks {
    position: absolute;
    left: 3px;
    width: 99%;
    top: -2px;
    pointer-events: none;
}

.novuna-range-breaks span {
    position: absolute;
    top: 0;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    transform: translateX(-50%);
}

.novuna-range-breaks span::after {
    content: attr(data-percent);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #333;
}

.novuna-button-group button:hover,
.novuna-term-buttons button:hover,
#pay-by-finance-btn:hover,
#iss-continue:hover,
#iss-submit.btn-primary:hover {
    background-color: #005bb5;
    border-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.25s ease; /* smooth effect */
    color: white;
}


#novuna-deposit-range::-moz-range-thumb::before {
    content: "<>";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}
#novuna-deposit-range::-webkit-slider-thumb:hover,
#novuna-deposit-range::-moz-range-thumb:hover {
    background: #0056b3;
}
#novuna-deposit-range::-webkit-slider-thumb::before {
    content: "<>";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

@media (max-width: 576px) {
    .novuna-range-breaks span::after{
        font-size: 10px;
    }

    .novuna-range-breaks{
        width: 95%;
    }
}
.custom-price{
    font-weight: 700;
    font-size: 15px;
    color: #C0423D;
}

.custom-finance-price{
    font-size: 15px;
}

.product-miniature:has(.novuna-finance-active) .price {
    display: none;
}
