/*
 * MarketLoot shared application loader.
 * One footprint is used by storefront and admin so status changes never resize
 * or remount the loading card.
 */
.app-loader-host {
  min-height: 100dvh;
}

.app-loader {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--text, #17211d);
}

.app-loader-card {
  width: min(300px, calc(100vw - 40px));
  height: 78px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--line, #dee5e1);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface, #fff);
  contain: layout paint;
}

.app-loader-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-soft, #f7f9f8);
}

.app-loader-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.app-loader-copy {
  min-width: 0;
  overflow: hidden;
}

.app-loader-title,
.app-loader-message {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-loader-title {
  color: var(--text, #17211d);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.01em;
}

.app-loader-message {
  min-height: 15px;
  margin-top: 4px;
  color: var(--text-muted, #87928c);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .app-loader { padding-inline: 16px; }
  .app-loader-card { width: min(300px, calc(100vw - 32px)); }
}
