/* Four fixed quotes. No animation or repeated track. */
.ogg-metal-ticker{
  --ogg-gold:#c3a161;
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  background:transparent;
  color:#ede5d5;
  font-family:inherit;
  font-size:14px;
  line-height:1.4;
}
.ogg-metal-ticker *, .ogg-metal-ticker *::before, .ogg-metal-ticker *::after {box-sizing:border-box}
/* Each metal retains its intrinsic width: never squeeze the name/price/change over another metal. */
.ogg-metal-ticker .ogg-ticker-list{
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.ogg-metal-ticker .ogg-ticker-list::-webkit-scrollbar{display:none}
.ogg-metal-ticker .ogg-quote{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:max-content;
  min-width:max-content;
  white-space:nowrap;
  border:0;
  padding:4px 3px 4px 0;
}
.ogg-metal-ticker .ogg-quote:last-child{border-right:0;padding-right:0}
.ogg-metal-ticker .ogg-quote-name{color:var(--ogg-gold);font-weight:600;white-space:nowrap}
.ogg-metal-ticker .ogg-quote-price{color:#f5f0e6;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ogg-metal-ticker .ogg-quote-change{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}
.ogg-metal-ticker .ogg-change-up{color:#40ca83}
.ogg-metal-ticker .ogg-change-down{color:#f17d7d}
.ogg-metal-ticker .ogg-change-flat{color:#bcb7ab}
.ogg-metal-ticker .ogg-change-na:empty{display:none}
.ogg-metal-ticker .ogg-ticker-credit{
  flex:0 0 auto;
  font-size:9px;
  line-height:1.2;
  color:#9b947f!important;
  opacity:.85;
  text-decoration:underline!important;
  white-space:nowrap;
}
@media(max-width:1300px){
  .ogg-metal-ticker{font-size:14px;gap:6px}
  .ogg-metal-ticker .ogg-ticker-list{gap:4px}
  .ogg-metal-ticker .ogg-quote{gap:3px;padding-right:2px}
  .ogg-metal-ticker .ogg-quote-change{font-size:12px}
  .ogg-metal-ticker .ogg-ticker-credit{font-size:8px}
}
@media(max-width:1050px){
  .ogg-metal-ticker{display:block}
  .ogg-metal-ticker .ogg-ticker-list{justify-content:flex-start;gap:0}
  .ogg-metal-ticker .ogg-quote{padding:4px 14px}
  .ogg-metal-ticker .ogg-ticker-credit{display:block;text-align:right;padding:1px 12px 2px;font-size:9px}
}
/* Prevent old ticker animation CSS from affecting this fixed version. */
.ogg-metal-ticker .ogg-ticker-list,.ogg-metal-ticker .ogg-quote{animation:none!important;transform:none!important}

/* v2.2.4 – status dot, independently updated, no ticker animation */
.ogg-metal-ticker .ogg-ticker-dot {
  display:inline-block;
  width:8px;
  height:8px;
  min-width:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#899199;
  margin-right:1px;
  vertical-align:middle;
}
.ogg-metal-ticker .ogg-ticker-dot[data-market-state="open"] {background:#22b676;}
.ogg-metal-ticker .ogg-ticker-dot[data-market-state="closed"] {background:#e65358;}
.ogg-metal-ticker .ogg-ticker-dot[data-market-state="unavailable"] {background:#899199;}
@media(max-width:1050px) {
  .ogg-metal-ticker { display:flex; align-items:center; }
  .ogg-metal-ticker .ogg-ticker-dot { margin-left:2px; }
  .ogg-metal-ticker .ogg-ticker-list {flex:1 1 auto;min-width:0;}
  .ogg-metal-ticker .ogg-ticker-credit {flex:0 0 auto;white-space:nowrap;}
}
@media(max-width:540px) {
  .ogg-metal-ticker .ogg-ticker-credit {display:none;}
}

/* v2.2.9: fixed layer ordering; small, GPU-friendly outline pulse.
   The pulse sits ABOVE the dot background (no negative z-index),
   and only transform/opacity animate. */
.ogg-metal-ticker .ogg-ticker-dot {
  position:relative;
  overflow:visible;
  isolation:auto;
  box-shadow:none;
  animation:none;
}
.ogg-metal-ticker .ogg-ticker-dot::after {
  content:"";
  position:absolute;
  display:block;
  z-index:1;
  left:50%;
  top:50%;
  width:18px;
  height:18px;
  margin-left:-9px;
  margin-top:-9px;
  border:2px solid rgba(34,182,118,.75);
  border-radius:50%;
  background:transparent;
  opacity:0;
  transform:scale(.52);
  transform-origin:center center;
  pointer-events:none;
  animation:none;
  will-change:transform,opacity;
}
.ogg-metal-ticker .ogg-ticker-dot[data-market-state="open"]::after {
  animation:ogg-live-halo-229 1.55s ease-out infinite;
}
@keyframes ogg-live-halo-229 {
  0%   {transform:scale(.52); opacity:.62;}
  70%  {transform:scale(1); opacity:.10;}
  100% {transform:scale(1); opacity:0;}
}
.ogg-metal-ticker .ogg-ticker-dot[data-market-state="closed"]::after,
.ogg-metal-ticker .ogg-ticker-dot[data-market-state="unavailable"]::after {
  animation:none;
  opacity:0;
}
@media (prefers-reduced-motion:reduce) {
  .ogg-metal-ticker .ogg-ticker-dot[data-market-state="open"]::after {
    animation:none;
    opacity:.23;
    transform:scale(.85);
  }
}

/* v2.2.12: keep original readable type and a single line at every size.
   Rather than reducing font sizes when space runs out, allow manual horizontal
   scrolling inside the quote rail. No decorative vertical dividers. */
.ogg-metal-ticker .ogg-quote,
.ogg-metal-ticker .ogg-quote-name,
.ogg-metal-ticker .ogg-quote-price,
.ogg-metal-ticker .ogg-quote-change {
  white-space:nowrap;
  flex-wrap:nowrap;
}
.ogg-metal-ticker .ogg-quote {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  border:0;
  border-right:0;
}
.ogg-metal-ticker .ogg-ticker-list { overflow-x:auto; overflow-y:hidden; }
@media(max-width:1050px){
  .ogg-metal-ticker .ogg-ticker-list{justify-content:flex-start;gap:5px;}
  .ogg-metal-ticker .ogg-quote{padding:4px 7px;}
}

/* v2.2.13: preserve one-line 14px text and the approved green pulse.
   The source credit must not consume a metal quote's horizontal width. */
.ogg-metal-ticker { gap:12px; overflow:visible; }
.ogg-metal-ticker .ogg-ticker-list { gap:14px; justify-content:space-between; }
.ogg-metal-ticker .ogg-quote { gap:5px; padding-right:0; }
.ogg-metal-ticker .ogg-ticker-credit {
  position:absolute;
  right:0;
  top:calc(100% - 2px);
  font-size:8px;
  line-height:1;
  z-index:2;
  pointer-events:auto;
}
@media(max-width:1300px){
  .ogg-metal-ticker{gap:10px}
  .ogg-metal-ticker .ogg-ticker-list{gap:12px}
  .ogg-metal-ticker .ogg-quote{gap:4px;padding-right:0}
}
@media(max-width:1050px){
  .ogg-metal-ticker .ogg-ticker-list{gap:12px;justify-content:flex-start}
  .ogg-metal-ticker .ogg-quote{padding:4px 0}
  .ogg-metal-ticker .ogg-ticker-credit{display:none}
}


/* v2.2.20: mobile-only, two lines per metal; preserve desktop exactly. */
@media screen and (max-width:767px) {
  /* The Elementor shortcode widget uses desktop 200px margin / 63.5% width.
     Reset ONLY the widget that actually contains this ticker. */
  body .elementor-widget-shortcode:has(.ogg-metal-ticker) {
    margin-left:0 !important;
    margin-right:0 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex-basis:100% !important;
  }
  body .elementor-widget-shortcode:has(.ogg-metal-ticker) > .elementor-widget-container {
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
  }
  body .ogg-metal-ticker {
    display:flex !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    align-items:center !important;
    gap:5px !important;
  }
  body .ogg-metal-ticker .ogg-ticker-dot {
    flex:0 0 7px !important;
    width:7px !important;
    min-width:7px !important;
    height:7px !important;
    margin:0 2px 0 0 !important;
  }
  body .ogg-metal-ticker .ogg-ticker-list {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    gap:2px !important;
    justify-content:stretch !important;
    align-items:center !important;
    overflow:visible !important;
    animation:none !important;
    transform:none !important;
  }
  body .ogg-metal-ticker .ogg-quote {
    display:grid !important;
    grid-template-columns:max-content max-content !important;
    grid-template-rows:auto auto !important;
    justify-content:center !important;
    align-items:center !important;
    column-gap:2px !important;
    row-gap:3px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:4px 0 !important;
    border:0 !important;
    text-align:center !important;
    animation:none !important;
    transform:none !important;
    white-space:nowrap !important;
  }
  body .ogg-metal-ticker .ogg-quote-name,
  body .ogg-metal-ticker .ogg-quote-price {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:clamp(8px,2.12vw,11px) !important;
    line-height:1.2 !important;
    font-weight:600 !important;
    white-space:nowrap !important;
  }
  body .ogg-metal-ticker .ogg-quote-name {grid-column:1 !important;grid-row:1 !important;}
  body .ogg-metal-ticker .ogg-quote-price {grid-column:2 !important;grid-row:1 !important;}
  body .ogg-metal-ticker .ogg-quote-change {
    display:block !important;
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    margin:0 !important;
    padding:0 !important;
    font-size:clamp(8px,1.95vw,10px) !important;
    font-weight:500 !important;
    line-height:1.2 !important;
    text-align:center !important;
    white-space:nowrap !important;
  }
  body .ogg-metal-ticker .ogg-quote-change:empty {visibility:hidden !important;}
  body .ogg-metal-ticker .ogg-ticker-credit,
  body .ogg-metal-ticker .ogg-mobile-viewport {display:none !important;}
}

/* v2.2.21: real mobile layout, independent of Elementor content widget width.
   Desktop unchanged. The mobile class is also applied by ResizeObserver as a
   fallback for Elementor header breakpoints and delayed widget rendering. */
body .ogg-metal-ticker.ogg-mobile-grid,
body .elementor-widget-shortcode:has(> .elementor-widget-container .ogg-mobile-grid) {
  max-width:none !important;
}
body .elementor-widget-shortcode.ogg-mobile-ticker-widget {
  margin-left:0 !important;
  margin-right:0 !important;
  width:calc(100vw - 32px) !important;
  max-width:calc(100vw - 32px) !important;
  min-width:0 !important;
  flex-basis:auto !important;
}
body .elementor-widget-shortcode.ogg-mobile-ticker-widget > .elementor-widget-container {
  width:100% !important;
  max-width:none !important;
}
body .ogg-metal-ticker.ogg-mobile-grid {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:5px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-ticker-list {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:2px !important;
  flex:1 1 auto !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  white-space:normal !important;
  animation:none !important;
  transform:none !important;
}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote {
  display:grid !important;
  grid-template-columns:minmax(0,max-content) minmax(0,max-content) !important;
  grid-template-rows:auto auto !important;
  column-gap:2px !important;
  row-gap:3px !important;
  justify-content:center !important;
  align-items:center !important;
  justify-items:center !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:3px 0 !important;
  border:0 !important;
  white-space:normal !important;
  animation:none !important;
  transform:none !important;
}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-name,
body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-price {
  display:block !important;
  font-size:clamp(8px,2.15vw,11px) !important;
  font-weight:600 !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
  margin:0 !important;
  padding:0 !important;
}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-name {grid-column:1 !important; grid-row:1 !important;}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-price {grid-column:2 !important; grid-row:1 !important;}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-change {
  display:block !important;
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  font-size:clamp(8px,2.05vw,10px) !important;
  font-weight:500 !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
  text-align:center !important;
  margin:0 !important;
  padding:0 !important;
}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-ticker-dot {flex:0 0 7px !important; width:7px !important; min-width:7px !important; height:7px !important;}
body .ogg-metal-ticker.ogg-mobile-grid .ogg-ticker-credit,
body .ogg-metal-ticker.ogg-mobile-grid .ogg-mobile-viewport {display:none !important;}

/* v2.2.22: approved mobile 4-column grid; each metal now has THREE distinct
   rows: metal, quote, and daily change. Desktop is completely unchanged. */
@media screen and (max-width:767px) {
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-ticker-list {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    column-gap:7px !important;
    row-gap:0 !important;
  }
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    row-gap:3px !important;
    column-gap:0 !important;
    justify-items:center !important;
    align-content:center !important;
    padding:6px 0 !important;
  }
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-name,
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-price,
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-change {
    grid-column:1 / -1 !important;
    width:100% !important;
    display:block !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:visible !important;
  }
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-name {
    grid-row:1 !important;
    font-size:clamp(10px,3vw,13px) !important;
    font-weight:600 !important;
  }
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-price {
    grid-row:2 !important;
    font-size:clamp(10px,2.95vw,13px) !important;
    font-weight:600 !important;
  }
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-change {
    grid-row:3 !important;
    font-size:clamp(8px,2.0vw,10px) !important;
    font-weight:500 !important;
  }
}

/* v2.2.24: align all three mobile quote rows to the LEFT within each metal column.
   Do not alter grid widths, font sizes, gaps, desktop layout or live indicator. */
@media screen and (max-width:767px) {
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote {
    justify-items:start !important;
    text-align:left !important;
  }
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-name,
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-price,
  body .ogg-metal-ticker.ogg-mobile-grid .ogg-quote-change {
    text-align:left !important;
  }
}
