/* ===== CALCULATOR STRUCTURE ===== */
.pajero-calculator {
  background: #f9f9f9;
  padding: 40px 30px;
  border-radius: 8px;
  margin: 40px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-bottom: 30px;
}

/* Слайдер пробега — на всю ширину отдельной строкой */
.option-group:last-child {
  grid-column: 1 / -1;
  padding: 0 5px;
  overflow: visible;
}

/* Значение пробега рядом с заголовком */
.range-value-display {
  display: inline-block;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ed1c24;
  background: #fff2f2;
  border: 1.5px solid #ed1c24;
  border-radius: 6px;
  padding: 2px 10px;
  vertical-align: middle;
}

.option-group {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  overflow: visible;
}

.option-group h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  text-transform: none;
}

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

.radio-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  margin: 0;
  font-weight: 500;
}

.radio-list input[type="radio"] {
  flex-shrink: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #ed1c24;
}

.range-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
}

/* TOTAL PRICE SECTION */
.calc-total {
  margin: 30px 0;
  padding: 20px;
  background: #fff;
  border-left: 4px solid #ed1c24;
  border-radius: 4px;
}

.total-table {
  width: 100%;
  border-collapse: collapse;
}

.total-table tr {
  border: none;
}

.total-table td {
  padding: 8px 0;
  border: none;
  font-size: 16px;
}

.total-table td:first-child {
  font-weight: 600;
  color: #333;
}

.total-price {
  text-align: right;
  font-weight: 700;
  color: #ed1c24;
  font-size: 18px !important;
}

/* SERVICES TABLE */
.calc-services {
  margin: 30px 0;
}

.calc-services .to_work {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calc-services .to_work thead {
  background: #f0f0f0;
  border-bottom: 2px solid #e0e0e0;
}

.calc-services .to_work th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-services .to_work td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #555;
}

.calc-services .to_work tbody tr:hover {
  background: #f9f9f9;
}

.calc-services .to_work tbody tr.total {
  background: #f0f0f0;
  font-weight: 600;
}

.calc-services .to_work tbody tr.total td {
  border: none;
  padding: 12px 15px;
}

.calc-services .to_work .to_price {
  text-align: right;
  font-weight: 600;
  color: #666;
}

/* ACTION SECTION */
.calc-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  width: 100%;
  display: block;
}

.parts-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

.calc-actions .btn {
  display: inline-block;
}

/* ===== ION RANGE SLIDER STYLES ===== */
.option-group .irs-wrap {
  padding-top: 15px;
  position: relative;
  overflow: visible;
}
.pajero-calculator .irs {
  margin-bottom: 16px;
  background: transparent;
  padding-top: 10px;
  overflow: visible;
}
.pajero-calculator .irs-line {
  height: 12px;
  border-radius: 999px;
  background: #d7d7d7;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,.15);
  position: relative;
  z-index: 1;
}
.pajero-calculator .irs-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #ed1c24 0%, #ed1c24 100%);
  height: 12px;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.4);
  position: absolute;
  z-index: 5;
  top: 45px;
}
.pajero-calculator .irs-min,
.pajero-calculator .irs-max {
  display: none;
}
.pajero-calculator .irs-single,
.pajero-calculator .irs-from,
.pajero-calculator .irs-to {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: #ed1c24;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  border: none;
}
.pajero-calculator .irs-single {
  display: block !important;
}
.pajero-calculator .irs-grid .irs-grid-pol {
  background: #e6e6e6;
  width: 2px;
  height: 6px;
}
.pajero-calculator .irs-grid-text {
  color: #4a4a4a;
  font-size: 11px;
  font-weight: 600;
  top: 28px;
}
.pajero-calculator .irs-slider.single {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ed1c24;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

/* Кастомные стили для ionRangeSlider под старый сайт Pajero */
.calc_wrap .irs {
  margin-bottom: 16px;
  background: transparent;
  padding-bottom: 10px;
}
.calc_wrap .irs-line {
  height: 12px;
  border-radius: 999px;
  background: #d7d7d7;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,.15);
}
.calc_wrap .irs-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #ed1c24 0%, #ed1c24 100%);
  height: 12px;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.4);
}
.calc_wrap .irs-min,
.calc_wrap .irs-max {
  display: none;
}
.calc_wrap .irs-single,
.calc_wrap .irs-from,
.calc_wrap .irs-to {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: #ed1c24;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  border: none;
}
.calc_wrap .irs-single {
  animation: slideLabel 0.3s ease;
  font-weight: 600;
}
.calc_wrap .irs-grid .irs-grid-pol {
  background: #e6e6e6;
  width: 2px;
  height: 6px;
}
.calc_wrap .irs-grid-text {
  color: #4a4a4a;
  font-size: 11px;
  font-weight: 600;
  top: 28px;
}
.calc_wrap .irs-slider.single {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ed1c24;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

/* Button in additional content block - on separate line */
.additional-block .btn {
  display: block;
  clear: both;
  margin: 20px auto;
}
