/* Trézo dans ma ville - module Convertir & encaisser */

.conv-ticker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .conv-ticker-grid { grid-template-columns: 1fr; }
}

.conv-ticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
}
.conv-ticker[data-asset="bitcoin"] { border-color: #fdba74; }
.conv-ticker[data-asset="monero"] { border-color: #fca5a5; }

.conv-ticker-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.conv-ticker[data-asset="bitcoin"] .conv-ticker-icon { color: #c2410c; }
.conv-ticker[data-asset="monero"] .conv-ticker-icon { color: #b91c1c; }

.conv-ticker-name {
  font-weight: 700;
  color: #334155;
  font-size: 0.9rem;
}
.conv-ticker-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e3a8a;
}
.conv-ticker-change {
  font-size: 0.78rem;
  font-weight: 600;
}
.conv-ticker-change.positive { color: #10b981; }
.conv-ticker-change.negative { color: #ef4444; }

.conv-updated {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.conv-converter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.conv-conv-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.conv-conv-row input {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  color: #1e3a8a;
}
.conv-conv-row input:focus { outline: none; border-color: #3b82f6; }
.conv-conv-row input[readonly] { background: #f8fafc; color: #334155; }
.conv-conv-row select {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  color: #1e3a8a;
  max-width: 140px;
}

.conv-swap-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid #93c5fd;
  background: white;
  color: #1e3a8a;
  font-size: 1.1rem;
  cursor: pointer;
  align-self: center;
}
.conv-swap-btn:hover { background: #eff6ff; }

.conv-error {
  text-align: center;
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

.conv-note {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}
