.pdal-product-calculator,
.pdal-product-calc {
    background: #0A4CA5;
    color: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    max-width: 360px;
    margin: 0 auto 20px;
    font-family: 'IRANYekanFN', sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

/* ❌ حذف کامل لودینگ بالای باکس */
.pdal-product-calc .pdal-loading-dots {
    display: none !important;
}

/* ---------- Fields ---------- */
.pdal-product-calc .pdal-field {
    margin: 10px 0 20px 0;
}

.pdal-product-calc .pdal-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.pdal-product-calc .pdal-field select {
    width: 100%;
    height: 55px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background: #ffffff00;
    color: #ffffff;
    border: 2px solid #ffffff !important;
}

/* ---------- Slider (ماه چپ + سبز پرشونده) ---------- */
.pdal-product-calc .pdal-range-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

.pdal-product-calc .pdal-months-label {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    min-width: 40px;
    text-align: left;
}

/* اسلایدر */
.pdal-product-calc .pdal-months-range {
    --pdal-progress: 0%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right,
            #00c853 0%,
            #00c853 var(--pdal-progress),
            rgba(255, 255, 255, .35) var(--pdal-progress),
            rgba(255, 255, 255, .35) 100%);
}

/* Thumb - WebKit */
.pdal-product-calc .pdal-months-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #00c853;
    cursor: pointer;
}

/* Firefox */
.pdal-product-calc .pdal-months-range::-moz-range-track {
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .35);
}

.pdal-product-calc .pdal-months-range::-moz-range-progress {
    height: 6px;
    border-radius: 6px;
    background: #00c853;
}

.pdal-product-calc .pdal-months-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #00c853;
    cursor: pointer;
}

/* ---------- Results ---------- */
.pdal-product-calc .pdal-results {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.pdal-product-calc .pdal-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.pdal-product-calc .pdal-result span {
    opacity: .9;
    margin: 10px 0px;
    font-size: 13px;
    font-weight: 600;
}

.pdal-product-calc .pdal-result strong {
    font-weight: 900;
}

/* مخفی کردن قسط ماهانه داخل باکس */
.pdal-product-calc .pdal-result-monthly {
    display: none !important;
}

/* ---------- Actions ---------- */
.pdal-product-calc .pdal-actions {
    margin-top: 14px;
}

.pdal-product-calc .pdal-request-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #0A4CA5;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
}

.pdal-product-calc .pdal-request-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ---------- Inline loader (کنار پیش‌پرداخت و رتبه اعتباری) ---------- */
.pdal-inline-loader {
    display: inline-flex;
    gap: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.pdal-inline-loader span {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, .7);
    border-radius: 50%;
    animation: pdal-blink 1.2s infinite ease-in-out both;
}

.pdal-inline-loader span:nth-child(2) {
    animation-delay: .15s;
}

.pdal-inline-loader span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes pdal-blink {

    0%,
    80%,
    100% {
        opacity: .2;
    }

    40% {
        opacity: 1;
    }
}
/* ===============================
   SECTION 2 – Full width slider + bubble
   =============================== */

/* ردیف اسلایدر تمام عرض */
.pdal-product-calc .pdal-range-wrap {
    position: relative;
    width: 100%;
    padding-top: 26px;
}

/* خود input تمام عرض */
.pdal-product-calc .pdal-months-range,
.pdal-product-calc input[type="range"].pdal-months {
    width: 100%;
}

/* bubble عدد ماه */
.pdal-product-calc .pdal-months-val {
    position: absolute;
    top: -38px;
    left: 0;
    transform: translateX(-50%);
    background: #ffffff;
    color: #0A4CA5;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: left .12s linear;
}

/* فلش کوچیک زیر bubble */
.pdal-product-calc .pdal-months-val::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}
/* ماه ثابت بالای اسلایدر */
.pdal-product-calc .pdal-range-bubble {
    border-radius: 10px;
    position: absolute !important;
    top: -32px;
    left: 0 !important;
    transform: none !important;
    color: #0a4ca5;
    font-weight: 900;
    font-size: 20px;
    pointer-events: none;
    white-space: nowrap;
    background: white;
    padding: 0px 10px;
}

/* =========================
   PDAL Range: force thick track
   ========================= */

/* خود input فقط فضای کلیک و متغیر را نگه می‌دارد */
.pdal-product-calc input[type="range"]#pdal-months.pdal-months {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 28px !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    margin-top: -20px;
}

/* نوار اصلی (Chrome/Edge/Safari) */
.pdal-product-calc input[type="range"]#pdal-months.pdal-months::-webkit-slider-runnable-track {
  height: 14px !important;       /* ضخامت واقعی نوار */
  border-radius: 999px !important;
  background: linear-gradient(to left,
      #ffffff 0%,
      #ffffff var(--pdal-progress, 0%),
      rgba(255,255,255,.35) var(--pdal-progress, 0%),
      rgba(255,255,255,.35) 100%) !important;
}

/* دکمه (Chrome/Edge/Safari) */
.pdal-product-calc input[type="range"]#pdal-months.pdal-months::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #0a4ca5 !important;
  border: 3px solid #ffffff !important;
  margin-top: -8px !important;   /* وسط نوار 14px */
  cursor: pointer !important;
}

/* Firefox track */
.pdal-product-calc input[type="range"]#pdal-months.pdal-months::-moz-range-track {
  height: 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.35) !important;
}

/* Firefox progress */
.pdal-product-calc input[type="range"]#pdal-months.pdal-months::-moz-range-progress {
  height: 14px !important;
  border-radius: 999px !important;
  background: #00c853 !important;
}

/* Firefox thumb */
.pdal-product-calc input[type="range"]#pdal-months.pdal-months::-moz-range-thumb {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 4px solid #00c853 !important;
  cursor: pointer !important;
}

.pdal-product-calc .pdal-field select option {
    background: #ffffff;
    color: #0A4CA5;
}
