@font-face {
  font-family: 'StudioSans';
  font-weight: 100;
  src: url('../../fonts/StudioSans/StudioSansExtraLight.otf');
}

@font-face {
  font-family: 'StudioSans';
  font-weight: 300;
  src: url('../../fonts/StudioSans/StudioSansLight.otf');
}

@font-face {
  font-family: 'StudioSans';
  font-weight: normal;
  src: url('../../fonts/StudioSans/StudioSans.otf');
}

@font-face {
  font-family: 'StudioSans';
  font-weight: 600;
  src: url('../../fonts/StudioSans/StudioSansBold.otf');
}

@font-face {
  font-family: 'StudioSans';
  font-weight: 900;
  src: url('../../fonts/StudioSans/StudioSansExtraBold.otf');
}

.calc-container {
  margin-top: 45px;
  font-family: 'StudioSans';
}

.calc-container .select-row {
  flex-direction: column;
  align-items: center;
  min-height: 200px;
}

.calc-container .select-row > div {
  margin-bottom: 25px;
}

.calc-container .select-row label {
  width: 140px;
}

.range-row .col-lg-8 {
  position: relative;
}

.calc-container .range-row {
  justify-content: center;
  min-height: 160px;
}

.calc-container .range-row input[type='range'] {
  width: 100%;
}

.calc-container .radio-row {
  justify-content: center;
}

.calc-container .radio-row .radio-input-block {
  display: flex;
  margin-left: 30px;
}

select {
  color: #555555;
  font-weight: normal;
}

.calc-container .radio-row .radio-input-block > div {
  margin-right: 22px;
}

.calc-container .radio-row > div {
  display: flex;
  min-height: 100px;
}

.calc-container .results-row {
  justify-content: center;
  border-top: 1px solid #1f2c5d4d;
  border-bottom: 1px solid #1f2c5d4d;
  padding-bottom: 20px;
  padding-top: 20px;
}

.calc-container .results-row .col-results > div {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.calc-container .results-row .col-results > div > p {
  width: 150px;
  margin-bottom: 0;
}

.calc-container .results-row .col-results .result-span {
  color: #1f2c5d;
  font-size: 20px;
  margin-right: 45px;
  font-weight: 600;
  margin-left: 24px;
  width: 80px;
}

[data-block-water-speed] {
  position: relative;
}

[data-block-water-speed] > div {
  display: flex;
  align-items: center;
}

[data-block-water-speed] > div > p {
  margin-bottom: 0;
}

[data-block-water-speed] .result-block > p {
  width: 150px;
}

[data-block-water-speed].show-warning .warning-block {
  opacity: 1;
  z-index: 1;
}

[data-block-water-speed].show-warning .result-span {
  color: #fb0000 !important;
}

.warning-block {
  width: 415px;
  position: absolute;
  right: -20%;
  background: #1f2c5d;
  padding: 5px;
  border-radius: 13px;
  opacity: 0;
  z-index: -1;
}

.warning-block:after {
  content: '';
  width: 20px;
  height: 20px;
  background: #1f2c5d;
  position: absolute;
  left: -10px;
  z-index: -1;
  clip-path: polygon(55% 0, 100% 0, 100% 20%, 100% 80%, 100% 100%, 56% 100%, 0% 50%);
}

.warning-block > p {
  margin-bottom: 0;
  font-size: 13px;
  color: #ffff;
}

.range-value-block {
  position: absolute;
  top: -60px;
  left: -110px;
  background-color: #ffffff;
  z-index: 3;
  border: 1px #ccc solid;
  padding: 2px 4px;
  max-width: 220px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 30%), 0 3px 8px rgb(0 0 0 / 20%);
  text-align: center;
  -webkit-border--radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  height: 42px;
  width: 100%;
  padding-top: 6px;
}

.range-value-block input {
  width: 60px;
  height: 20px;
  padding: 2px 3px;
  text-align: center;
  color: #182c5a;
  font-weight: bold;
}

/*---------input range----------*/
#rangeInput::-webkit-slider-thumb {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #efeded;
  border-radius: 50%;
  border: 5px solid #1f2c5d;
  cursor: pointer;
  z-index: 2;
}

#rangeInput::-moz-range-thumb {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #efeded;
  border-radius: 50%;
  border: 5px solid #1f2c5d;
  cursor: pointer;
  z-index: 2;
}

#rangeInput {
  width: 100%;
  height: 15px;
  outline: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, rgba(31, 44, 93, 0.96) 0%, #5f5f5f1a 0%);
  border-radius: 20px;
  border: 1px solid #1f2c5d66;
  z-index: 2;
  position: relative;
}

[data-input-range] {
  position: relative;
}

[data-input-range] [data-input-range-labels] > .label {
  width: 1px;
  height: 9px;
  background: black;
  display: inline-block;
}

[data-input-range] [data-input-range-labels] > .label-marker {
  display: flex;
  width: 1px;
  flex-direction: column-reverse;
  align-items: center;
  font-size: 10px;
}

[data-input-range] [data-input-range-labels] > .label-marker:after {
  content: '';
  display: block;
  height: 20px;
  width: 1px;
  background: black;
}

[data-input-range] [data-input-range-labels] {
  position: absolute;
  display: flex;
  width: 100%;
  bottom: -18px;
  justify-content: space-around;
  z-index: 1;
}

/*-----------------------------*/
@media (max-width: 1000px) {
  .warning-block {
    right: 0px;
  }
}

@media (max-width: 840px) {
  [data-block-water-speed] {
    flex-direction: column-reverse;
    align-items: flex-start !important;
  }

  [data-block-water-speed] .warning-block {
    right: 0;
    position: relative;
    margin-bottom: 20px;
  }

  [data-block-water-speed] .warning-block:after {
    width: 34px;
    left: 33%;
    bottom: -24%;
    clip-path: polygon(100% 0, 0 0, 51% 100%);
  }

  .calc-container .results-row .col-results > div > p,
  [data-block-water-speed] .result-block > p {
    width: auto;
  }

  .calc-container .select-row {
    min-height: 140px;
  }
}

@media (max-width: 788px) {
  .range-value-block {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 500px) {
  .warning-block,
  select {
    width: 100%;
  }
}

@media (max-width: 410px) {
  .calc-container .radio-row > div {
    display: block;
  }

  .calc-container .radio-row .radio-input-block {
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  [data-block-water-speed] > div > p,
  .calc-container .results-row .col-results > div > p {
    font-size: 14px;
  }

  .calc-container .results-row .col-results .result-span {
    font-size: 15px;
    width: 60px;
  }
}
