/* minimal overrides on top of Fragment's own css */

html, body { min-height: 100%; }
body { background: var(--bg-color); }

.step.hide { display: none !important; }

.error {
  margin: 10px 0 0;
  color: #ff5863;
  font-size: 13px;
  line-height: 1.35;
}

.error.hide { display: none; }

.items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  margin: 14px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.items:empty::after {
  content: "No eligible collectibles in this wallet.";
  padding: 14px;
  border: 1px dashed var(--field-bg-color);
  border-radius: var(--def-border-radius);
  color: var(--text-color);
  font-size: 13px;
  text-align: center;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: var(--def-border-radius);
  background: var(--field-bg-color);
}

.item img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  background: #161d25;
  flex: 0 0 auto;
}

.item .item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.item .item-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffcf6b;
  border: 1px solid rgba(255, 207, 107, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}

.popup-loader {
  display: flex;
  justify-content: center;
  padding: 10px 0 16px;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--field-bg-color);
  border-top-color: var(--accent-color);
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.popup-progress {
  margin: 8px 0 4px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--accent-color);
}

.popup-done {
  display: flex;
  justify-content: center;
  padding: 8px 0 14px;
}

.popup-done .tick {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-bg-color);
  color: var(--accent-color);
  font-size: 26px;
}

.tm-popup-fine {
  margin: 10px 0 4px;
  text-align: center;
  color: var(--text-color);
  opacity: 0.8;
}

.popup h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 28px;
  font-weight: bold;
}

.popup .popup-text { color: var(--text-color); margin: 0 8px 12px; }

.popup h4 { margin-bottom: 10px; }

#step-wallet h2, #step-list h2 { margin-bottom: 4px; }

#step-done .popup-buttons { padding-top: 6px; }

.tm-status-avail { color: #3ddc84; }

.tm-countdown-timer {
  font-variant-numeric: tabular-nums;
}

.tm-section-buttons .btn { width: 100%; }

@media (min-width: 768px) {
  .items { max-height: 300px; }
}
