@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap");

.wspm-public-price-chart,
.wspm-public-price-chart * {
  box-sizing: border-box;
  font-family: "Vazirmatn", "IRANSansX", "Dana", "Yekan Bakh", "Segoe UI", Tahoma, Arial, sans-serif;
}

.wspm-public-price-chart {
  --wspm-public-accent: #2563eb;
  --wspm-public-text: #182033;
  --wspm-public-muted: #667085;
  --wspm-public-line: #e4e7ec;
  direction: rtl;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--wspm-public-text);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.wspm-public-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.wspm-public-kicker {
  display: inline-block;
  color: var(--wspm-public-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.wspm-public-price-chart h3 {
  margin: 0;
  color: var(--wspm-public-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.wspm-public-price-chart p {
  margin: 6px 0 0;
  color: var(--wspm-public-muted);
  font-size: 13px;
}

.wspm-public-current {
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 231, 236, 0.9);
  text-align: right;
}

.wspm-public-current span,
.wspm-public-chart-stats span {
  display: block;
  color: var(--wspm-public-muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.wspm-public-current strong,
.wspm-public-chart-stats strong {
  display: block;
  color: var(--wspm-public-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.wspm-public-current .woocommerce-Price-amount,
.wspm-public-chart-stats .woocommerce-Price-amount {
  font-weight: 900;
}

.wspm-public-svg-wrap {
  color: var(--wspm-public-accent);
  width: 100%;
  min-height: 230px;
  border: 1px solid rgba(228, 231, 236, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 12px 6px;
  overflow: hidden;
}

.wspm-public-svg-wrap svg {
  display: block;
  width: 100%;
  height: 210px;
}

.wspm-public-chart-area {
  fill: url(#wspmPublicArea);
  color: var(--wspm-public-accent);
}

.wspm-public-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.wspm-public-chart-dot {
  fill: #ffffff;
  stroke: currentColor;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.wspm-public-chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--wspm-public-muted);
  font-size: 12px;
  padding: 0 4px 4px;
}

.wspm-public-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wspm-public-chart-stats > div {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 231, 236, 0.9);
}

.wspm-public-chart-empty,
.wspm-public-chart-disabled {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(102, 112, 133, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--wspm-public-muted);
}

.wspm-public-chart-empty strong {
  display: block;
  color: var(--wspm-public-text);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .wspm-public-price-chart {
    padding: 16px;
    border-radius: 20px;
  }

  .wspm-public-chart-head {
    flex-direction: column;
  }

  .wspm-public-current {
    width: 100%;
  }

  .wspm-public-chart-stats {
    grid-template-columns: 1fr;
  }
}
