/* Monthly load mockup — blurred preview card (Figma Monthly Load 687:22237) */
/* Surface sizing comes from `.media-frame__surface` (absolute, inset: 0). */

.sw-monthly-preview {
  /* Load 2 → near the right (same formula as JS: (12-n)/11) */
  --sw-monthly-pct: 90.90909091%;
  position: absolute;
  z-index: 2;
  left: clamp(10px, 3.6vw, 15px);
  right: clamp(10px, 3.6vw, 15px);
  bottom: clamp(10px, 3.6vw, 15px);
  border-radius: clamp(22px, 5vw, 32px);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.sw-monthly-preview__backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(199, 235, 242, 0.64);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sw-monthly-preview__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 4px 4px 11px rgba(255, 255, 255, 0.63);
  z-index: 2;
}

.sw-monthly-preview__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: clamp(12px, 3vw, 15px);
}

/* Slider — LTR geometry matches Figma track */
.sw-monthly-preview__slider {
  position: relative;
  height: 33px;
  direction: ltr;
}

.sw-monthly-preview__slider-rail {
  position: relative;
  height: 33px;
  margin-inline: 14px;
}

.sw-monthly-preview__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 100px;
  background: var(--color-cyan-light);
  overflow: hidden;
}

/* White fill from the left up to the thumb; fewer loads stay toward the right along the 12-step scale */
.sw-monthly-preview__track-white {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sw-monthly-pct, 90.90909091%);
  max-width: 100%;
  background: var(--color-white);
  border-radius: 100px 0 0 100px;
  transition: width 0.22s ease-out;
}

.sw-monthly-preview__thumb {
  position: absolute;
  top: 0;
  left: var(--sw-monthly-pct, 90.90909091%);
  width: 33px;
  height: 33px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid var(--color-black);
  background: var(--color-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: left 0.22s ease-out;
}

.sw-monthly-preview__thumb-icon {
  display: block;
  width: 22px;
  height: auto;
  max-height: 15px;
  object-fit: contain;
}

/* Stats row — תאריך סיום | divider | מספר טעינות */
.sw-monthly-preview__stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 42px);
  direction: rtl;
}

.sw-monthly-preview__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: min(100px, 42%);
  flex-shrink: 0;
}

.sw-monthly-preview__label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-black);
  text-align: center;
}

.sw-monthly-preview__value {
  margin: 0;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-black);
  text-align: center;
  box-sizing: border-box;
}

.sw-monthly-preview__divider {
  width: 1px;
  height: 41px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .sw-monthly-preview__track-white,
  .sw-monthly-preview__thumb {
    transition: none;
  }
}

