/* V20.54 — lista de produtos sem estoque com ativação rápida */

.out-of-stock-dashboard-list,
.official-out-of-stock-list {
  max-height: min(520px, 56vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.stock-restore-card,
.official-stock-restore-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.stock-restore-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stock-restore-info strong,
.official-stock-restore-card strong {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.2;
}

.stock-restore-info span,
.stock-restore-info .small-text,
.official-stock-restore-card span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.stock-restore-btn {
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
  background: #06101f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
  white-space: nowrap;
}

.stock-restore-btn:active {
  transform: translateY(1px);
}

.official-stock-restore-card .stock-restore-btn {
  background: #0f172a;
  color: #fff;
}

@media (max-width: 760px) {
  .stock-restore-card,
  .official-stock-restore-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .stock-restore-btn {
    width: 100%;
    min-height: 44px;
  }

  .out-of-stock-dashboard-list,
  .official-out-of-stock-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
