/**
 * Price Ticker Shortcode Styles
 * [nh_silver_price_ticker] & [nh_silver_purity_ticker]
 */

/* ==================== Wrapper ==================== */
.nh-price-ticker-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  direction: rtl;
  font-family: inherit;
}

.nh-price-ticker-single {
  justify-content: flex-start;
}

/* ==================== Item ==================== */
.nh-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.4;
}

/* ==================== Label ==================== */
.nh-ticker-label {
  color: inherit;
}

/* ==================== Price ==================== */
.nh-ticker-item.nh-ticker-positive .nh-ticker-price {
  color: #16a34a;
}

.nh-ticker-item.nh-ticker-negative .nh-ticker-price {
  color: #dc2626;
}

.nh-ticker-item.nh-ticker-neutral .nh-ticker-price {
  color: inherit;
  font-weight: 600;
}

/* ==================== Separator Icon ==================== */
.nh-ticker-sep {
  height: 16px;
  flex-shrink: 0;
}

/* ==================== Change Percentage ==================== */
.nh-ticker-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nh-ticker-item.nh-ticker-positive .nh-ticker-change {
  color: #16a34a;
}

.nh-ticker-item.nh-ticker-negative .nh-ticker-change {
  color: #dc2626;
}

.nh-ticker-item.nh-ticker-neutral .nh-ticker-change {
  color: inherit;
}

/* ==================== Arrow Icon ==================== */
.nh-ticker-arrow {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==================== [nh_silver_price_change] ==================== */
/* قیمت سمت راست، درصد تغییر سمت چپ (space-between) */
.nh-price-change {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  direction: rtl;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.nh-price-change-price {
  white-space: nowrap;
}

.nh-price-change-percent {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nh-price-change-neutral .nh-price-change-percent {
  color: inherit;
}

.nh-price-change-arrow {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .nh-price-ticker-wrap {
    gap: 8px;
  }

  .nh-ticker-item {
    font-size: 13px;
  }

  .nh-price-change {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nh-price-ticker-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
