/* ═══════════════════════════════════════════════════════════════
   M2M Price Slider — Frontend
   Pixel-faithful to Figma: Cal Sans / Manrope, rgba card,
   19px tall slider track #E1EDFB / #0069E1, 28px thumb
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Manrope:wght@200..800&display=swap');

/* ── Root ────────────────────────────────────────────────────── */
.m2m-slider-wrap {
  --m2m-blue: #0069E1;
  --m2m-track-bg: #E1EDFB;
  --m2m-black: #000000;
  --m2m-muted: #555;
  --m2m-pill-bg: rgba(255, 255, 255, 0.4);
  --m2m-card-bg: rgba(255, 255, 255, 0.7);

  display: block;
  width: 100%;
  max-width: 675px;
  margin: 40px auto;
  position: relative;
  box-sizing: border-box;
}

.m2m-slider-wrap *,
.m2m-slider-wrap *::before,
.m2m-slider-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Decorative blob ─────────────────────────────────────────── */
.m2m-blob {
  position: absolute;
  width: 70%;
  height: 200px;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) rotate(5deg);
  background: rgba(0, 105, 225, 0.1);
  filter: blur(62px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Outer: scale hint + card side by side ───────────────────── */
.m2m-outer {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* ── Scale hint (left of card) ───────────────────────────────── */
.m2m-scale-hint {
  position: absolute;
  left: -120px;
  z-index: 1;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 8px;
}

.m2m-scale-hint svg {
  position: relative;
  left: 58px;
  z-index: 1;
}

.m2m-scale-text {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
  color: var(--m2m-black);
}

/* ── Card ────────────────────────────────────────────────────── */
.m2m-slider-wrap .m2m-card {
  flex: 1;
  background: var(--m2m-card-bg);
  backdrop-filter: blur(92px);
  border: 1px solid rgba(0, 105, 225, 0.2);
  -webkit-backdrop-filter: blur(92px);
  border-radius: 20px;
  padding: 50px 46px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Title ───────────────────────────────────────────────────── */
.m2m-title {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: 35px;
  line-height: 47px;
  text-align: center;
  color: var(--m2m-black);
}

.m2m-title br {
  display: none;
}

/* ── Inner frame (slider section) ───────────────────────────── */
.m2m-frame {
  position: relative;
  padding-top: 100px;
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  justify-content: center;
}

/* ── Views label ─────────────────────────────────────────────── */
.m2m-views-label {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 23px;
  text-align: center;
  color: var(--m2m-black);
  transform: translateX(-50%);
  transition: transform 0.05s ease-out;
}

/* ── Views pill ──────────────────────────────────────────────── */
.m2m-views-pill {
  position: absolute;
  left: 0;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  min-width: 140px;
  background: var(--m2m-pill-bg);
  backdrop-filter: blur(92px);
  -webkit-backdrop-filter: blur(92px);
  border: 1px solid rgba(0, 105, 225, 0.2);
  border-radius: 14px;
  transform: translateX(-50%);
  transition: transform 0.05s ease-out;
}

.m2m-views-number {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  color: var(--m2m-black);
  white-space: nowrap;
}

/* ── Slider track row ────────────────────────────────────────── */
.m2m-track-row {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Range input — styled to match Figma exactly */
.m2m-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 19px;
  border-radius: 30px;
  outline: none;
  border: none;
  cursor: pointer;
  display: block;
  background: var(--m2m-track-bg);
}

/* Filled portion set via JS background-image */

/* Thumb — WebKit */
.m2m-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 40px;
  background: var(--m2m-blue);
  border: 1px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 105, 225, 0.4);
  transition: box-shadow 0.15s;
}

.m2m-slider::-webkit-slider-thumb:hover,
.m2m-slider::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 5px rgba(0, 105, 225, 0.18), 0 2px 6px rgba(0, 105, 225, 0.4);
}

/* Thumb — Firefox */
.m2m-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 40px;
  background: var(--m2m-blue);
  border: 1px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 105, 225, 0.4);
}

/* Track — Firefox */
.m2m-slider::-moz-range-track {
  height: 19px;
  border-radius: 30px;
  background: transparent;
}

/* ── Est. Revenue label ──────────────────────────────────────── */
.m2m-rev-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 27px;
  text-align: center;
  color: var(--m2m-black);
  display: block;
  width: 100%;
  margin-top: 14px;
}

/* ── Revenue pill ────────────────────────────────────────────── */
.m2m-rev-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 26px;
  width: 250px;
  background: var(--m2m-pill-bg);
  border: 1px solid rgba(0, 105, 225, 0.2);
  border-radius: 14px;
}

.m2m-rev-amount {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 31px;
  text-align: center;
  color: var(--m2m-black);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .m2m-outer {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .m2m-scale-hint {
    left: -30px;
    bottom: 116px;
    gap: 2px;
  }

  .m2m-scale-hint svg {
    width: 34px;
    height: 34px;
    left: -4px;
    /* transform: rotate(-35deg); */
  }

  .m2m-scale-text {
    font-size: 16px;
    line-height: 18px;
  }

  .m2m-slider-wrap .m2m-card {
    padding: 26px 24px;
    width: 100%;
  }

  .m2m-title {
    font-size: 26px !important;
    line-height: 1.3;
  }

  .m2m-title br {
    display: block;
  }

  .m2m-frame {
    min-height: 260px;
    padding-top: 68px;
  }

  .m2m-rev-pill {
    padding: 12px 20px;
    width: 190px;
  }

  .m2m-rev-amount {
    font-size: 22px;
  }

  .m2m-views-pill {
    padding: 12px 16px;
    min-width: 130px;
  }

  .m2m-views-number {
    font-size: 20px;
  }

  .m2m-rev-label {
    font-size: 18px;
    line-height: 25px;
  }

  .m2m-slider {
    height: 16px;
  }

  .m2m-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  .m2m-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}