.calc-wrap *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
}
.calc-wrap {
  font-family: "Georgia";
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;

  margin-bottom: 100px;
}
.calc-wrap img{
  max-width: 100%;
}
.calc-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px;
}

.calc-wrap h2{
  text-align: center;
  font-size: 34px;
  padding: 8px;
  background-color: rgba(126, 118, 95, 0.25);
  border-radius: 5px;
  border-width: 3px;
  border-style: double;
  border-color: rgb(35, 251, 143);
  box-shadow: 2px 2px 24px 6px rgba(111, 231, 207, 0.5);
  margin-bottom: 10px;
}
.calc-wrap .proces{
  padding: 10px;
  background-color: rgba(244, 244, 236, 0.25);
  border-radius: 10px;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.calc-wrap .proces .item{
  padding: 5px;
  text-align: center;
  font-size: 18px;
  font-family: 'Open Sans', sans-serif;
}
.calc-wrap .proces .item b,
.calc-wrap .proces .item strike {
  font-size: inherit;
  font-family: inherit;
}

.calc-block .roulette-img{
  text-align: center;
  padding: 5px;
}
.calc-block .roulette-img img{
  max-width: 100%;
}


.calc-wrap .types-wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  border-radius: 12px;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
  padding: 16px 10px;
  margin-bottom: 20px;
}
.calc-wrap .types-wrap .item{
  flex: 1;
  min-width: 26%;
}
.calc-wrap .types-wrap .name{
 text-align: center;
 padding: 10px;
 font-size: 14px;
 font-family: 'Open Sans', sans-serif;
}
.calc-wrap .types-wrap label{
  position: relative;
  display: block;
  cursor: pointer;
  height: 218px;
  border-radius: 50px;
  overflow: hidden;
}
.calc-wrap .types-wrap label img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.calc-wrap .types-wrap input{
  width: 0;
  height: 0;
  position: absolute;
}
.calc-wrap .types-wrap input:checked ~ .tick{
  opacity: 1;
}
.calc-wrap .types-wrap .tick{
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 112, 185, 0.5);
  opacity: 0;
  transition: opacity .3s;
}
.calc-wrap .types-wrap .tick svg{
  width: 26px;
  height: 26px;
}


/* Custom range */
.calc-wrap .ranges-wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  user-select: none;
  margin-bottom: 30px;
}

.calc-wrap .ranges-wrap .wrapper {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
}

.calc-wrap .range {
  position: relative;
  width: 100%;
  max-width: 90%;
  background: #fff;
  min-height: 24px;
  padding: 24px 0 10px 0; 
}

.calc-wrap .ranges-wrap .wrapper .label {
  color: #4b4949; 
  margin-bottom: 7px;
  font-size: 13px;
}

.calc-wrap input[type="range"] {
  /* removing default appearance */
  -webkit-appearance: none;
  appearance: none; 
  /* creating a custom design */
  width: 100%;
  cursor: pointer;
  outline: none;
  border-radius: 15px;  
  /* New additions */
  height: 3px;
  background: #ccc;
  z-index: 0;
}
.calc-wrap input[type="range"]::before {
  content: attr(min);
}
.calc-wrap input[type="range"]::after {
  content: attr(max);
}
.calc-wrap input[type="range"]::before,
.calc-wrap input[type="range"]::after {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #E0E0E0;
  padding: 1px 3px;
  border-radius: 2px;
}
.calc-wrap input[type="range"]::after {
  right: 0;
}

/* Thumb: webkit */
.calc-wrap input[type="range"]::-webkit-slider-thumb {
  /* removing default appearance */
  -webkit-appearance: none;
  appearance: none; 
  /* creating a custom design */
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 3px solid #1A70B9;
  border-radius: 50%;
  position: relative;
}

/* Thumb: Firefox */
.calc-wrap input[type="range"]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 3px solid #1A70B9;
  border-radius: 50%;
}

.calc-wrap .number--label {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 16px;
	color: #fff;
  background: #1A70B9;
  padding: 1px 2px;
  min-width: 22px;
  text-align: center;
  border-radius: 3px;
  margin: 0 2px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  z-index: 1;
}
.calc-wrap .number--label::after {
  content: '';
  background: transparent;
  width: 5px;
  height: 10px;
  display: block;
  margin: 0 auto -11px;
  border-right: 5px solid #1a70b900;
  border-bottom: 5px solid #1a70b900;
  border-radius: 3px;
  transform: rotate(45deg) translateY(-5px) translateX(-5px);  
}


/* Total */
.calc-wrap .total-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.calc-wrap .total-wrap .total-label {
  font-size: 13px;
}
.calc-wrap .total-wrap .carpet-total {
  font-size: 21px;
  font-family: 'Open Sans', sans-serif;
  margin-left: auto;
  white-space: nowrap;
}


@media (max-width: 700px)  {
  .calc-wrap h2{
    font-size: 24px;
  }   
  .calc-wrap .proces .item{
    font-size: 14px;
  }
  .calc-wrap .types-wrap{
    gap: 12px;
  }
  .calc-wrap .types-wrap .item{
    flex: auto;
    display: flex;
    align-items: center;
    min-width: 80%;
  }
  .calc-wrap .types-wrap .item label{
    width: 45%;
    height: 100px;
    border-radius: 20px;
  }
  .calc-wrap .types-wrap .item .name{
    width: 55%;
    text-align: left;
    padding-left: 15px;
  }
  .calc-wrap .ranges-wrap .wrapper {
    flex: auto;
  }
  .calc-wrap .range {
    max-width: none;
  }
}