/* Precious Metals Ticker - metals-ticker.css */
/* Upload to: https://goldco.com/wp-content/themes/hello-elementor-goldco/stockticker/metals-ticker.css */

/* ============================================================
   BASE STYLES (Desktop)
   ============================================================ */

.pm-ticker-wrap {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1240px;
  border-left: none;
  border-right: none;
  border-radius: 0px !important;
}

.pm-ticker-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0px !important;
  overflow: visible;
  height: 44px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pm-ticker-scroll {
  flex: 1;
  overflow: hidden;
  height: 44px;
  position: relative;
}

.pm-ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
}

.pm-metal-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  height: 44px;
  border-right: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.pm-metal-item:hover { background: #f9fafb; }

.pm-metal-name {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.03em;
}

.pm-metal-price {
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.pm-metal-change {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 0;
  background: none;
}

.pm-up   { color: #08723c; }
.pm-down { color: #08723c; }
.pm-flat { color: #6b7280; }

/* Refresh button hidden — remove display:none to re-enable */
.pm-ticker-refresh { display: none; }

.pm-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.pm-refresh-btn:hover { background: #f3f4f6; color: #111827; }
.pm-spinning { animation: pm-spin 1s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }

/* Status bar hidden — change display:none to display:flex to re-enable */
.pm-status-bar {
  display: none;
  justify-content: space-between;
  margin-top: 5px;
}

.pm-status-text {
  font-size: 11px;
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pm-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1D9E75;
  margin-right: 5px;
  animation: pm-pulse 2s ease-in-out infinite;
}

@keyframes pm-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.pm-error-dot { background: #D85A30; animation: none; }


/* ============================================================
   TABLET (max-width: 1024px)
   ============================================================ */

@media only screen and (min-device-width: 769px) and (max-device-width: 1024px){

  .pm-ticker-wrap {
    max-width: 100%;
    padding: 0;
	  border-top: 1px solid #e5e7eb;
  }

  .pm-ticker-bar {
    height: 50px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .pm-ticker-scroll { height: 50px; }

  .pm-metal-item {
    height: 50px;
    padding: 0 22px;
    gap: 7px;
  }

  .pm-metal-name   { font-size: 14px; font-weight: 700; }
  .pm-metal-price  { font-size: 13px; }
  .pm-metal-change { font-size: 13px; }

}


/* ============================================================
   MOBILE (max-width: 768px)
   ============================================================ */

@media only screen and (min-device-width: 501px) and (max-device-width: 768px){

  .pm-ticker-wrap { max-width: 100%; padding: 0;   border-top: 1px solid #e5e7eb;}

  .pm-ticker-bar {
    height: 56px;
    border-radius: 0;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .pm-ticker-scroll { height: 56px; }

  .pm-metal-item {
    height: 56px;
    padding: 0 20px;
    gap: 7px;
    border-right-color: #f0f0f0;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  }

  .pm-metal-name   { font-size: 14px; font-weight: 700; }
  .pm-metal-price  { font-size: 13px; }
  .pm-metal-change { font-size: 13px; }

}


/* ============================================================
   SMALL MOBILE (max-width: 500px)
   ============================================================ */

@media (max-width: 500px) {
	
 .pm-ticker-wrap { max-width: 100%; padding: 0; margin: 0;  border: 1px solid #e5e7eb !important; }

  .pm-ticker-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb !important;
    border-radius: 0px;
    overflow: hidden;
    height: 42px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  .pm-ticker-scroll { height: 42px; } /* FIX 2: matched to bar height — was 52px */

  .pm-metal-item {
    height: 42px;                      /* FIX 2: matched to bar height — was 52px */
    padding: 0 16px;
    gap: 6px;
  }

  .pm-metal-name   { font-size: 14px; font-weight: 700; }
  .pm-metal-price  { font-size: 13px; }
  .pm-metal-change { font-size: 13px; }

}