/* CryptoPay Ticker v1.0.0 — gold styling to match Cryptobanking.
 * Dark navy #0b1226 background, gold #f2c14e accents.
 * MIT License. Copyright (c) 2026 Hans Mondé — Cryptobanking.
 */

.cpt-ticker {
  box-sizing: border-box;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 18px 12px;
  background: #0b1226;
  color: #f5f1e6;
  border: 1px solid #f2c14e;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

.cpt-ticker * { box-sizing: border-box; }

.cpt-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 193, 78, 0.35);
}

.cpt-title {
  font-size: 18px;
  font-weight: 700;
  color: #f2c14e;
  letter-spacing: 0.02em;
}

.cpt-currency {
  font-size: 13px;
  font-weight: 600;
  color: #f2c14e;
  border: 1px solid #f2c14e;
  border-radius: 999px;
  padding: 1px 9px;
}

.cpt-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 241, 230, 0.08);
}

.cpt-row:last-of-type { border-bottom: 0; }

.cpt-symbol {
  font-weight: 700;
  color: #f2c14e;
  min-width: 74px;
}

.cpt-name {
  color: #c9cdd8;
  font-size: 14px;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpt-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cpt-price-missing { color: #8a90a3; }

.cpt-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.cpt-badge-live {
  background: #f2c14e;
  color: #0b1226;
}

.cpt-badge-estimate {
  background: transparent;
  color: #f2c14e;
  border: 1px solid #f2c14e;
}

.cpt-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #c9cdd8;
}

.cpt-note-error { color: #f2c14e; }

.cpt-disclaimer {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8a90a3;
}

.cpt-footer { margin: 8px 0 0; font-size: 13px; }

.cpt-footer a {
  color: #f2c14e;
  text-decoration: none;
  font-weight: 600;
}

.cpt-footer a:hover,
.cpt-footer a:focus { text-decoration: underline; }

@media (max-width: 360px) {
  .cpt-ticker { padding: 12px 14px 10px; font-size: 15px; }
  .cpt-symbol { min-width: 60px; }
  .cpt-name { display: none; }
}
