/* Zeestr Donation Meter (GiveWP) – self-contained, namespaced */
/* Base palette inspired by Zeestr logo */
.zeestr-dm {
  --dm-track-bg: #ffffff;
  --dm-track-border: #ffffff;
  --dm-fill-match: #f7c757;  /* golden (with match)  */
  --dm-fill-actual: #2a7de1; /* blue (actual raised) */
  --dm-radius: 30px;
  --dm-text: #ffffff;
  font-family: "Oakes Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: 15px;
  color: var(--dm-text);
}

/* Goal row */
.zeestr-dm__goal-row {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.zeestr-dm__left {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.zeestr-dm__income {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 600;
}

.zeestr-dm__goal {
  font-size: 18px;
  font-weight: 400;
}

.zeestr-dm__percent {
  font-size: 18px;
}

/* Track */
.zeestr-dm__track {
  position: relative;
  height: 21px;
  background: var(--dm-track-bg);
  border-radius: var(--dm-radius);
  border: 3px solid var(--dm-track-border);
  overflow: hidden;
}

/* With-match fill (bottom, wider) */
.zeestr-dm__fill--match {
  position: absolute;
  inset: 0 auto 0 0;
  background-color: var(--dm-fill-match);
  border-radius: var(--dm-radius);
  display: inline-block;
  height: 100%;
  z-index: 2;
}

/* Actual raised fill (top, narrower) */
.zeestr-dm__fill {
  position: absolute;
  top: 17.5%;
  left: 0.5%;
  height: 67%;
  max-width: 99.2%;
  background-color: var(--dm-fill-actual);
  border-radius: var(--dm-radius);
  display: inline-block;
  z-index: 3;
}

/* Small variant (if you reuse .donation-meter-sm somewhere) */
.donation-meter-sm .zeestr-dm__track {
  height: 13px;
  border-width: 2px;
}

.donation-meter-sm .zeestr-dm__income {
  font-size: 20px;
}

.donation-meter-sm .zeestr-dm__goal {
  font-size: 12px;
}

.donation-meter-sm .zeestr-dm__percent {
  font-size: 12px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .zeestr-dm {
    margin-top: 0;
  }
  .zeestr-dm__income {
    font-size: 32px;
  }
  .zeestr-dm__goal,
  .zeestr-dm__percent {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .zeestr-dm {
    margin-top: 25px;
  }
  .zeestr-dm__income {
    font-size: 28px;
  }
}

@media (max-width: 479px) {
  .zeestr-dm__income {
    font-size: 26px;
  }
  .zeestr-dm__goal,
  .zeestr-dm__percent {
    font-size: 13px;
  }
}
