/* =====================================================
   Admatic Gold & Silver Calculator
   – Styled to match Admatic Metal Chart
===================================================== */

.ngc{
  max-width:900px;
  margin:0 auto;
  padding:16px;
  background:#FBFBFB;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  font-family:inherit;
}

/* ---------- Header ---------- */

.ngc-header{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.ngc-title{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#1E1E1E;
}



/* ---------- Metal toggle ---------- */

.ngc-toggle{
  display:flex;
 margin-top:4px;
  gap:8px;
}

.ngc-btn{
	width: 100%;          /* 🔑 THIS makes it smaller */
   padding: 6px 14px!important;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid #333!important;
  background: white!important;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  color:#333!important;
  opacity:.55;
  transition:all .15s ease;
  -webkit-appearance: none;
}

.ngc-btn:hover{
  opacity:.85;
   background: #333!important;
   color:white!important;
}

.ngc-btn.active{
  background:#333!important;
  color:#fff!important;
  border-color:#333!important;
  opacity:1;
}

/* ---------- Table ---------- */

.ngc-table{
  margin-top:16px;
  border-top:1px solid rgba(0,0,0,.06);
}

.ngc-row{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap:10px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.ngc-row.active{
  background:rgba(0,0,0,.02);
}

/* ---------- Headings ---------- */

.ngc-head{
  font-size:11px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#8E9095;
}

/* ---------- Cells ---------- */

.ngc-cell{
  font-size:14px;
  color:#1E1E1E;
}

.ngc-price{
  font-variant-numeric:tabular-nums;
}

/* ---------- Inputs ---------- */

.ngc-input{
  width:100%;
  max-width:110px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  font-size:14px;
  background:#fff;
  color:#1E1E1E;
}

.ngc-input:focus{
  outline:none;
  border-color:#1E1E1E;
}

.ngc-input.ngc-placeholder{
  color:#9CA3AF;
  background:#F6F6F6;
}

.ngc-input.ngc-placeholder::placeholder{
  color:#9CA3AF;
  opacity:1;
}

/* ---------- Total ---------- */

.ngc-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(0,0,0,.06);
}

.ngc-total-label{
  font-weight:600;
  font-size:14px;
  color:#1E1E1E;
}

.ngc-total-value{
  font-weight:700;
  font-size:20px;
  font-variant-numeric:tabular-nums;
}

/* ---------- Footnote ---------- */

.ngc-footnote{
  margin-top:8px;
  font-size:12px;
  color:#8E9095;
}

/* ---------- Muted ---------- */

.ngc-muted{
  color:#9CA3AF;
}

/* ---------- Responsive ---------- */

@media (max-width:720px){
  .ngc-row{
    grid-template-columns:2fr 1fr 1fr;
    grid-auto-rows:auto;
  }

  .ngc-row > div:nth-child(4),
  .ngc-row > div:nth-child(5){
    grid-column:1/-1;
  }

  .ngc-input{
    max-width:100%;
  }

  .ngc-title{
    font-size:15px;
  }
}

/* =========================================
   Gold / Silver toggle – clean override
   (NO inset, NO shadow, chart-style)
========================================= */

.admat-metal-chart-wrap .admat-metal-toggle{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Hard reset ONLY on these buttons */
.admat-metal-chart-wrap .admat-metal-toggle button{
	width: 100%;          /* 🔑 THIS makes it smaller */
   padding: 6px 14px!important;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  color:var(--e-global-color-text, currentColor);
  opacity:.55;
  transition:all .15s ease;
  -webkit-appearance: none;
}

/* Hover */
.admat-metal-chart-wrap .admat-metal-toggle button:hover{
  opacity: .85;
 background: #333!important;
}

/* Active (JS toggles .is-active) */
.admat-metal-chart-wrap .admat-metal-toggle button.is-active{
  background: #333;
  color: #fff;
  border-color: #333;
  opacity: 1;
}


