.calculator {
  width: 83%;
  margin: 0 auto;
}

.calculator__block {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.calculator__item {
  min-width: 0;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  margin: 0;
}

.calculator__field_count {
  grid-column: 1/3;
}

.calculator__item-title {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4DD6FF;
  line-height: 26px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  margin: auto;
}

.calculator__select {
  height: 26px;
  box-sizing: border-box;
  flex-grow: 1;
  background: url("../images/icon-arrow-down-bird.svg") no-repeat;
  background-position: calc(100% - 7px);
  background-size: 10px;
  border: 1px solid #8B8B8B;
  border-radius: 99em;
  overflow: hidden;
  margin: 0;
}

.calculator__select::-webkit-inner-spin-button,
.calculator__select::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculator__select-text {
  width: calc(100% - 30px);
  line-height: 26px;
  font-size: 12px;
  font-weight: normal;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 20px 0 10px;
  border: unset;
  display: block;
  padding: unset;
  outline: none;
}

.calculator__select-text::placeholder {
  color: #8B8B8B;
}

.сalculator__range {
  display: flex;
  align-items: center;
}

.сalculator__range-value {
  width: 70px;
  text-align: center;
  background: none;
  margin: 0 10px 0 0;
  padding: 0 5px;
}

.сalculator__range-scroll {
	width: calc(100% - 60px - 10px);
	height: 1px;
	background: #4DD6FF;
  -webkit-appearance: none;
	outline: none;
}

.сalculator__range-scroll::-webkit-slider-thumb {
	width: 13px;
	height: 13px;
	background: #ffffff;
  border: 1px solid #4DD6FF;
	border-radius: 4px;
	background-repeat: no-repeat;
  cursor: pointer;
	transition: all 0.3s;
  -webkit-appearance: none;
}

.сalculator__checkboxes {
  display: flex;
  flex-wrap: wrap;
}

.сalculator__checkbox {
  position: absolute;
  z-index: -1;
  opacity: 0;
  margin: 0 10px 0 0;
}

.сalculator__checkbox:checked + .сalculator__checkbox-title:before {
  background: #4DD6FF;
  border: 1px solid #4DD6FF;
}

.сalculator__checkbox:checked + .сalculator__checkbox-title:after {
	left: 16px;
  background: #ffffff;
}

.сalculator__checkbox-title {
  position: relative;
  line-height: 26px;
  font-size: 12px;
  font-weight: normal;
  text-transform: lowercase;
  cursor: pointer;
  margin: 0 10px 0 0;
  padding: 0 0 0 40px;
}

.сalculator__checkbox-title:before {
  width: 30px;
  height: 16px;
  position: absolute;
  top: 4px;
  left: 0;
  border: 1px solid #8B8B8B;
  border-radius: 99em;
  transition: .2s;
  content: '';
}

.сalculator__checkbox-title:after {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 6px;
  left: 2px;
  border-radius: 99em;
  background: #8B8B8B;
  transition: .2s;
  content: '';
}

.calculator__select:focus, .calculator__select:active {
  border: 1px solid #4DD6FF;
  outline: none;
}

.calculator__select-span {
  text-transform: lowercase;
}

.calculator__total {
  width: 90%;
  margin: 13px auto 27px;
}

.calculator__total-noprice {
  line-height: 18px;
  font-size: 14px;
  font-weight: normal;
  margin: 0 15px 0 0;
}

.calculator__total_sum {
  display: none;
  justify-content: space-between;
}

.calculator__total-title {
  line-height: 16px;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  margin: 0 15px 0 0;
}

.calculator__total-title:last-child {
  margin: 0;
}

.calculator__total-price, .calculator__total-unit {
  line-height: 17px;
  font-size: 20px;
  font-weight: 600;
  color: #009AEB;
  margin: 0;
}

.calculator__order {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 8px;
  border: none;
  margin: 0 0 6px;
  padding: 0;
}

.calculator__input {
  flex-grow: 1;
  position: relative;
}

.calculator__input textarea {
  height: 60px;
}

.calculator__input-required::before {
  content: "*";
  position: absolute;
  left: 8px;
  line-height: 26px;
  font-size: 12px;
  font-weight: 600;
  color: #DE0000;
}

.calculator__input-name, .calculator__input-comment {
  width: 100%;
}

.calculator__order-input {
  width: 100%;
  height: 26px;
  top: 1px;
  left: 1px;
  box-sizing: border-box;
  flex-grow: 1;
  line-height: 26px;
  font-size: 16px;
  font-weight: normal;
  text-align-last: left;
  background: transparent;
  appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #8B8B8B;
  border-radius: 12px;
  margin: auto;
  padding-left: 14px;
}

.calculator__order-input__error {
  border-color: #DE0000;
}

.calculator__order-input:focus, .calculator__order-input:active {
  border: 1px solid #4DD6FF;
  outline: none;
}

.calculator__order-input::placeholder {
  line-height: 26px;
  font-size: 12px;
  font-weight: normal;
  text-transform: lowercase;
  color: #C4C4C4;
}

.calculator__order-text {
  line-height: 20px;
  font-size: 13px;
  font-weight: normal;
  text-align: left;
  color: #DE0000;
  margin: 0;
  padding-left: 10px;
}

.calculator__buttons {
  display: flex;
  margin-top: 20px;
}
