.compare {
  position: relative;
  margin: 0 auto;
  /* max-width: 1140px; */
  width: 100%;
  overflow: hidden;
}
.compare .text-formatted {
  width: 100%;
  max-width: none !important;
}

.compare__slider {
  position: relative;
  margin-bottom: 20px;
  z-index: 1;
}

.compare:not(:last-child) {
  margin-bottom: 20px;
}

.compare-wrapper .text-formatted p:not(:last-child) {
  margin-bottom: 8px;
}

.compare__image img {
  height: 100%;
  width: 100%;
  max-width: unset;
}

.compare__range {
  position: absolute;
  top: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: rgba(242, 242, 242, 0);
  outline: none;
  transition: all 0.2s;
  z-index: 2;
}

.compare__range:hover {
  background: rgba(242, 242, 242, 0);
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  min-height: 100%;
  height: 100%;
  background: #f9f9f9;
  cursor: pointer;
}

.compare__range::-webkit-slider-runnable-track {
  height: 100%;
}

.compare__range::-moz-range-thumb {
  width: 6px;
  height: 100px;
  background: #ebedf6;
  cursor: pointer;
}

.compare__button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f9f9f9;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}
.compare__button svg path {
  stroke: #b04563;
}

.compare__background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 1;
}
.compare__background img {
  max-width: none;
}

.compare__mark {
  color: #ffffff;
  position: absolute;
  top: 20px;
  left: 10px;
  padding: 3px 8px;
  background-color: #b04563;
  z-index: 1;
}
.compare__mark--after {
  left: auto;
  right: 10px;
}